function membership_plan_list() { global $label; $PLM =& JB_get_ListMarkupObject('JBProductListMarkup'); // get the sublass of JBListMarkup.php, defined in that template file $PLM->list_heading($label['emp_member_header']); $PLM->list_sub_heading($label['emp_member_sub_head']); $PLM->set_colspan(3); $PLM->open_form('form1', 'order.php?action=membership'); $PLM->list_start('membership_plans', 'order_table'); $PLM->list_head_open(); $PLM->list_head_cell_open(); echo $label['emp_member_option']; $PLM->list_head_cell_close(); $PLM->list_head_cell_open(); echo $label['emp_member_price']; $PLM->list_head_cell_close(); $PLM->list_head_cell_open(); echo $label['emp_member_descr']; $PLM->list_head_cell_close(); $PLM->list_head_close(); $PLM->list_head_close(); // employer memberships.. $sql = "SELECT * from memberships WHERE type='E' order by price ASC, name "; $result = JB_mysql_query($sql); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $PLM->set_values($row); $PLM->list_item_open(); $PLM->list_cell_open('nowrap'); $PLM->product_selection('membership_id', $row['membership_id'], $row['name']); $PLM->list_cell_close(); $PLM->list_cell_open('nowrap'); $PLM->data_cell('price'); $PLM->list_cell_close(); $PLM->list_cell_open('fullwidth'); $PLM->product_label($row['membership_id']); $PLM->list_cell_close(); $PLM->list_item_close(); } $PLM->list_end(); $PLM->place_order_button($label['emp_member_placeorder']); $PLM->close_form(); }
Employers Returned (<?php echo $pages; ?> pages) </b></center> <?php echo "Page {$cur_page} of {$pages} - "; $nav = JB_nav_pages_struct($result, $q_string, $count, $records_per_page); $LINKS = 10; JB_render_nav_pages($nav, $LINKS, $q_string, $show_emp, $cat); echo "</center>"; } $admin = true; $RForm =& JB_get_DynamicFormObject(2); $RForm->load($_REQUEST['resume_id']); $name = $RForm->get_template_value('RESUME_NAME', $admin); $ListMarkup =& JB_get_ListMarkupObject('JBRequestListMarkup'); ?> <p> <table cellSpacing="1" cellPadding="3" style="margin: 0 auto; background-color: #d9d9d9; width:100%; border:0px" > <tr> <td colspan="10"><input type="submit" name="grant" value="Grant Access to view <?php echo jb_escape_html($name); ?> 's resume"> <input type="hidden" name="offset" value="<?php echo jb_escape_html($_REQUEST['offset']); ?> ">
function JB_render_postlist_nav_links(&$nav_pages_struct, $LINKS, $pp_page, $q_string = '') { global $list_mode; global $label; global $JobListAttributes; $is_premium = false; $PLM =& JB_get_ListMarkupObject(); // load the ListMarkup Class $pipe = ''; if ($list_mode == 'PREMIUM') { echo $label['post_list_more_sponsored'] . " "; $is_premium = true; } $page = htmlentities($_SERVER['PHP_SELF']); $page = str_replace('index.php', '', $page); if ($nav_pages_struct['cur_page'] > $LINKS - 1) { $LINKS = round($LINKS / 2) * 2; $NLINKS = $LINKS; } else { $NLINKS = $LINKS - $nav_pages_struct['cur_page']; } if ($nav_pages_struct['prev_page'] > -1) { echo $PLM->get_nav_prev_link(JB_job_result_page_url($nav_pages_struct['prev_page'], $pp_page, $is_premium, $JobListAttributes), $label["navigation_prev"]); } // links to pages before the current page $b_count = count($nav_pages_struct['pages_before']); for ($i = $b_count - $LINKS; $i <= $b_count; $i++) { if (isset($nav_pages_struct['pages_before'][$i])) { echo $PLM->get_nav_numeric_link(JB_job_result_page_url($nav_pages_struct['pages_before'][$i], $pp_page, $is_premium, $JobListAttributes), $i); //" | <a class='nav_page_link' $seperator = $PLM->get_nav_seperator(); } } // the current page, not a link echo $PLM->get_nav_current_page($seperator, $nav_pages_struct['cur_page']); // echo all the page links after the current page if ($nav_pages_struct['pages_after'] != '') { $i = 0; foreach ($nav_pages_struct['pages_after'] as $key => $pa) { $i++; if ($i > $NLINKS) { break; } echo $PLM->get_nav_numeric_link(JB_job_result_page_url($pa, $pp_page, $is_premium, $JobListAttributes), $key); //" | } } if ($nav_pages_struct['next_page']) { echo $PLM->get_nav_next_link(JB_job_result_page_url($nav_pages_struct['next_page'], $pp_page, $is_premium, $JobListAttributes), $label["navigation_next"]); } }
function JB_render_nav_pages(&$nav_pages_struct, $LINKS, $q_string = '') { global $list_mode; global $label; $LM =& JB_get_ListMarkupObject(); // get a reference to the ListMarkup Class $seperator = ''; if ($list_mode == 'PREMIUM') { echo $label['post_list_more_sponsored'] . " "; $q_string .= "&p=1"; } $page = htmlentities($_SERVER['PHP_SELF']); $offset = (int) $_REQUEST["offset"]; if (isset($_REQUEST['show_emp']) && is_integer($_REQUEST['show_emp'])) { $show_emp = "&show_emp=" . $_REQUEST['show_emp']; } if (isset($_REQUEST['cat']) && is_integer($_REQUEST['cat'])) { $show_emp = "&cat=" . $_REQUEST['cat']; } if (isset($_REQUEST['order_by']) && strlen($_REQUEST['order_by']) > 0) { $order_by = "&order_by=" . htmlentities($_REQUEST['order_by']) . "&ord=" . htmlentities($_REQUEST['ord']); } if (isset($_REQUEST['show']) && strlen($_REQUEST['show']) > 0) { $show = "&show=" . htmlentities($_REQUEST['show']); } if ($nav_pages_struct['cur_page'] > $LINKS - 1) { $LINKS = round($LINKS / 2) * 2; $NLINKS = $LINKS; } else { $NLINKS = $LINKS - $nav_pages_struct['cur_page']; } echo $nav_pages_struct['prev']; $b_count = count($nav_pages_struct['pages_before']); for ($i = $b_count - $LINKS; $i <= $b_count; $i++) { if (isset($nav_pages_struct['pages_before'][$i])) { echo $LM->get_nav_numeric_link($page . "?offset=" . $nav_pages_struct['pages_before'][$i] . $q_string . $show_emp . $cat . $order_by . $show, $i); $seperator = $LM->get_nav_seperator(); } } echo $LM->get_nav_current_page($seperator, $nav_pages_struct['cur_page']); if ($nav_pages_struct['pages_after'] != '') { $i = 0; foreach ($nav_pages_struct['pages_after'] as $key => $pa) { $i++; if ($i > $NLINKS) { break; } echo $LM->get_nav_numeric_link($page . '?offset=' . $pa . $q_string . $show_emp . $cat . $order_by . $show, $key); } } echo $nav_pages_struct['next']; }
########################################################################### # Copyright Jamit Software 2012, http://www.jamit.com # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. ########################################################################### require "../config.php"; require dirname(__FILE__) . "/admin_common.php"; $offset = (int) $_REQUEST['offset']; $post_id = (int) $_REQUEST['post_id']; if ($post_id > 0) { $JBPage = new JBJobPage($post_id, $admin = true); } JB_admin_header('Admin -> Applications'); $ALM =& JB_get_ListMarkupObject('JBAppListMarkup'); $ALM->set_list_mode('ADMIN'); $COLSPAN = 5; JBPLUG_do_callback('admin_apply_list_action_colspan', $COLSPAN); // a plugin can also set the colspan $ALM->set_colspan($COLSPAN); $post_id = (int) $_REQUEST['post_id']; $action = jb_alpha($_REQUEST['action']); $apps = $_REQUEST['apps']; if ($_REQUEST['delete']) { for ($i = 0; $i < sizeof($apps); $i++) { $sql = "DELETE FROM `applications` WHERE `app_id`='" . jb_escape_sql($apps[$i]) . "' "; $result = JB_mysql_query($sql) or die(mysql_error()); } if (sizeof($apps)) { $JBMarkup->ok_msg('Application(s) deleted');
<?php } JB_render_box_bottom(); ?> <h3><?php echo $label['package_rcnt_tansactions']; ?> </h3> <?php $now = gmdate("Y-m-d H:i:s"); $sql = "SELECT * FROM `package_invoices` WHERE employer_id='" . jb_escape_sql($_SESSION['JB_ID']) . "' AND DATE_SUB('{$now}', INTERVAL 90 DAY) <= `invoice_date` ORDER BY invoice_date DESC "; $result = JB_mysql_query($sql); if (mysql_num_rows($result) > 0) { $OLM =& JB_get_ListMarkupObject('JBOrdersListMarkup'); $OLM->list_start('credit_orders', 'order_table'); $OLM->list_head_open(); $OLM->list_head_cell_open(); echo $label['package_trn_date']; $OLM->list_head_cell_close(); $OLM->list_head_cell_open(); echo $label['package_trn_id']; $OLM->list_head_cell_close(); $OLM->list_head_cell_open(); echo $label['package_trn_item']; $OLM->list_head_cell_close(); $OLM->list_head_cell_open(); echo $label['package_trn_status']; $OLM->list_head_cell_close(); $OLM->list_head_cell_open();
function JB_get_list_template_value($field, $val, $admin, $form_id = 1) { $LM =& JB_get_ListMarkupObject($form_id); $Form =& JB_get_DynamicFormObject($form_id); // it is assumed that this function is called in 'view' mode // the viewer id and type is unknown so null is passed if ($Form->process_field_restrictions($field, null, null, $admin)) { // Its a restricted field, eg anonymous, blocked or member's only return $Form->get_value($field['field_id']); } switch ($field['field_type']) { case 'TIME': // convert timestamp to local time zone // using the raw value stored in the record if ($val != '0000-00-00 00:00:00') { $val = JB_get_local_time($Form->get_value($field['field_id']) . ' GMT'); } break; case 'EDITOR': $val = strip_tags($val); $val = jb_escape_html($val); if (!$admin) { $val = JB_email_at_replace($val); } break; case 'IMAGE': if (JB_image_thumb_file_exists($Form->get_value($field['field_id']))) { $val = $LM->get_img_html($Form->get_value($field['field_id'])); } break; case "CURRENCY": if ($val > 0) { $val = JB_escape_html(JB_format_currency($Form->get_value($field['field_id']), JB_get_default_currency())); } else { $val = ''; } break; case "CATEGORY": $val = jb_escape_html(JB_getCatName($Form->get_value($field['field_id']))); break; case "RADIO": $val = jb_escape_html(JB_getCodeDescription($field['field_id'], $Form->get_value($field['field_id']))); break; case "SELECT": $val = jb_escape_html(JB_getCodeDescription($field['field_id'], $Form->get_value($field['field_id']))); break; case "MSELECT": case "CHECK": $vals = explode(",", $Form->get_value($field['field_id'])); $comma = ''; $str = ''; if (sizeof($vals) > 0) { foreach ($vals as $v) { $str .= $comma . jb_escape_html(JB_getCodeDescription($field['field_id'], $v)); $comma = ", "; } } $val = $str; break; case "DATE": case "DATE_CAL": if ($val != '0000-00-00 00:00:00') { $val = JB_get_local_time($Form->get_value($field['field_id']) . " GMT"); $val = JB_get_formatted_date($val); } else { $val = ''; } break; case "SKILL_MATRIX": $sql = "SELECT name FROM skill_matrix_data where object_id='" . JB_escape_sql($Form->get_value('resume_id')) . "' "; $result = JB_mysql_query($sql) or die(mysql_error()); $val = ''; $comma = ''; while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $val .= $comma . $row['name']; $comma = ", "; } break; default: // plugins can alter the data in the cell to be // be presented on the list in a custom manner $args = array('val' => &$val, 'has_changed' => false, 'field' => &$field, 'form_id' => $form_id, 'data' => $Form->get_values()); JBPLUG_do_callback('get_list_template_value', $args); // This hook was added in 3.6, allows plugins to modify the cell data based on $field, eg. $field['field_type'], the plugin should set 'has_changed' to true if the data in 'val' was changed. if ($args['has_changed']) { // has it changed? return $val; } // if not modified by plugin $val = jb_escape_html($val); if (!$admin) { $val = JB_email_at_replace($val); } } return $val; }
function JB_display_request_history($user_id) { global $label, $JBMarkup; $RLM =& JB_get_ListMarkupObject('JBRequestListMarkup'); $sql = "SELECT * FROM requests WHERE candidate_id='" . jb_escape_sql($user_id) . "' AND `deleted`='N' "; $result = JB_mysql_query($sql); if (mysql_num_rows($result) == 0) { } else { $RLM->open_form('request_form'); $RLM->set_colspan(5); $RLM->list_start('request_list', 'request_history'); $RLM->list_controls(); $RLM->list_head_open(); $RLM->list_head_action('employer_ids'); $RLM->list_head_cell_open(); echo $label['request_history_date']; $RLM->list_head_cell_close(); $RLM->list_head_cell_open(); echo $label['request_history_employer']; $RLM->list_head_cell_close(); $RLM->list_head_cell_open(); echo $label['request_history_has_permission']; $RLM->list_head_cell_close(); $RLM->list_head_cell_open(); echo $label['request_history_permission']; $RLM->list_head_cell_close(); $RLM->list_head_close(); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $RLM->set_values($row); $RLM->list_item_open(); $RLM->list_data_action('employer_ids', $row['employer_id']); $RLM->list_cell_open(); $RLM->data_cell('request_date'); $RLM->list_cell_close(); $RLM->list_cell_open(); $RLM->data_cell('employer_id'); $RLM->list_cell_close(); $RLM->list_cell_open(); if ($row['request_status'] == "REQUEST") { $RLM->requested_status(); } elseif ($row['request_status'] == "GRANTED") { $RLM->granted_status(); } elseif ($row['request_status'] == "REFUSED") { $RLM->refused_status(); } else { $RLM->refused_status(); } $RLM->list_cell_close(); $RLM->list_cell_open(); $RLM->grant_button(); $RLM->refuse_button($row['employer_id']); $RLM->list_cell_close(); $RLM->list_item_close(); } $RLM->list_end(); $RLM->close_form(); } }
<?php ########################################################################### # Copyright Jamit Software 2012, http://www.jamit.com # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. ########################################################################### require "../config.php"; require dirname(__FILE__) . "/admin_common.php"; require_once JB_basedirpath() . "include/resumes.inc.php"; JB_admin_header('Admin -> Language'); $ListMarkup =& JB_get_ListMarkupObject('JBCanListMarkup'); $CandidateForm =& JB_get_DynamicFormObject(5); ?> <b>[CANDIDATES]</b> <span style="background-color: <?php if ($_REQUEST['show'] != '') { echo '#F2F2F2'; } else { echo "#FFFFCC"; } ?> ; border-style:outset; padding:5px; "><a href="candidates.php">List Candidates</a></span> <span style="background-color: <?php if ($_REQUEST['show'] == 'NA') { echo '#FFFFCC'; } else { echo "#F2F2F2"; } ?> ; border-style:outset; padding: 5px;"><a href="candidates.php?show=NA">Non-Validated Candidates</a></span>
function subscription_plan_list() { global $label; $PLM =& JB_get_ListMarkupObject('JBProductListMarkup'); // sublass of JBListMarkup.php, defined in that template file $PLM->list_heading($label['subscription_head1']); $PLM->list_sub_heading($label['subscription_head2']); $PLM->set_colspan(3); $PLM->open_form('form1', 'order.php?action=subscription'); $PLM->list_start('subscription_plans', 'order_table'); $PLM->list_head_open(); $PLM->list_head_cell_open(); echo $label['subscription_option']; $PLM->list_head_cell_close(); $PLM->list_head_cell_open(); echo $label['subscription_price_']; $PLM->list_head_cell_close(); $PLM->list_head_cell_open(); echo $label['subscription_description_']; $PLM->list_head_cell_close(); $PLM->list_head_close(); $result = JB_mysql_query("SELECT * from subscriptions order by price ASC, name "); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $PLM->set_values($row); $PLM->list_item_open(); $PLM->list_cell_open('nowrap'); $PLM->product_selection('subscription_id', $row['subscription_id'], $row['name']); $PLM->list_cell_close(); $PLM->list_cell_open('nowrap'); $PLM->data_cell('price'); $PLM->list_cell_close(); $PLM->list_cell_open('fullwidth'); $PLM->product_label($row['subscription_id']); $PLM->line_break(); if ($row['can_view_resumes'] == 'Y') { $str = $label['subscr_can_view_resumes']; if ($row['views_quota'] > 0) { $str .= $label['subscr_can_view_resumes_q']; $str = str_replace('%QUOTA%', $row['views_quota'], $str); } if ($row['can_view_blocked'] == 'Y' && JB_FIELD_BLOCK_SWITCH == 'YES') { $str .= " " . $label['subscr_can_view_blocked']; } $PLM->product_tick($str); } if ($row['can_post'] == 'Y' && JB_POSTING_FEE_ENABLED == 'YES') { if ($row['posts_quota'] > 0) { $str = $label['subscr_can_post_q']; $str = str_replace('%QUOTA%', $row['posts_quota'], $str); } else { $str = $label['subscr_can_post_unlimited']; } $PLM->product_tick($str); } if ($row['can_post_premium'] == 'Y' && JB_PREMIUM_POSTING_FEE_ENABLED == 'YES') { if ($row['p_posts_quota'] > 0) { $str = $label['subscr_can_post_pr_q']; $str = str_replace('%QUOTA%', $row['p_posts_quota'], $str); } else { $str = $label['subscr_can_post_unlimited_pr']; } $PLM->product_tick($str); } $PLM->list_cell_close(); $PLM->list_item_close(); } $PLM->list_end(); $PLM->place_order_button($label['subscription_add_to_cart']); $PLM->close_form(); }
<?php ########################################################################### # Copyright Jamit Software 2012, http://www.jamit.com # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. ########################################################################### require "../config.php"; require dirname(__FILE__) . "/admin_common.php"; require_once "../include/posts.inc.php"; require "../include/profiles.inc.php"; require_once "../include/employers.inc.php"; $EmployerForm =& JB_get_DynamicFormObject(4); $EmployerForm->set_mode('edit'); $ListMarkup =& JB_get_ListMarkupObject('JBEmpListMarkup'); # Copyright 2005-2009 Jamit Software # http://www.jamit.com/ if (isset($_REQUEST['mail']) ? $mail = $_REQUEST['mail'] : ($mail = '')) { } if (isset($_REQUEST['users']) ? $users = $_REQUEST['users'] : ($users = '')) { } if (isset($_REQUEST['msg_type']) ? $msg_type = $_REQUEST['msg_type'] : ($msg_type = '')) { } if (isset($_REQUEST['message']) ? $message = $_REQUEST['message'] : ($message = '')) { } if (isset($_REQUEST['subject']) ? $subject = $_REQUEST['subject'] : ($subject = '')) { } // change password if (isset($_REQUEST['user_id']) ? $user_id = $_REQUEST['user_id'] : ($user_id = '')) { }
function JB_payment_option_list($invoice_row, $product_type) { global $_PAYMENT_OBJECTS; global $label; $PLM = JB_get_ListMarkupObject('JBPaymentOptionListMarkup'); $invoice_row['product_type'] = $product_type; $PLM->set_invoice_row($invoice_row); $PLM->open_form('pay_select'); $PLM->list_start('payment_list', 'order_table'); $PLM->list_head_open(); $PLM->list_head_cell_open(); $PLM->list_head_cell_close(); $PLM->list_head_cell_open(); echo $label['payment_mab_name']; $PLM->list_head_cell_close(); $PLM->list_head_cell_open(); echo $label['payment_man_descr']; $PLM->list_head_cell_close(); $PLM->list_head_close(); $enabled_flag; foreach ($_PAYMENT_OBJECTS as $obj_key => $obj) { $PLM->set_values($obj); if ($obj->is_enabled()) { $PLM->list_item_open(); $PLM->list_cell_open(); $PLM->radio_button(); $PLM->list_cell_close(); $PLM->list_cell_open(); $PLM->data_cell('name'); $PLM->list_cell_close(); $PLM->list_cell_open(); $PLM->data_cell('description'); $PLM->list_cell_close(); $PLM->list_item_close(); $enabled_flag = 1; } } if (!$enabled_flag) { echo '<span style="color:red">It appears that there are no payment modules enabled. Please see Admin->Payment Modules</span>'; } $invoice_id = $invoice_row['invoice_id']; JBPLUG_do_callback('payment_option_list', $invoice_id, $product_type); $PLM->selection_row_open(); $PLM->select_button(); if ($invoice_row['status'] == 'in_cart' || strtolower($invoice_row['status']) == 'confirmed') { $PLM->cancel_button($invoice_id, $product_type); } $PLM->selection_row_close(); $PLM->list_end(); $PLM->close_form(); }