File: //home/awaldron/www/archive/demo/_pagestart_web.php
<?php
if (!strstr(self(),"/login.php") && !strstr(self(),"/register.php") && !strstr(self(),"/reg_confirm.php")) force_login();
echo "<html>\n<head>\n";
echo "<title>".COMPANY_NAME." : ".(isset($GLOBALS["ext_page"])?$GLOBALS["ext_page"]:$page_title)."</title>\n";
// JAVASCRIPTS
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;
}
}
function ToggleRow(id) {
try {
// Variables
var objBody = document.getElementById( id );
var objState = objBody.style.display;
// Toggle Display
if (objState == "block") {
var strDisplay = "none";
}
if (objState == "none") {
var strDisplay = "block";
}
// Toggle the table
objBody.style.display = strDisplay;
// Set the cookie
//SetCookie(id,strDisplay,1);
}
catch(expError) {
alert( expError.number + " " + expError.description );
}
}
-->
</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 onLoad=\"";
//echo "document.directory.e.focus();";
if ($disable_body) echo "disableBody();";
if ($disable_cbody) echo "disableCBody();";
echo "\">\n";
?>
<script language="JavaScript1.2" vqptag="datafile" src="/navcode/vnet_nav.js"></script>
<script language="JavaScript1.2" vqptag="doc_level_settings" is_vqp_html=1 vqp_datafile0="/navcode/vnet_nav.js" vqp_uid0=968283>
//Document Level Menu Settings
cdd__codebase = ""
cdd__codebase968283 = ""
cdd__activate_onclick = false
cdd__showhide_delay = 50
cdd__url_target = "_self"
cdd__url_features = "resizable=1, scrollbars=1, titlebar=1, menubar=1, toolbar=1, location=0, status=1, directories=1, channelmode=0, fullscreen=0"
cdd__display_urls_in_status_bar = true
cdd__default_cursor = "hand"
</script>
<script language="JavaScript" vqptag="loader">
if (window.showHelp){b_type = "ie"; if (!window.attachEvent) b_type += "mac";}if (document.createElementNS) b_type = "dom";if (navigator.userAgent.indexOf("afari")>-1) b_type = "safari";if (window.opera) b_type = "opera"; qmap1 = "\<\script language=\"JavaScript1.2\" vqptag='loader_sub' src=\"/navcode/"; qmap2 = ".js\">\<\/script\>";;function iesf(){};;function vqp_error(val){}
if (b_type){document.write(qmap1+cdd__codebase+"pbrowser_"+b_type+qmap2);document.close();}
</script>
<table border=0 width=100% cellspacing=0 cellpadding=0 background="/gui/bg_header.gif"><tr>
<td width=100% height=80><a href="/content.php?p=1"><img src="/gui/custom/<?=LOGO_FILE?>" border=0></a></td>
<td width=1 valign="middle"><img src="/gui/vert_head.gif" width=1 height=60></td>
<td width=210 height=80 align="center">
<?php
if (is_logged()) {
echo "<table width=210 border=0 cellspacing=6 cellpadding=0><tr>\n";
echo "<td align=\"right\" class=\"welcome\"><a href=\"/profile.php?u=".$_SESSION["auth_user"]."\"><img src=\"/image.php?u=".$_SESSION["auth_user"]."&s=3\"></a></td>\n";
echo "<td align=\"center\" class=\"welcome\"><b>Welcome!</b><br />".get_user($_SESSION["auth_user"],"fullname")."<br /><a href=\"/logout.php\">( Logout )</a></td>\n";
echo "</tr></table>\n";
} else {
mod_login_head();
}
?>
</td>
</tr></table>
<table border=0 width=100% cellspacing=0 cellpadding=0><tr>
<td height=22 class="breadcrumb"> <?php include("_breadcrumb.php"); ?></td>
<form name="quicklink" action="quicklink.php" method="post">
<td height=22 align="right" class="breadcrumb"><b>Quick Links:</b> <SELECT name="ql" onChange="document.quicklink.submit();">
<option></option>
<option value="/calendar.php">My Calendar</option>
<option value="/contacts.php">My Contacts</option>
<option value="/files.php">My Files</option>
<option value="/my_profile.php">My Profile</option>
<option value="/timesheet.php">My Timesheet</option>
<option value="/visitors.php">My Visitors</option>
<option></option>
<option value="/forums.php">Discussion Forums</option>
<option value="/directory.php">Employee Directory</option>
<option value="/directory_extlist.php">Employee Extension List</option>
<option value="/directory_external.php">External Directory</option>
</SELECT>
</td></form>
</tr></table>
<!--
<table border=0 width=100% cellspacing=0 cellpadding=0 bgcolor="#F0F0F0" background="/gui/bg_topnav.gif"><tr>
<td width=100% height=20 class="topnavrow"><script language='JavaScript' vqptag='placement' vqp_menuid=968283>create_menu(968283)</script></td>
</tr></table>
-->
<table border=0 width=100% cellspacing=0 cellpadding=0 background="/gui/breadcrubm_shadow.gif"><tr>
<td width=100% height=12><img src="/gui/clear.gif" width=1 height=12></td>
</tr></table>
<?php
//if (!strstr(self(),"/content.php") && !strstr(self(),"/guidebook/")) {
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";
//}
?>