Example #1
0
    function head_open()
    {
        /*
        Older templates do not call $JBMarkup->head_open();
        Therefore, $this->head_opened is used to track if the template called
        head_open()
        */
        $this->head_opened = true;
        // for compatibility with older templates.
        echo '<head>' . "\n";
        if ($this->menu_switch) {
            // this section resided at the top of employers-header.php prior to 3.6
            if (JB_EMPLOYER_MENU_TYPE == 'JS' || JB_CANDIDATE_MENU_TYPE == 'JS') {
                $MM =& get_JBMenuMarkup_object();
                $MM->header();
            }
        }
        if ($this->overlib_switch) {
            // This used for the resume list to pop-up a thumnail over the list
            // Resided in employers-header.php and candidates-header.php prior to 3.6
            ?>
			<script type="text/javascript" src="<?php 
            echo jb_get_overlib_js_src();
            ?>
"><!-- overLIB (c) Erik Bosrup --></script>
			<?php 
        }
        if ($this->wz_dragdrop_switch && JB_MAP_DISABLED != 'YES') {
            // This used for dragging a pin layer over a map
            ?>
			<script type="text/javascript" src="<?php 
            echo jb_get_WZ_dragdrop_js_src(true);
            ?>
"></script>
			<?php 
        }
        if ($this->jquery_switch) {
            ?>
			<script type="text/javascript" src="<?php 
            echo jb_get_JQuery_src();
            ?>
"></script>
			<?php 
        }
        if ($this->application_switch) {
            // script for the 'apply' button on the post
            ?>
<script type="text/javascript">
function showDIV(obj, source, bool) {
	obj.setAttribute("style", "display: none", 0);
	if (bool == false) {
	  
		document.getElementById (source).innerHTML=document.getElementById('app_form').innerHTML;
		document.getElementById ('app_form').innerHTML=document.getElementById('app_form_blank').innerHTML;
	}
	else {
	 
		obj.innerHTML =
		document.getElementById(source).innerHTML;
		obj.setAttribute("style", "display: block", 0);

	}

	return bool;

}
</script>

		<?php 
        }
        if ($this->colorbox_switch) {
            ?>

<script type="text/javascript" src="<?php 
            echo JB_BASE_HTTP_PATH;
            ?>
include/lib/colorbox/jquery.colorbox-min.js"></script>

			<?php 
        }
        ?>
<script type="text/javascript" src="<?php 
        echo JB_get_common_js_url();
        ?>
"></script>
		<?php 
        JBPLUG_do_callback('extra_header', $this);
        // plugins can include their own javascript in to the header here
        echo $this->trigger_handler('header');
        if ($on_load = $this->trigger_handler('onload_function')) {
            ?>
<script type="text/javascript">
	function init_onload() {
		<?php 
            echo $on_load;
            ?>

	}
</script>
			<?php 
        }
    }
Example #2
0
function JB_template_display_post($display_mode = 'FULL')
{
    global $label;
    global $JBMarkup;
    global $JBPage;
    if (is_object($JBPage)) {
        // this is where we extract the variables from the page to be used in the template
        extract($JBPage->get_vars(), EXTR_REFS);
        $prams =& $DynamicForm->get_values();
        // older code compatibility, init $prams
    }
    // Javascript for the map pin
    if (JB_MAP_DISABLED != 'YES') {
        ?>
		<script type="text/javascript" src="<?php 
        echo jb_get_WZ_dragdrop_js_src();
        ?>
"></script>
		<?php 
        if (JB_MAP_DISABLED != 'YES') {
            ?>
		<script type="text/javascript">
		// re-calculate the map position
		dd.recalc();
		</script>
		<?php 
        }
    }
    if ($APP == true && !$JBMarkup->head_opened) {
        // This is here so that older templates (before 3.6) are compatible with 3.6+
        // This block was moved to JBMarkup.php
        // !$JBMarkup->head_opened means that the <head> was not opened yet.
        // Latest verion of the default theme uses code from $JBMarkup->head_open()
        ?>
		<script type="text/javascript">
		function showDIV(obj, source, bool) {
			obj.setAttribute("style", "display: none", 0);
			if (bool == false) {
			  
			//obj.style.visibility = "hidden";
			document.getElementById (source).innerHTML=document.getElementById('app_form').innerHTML;
			document.getElementById ('app_form').innerHTML=document.getElementById('app_form_blank').innerHTML;
			}
			else {
			 
			  obj.innerHTML =
			  document.getElementById(source).innerHTML;
			  obj.setAttribute("style", "display: block", 0);

			 
			}
			<?php 
        // php code
        if (JB_MAP_DISABLED != 'YES') {
            ?>
			// re-calculate the map position!
			dd.recalc();
			<?php 
        }
        // end php if
        ?>

			return bool;

		}
		</script>
	<?php 
    }
    JBPLUG_do_callback('display_post_before', $A = false);
    if (file_exists(JB_THEME_PATH . 'display-post.php')) {
        require JB_THEME_PATH . 'display-post.php';
    } else {
        require JB_DEFAULT_THEME_PATH . 'display-post.php';
    }
    JBPLUG_do_callback('display_post_after', $A = false);
}
Example #3
0
function save_pin() {
  map_x = dd.elements.pin.x - dd.elements.map.x;
  map_y = dd.elements.pin.y - dd.elements.map.y;
  window.status = "x:"+map_x+ " y:"+map_y;
  document.form1.pin_x.value=map_x;
  document.form1.pin_y.value=map_y;
}

function SubmitOnce(theform) {
   theform.savebutton.disabled=true;
  

}
</script>
<script type="text/javascript" src="<?php 
echo jb_get_WZ_dragdrop_js_src(true);
?>
"></script> 

<?php 
$JBMarkup->head_close();
$JBMarkup->body_open();
?>


<table style="margin: 0 auto;"><tr><td>


<?php 
$_FEES_ENABLED = "NO";
if ($_REQUEST['save'] != "") {