當前位置: 首頁>>代碼示例>>PHP>>正文


PHP JB_render_box_bottom函數代碼示例

本文整理匯總了PHP中JB_render_box_bottom函數的典型用法代碼示例。如果您正苦於以下問題:PHP JB_render_box_bottom函數的具體用法?PHP JB_render_box_bottom怎麽用?PHP JB_render_box_bottom使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了JB_render_box_bottom函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: 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

示例2: 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";
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();
開發者ID:vinothtimes,項目名稱:dchqtest,代碼行數:21,代碼來源:help.php

示例3: 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

示例4: JB_display_info_box

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();
}
開發者ID:vinothtimes,項目名稱:dchqtest,代碼行數:18,代碼來源:functions.php

示例5: 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


注:本文中的JB_render_box_bottom函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。