2 /***********************************************************************/
4 /***********************************************************************/
5 /* Copyright (c) 2002-2009 */
6 /* Adaptive Technology Resource Centre / Inclusive Design Institute */
9 /* This program is free software. You can redistribute it and/or */
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /***********************************************************************/
15 global $db, $addslashes;
16 $jid = intval($_GET['jid']);
17 $member_id = $_SESSION['member_id'];
20 //if this is a public page, or guest, then disable job cart.
25 //Check if this job has been added.
26 $sql = 'SELECT job_id FROM '.TABLE_PREFIX."jb_jobcart WHERE job_id=$jid AND member_id=$member_id";
27 $result = mysql_query($sql, $db);
29 $row = mysql_fetch_assoc($result);
30 if ($row['job_id']!=''){
38 <?php if ($job_added): ?>
39 <div class="add_to_cart">
40 <a href="<?php echo AT_JB_BASENAME; ?>view_post.php?action=remove_from_cart<?php echo SEP;?>jid=<?php echo $jid; ?>" title="<?php echo _AT('jb_remove_from_cart');?>"><?php echo _AT('jb_remove_from_cart');?></a>
43 <div class="add_to_cart">
44 <a href="<?php echo AT_JB_BASENAME; ?>view_post.php?action=add_to_cart<?php echo SEP;?>jid=<?php echo $jid; ?>" title="<?php echo _AT('jb_add_to_cart');?>"><?php echo _AT('jb_add_to_cart');?></a>