########################################################################### require "../config.php"; $post_id = (int) $_REQUEST['post_id']; $key = jb_alpha_numeric($_REQUEST['key']); $approve_post = jb_alpha_numeric($_REQUEST['approve_post']); $disapprove_post = jb_alpha_numeric($_REQUEST['disapprove_post']); $reason = $_REQUEST['reason']; if ($post_id > 0) { $JBPage = new JBJobPage($post_id, $admin = true); } global $JBMarkup; echo $JBMarkup->get_admin_doctype(); $JBMarkup->markup_open(); $JBMarkup->head_open(); $JBMarkup->title_meta_tag($title); $JBMarkup->stylesheet_link(JB_get_admin_maincss_url()); $JBMarkup->charset_meta_tag(); $JBMarkup->head_close(); $JBMarkup->body_open(); if ($post_id != '') { $comp_key = md5($post_id . JB_ADMIN_PASSWORD); if ($comp_key === $key) { require_once '../include/posts.inc.php'; if ($approve_post != '') { $PForm =& JB_get_DynamicFormObject(1); $sql = "UPDATE `posts_table` SET `approved`='Y', `reason`='' WHERE `post_id`='" . jb_escape_sql($post_id) . "'"; JB_mysql_query($sql) or die(mysql_error()); $JBMarkup->ok_msg("Job Post #" . jb_escape_html($post_id) . " approved!"); JB_finalize_post_updates(); $PForm->load($post_id); JB_update_post_category_count($PForm->get_values());
?> </table> <?php } } } echo "</div>"; } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" > <link rel="stylesheet" type="text/css" href="<?php echo JB_get_admin_maincss_url(); ?> " > </head> <body> <b>[Indeed XML]</b> <span style="background-color:#FFFFCC; border-style:outset; padding:5px; "><a href="p.php?p=JobsFiller&action=kw">Setup Keywords</a></span> <span style="background-color:#F2F2F2; border-style:outset; padding:5px; "><a href="plugins.php?plugin=JobsFiller">Configure plugin</a></span> <hr> <?php if ($_REQUEST['save'] != '') { $sql = "delete from JobsFiller_keywords "; jb_mysql_query($sql); foreach ($_REQUEST as $key => $val) {
function JB_admin_header($title, $extra_header = '') { global $JBMarkup; echo $JBMarkup->get_admin_doctype(); $JBMarkup->markup_open(); $JBMarkup->head_open(); $JBMarkup->title_meta_tag($title); $JBMarkup->stylesheet_link(JB_get_admin_maincss_url()); $JBMarkup->charset_meta_tag(); if ($extra_header == 'xmlimport') { ?> <script type="text/javascript"> function selectSeqElement (name) { if (selectSeqElement.previousName) { document.getElementById(selectSeqElement.previousName).style.background='#ffffff';document.getElementById(selectSeqElement.previousName+'_end').style.background='#ffffff'; } document.getElementById(name).style.background='#66FF66';document.getElementById(name+'_end').style.background='#66FF66'; start_x = findPosX(document.getElementById(name+'')); start_y = findPosY(document.getElementById(name+'')); end_x = findPosX(document.getElementById(name+'_end')); end_y = findPosY(document.getElementById(name+'_end')); var v_line = document.getElementById('v_line'); v_line.style.display='inline'; v_line.style.left = start_x-3; v_line.style.top = start_y; v_line.style.height = end_y-start_y+"px"; selectSeqElement.previousName=name; } function findPosX(obj) { var curleft = 0; if (obj.offsetParent) { while (obj.offsetParent) { curleft += obj.offsetLeft obj = obj.offsetParent; } } else if (obj.x) curleft += obj.x; return curleft; } //Taken from http://www.quirksmode.org/js/findpos.html; but modified function findPosY(obj) { var curtop = 0; if (obj.offsetParent) { while (obj.offsetParent) { curtop += obj.offsetTop obj = obj.offsetParent; } } else if (obj.y) curtop += obj.y; return curtop; } </script> <style> .XMLelement { font-weight: bold; font-family: Courier; font-size: 8pt; } .is_required_mark { color: red; } </style> <?php } elseif ($extra_header == 'main_config') { ?> <script type="text/javascript"> function test_email_window () { var user = escape(document.form1.email_smtp_user.value); var pass = escape(document.form1.email_smtp_pass.value); prams = 'host='+document.form1.email_hostname.value+ '&pop='+document.form1.email_pop_server.value+ '&user='******'&pass='******'&auth_host='+document.form1.email_smtp_auth_host.value+ '&php3_port='+document.form1.pop3_port.value; window.open('test_email.php?'+prams, '', 'toolbar=no, scrollbars=yes, location=no, statusbar=no, menubar=no, resizable=1, width=800, height=500, left = 50, top = 50'); } function suggest_permissions_window () { window.open('suggest_permissions.php', '', 'toolbar=no, scrollbars=yes, location=no, statusbar=no, menubar=no, resizable=1, width=400, height=200, left = 50, top = 50'); } function fix_permissions_window () { window.open('fix_permissions.php', '', 'toolbar=no, scrollbars=yes, location=no, statusbar=no, menubar=no, resizable=1, width=600, height=400, left = 50, top = 50'); } </script> <?php } elseif ($extra_header == 'xmlimport_iframe') { ?> <script type="text/javascript"> function scroll_iframe() { window.scrollBy(0,1000); var x,y; if (self.pageYOffset) // all except Explorer { x = self.pageXOffset; y = self.pageYOffset; } else if (document.documentElement && document.documentElement.scrollTop) // Explorer 6 Strict { x = document.documentElement.scrollLeft; y = document.documentElement.scrollTop; } else if (document.body) // all other Explorers { x = document.body.scrollLeft; y = document.body.scrollTop; } document.getElementById('status').style.top=y+'px'; document.getElementById('status').style.left='0px'; } function import_init() { setTimeout('clearInterval(document.my_interval)', 2000); document.getElementById('status').style.visibility='hidden'; } document.my_interval = setInterval ( 'scroll_iframe()', 500 ); window.onload= import_init; </script> <?php } else { echo $extra_header; } ?> <style> .config_form { background-color: white; border: 0px groove; width: 100%; } .config_form_heading { font-size: 13px; background-color: #e6f2ea; font-weight: bold; background:#fff url(../include/themes/default/images/grgrad.gif) repeat-x; text-shadow:0 1px 0 white; } .config_form_field { font-size: 12px; background-color: #e6f2ea; color: black; } .config_form_label { font-size: 11px; background-color: #e6f2ea; color: black; font-weight: bold; width: 120; } </style> <?php $JBMarkup->head_close(); $JBMarkup->body_open(); }