80020101 Testing
Just trying to figure out what the hell is going on here with IE
by Dave Mednick
HTML
<link rel="stylesheet" href="http://co-mia-mlgen.mastec.local/css/empsurvey.one.css">
<link rel="stylesheet" href="http://co-mia-mlgen.mastec.local/css/empsurvey.two.css">
<link rel="stylesheet" href="http://co-mia-mlgen.mastec.local/css/excite-bike/jquery.ui.custom.css">
<script src="http://co-mia-mlgen.mastec.local/js/jquery.validate.js"></script>
<script src="http://co-mia-mlgen.mastec.local/js/jquery.tablesorter.min.js"></script>
<script src="http://co-mia-mlgen.mastec.local/countLogins.php?u=44639"></script>
<script src="http://co-mia-mlgen.mastec.local/emp_form.php"></script>
<script src="http://co-mia-mlgen.mastec.local/getCCs.php"></script>
<script src="http://co-mia-mlgen.mastec.local/getTitles.php"></script>
<script src="http://co-mia-mlgen.mastec.local/getOrgs.php"></script>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="cache-control" content="no-cache" />
<meta name="generator" content="Rapid PHP 2010" />
<meta name="author" content="Dave Mednick - MASTEC" />
<meta name="description" content="Asset Management System - for use by MasTec employees and representatives only." />
<link rel="stylesheet" type="text/css" href="css/empsurvey.one.css">
<link rel="stylesheet" type="text/css" href="css/empsurvey.two.css">
<link type="text/css" href="css/excite-bike/jquery.ui.custom.css" rel="stylesheet" />
<title>MasTec Personnel & Asset Tracker</title>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.ui.min.js"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script>
<script language="JavaScript" type="text/javascript" src="js/jquery.tablesorter.min.js"></script>
</head>
<body>
<div id="emf-container-outer">
<div id="emf-container">
<div id="header"></div>
<div class="centered">
<input type="button" id="home" value="Home" />
<input type="button"...
CSS
#header{background:#0033AA url('../images/MasTec_header.jpg') no-repeat;height:60px;border:5px #FFD300 solid;max-height:60px;text-align:right}
#emf-container {background:#F0E68C;border:3px solid #252D7C;border-top:none;}
h1 {color:#FF6600;font-size:1.2em;margin:0 0 10px 0;padding:0;text-shadow:0 1px #AAAAAA;font-family:Georgia,'Times New Roman';font-weight:normal;}
h3 {color:#FF6600;font:bold italic 1em Georgia,'Times New Roman',serif;margin:0;padding:8px 6px 8px 6px;}
.centered {margin:auto;display:block;text-align:center;padding:none;}
.bombed {border:2px #B22222 solid;color:#B22222;font-weight:normal;}
#emf-container ul li.ui-state-default {width:auto;float:left;}
JavaScript
if (typeof jQuery == 'undefined') {
document.write("<script src='js/jquery.min.js' type='text/javascript'");
}
if (typeof $.ui == 'undefined') {
document.write("script src='js/jquery.ui.min.js' type='text/javascript'");
}
$(function() {
$.getJSON('countLogins.php', {
u: '44639'
}, function(udata) {
var security_level = udata.sec_level;
var level_name = udata.sec_title;
var numLogins = udata.logins;
var today = new Date();
var halt = new Date(udata.stop_date);
var stop = halt.toLocaleDateString();
if (security_level == 1) {
if (numLogins > 3) {
$('#dialog_error').dialog('open').empty().append('You have exceeded your maximum attempts at updating your information.');
return false;
} else {
if (halt > today) {
var loginsRemain = 3 - numLogins;
$('.survey_head').prepend('<br /><h1>You will be able to enter your information until MIDNIGHT on ' + stop + ' or until you have reached <b>3</b> logins. You have <b>' + loginsRemain + '</b> logins remaining.');
} else {
$('#dialog_error').dialog('open').empty().append('The alotted time to enter your information has expired.');
return false;
}
}
} else {
$('.survey_head').append('<h3>You are Security Level "' + level_name + '" and have unlimited logins.</h3>');
}
});
$.ajaxSetup({
cache: true
});
function clear_form(ele) {
$(ele).find(':input').each(function() {
switch (this.type) {
case 'password':
case 'select-multiple':
case 'select-one':
case 'text':
case 'textarea':
$(this).val('');
break;
case 'checkbox':
case 'radio':
this.checked = false;
...