Example #1
0
    function post_page()
    {
        global $JBMarkup, $label;
        if (isset($_REQUEST['sup']) && $_REQUEST['sup']) {
            require_once jb_basedirpath() . 'include/posts.inc.php';
            // Init data from the form
            $_REQUEST['ref_id'] = (int) $_REQUEST['ref_id'];
            $data = $this->fetch_job_post($_REQUEST['ref_id']);
            $data['post_id'] = $_REQUEST['ref_id'];
            $prams = $data;
            $DynamicForm =& JB_get_DynamicFormObject(1, 'global');
            $DynamicForm->set_values($data);
            foreach ($DynamicForm->tag_to_field_id as $key => $field) {
                // change all fields to display as a text field
                if ($DynamicForm->tag_to_field_id[$key]['field_type'] == 'EDITOR') {
                    continue;
                }
                $DynamicForm->tag_to_field_id[$key]['field_type'] = 'TEXT';
            }
            $JBMarkup->enable_jquery();
            $JBMarkup->enable_colorbox();
            JB_template_index_header();
            $output_mode = 'FULL';
            //
            // PLEASE NOTE:
            // Requirement for api.jamit.com
            // This application button must be present when displaying
            // the job post. You may change the styles and apperance of this
            // button. However, please do not remove the button or tamper with
            // the URL
            // <div style="float:right;"<b> Search</b> <input type="text" size="10" value="what?"> <input type="text" size="10" value="city?"><input type="submit" value="Go"></div>
            //</div>
            $data['appurl'] = 'http://www.jamit.com/apply.php?ref_id=' . $data['post_id'];
            ?>

			<div style="background-color:#D9D9D9; with:100%; text-align:left;"><input type="button" class="form_apply_button" name="apply" value="<?php 
            echo $label['post_apply_online'];
            ?>
" onclick="$.fn.colorbox({width:&quot;80%&quot;, height:&quot;80&%&quot;, iframe:true, scrolling:false, href:&quot;<?php 
            echo $data['appurl'];
            ?>
&quot;});" >
			
			<div style="float:right;"><a class="go_back" href="<?php 
            echo htmlentities(JB_get_go_back_link());
            ?>
"><b><?php 
            echo $label['post_display_goback_list'];
            ?>
</b></a></div>

			</div>
			<div class="jobs_filler_jobs" style="background-color:white; padding:5px">

			
			
			<div class="jobs_filler_details" style="text-align:left;">
			<h3><?php 
            echo $DynamicForm->get_template_value('TITLE');
            ?>
</h3>

		
			<div class="jobs_filler_ad" style="float:left; width:300px; overflow:visible; margin-right:5px;">
		<?php 
            echo $this->config['ad'];
            ?>
			</div>

			<?php 
            echo $DynamicForm->get_template_value('DESCRIPTION');
            echo '</div>';
            $DynamicForm->display_form_section('view', 1, false);
            $DynamicForm->display_form_section('view', 2, false);
            $DynamicForm->display_form_section('view', 3, false);
            ?>
			</div><div class="clear" style="clear:both"></div>

			<?php 
            JB_template_index_footer();
        }
    }
Example #2
0
if (isset($_REQUEST['cat_name']) && $_REQUEST['cat_name'] != '') {
    $_REQUEST['cat'] = JB_get_cat_id_from_url($_REQUEST['cat_name']);
}
// process mod_rewrite for job posts
if (isset($_REQUEST['post_permalink'])) {
    JB_process_job_post_permalink();
}
// process mod_rewrite for employer profiles
if (JB_PRO_MOD_REWRITE == 'YES' && isset($_REQUEST['show_emp'])) {
    JB_process_emp_permalink();
}
// proces urls with page numbers
if (isset($_REQUEST['job_page_link'])) {
    $_REQUEST['offset'] = JB_POSTS_PER_PAGE * $_REQUEST['job_page_link'] - JB_POSTS_PER_PAGE;
}
# End Mod Rewrite
#####################
$JBPage = JB_page_init();
// calling this function will set the globals:
//$SEARCH_PAGE, $EMPLOYER_PAGE, $CATEGORY_PAGE, $PREMIUM_LIST,
//$JOB_LIST_PAGE, $JB_HOME_PAGE, $JOB_PAGE
JB_template_index_header();
$JBPage->output();
JB_template_index_footer();
$timeend = microtime();
$diff = JB_get_time_diff();
//echo "<br><br><small><small>script generation took $diff s </small></small>";
//echo "<small>".JB_get_time_diff()." s </small>";
# used to analyze the scripts speed
//echo "queries:".$jb_query_c;
//ob_end_flush();