예제 #1
0
# 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/.
###########################################################################
include '../config.php';
require dirname(__FILE__) . "/admin_common.php";
require_once '../include/posts.inc.php';
require_once '../include/category.inc.php';
$post_id = (int) $_REQUEST['post_id'];
$JBPage = new JBJobPage($post_id, $admin = true);
extract($JBPage->get_vars(), EXTR_REFS);
// make the $data available
JB_admin_header('Admin -> Post Window');
?>
<h2 style="align:center;">Job Post Preview</h2>
<p style="align:center;"><input type="button" name="" value="Close" onclick="window.close()"></p>

<?php 
$JBPage->output('HALF');
?>

<p style="align:center;"><input type="button" name="" value="Close" onclick="window.close()"></p>
<?php 
if ($_REQUEST['post_id'] != '' && JB_MAP_DISABLED == "NO") {
    $pin_y = $DynamicForm->get_value('pin_y');
    $pin_x = $DynamicForm->get_value('pin_x');
    JB_echo_map_pin_position_js($pin_x, $pin_y);
}
JB_admin_footer();
예제 #2
0
    function admin_main_page()
    {
        if ($_REQUEST['p'] == 'JobsFiller') {
            if (function_exists('JB_admin_header')) {
                JB_admin_header('Admin -> List Posts');
            }
            require_once "../include/posts.inc.php";
            $_SESSION['show'] = 'FILLER';
            ?>

			<p>
			<b>[POSTS]</b> <span style="background-color: <?php 
            if ($_SESSION['show'] == 'ALL') {
                echo "#FFFFCC";
            } else {
                echo "#F2F2F2";
            }
            ?>
; border-style:outset; padding:5px; "><a href="posts.php?show=ALL">Approved Posts</a></span>
				<span style="background-color: <?php 
            if ($_SESSION['show'] == 'WA') {
                echo "#FFFFCC";
            } else {
                echo "#F2F2F2";
            }
            ?>
; border-style:outset; padding: 5px;"><a href="posts.php?show=WA">New Posts Waiting</a></span>
				<span style="background-color: <?php 
            if ($_SESSION['show'] == 'NA') {
                echo "#FFFFCC";
            } else {
                echo "#F2F2F2";
            }
            ?>
; border-style:outset; padding: 5px;"><a href="posts.php?show=NA">Non-Approved Posts</a></span>
				<span style="background-color: <?php 
            if ($_SESSION['show'] == 'EX') {
                echo "#FFFFCC";
            } else {
                echo "#F2F2F2";
            }
            ?>
; border-style:outset; padding: 5px;"><a href="posts.php?show=EX">Expired Posts</a></span>
				<span style="background-color: <?php 
            echo "#F2F2F2";
            ?>
; border-style:outset; padding: 5px;"><a href="post_new.php">Post a Job</a></span>
			</p>

			<p>'Jobs Filler' - This feature fills your job board with supplementary job posts. These posts get indexed by the search engines, bringing your job board free organic traffic. Your visitor does not have to leave your site to view these jobs, the full content of the job is displayed on your site. This also allows you to insert ads inside the job post - bringing you both  ad revenue and free search engine traffic. 

			
			<?php 
            if (function_exists('JB_admin_footer')) {
                JB_admin_footer();
            }
        }
    }