当前位置: 首页>>代码示例>>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;未经允许,请勿转载。