Пример #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();
        }
    }
Пример #2
0
        - subscriptions are enabled, ($subscr_row['can_view_resumes']=='Y')
        - the subscriber can view resumes, ($subscr_row['can_view_resumes']=='Y')
        - the resume's status is active, ($data['status']=='ACT')
        
        - fields are not blocked
        - resume not anonymous to the user
        */
        if ($enough_quota && $subscr_row['can_view_resumes'] == 'Y' && $data['status'] == 'ACT' && $is_blocked != 'Y' && $data['anon'] != 'Y' || JB_is_request_granted($data['user_id'], $_SESSION['JB_ID'])) {
            // increment the view tally (if subscriptions are enabled
            JB_increment_views_tally($_SESSION['JB_ID']);
            echo $views_stat_label;
            // If views_quota is > 0 then this will print something like: 1 / 10
        }
        ?>
		<div style="text-align:center"><A HREF="<?php 
        echo htmlentities(JB_get_go_back_link());
        ?>
"><?php 
        echo $label["resume_display_go_back"];
        ?>
</a></div>

		<?php 
        if ($data['status'] !== 'ACT') {
            $JBMarkup->error_msg($label['employer_resume_desctive']);
        } else {
            if ($is_blocked == 'N' && $key == '' && JB_FIELD_BLOCK_SWITCH == 'NO' && JB_RESUME_REPLY_ENABLED == 'YES' && ($data['anon'] != 'Y' || JB_is_request_granted($data['user_id'], $_SESSION['JB_ID']))) {
                ?>

				<input type="button" name="apply"  onclick="showDIV(document.getElementById('app_form'), true); this.disabled=true;" class="form_apply_button" value="<?php 
                echo $label['employer_search_send_email'];
Пример #3
0
<br><p style="text-align:center"> <a href="<?php 
echo JB_get_go_back_link();
?>
"><b><?php 
echo $label['index_employer_jobs'];
?>
</b></a> -> <b><?php 
echo $COMP_NAME;
?>
</b></p>

<?php 
if ($profile_id) {
    $DynamicForm->display_form('view');
}
$label['listing_jobs_by_emp'] = str_replace("%EMPLOYER_NAME%", $COMP_NAME, $label['listing_jobs_by_emp']);
echo "<div align='center'><h3>" . $label['listing_jobs_by_emp'] . "</h3></div>";
JB_list_jobs("ALL");
// list all the jobs by this employer
Пример #4
0
$ProfileForm->set_mode('edit');
if ($_REQUEST['save'] != "") {
    // saving
    $errors = $ProfileForm->validate();
    if ($errors) {
        // we have an error
        $mode = "edit";
        $ProfileForm->display_form('edit', true);
    } else {
        $mode = "edit";
        $profile_id = $ProfileForm->save(true);
        $JBMarkup->ok_msg('Profile Saved');
        JB_list_profiles($admin, $_REQUEST['order_by'], $_REQUEST['offset']);
    }
} elseif ($_REQUEST['action'] == 'edit') {
    echo "<a style='text-align:center;'><b><a href='" . htmlentities(JB_get_go_back_link()) . "'>" . $label["resume_display_go_back"] . "</a></b><p>";
    $mode = 'edit';
    $ProfileForm->load($_REQUEST['profile_id']);
    $ProfileForm->display_form('edit', true);
} elseif ($_REQUEST['action'] == 'delete') {
    JB_delete_profile($_REQUEST['profile_id']);
    $JBMarkup->ok_msg('Profile Deleted');
    JB_list_profiles($admin, $_REQUEST['order_by'], $_REQUEST['offset']);
} elseif ($_REQUEST['profile_id'] != '') {
    $ProfileForm->load($_REQUEST['profile_id']);
    $ProfileForm->display_form('view', true);
    //JB_display_profile_form (3, $mode, $data, true);
} else {
    JB_list_profiles($admin, $_REQUEST['order_by'], $_REQUEST['offset']);
}
JB_admin_footer();