Exemplo n.º 1
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;
}
Exemplo n.º 2
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();
Exemplo n.º 3
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>";
 }
Exemplo n.º 4
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();
}
Exemplo n.º 5
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>";
 }