Exemplo n.º 1
0
    // Display Category tree code
    // do we have a CATEGORY type field? (field_type)
    $DynamicForm = jb_get_DynamicFormObject(2);
    foreach ($DynamicForm->get_tag_to_field_id() as $field) {
        // If it does have a CATEGORY, display the category tree and
        // break out from the loop
        if ($field['field_type'] == 'CATEGORY' && $_REQUEST['action'] != 'search' && $_REQUEST['resume_id'] == false) {
            ?>
				<div style="padding-bottom:3.5em; text-align:left">
					<div style="float:left; ">
						<span class="category_name"> <?php 
            echo jb_escape_html(JB_getCatName($_REQUEST['cat']));
            ?>
</span><br>
						<span class="category_path"><?php 
            echo JB_getPath_templated($_REQUEST['cat']);
            ?>
</span>
					</div>
				<?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 
            }
            ?>
Exemplo n.º 2
0
function JB_getPath($c)
{
    return JB_getPath_templated($c);
}
Exemplo n.º 3
0
    $JBPage = new JBJobPage($post_id);
}
JB_template_candidates_header();
$JB_CAT_COLS = 3;
?>
<div style="padding-bottom:3.5em; text-align:left">
	<div style="float:left; ">
	<span class="category_name"><?php 
echo $label['root_category_link'];
?>
 <?php 
echo jb_escape_html(JB_getCatName($cat_id));
?>
</span><br>
	<span class="category_path"><?php 
echo JB_getPath_templated($cat_id);
?>
</span>
	</div>
	
		<div style="float: right;">
		<a href="index.php"><a href="browse.php"><?php 
echo $label['c_back2top'];
?>
</a></a>
		<?php 
if (JB_CAT_RSS_SWITCH == 'YES') {
    $cat_name = trim(JB_getCatName($cat_id));
    if ($cat_name) {
        ?>
				<p>
Exemplo n.º 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');
 }
Exemplo n.º 5
0
 function category_breadcrumbs()
 {
     // breadbrumb navigation for categories
     echo JB_getPath_templated($this->get_data_value($this->field_row['field_id']));
 }
Exemplo n.º 6
0
    $JBMarkup->ok_msg('Category Deleted.');
}
if ($_REQUEST['action'] == 'process') {
    JB_init_category_tables(0);
    if ($_REQUEST['save'] != '') {
        JB_cache_del_keys_for_all_cats(1);
        JB_cache_del_keys_for_all_cats(2);
        JB_cache_del_keys_for_all_cats(3);
        JB_cache_del_keys_for_all_cats(4);
        JB_cache_del_keys_for_all_cats(5);
        JB_cache_del_keys_for_cat_options();
    }
    JB_compute_cat_has_child();
    $JBMarkup->ok_msg('Category Cache Updated.');
}
echo "<div align='left'><h3><a href=" . htmlentities($_SERVER['PHP_SELF']) . ">|</a>-&gt; " . JB_getPath_templated($_REQUEST['cat'], htmlentities($_SERVER['PHP_SELF']), $_SESSION['form_id']) . " ";
if ($_REQUEST['cat'] != 0) {
    $MODE = "ADMIN";
    ?>
<a onClick="return confirmLink(this, 'Delete this category, are you sure? (This will also delete all sub-categories in this category)') " href="<?php 
    echo htmlentities($_SERVER['PHP_SELF']);
    ?>
?action=del&category_id=<?php 
    echo $_REQUEST['cat'];
    ?>
"><IMG src='delete.gif' width='16' height='16' border='0' alt='Delete'></a> 
<a href="<?php 
    echo htmlentities($_SERVER['PHP_SELF']);
    ?>
?edit=<?php 
    echo $_REQUEST['cat'];