Ejemplo n.º 1
0
function JB_display_help($type, $width = 100)
{
    if ($type != 'E' && $type != 'U') {
        return false;
    }
    $data = JB_load_help($type);
    if ($data['display'] == 'YES') {
        JB_render_box_top($width, $data['title']);
        echo $data['message'];
        JB_render_box_bottom();
        return true;
    }
    return false;
}
Ejemplo 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();
Ejemplo n.º 3
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 '../include/help_functions.php';
?>

<?php 
include 'login_functions.php';
JB_process_login();
JB_template_candidates_header();
?>
 
       <?php 
$data = JB_load_help('U');
JB_render_box_top(80, $data['title']);
echo $data['message'];
JB_render_box_bottom();
?>
<p>&nbsp</p>

<?php 
JB_template_candidates_footer();
Ejemplo n.º 4
0
</form>


<?php 
if ($_REQUEST['save'] != '') {
    JB_save_help($_REQUEST['type'], $_REQUEST['title'], $_REQUEST['message']);
    $JBMarkup->ok_msg('Help Saved.');
}
if ($_REQUEST['type'] == '') {
    ?>
	<p>
	Please select: <a href='help_pages.php?type=E'>Help for Employers</a> or <a href="help_pages.php?type=U">Help for Job Seekers</a>.
	</p>
	<?php 
} else {
    $data = JB_load_help($_REQUEST['type']);
    ?>

	<form method="post" action="help_pages.php">
	<!--Display Help: --><input type="hidden" value="YES" <?php 
    if ($data['display'] == 'YES') {
        echo " checked ";
    }
    ?>
 name="display"><!-- Yes <input type="radio" value="NO" <?php 
    if ($data['display'] == 'NO') {
        echo " checked ";
    }
    ?>
 name="display"> No<br>-->
	<input type="hidden" name="type" value="<?php