Ejemplo n.º 1
0
function do_reload_shift()
{
    $objResponse = new xajaxResponse();
    reload_shift();
    $objResponse->call('xajax_load_nav');
    $objResponse->call('xajax_load_footer');
    switch ($_SESSION['curPage']) {
        case '1':
            $objResponse->call('xajax_load_residents()');
            break;
        case '2':
            $objResponse->call('xajax_load_guests()');
            break;
    }
    return $objResponse;
}
Ejemplo n.º 2
0
		
		<!-- Custom styles -->
		<link rel="stylesheet" type="text/css" href="css/theme.css">
		<link rel="stylesheet" type="text/css" href="css/styles.css">	
		
		<!-- Xajax javascript call -->
		<?php 
$xajax->printJavascript();
?>
	</head>
	<body>
		<div id="modal" class="modal fade"></div>
		<div id="site_wrapper">
			<?php 
if (isset($_SESSION['user'])) {
    reload_shift();
    echo gen_main();
} else {
    echo gen_login();
}
?>
		</div>
		<script>
			function isNumberKey(evt){
			    var charCode = (evt.which) ? evt.which : event.keyCode
			    if (charCode > 31 && (charCode < 48 || charCode > 57))
			        return false;
			    return true;
			}
			function setupInputRestricts() {
				$('.numbersOnly').autotab('number');