<h2>Overview</h2> <ul> <li>Total: <?php echo $totalComputers[0]; ?> PC</li> <li>Offline: <font color="red"><?php echo $offlineComputers[0]; ?> </font> PC</li> </ul> <?php if ($_SESSION['loggedinUserPerms'] & EDIT_ZONES) { ?> <h2>Add a new Zone</h2> <div> <form action="zone-add.php" method="POST" enctype="multipart/form-data"> <input name="newZoneName" id="newZoneName" value="Name"/> <input name="newZoneImg" id="newZoneImg" type="file" /> <input type="Submit" /> </form> </div> <?php } ?> </div> <?php //$compNamesArray = getCompNamesId($dbTrackHandler); //print_r($compNamesArray); echo _footer();
\t\t\t\t\t\tif(document.documentElement){//IE 6+ strict mode \t\t\t\t\t\t\tposx=e.clientX;//+document.documentElement.scrollLeft; \t\t\t\t\t\t\tposy=e.clientY;//+document.documentElement.scrollTop; \t\t\t\t\t\t} \t\t\t\t\t\telse if(document.body){//Other IE \t\t\t\t\t\t\tposx=e.clientX;//+document.body.scrollLeft; \t\t\t\t\t\t\tposy=e.clientY;//+document.body.scrollTop; \t\t\t\t\t\t} \t\t\t\t\t} \t\t\t\t\t \t\t\t\t\telse{return false}//old browsers \t\t\t\t\trelativeX = posx - findPos(updaterRegion)[0]; \t\t\t\t\trelativeY = posy - findPos(updaterRegion)[1]; \t\t\t\t\tupdaterRegion.style.backgroundPosition = (relativeX - {$iconOffsetX}) + "px " + (relativeY - {$iconOffsetY}) + "px"; \t\t\t\t} \t\t\t} \t\t\tfunction confirmMouse(e) { \t\t\t\tgetMouse(e); \t\t\t\tisConfirmed = !isConfirmed; \t\t\t\tdocument.getElementById('x').value = relativeX; \t\t\t\tdocument.getElementById('y').value = relativeY; \t\t\t} \t\t\t \t\t</script> \t\t </div> DIVMAP; echo _footer($embedded);
<?php require_once 'inc.config.php'; logincheck(); if (isset($_POST['journal'])) { db_update('planets', array('journal' => trim($_POST['journal'])), 'id = ' . PLANET_ID); Go(); } _header(); ?> <div class="header">Personal Journal</div> <br /> <form method="post" action=""> <textarea name="journal" rows="20" style="width:100%;"><?php echo htmlspecialchars($g_arrUser['journal']); ?> </textarea><br /> <br /> <input type="submit" value="SAVE" style="width:40%"> </form> <br /> <?php _footer();
<?php require_once 'config.php'; if (!WS_ACCESS) { die(_header() . _noauth() . _footer()); } $html = _header(); $html .= _menu(); $html .= _global_index(); switch ($_GET['p']) { case 'zayav': switch (@$_GET['d']) { case 'info': $html .= zayav_info(); break; default: $html .= zayav(_hashFilter('zayav')); } break; } $html .= _footer(); die($html);