File: /home/awaldron/public_html/archive/demo/_pagestart_mobile.php
<?php
echo "<html>\n<head>\n";
//echo "<title>".COMPANY_NAME." : ".($_GET["p"]==1?"Vocollect Intranet":(isset($GLOBALS["ext_page"])?$GLOBALS["ext_page"]:$page_title))."</title>\n"; // CUSTOM - TO BE REMOVED
echo "<title>".COMPANY_NAME." : ".(isset($GLOBALS["ext_page"])?$GLOBALS["ext_page"]:($_GET["p"]==1?"Vocollect Intranet":$page_title))."</title>\n"; // CUSTOM - TO BE REMOVED
if ($bbjava == true) include("_bbjava.php");
?>
<script language="JavaScript" type="text/JavaScript">
<!--
function openWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function getWidth() {
if (window.innerWidth) { widthAvail = window.innerWidth; }
else if (document.documentElement && document.documentElement.clientWidth) { widthAvail = document.documentElement.clientWidth; }
else if (document.body) { widthAvail = document.body.clientWidth; }
return widthAvail;
}
function getHeight() {
if (window.innerWidth) { heightAvail = window.innerHeight; }
else if (document.documentElement && document.documentElement.clientWidth) { heightAvail = document.documentElement.clientHeight; }
else if (document.body) { heightAvail = document.body.clientHeight; }
return heightAvail;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('This form could not be submitted because:\n'+errors);
document.MM_returnValue = (errors == '');
}
function AddContact(id) {
input_box=confirm("Are you sure you want to add this contact to 'My Contacts'?");
if (input_box==true) {
self.location="directory_external.php?add="+id;
}
}
function DelContact(id) {
input_box=confirm("Are you sure you want to remove this contact from 'My Contacts'?");
if (input_box==true) {
self.location="contacts.php?del="+id;
}
}
function ConfirmDelete(id,priv) {
if (priv == 0) {
input_box=confirm("Are you sure you want to permanently delete this contact?");
} else {
input_box=confirm("Are you sure you want to permanently delete this contact? Doing so will also delete this contact from the External Directory.");
}
if (input_box==true) {
self.location="contact_details.php?r=<? echo $_GET["r"]; ?>&pdel="+id;
}
}
-->
</script>
</head>
<?php if ($rowjava == true) echo "<script src=\"functions.js\" type=\"text/javascript\" language=\"javascript\"></script>\n"; ?>
<link rel="stylesheet" type="text/css" href="/alexa.css">
<link rel="stylesheet" type="text/css" href="/default.css">
<?php
echo "<body bgcolor=\"#FFFFFF\" onLoad=\"";
//echo "document.directory.e.focus();";
if ($disable_body) echo "disableBody();";
if ($disable_cbody) echo "disableCBody();";
echo "\">\n";
?>
<a href="/content.php?p=1"><img src="/gui/logob.gif" border=0></a>
<?php
if (is_logged()) {
echo "<P>Welcome <a href=\"/profile.php?u=".$_SESSION["auth_user"]."\">".get_user($_SESSION["auth_user"],"fullname")."</a> : <a href=\"/logout.php\">Logout</a></td>\n";
} else {
mod_login_head();
}
echo "<P>";
include("_breadcrumb.php");
//if (!strstr(self(),"/content.php") || ($_GET["p"] != 1)) {
// echo "<!--START CONTENT TABLE-->\n<table border=0 cellspacing=10 cellpadding=0 width=100%>\n";
// echo "<tr>\n";
//
// if (count($lnav_mods) > 0) echo "<td width=200 valign=\"top\">\n";
// for ($a=0; $a < count($lnav_mods); $a++) call_user_func("mod_".$lnav_mods[$a]);
// if (strstr(self(),"/content.php")) mod_actions($page_title);
// else if (is_logged() && is_admin()) echo "<center><P><a href=\"/admin\" class=\"small\">Administration Panel</a></center>\n";
// if (count($lnav_mods) > 0) echo "</td>\n";
//
// echo "<td width=\"*\" valign=\"top\">\n";
//}
?>