当前位置: 首页>>代码示例>>PHP>>正文


PHP JB_render_box_top函数代码示例

本文整理汇总了PHP中JB_render_box_top函数的典型用法代码示例。如果您正苦于以下问题:PHP JB_render_box_top函数的具体用法?PHP JB_render_box_top怎么用?PHP JB_render_box_top使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了JB_render_box_top函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: show_stats

 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>";
 }
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:StatsBox.php

示例2: JB_display_motd

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;
}
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:14,代码来源:motd_functions.php

示例3: str_replace

$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 
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:index.php

示例4: JB_render_box_bottom

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();
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:manager.php

示例5: JB_display_info_box

    $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"];
开发者ID:vinothtimes,项目名称:phpdoc,代码行数:31,代码来源:index.php

示例6: JB_mysql_query

        }
              $_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);
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:alerts.php

示例7: JB_process_login

<?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"];
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:language.php

示例8: JB_process_login

<?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 == '') {
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:request.php

示例9: JB_process_login

# 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);
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:account.php

示例10: JB_process_login

<?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 == '') {
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:password.php

示例11: jb_escape_sql

<?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();
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:30,代码来源:payment.php

示例12: JB_render_box_top

				
	<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();
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:29,代码来源:subscriptions.php

示例13: JB_process_login

###########################################################################
# 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'];
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:30,代码来源:password.php

示例14: show_stats

 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>";
 }
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:35,代码来源:OnlineUsers.php

示例15: JB_render_box_top

<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();
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:membership.php


注:本文中的JB_render_box_top函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。