Example #1
0
				<?php 
            if (is_numeric($_REQUEST['cat'])) {
                ?>
					<div style="float: right;">
						<a href="index.php"><a href="search.php"><?php 
                echo $label['c_back2top'];
                ?>
</a></a>
					</div>
					<?php 
            }
            ?>
				</div>

			<?php 
            $categories = JB_getCatStruct($_REQUEST['cat'], $_SESSION["LANG"], 2);
            JB_display_categories($categories, JB_CAT_COLS);
            break;
        }
    }
    ##############################################\
    $is_blocked = 'N';
    switch (JB_FIELD_BLOCK_SWITCH) {
        case 'YES':
            $subscr_block_status = JB_get_employer_view_block_status($_SESSION['JB_ID']);
            if ($subscr_block_status == 'N' && JB_SUBSCRIPTION_FEE_ENABLED == 'YES' && !$key_test_passed) {
                echo "<p>" . $label["resume_some_fields_blocked"] . "</p>";
                echo JBEmployer::JB_get_special_offer_msg();
                $is_blocked = 'Y';
            }
            break;
Example #2
0
    $cat = $_REQUEST['cat'];
    if ($cat == '') {
        $cat = 0;
    } else {
        echo "<a href='" . htmlentities($_SERVER['PHP_SELF']) . "'>" . $label['root_category_link'] . "</a>";
        ?>
 <?php 
        echo jb_escape_html(JB_getCatName($_REQUEST['cat']));
        ?>
<br>
		&nbsp;&nbsp;&nbsp;&nbsp;<?php 
        echo JB_getPath_templated($_REQUEST['cat']);
        $list_mode = "BY_CATEGORY_ADMIN";
    }
    //echo "cat is: [$cat]";
    $categories = JB_getCatStruct($cat, $_SESSION['LANG'], 1);
    JB_display_categories($categories, 3);
    ?>
			
	<?php 
}
?>
<p>
	<?php 
if ($_REQUEST['purge2'] != '') {
    $now = gmdate("Y-m-d H:i:s");
    $sql = "SELECT post_id from posts_table where DATE_SUB('{$now}', INTERVAL '" . jb_escape_sql($_REQUEST['purge_days']) . "' DAY) > post_date ";
    $result = JB_mysql_query($sql) or die(mysql_error());
    while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
        JB_delete_post($row['post_id']);
    }
Example #3
0
<div class="cat_list_box">
	<div class="cat_box_title"><?php 
echo $label['category_header'];
?>
</div>
		<?php 
$categories = JB_getCatStruct($cat, $_SESSION["LANG"], 1);
JB_display_categories($categories, $JB_CAT_COLS);
?>
</div>
Example #4
0
 function JBJobCategoryPage($cat_id, $offset, $admin = false)
 {
     $this->cat_id = (int) $cat_id;
     $this->list_mode = 'BY_CATEGORY';
     $this->page_name = "CATEGORY_PAGE";
     // load the posts in the category
     $this->category = JB_get_category($this->cat_id);
     $this->vars = array('cat_id' => $this->cat_id, 'CAT_NAME' => JB_getCatName($this->cat_id), 'CAT_PATH' => JB_getPath_templated($this->cat_id), 'CAT_STRUCT' => JB_getCatStruct($this->cat_id, $_SESSION["LANG"], 1), 'category' => &$this->category, 'admin' => $admin);
     JBPLUG_do_callback('init_job_category_page_vars', $this->vars);
     // register the header_tags() method so that JBMarkup can call it back
     global $JBMarkup;
     $JBMarkup->set_handler('header', $this, 'header_tags');
 }