Esempio n. 1
0
 function show_stats()
 {
     // this is a function called back from the hook, initialized on the StatsBox() constructor
     global $label;
     $sql = "SELECT * FROM jb_variables WHERE `key`='POST_COUNT_AP' or `key`='EMPLOYER_COUNT' or `key`='USER_COUNT' ";
     $result = JB_mysql_query($sql) or die(mysql_error());
     while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
         if ($row['key'] == 'POST_COUNT_AP') {
             $jobs = $row['val'];
         } elseif ($row['key'] == 'EMPLOYER_COUNT') {
             $emp = $row['val'];
         } elseif ($row['key'] == 'USER_COUNT') {
             $seek = $row['val'];
         }
     }
     // you can call any of the functions defined by the job board:
     //echo "<p >";
     if ($this->config['frame_border'] == 'YES') {
         JB_render_box_top($width = "98%", $label['StatsBox_heading'], $body_bg_color = '#ffffff');
     }
     $label['StatsBox_jobs'] = str_replace('%COUNT%', $jobs, $label['StatsBox_jobs']);
     $label['StatsBox_seekers'] = str_replace('%COUNT%', $seek, $label['StatsBox_seekers']);
     $label['StatsBox_emp'] = str_replace('%COUNT%', $emp, $label['StatsBox_emp']);
     echo $label['StatsBox_jobs'] . "<br>";
     echo $label['StatsBox_seekers'] . "<br>";
     echo $label['StatsBox_emp'] . "<br>";
     if ($this->config['frame_border'] == 'YES') {
         JB_render_box_bottom();
     }
     //echo "</p>";
 }
Esempio n. 2
0
function JB_display_motd($type, $width = 100)
{
    if ($type != 'E' && $type != 'U') {
        return false;
    }
    $data = JB_load_motd($type);
    if ($data['display'] == 'YES') {
        JB_render_box_top($width, $data['title']);
        echo $data['message'];
        JB_render_box_bottom();
        return true;
    }
    return false;
}
Esempio n. 3
0
$msg = str_replace("%resumecount%", $resume, $msg);
$msg = str_replace("%SITE_NAME%", JB_SITE_NAME, $msg);
// echo $msg;
?>

	<?php 
JB_render_box_top(100, $label['employer_home_status_summary']);
echo $msg;
?>
	
	<?php 
JB_render_box_bottom();
?>
     <br>
	<?php 
JB_render_box_top(100, $label['employer_home_main_menu']);
?>
					
      <p class="home_menu_items"><?php 
echo $label["employer_home_main_account"];
?>
</p>
      <p class="home_menu_items"><?php 
echo $label["employer_home_main_profile"];
?>
 </p>
      <p class="home_menu_items"><?php 
echo $label["employer_home_main_resumes"];
?>
</p>
      <p class="home_menu_items"><?php 
Esempio n. 4
0
JBEmployer::display_credit_status();
JB_render_box_bottom();
?>
				

<div>&nbsp;


<?php 
if ($_REQUEST['offset'] == false || $_REQUEST['show'] == 'ONLINE') {
    JB_render_box_top(95, $label['employer_manager_online']);
    JB_list_jobs("EMPLOYER", "ONLINE");
    // show employer's online jobs.
    JB_render_box_bottom();
}
?>
				
</div>
<div>&nbsp;

<?php 
if ($_REQUEST['offset'] == false || $_REQUEST['show'] == 'OFFLINE') {
    JB_render_box_top(95, $label['employer_manager_offline']);
    JB_list_jobs("EMPLOYER", "OFFLINE");
    // show employer's offline jobs.
    JB_render_box_bottom();
}
?>
</div>
<?php 
JB_template_employers_footer();
Esempio n. 5
0
    $str = '<p style="text-align:center">' . $str . ' ' . $label["c_index_views"] . '</p>';
    JB_display_info_box($label["c_index_status"], $str, 80);
    ?>


<?php 
}
if (mysql_num_rows($result) == 0) {
    JB_display_info_box("", "<p align='center'>" . $label["c_index_no_resume"] . "</p>", 80);
}
?>
<p>&nbsp;

					
      <?php 
JB_render_box_top(80, $label['c_index_menu']);
?>
        <p><?php 
echo $label["c_index_edit"];
?>
 </p>
        <p><?php 
echo $label["c_index_view"];
?>
</p>
        <p><?php 
echo $label["c_index_jobs"];
?>
</p>
		<p><?php 
echo $label["c_index_alerts"];
Esempio n. 6
0
        }
              $_SESSION['JB_Domain'] = "CANDIDATE";
        $now = (gmdate("Y-m-d H:i:s"));
              JB_mysql_query("UPDATE `users` SET `login_count`=`login_count`+1, login_date ='$now' WHERE `user_id`=".$row['ID']." ");
        */
    } else {
        JB_process_login();
    }
}
if ($_SESSION['JB_ID'] != '') {
    $user_id = $_SESSION['JB_ID'];
} elseif (is_numeric($_REQUEST['id'])) {
    $user_id = $_REQUEST['id'];
}
JB_template_candidates_header();
JB_render_box_top(80, $label['c_alert_head']);
if ($action != '') {
    $now = gmdate("Y-m-d H:i:s");
    global $post_tag_to_search;
    foreach ($post_tag_to_search as $key => $val) {
        $name = $post_tag_to_search[$key]['field_id'];
        $_Q_STRING[$name] = $_REQUEST[$name];
    }
    $alert_query = serialize($_Q_STRING);
    $sql = "UPDATE `users` SET `notification1`='" . jb_escape_sql($notification) . "', `alert_keywords`='" . jb_escape_sql($words) . "', `alert_query`='" . jb_escape_sql(addslashes($alert_query)) . "',  `alert_email`='" . jb_escape_sql($email) . "' WHERE `ID`='" . jb_escape_sql($user_id) . "'";
    JB_mysql_query($sql) or die(mysql_error());
    $success = 1;
} else {
    $sql = "SELECT * FROM `users` WHERE `ID`='" . jb_escape_sql($user_id) . "'";
    $result = JB_mysql_query($sql) or die(mysql_error());
    $row = mysql_fetch_array($result, MYSQL_ASSOC);
Esempio n. 7
0
<?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";
$submit = $_REQUEST['submit'];
$lang = $_REQUEST['lang'];
include 'login_functions.php';
JB_process_login();
JB_template_employers_header();
JB_render_box_top(80, $label['employer_lang_title']);
if ($submit != '') {
    JB_mysql_query("UPDATE `employers` SET `lang`='{$lang}' WHERE `Username`='" . $_SESSION['JB_Username'] . "' LIMIT 1 ") or die(mysql_error());
    $JBMarkup->ok_msg($label["employer_lang_saved"]);
}
$result = JB_mysql_query("SELECT * FROM `employers` WHERE `Username`='" . $_SESSION['JB_Username'] . "'") or die(mysql_error());
$row = mysql_fetch_array($result, MYSQL_ASSOC);
$lang = $row['lang'];
echo '<div class="explanation_note">' . $label["employer_lang_note"] . "</div>";
?>

<p>
<form method="post" action="language.php">

<table border="0" cellSpacing="1" cellPadding="3" class="dynamic_form" id='dynamic_form'>
<tr><td class="dynamic_form_field"><?php 
echo $label["employer_lang_label"];
Esempio n. 8
0
<?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";
include 'login_functions.php';
require_once '../include/resumes.inc.php';
JB_process_login();
JB_template_employers_header();
JB_render_box_top(80, $label['employer_request_details_head']);
$sql = "SELECT * from `users` where `ID`='" . jb_escape_sql($_REQUEST['user_id']) . "' ";
$result = JB_mysql_query($sql) or die(mysql_error());
$candidate = mysql_fetch_array($result, MYSQL_ASSOC);
$submit = trim($_REQUEST['submit']);
$from = trim($_REQUEST['from']);
$reply_to = JB_clean_str(trim($_REQUEST['reply_to']));
$message = JB_clean_str(trim($_REQUEST['message']));
if ($submit != '') {
    if ($from == '') {
        $error .= $label["employer_request_details_error_msg1"] . "<br>";
    } elseif (!JB_validate_mail($reply_to)) {
        $error .= $label["employer_request_details_error_msg3"] . "<br> ";
    }
    if ($reply_to == '') {
        $error .= $label["employer_request_details_error_msg2"] . "<br>";
    }
    if (JB_request_was_made($candidate['ID'], $_SESSION['JB_ID']) == false && $error == '') {
Esempio n. 9
0
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
require "../config.php";
include 'login_functions.php';
require_once '../include/employers.inc.php';
JB_process_login();
$EmployerForm =& JB_get_DynamicFormObject(4);
$EmployerForm->set_mode('edit');
JB_template_employers_header();
if ($_REQUEST['load_defaults'] == true) {
    // 'login intergration' plugins redirect to this page if the name is blank
    $_REQUEST['user_id'] = $_SESSION['JB_ID'];
    $data = $EmployerForm->load();
    $_REQUEST = array_merge($_REQUEST, $data);
}
JB_render_box_top('80', $label["employer_ac_intro"]);
if ($_REQUEST['form'] != "") {
    // saving
    $admin = false;
    $errors = $EmployerForm->validate();
    if ($_REQUEST['user_id'] != $_SESSION['JB_ID'] || $errors) {
        $JBMarkup->error_msg($label["employer_save_error"]);
        echo "<p>";
        echo $EmployerForm->get_error_msg();
        echo "</p>";
        $EmployerForm->display_form('edit', false);
    } else {
        $employer_id = $EmployerForm->save();
        $EmployerForm->load($_SESSION['JB_ID']);
        $JBMarkup->ok_msg($label["employer_ac_updated"]);
        $EmployerForm->display_form('edit', false);
Esempio n. 10
0
<?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";
include 'login_functions.php';
JB_process_login();
JB_template_employers_header();
JB_render_box_top(80, $label['employer_pass_title']);
$password = isset($_REQUEST['password']) ? $_REQUEST['password'] : '';
$newpass = isset($_REQUEST['newpass']) ? $_REQUEST['newpass'] : '';
$newpass2 = isset($_REQUEST['newpass2']) ? $_REQUEST['newpass2'] : '';
$submit = isset($_REQUEST['submit']) ? $_REQUEST['submit'] : '';
if ($_REQUEST['submit'] != '') {
    $mdpass = md5(stripslashes($password));
    $sql = "SELECT * FROM `employers` WHERE `Username`='" . jb_escape_sql($_SESSION['JB_Username']) . "'";
    $result = JB_mysql_query($sql) or die(mysql_error());
    $row = mysql_fetch_array($result, MYSQL_ASSOC);
    if ($password == '') {
        $error .= $label["employer_pass_error_old_pass_blank"] . "<br>";
        //"Your Old Password is blank!<br>";
    } elseif ($mdpass != $row['Password']) {
        $error .= $label["employer_pass_error_old_pass_incorrect"] . "<br>";
        //"Your Old Password is incorrect!<br>";
    }
    JBPLUG_do_callback('val_emp_old_pass', $error, $password, $_SESSION['JB_Username']);
    if ($newpass == '') {
Esempio n. 11
0
<?php 
if ($_REQUEST['payment_cancel']) {
    if ($_REQUEST['product_type'] == 'M') {
        $_REQUEST['confirm'] = '';
        $invoice_id = (int) $_REQUEST['invoice_id'];
        $sql = "DELETE FROM membership_invoices WHERE  `invoice_id`='" . jb_escape_sql($invoice_id) . "' AND (`status` = 'in_cart' OR `status`='Confirmed') AND user_id='" . jb_escape_sql($_SESSION['JB_ID']) . "' AND user_type='C' ";
        $result = JB_mysql_query($sql) or die($sql . mysql_error());
        $JBMarkup->ok_msg($label['payment_mem_cancelled']);
    }
}
if ($_REQUEST['pay_method'] != '') {
    $_REQUEST['confirm'] = '';
    echo "<p style='margin:50px;'>";
    $_PAYMENT_OBJECTS[$_REQUEST['pay_method']]->payment_button($_REQUEST['invoice_id'], $_REQUEST['product_type']);
    JB_update_payment_method($_REQUEST['product_type'], $_REQUEST['invoice_id'], $_REQUEST['pay_method']);
    echo "</p>";
}
if ($_REQUEST['confirm'] == 'yes' && $_REQUEST['action'] == 'membership') {
    // confirm the Invoice
    $_REQUEST['product_type'] = 'M';
    $invoice_row = JB_confirm_membership_invoice($_REQUEST['invoice_id']);
    echo "<p>&nbsp;</p><p>";
    JB_render_box_top(80, $label['payment_please_select']);
    $product_type = 'M';
    # S for Membership
    JB_payment_option_list($invoice_row, $product_type);
    JB_render_box_bottom();
    echo "</p><p>&nbsp;</p><p>&nbsp;</p>";
}
JB_template_candidates_footer();
Esempio n. 12
0
				
	<p><?php 
    JB_render_box_top(100, $label['subscription_status_info']);
    echo $label['subscription_status_info_list'];
    ?>
	<?php 
    JB_render_box_bottom();
    ?>
</p>
	</td>
	<td width="50%" valign="top">

	<!-- right col-->				
	<?php 
    JB_render_box_top(100, $label['subscription_recent_trn']);
    $invoices = JBEmployer::get_recent_subscription_invoices($_SESSION['JB_ID']);
    if (sizeof($invoices) > 0) {
        $OLM =& JB_get_ListMarkupObject('JBOrdersListMarkup');
        //new JBOrdersListMarkup();
        $OLM->list_start('subscription_orders', 'order_table');
        $OLM->list_head_open();
        $OLM->list_head_cell_open();
        echo $label['subscription_hist_date'];
        $OLM->list_head_cell_close();
        $OLM->list_head_cell_open();
        echo $label['subscription_hist_id'];
        $OLM->list_head_cell_close();
        $OLM->list_head_cell_open();
        echo $label['subscription_hist_item'];
        $OLM->list_head_cell_close();
Esempio n. 13
0
###########################################################################
# 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";
include 'login_functions.php';
JB_process_login();
$password = isset($_REQUEST['password']) ? $_REQUEST['password'] : '';
$newpass = isset($_REQUEST['newpass']) ? $_REQUEST['newpass'] : '';
$newpass2 = isset($_REQUEST['newpass2']) ? $_REQUEST['newpass2'] : '';
$submit = isset($_REQUEST['submit']) ? $_REQUEST['submit'] : '';
JB_template_candidates_header();
JB_render_box_top(80, $label['c_menu_pass_header']);
if ($submit != '') {
    $mdpass = md5(stripslashes($password));
    $sql = "SELECT * FROM `users` WHERE `Username`='" . jb_escape_sql($_SESSION['JB_Username']) . "'";
    $result = JB_mysql_query($sql);
    $row = mysql_fetch_array($result, MYSQL_ASSOC);
    if ($mdpass != $row['Password']) {
        $error .= $label["c_menu_pass_incorrect"] . "<br>";
    } elseif ($password == '') {
        $error .= $label["c_menu_pass_oldblank"] . "<br>";
    }
    JBPLUG_do_callback('val_can_old_pass', $error, $password, $_SESSION['JB_Username']);
    if ($newpass == '') {
        $error .= $label["c_menu_pass_new_blank"] . "<br>";
    } elseif (strlen(trim($newpass)) < 6) {
        $error .= $label['c_signup_error_pw_too_weak'];
Esempio n. 14
0
 function show_stats()
 {
     // this is a function called back from the hook, initialized on the StatsBox() constructor
     global $label;
     // Global variable where all the labels are kept. Add any custom labels to english_default.php and use the language Editing/Translation tool in the Admin to translate or edit the label.
     // get the number of sessions.
     $sql = "SELECT count(*) FROM `jb_sessions` ";
     $result = JB_mysql_query($sql);
     $row = mysql_fetch_row($result);
     $sessions = $row[0];
     if ($sessions < $this->config['users_min']) {
         return;
     }
     // Substitute the %SESSIONS% tag in the label for the session number
     $label['OnlineUsers_online_p'] = str_replace('%SESSIONS%', $sessions, $label['OnlineUsers_online_p']);
     // plural
     $label['OnlineUsers_online_s'] = str_replace('%SESSIONS%', $sessions, $label['OnlineUsers_online_s']);
     // singular
     // you can call any of the functions defined by the job board:
     //echo "<p >";
     if ($this->config['frame_border'] == 'YES') {
         JB_render_box_top($width = "98", $label['OnlineUsers_heading'], $body_bg_color = '#ffffff');
     }
     if ($sessions == 1) {
         echo $label['OnlineUsers_online_s'];
         // singular
     } else {
         echo $label['OnlineUsers_online_p'];
         // plural
     }
     if ($this->config['frame_border'] == 'YES') {
         JB_render_box_bottom();
     }
     //echo "</p>";
 }
Esempio n. 15
0
<p>

<?php 
    JB_render_box_top(100, $label['emp_member_statusinf']);
    echo $label['e_membership_status_info_list'];
    ?>
	<?php 
    JB_render_box_bottom();
    ?>
</p>
	</td>
    <td width="50%" valign="top">
	
	<!-- right col-->				
	<?php 
    JB_render_box_top(100, $label['emp_member_recent']);
    $now = gmdate("Y-m-d H:i:s");
    $sql = "SELECT * FROM `membership_invoices` WHERE user_id='" . jb_escape_sql($_SESSION['JB_ID']) . "' AND user_type='E' 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');
        // new JBOrdersListMarkup();
        $OLM->list_start('membership_orders', 'order_table');
        $OLM->list_head_open();
        $OLM->list_head_cell_open();
        echo $label['emp_member_date'];
        $OLM->list_head_cell_close();
        $OLM->list_head_cell_open();
        echo $label['emp_member_id'];
        $OLM->list_head_cell_close();
        $OLM->list_head_cell_open();
Esempio n. 16
0
 | <font size='1'><a href='<?php 
    echo JB_CANDIDATE_FOLDER;
    ?>
forgot.php'><?php 
    echo $label["candidate_forgot_your_pass"];
    ?>
</a></font></td>
						  </tr>
					</table>
					</form>
				<?php 
}
?>
				</td><td valign="top"><!-- right cell, 'Find Jobs' -->
				<?php 
JB_render_box_top(100, $label['index_search_box_heading'], '#EDF8FC');
// the following call will display a search form:  JB_display_dynamic_search_form(form_id, columns)
JB_display_dynamic_search_form(1, 1);
JB_render_box_bottom();
?>
</td>
			</tr>
			</table>
			<?php 
JBPLUG_do_callback('index_home_middle', $A = false);
?>
			<table border="0" width="100%" ><!-- This table shows the employer's services bar -->
			<tr>
				<td bgcolor="#FFFFCC">
				<center><b><font face="arial" size="2"><?php 
echo $label["index_employers_services"];
Esempio n. 17
0
        }
        $PLM->list_end();
        $PLM->place_order_button($label['package_prm_place_order']);
        $PLM->close_form();
    } elseif ($p_posts_num == -1) {
        echo "<p>" . $label['prem_post_unlimited'] . "</p>";
    }
    ?>
	</td>
    <td width="50%" valign="top" style="border-width: 1;" >
	
	<!-- right col-->

	
	<?php 
    JB_render_box_top(100, $label['package_credit_balance']);
    if (JB_POSTING_FEE_ENABLED == "YES") {
        echo $label['package_std_remain'];
        ?>
 <b><?php 
        if ($posts_num > -1) {
            echo $posts_num;
        } else {
            echo $label['package_remain_ultd'];
        }
        ?>
</b><br>
		<?php 
    }
    if (JB_PREMIUM_POSTING_FEE_ENABLED == "YES") {
        echo $label['package_prm_remain'];
Esempio n. 18
0
<?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";
include 'login_functions.php';
JB_process_login();
JB_template_employers_header();
JB_render_box_top(80, $label['employer_credits_order_confirm']);
if ($_REQUEST['action'] == 'post' || $_REQUEST['action'] == 'premium_post') {
    ?>
	<table  width="100%" >
	<tr>
		<td>
		<?php 
    // check to see if there are in_cart orders of the same package_id
    $sql = "select * from package_invoices where employer_id='" . jb_escape_sql($_SESSION['JB_ID']) . "' AND package_id='" . jb_escape_sql($_REQUEST['package_id']) . "' AND (status='in_cart' ) ";
    $result = JB_mysql_query($sql) or die(mysql_error());
    if (mysql_num_rows($result) > 0) {
        $row = mysql_fetch_array($result, MYSQL_ASSOC);
        $invoice_id = $row['invoice_id'];
    } else {
        // this is a new order, make a new invoice
        $invoice_id = JB_place_package_invoice($_SESSION['JB_ID'], $_REQUEST['package_id']);
    }
    if ($invoice_id !== false) {
        // delete other selected orders
Esempio n. 19
0
<?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";
include 'login_functions.php';
JB_process_login();
JB_template_candidates_header();
JB_render_box_top(80, $label['candidate_order_confirm']);
if ($_REQUEST['action'] == 'membership') {
    ?>
	<table  width="100%">
	<tr>
	<td>
	<?php 
    // check to see if there are unpaid orders of the same subscription_id
    $sql = "select * from membership_invoices where user_id=" . jb_escape_sql($_SESSION['JB_ID']) . " AND user_type='C' AND membership_id='" . jb_escape_sql($_REQUEST['membership_id']) . "' AND (status='in_cart'  OR status='Confirmed') ";
    $result = JB_mysql_query($sql);
    if (mysql_num_rows($result) > 0) {
        $row = mysql_fetch_array($result, MYSQL_ASSOC);
        $invoice_id = $row['invoice_id'];
    } else {
        // this is a new order, make a new invoice
        $invoice_id = JB_place_membership_invoice($_SESSION['JB_ID'], $_REQUEST['membership_id']);
    }
    if ($invoice_id !== false) {
        // delete other in_cart orders
Esempio n. 20
0
}
?>

<?php 
include 'login_functions.php';
JB_process_login();
?>

<?php 
JB_template_candidates_header();
?>



<?php 
JB_render_box_top(80, $label['c_lang_title']);
if ($submit != '') {
    JB_mysql_query("UPDATE `users` SET `lang`='" . jb_escape_sql($lang) . "' WHERE `Username`='" . $_SESSION['JB_Username'] . "' LIMIT 1 ") or die(mysql_error());
    $JBMarkup->ok_msg($label["c_lang_saved"]);
}
$result = JB_mysql_query("SELECT * FROM `users` WHERE `Username`='" . $_SESSION['JB_Username'] . "'");
$row = mysql_fetch_array($result, MYSQL_ASSOC);
$lang = $row['lang'];
echo "<div >" . $label["c_lang_note"] . "</div>";
?>

<p>
<form method="post" action="language.php">

<table border="0" cellSpacing="1" cellPadding="3" class="dynamic_form" id='dynamic_form'>
<tr><td class="dynamic_form_field"><?php 
Esempio n. 21
0
function JB_display_info_box($heading, $body)
{
    if (func_num_args() > 2) {
        $width = func_get_arg(2);
        //$width = " width=\"".$width."%\" ";
    }
    JB_render_box_top($width, $heading, '');
    ?>

	<span >
	<?php 
    echo $body;
    ?>
	</span>

	<?php 
    JB_render_box_bottom();
}
Esempio n. 22
0
    $JBPage = new JBJobPage($post_id);
}
JB_template_candidates_header();
$post_id = (int) $_REQUEST['post_id'];
$action = jb_alpha($_REQUEST['action']);
$posts = jb_int_array($_REQUEST['posts']);
if ($_REQUEST['delete'] != "") {
    $user_id = $_SESSION['JB_ID'];
    for ($i = 0; $i < sizeof($posts); $i++) {
        $sql = "DELETE FROM `saved_jobs` WHERE `post_id`='" . jb_escape_sql($posts[$i]) . "' AND `user_id`='" . jb_escape_sql($user_id) . "'";
        $result = JB_mysql_query($sql) or die(mysql_error());
    }
    $label['save_job_deleted'] = str_replace('%COUNT%', jb_mysql_affected_rows(), $label['save_job_deleted']);
    $JBMarkup->ok_msg($label['save_job_deleted']);
}
JB_render_box_top(99, $label['c_save_my_jobs']);
if ($_SESSION['SAVE'] != '' || $action == 'save') {
    if ($_SESSION['SAVE'] != '') {
        $post_id = $_SESSION['SAVE'];
    }
    $now = gmdate("Y-m-d H:i:s");
    $sql = "REPLACE INTO `saved_jobs` (`user_id`, `post_id`, `save_date`) VALUES ('" . $_SESSION['JB_ID'] . "','" . jb_escape_sql($post_id) . "', '{$now}') ";
    JB_mysql_query($sql) or die(mysql_error());
    $_SESSION['SAVE'] = '';
    $label["c_save_postid"] = str_replace("%POST_ID%", $post_id, $label["c_save_postid"]);
    $JBMarkup->ok_msg($label["c_save_postid"]);
}
if ($employer_id) {
    require_once "../include/profiles.inc.php";
    $PrForm =& JB_get_DynamicFormObject(3);
    $PrForm->load(false, $show_emp);
Esempio n. 23
0
# 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";
include 'login_functions.php';
require_once '../include/candidates.inc.php';
JB_process_login();
$CandidateForm =& JB_get_DynamicFormObject(5);
$CandidateForm->set_mode('edit');
JB_template_candidates_header();
if ($_REQUEST['load_defaults'] == true) {
    $_REQUEST['user_id'] = $_SESSION['JB_ID'];
    $data = $CandidateForm->load($_SESSION['JB_ID']);
    $_REQUEST = array_merge($_REQUEST, $data);
}
JB_render_box_top(80, $label["seeker_ac_intro"]);
echo $label["seeker_ac_note"];
if ($_REQUEST['form'] != "") {
    // saving
    $admin = false;
    $errors = $CandidateForm->validate();
    if ($_REQUEST['user_id'] != $_SESSION['JB_ID'] || $errors) {
        $JBMarkup->error_msg($label['employer_save_error']);
        echo "<p>";
        echo $CandidateForm->get_error_msg();
        echo "</p>";
        $CandidateForm->display_form('edit', false);
    } else {
        $employer_id = $CandidateForm->save();
        $JBMarkup->ok_msg($label["seeker_ac_updated"]);
        $CandidateForm->display_form('edit', false);
Esempio n. 24
0
<p>

<?php 
    JB_render_box_top(100, $label['c_membership_stausinfo']);
    echo $label['e_membership_status_info_list'];
    ?>
</p>
	<?php 
    JB_render_box_bottom();
    ?>
	</td>
    <td width="50%" valign="top">
	
	<!-- right col-->				
	<?php 
    JB_render_box_top(100, $label['c_membership_recnt_trn']);
    $now = gmdate("Y-m-d H:i:s");
    $sql = "SELECT * FROM `membership_invoices` WHERE user_id='" . jb_escape_sql($_SESSION['JB_ID']) . "' AND user_type='C' 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');
        // new JBOrdersListMarkup();
        $OLM->list_start('membership_orders', 'order_table');
        $OLM->list_head_open();
        $OLM->list_head_cell_open();
        echo $label['c_membership_trn_date'];
        $OLM->list_head_cell_close();
        $OLM->list_head_cell_open();
        echo $label['subscription_hist_id'];
        $OLM->list_head_cell_close();
        $OLM->list_head_cell_open();
Esempio n. 25
0
<?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";
include 'login_functions.php';
JB_process_login();
include "../include/profiles.inc.php";
JB_template_employers_header();
JB_render_box_top(99, $label['employer_vprofile_title']);
$ProfileForm =& JB_get_DynamicFormObject(3);
$row = $ProfileForm->load(false, $_SESSION['JB_ID']);
if ($row['profile_id'] != '') {
    // can we display the profile?
    $ProfileForm->load(false, $_SESSION["JB_ID"]);
    $ProfileForm->display_form('view', false);
} else {
    /*
    The employer does not yet have a profile, show a note
    	  and a link to the edit profile page.
    */
    ?>

<h3><?php 
    echo $label["employer_vprofile_noprof"];
    ?>
</h3>
Esempio n. 26
0
    }
}
if ($_SESSION['JB_ID'] != '') {
    $user_id = $_SESSION['JB_ID'];
} elseif (is_numeric($_REQUEST['id'])) {
    $user_id = $_REQUEST['id'];
}
?>

<?php 
JB_template_employers_header();
?>


<?php 
JB_render_box_top(80, $label["employer_resume_alerts_head"]);
if ($_REQUEST['action'] != '') {
    global $resume_tag_to_search;
    foreach ($resume_tag_to_search as $key => $val) {
        $name = $resume_tag_to_search[$key]['field_id'];
        $_Q_STRING[$name] = $_REQUEST[$name];
    }
    $alert_query = serialize($_Q_STRING);
    $now = gmdate("Y-m-d H:i:s");
    $sql = "UPDATE `employers` SET  `notification1`='" . jb_escape_sql($notification) . "', `alert_keywords`='" . jb_escape_sql($words) . "',  `alert_email`='" . jb_escape_sql($email) . "', alert_query='" . jb_escape_sql(addslashes($alert_query)) . "' WHERE `ID`='" . jb_escape_sql($user_id) . "'";
    JB_mysql_query($sql) or die(mysql_error());
    $success = 1;
} else {
    $sql = "SELECT * FROM `employers` WHERE `ID`='" . jb_escape_sql($user_id) . "'";
    $result = JB_mysql_query($sql) or die(mysql_error());
    $row = mysql_fetch_array($result, MYSQL_ASSOC);
Esempio n. 27
0
$post_id = (int) $_REQUEST['post_id'];
$action = $_REQUEST['action'];
$apps = $_REQUEST['apps'];
if ($_REQUEST['delete']) {
    $employer_id = (int) $_SESSION['JB_ID'];
    for ($i = 0; $i < sizeof($apps); $i++) {
        $sql = "DELETE FROM `applications` WHERE `app_id`='" . jb_escape_sql($apps[$i]) . "' AND `employer_id`='" . jb_escape_sql($employer_id) . "'";
        $result = JB_mysql_query($sql) or die(mysql_error());
    }
    if (sizeof($apps) > 0) {
        $JBMarkup->ok_msg($label['emp_app_deleted']);
    } else {
        $JBMarkup->error_msg($label['emp_app_no_select']);
    }
}
JB_render_box_top(99, $label['emp_app_head']);
?>
<p>

<?php 
$offset = (int) $_REQUEST['offset'];
$records_per_page = 20;
if ($post_id) {
    $where_sql = "employer_id='" . jb_escape_sql($_SESSION['JB_ID']) . "' AND post_id='" . jb_escape_sql($post_id) . "'";
    $sql = "SELECT * FROM applications WHERE {$where_sql} ORDER BY `app_date` DESC LIMIT {$offset}, {$records_per_page}";
} else {
    $where_sql = "employer_id='" . jb_escape_sql($_SESSION['JB_ID']) . "'";
    // order by posts and date
    $sql = "SELECT * FROM applications  WHERE {$where_sql} ORDER BY post_id DESC, `app_date` DESC LIMIT {$offset}, {$records_per_page}";
}
JBPLUG_do_callback('employer_apps_sql', $sql);
Esempio n. 28
0
# 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";
$_SESSION['JB_ID'] = '';
// log the user off, if logged in
$_SESSION['JB_Domain'] = '';
$_REQUEST['user_id'] = '';
require_once '../include/candidates.inc.php';
$CandidateForm =& JB_get_DynamicFormObject(5);
$CandidateForm->set_mode('edit');
$page_title = $label['c_signup_title'] . " - " . JB_SITE_NAME;
JB_template_candidates_outside_header($page_title);
JB_render_box_top(75, $label["c_signup_intro_seeker"]);
$label["c_signup_header"] = str_replace('%SITE_NAME%', jb_escape_html(JB_SITE_NAME), $label["c_signup_header"]);
?>

<h3 style="text-align:center"><?php 
echo $label["c_signup_header"];
?>
</h3> 
<?php 
if ($_REQUEST['form'] != "") {
    // saving
    $errors = $CandidateForm->validate();
    if ($errors) {
        // we have an error
        $mode = "edit";
        $JBMarkup->error_msg($label["c_signup_error9"]);
Esempio n. 29
0
<?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 '../include/help_functions.php';
include 'login_functions.php';
JB_process_login();
JB_template_employers_header();
$data = JB_load_help('E');
JB_render_box_top(80, $data['title']);
echo trim($data['message']);
if (!trim($data['message'])) {
    echo "This page can be edited from Admin-&gt;Help Pages";
}
JB_render_box_bottom();
JB_template_employers_footer();
Esempio n. 30
0
    }
    ?>
 > <?php 
    echo $label["c_resume_Suspended"];
    ?>
 &nbsp;<input class="form_submit_button" type="submit" name="change_status" value="OK"  >
	</td>
	</tr></table>
	</form>
	  
	<?php 
    JB_render_box_bottom();
    ?>
<p></p><?php 
}
JB_render_box_top(99, $label['c_edit_intro2']);
if ($_REQUEST['save'] == "") {
    echo $label["c_edit_intro"];
}
####################
# Save the resume
if ($_REQUEST['save'] != "") {
    // saving
    $errors = $ResumeForm->validate();
    //JB_validate_resume_data(2);
    if ($errors) {
        // display the form again on error
        $ResumeForm->display_form('edit', false);
    } else {
        $resume_id = $ResumeForm->save();
        $ResumeForm->load($resume_id);