colonymech / docs / www / colonyscout / internal / index.php @ f59acf11
History | View | Annotate | Download (4.23 KB)
1 |
<?php session_start();
|
---|---|
2 |
$docRoot=getenv("DOCUMENT_ROOT")."/"; |
3 |
if ( !isset($_SESSION['u']) || $_SESSION['u']=="" ) { //then present login screen |
4 |
$doLogin=true; |
5 |
} else {
|
6 |
$doLogin=false; |
7 |
include_once('includes/inventoryFunctions.php'); |
8 |
include_once($docRoot."internal/do_login.php"); |
9 |
doDB("colony_scout");
|
10 |
} |
11 |
?>
|
12 |
|
13 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
14 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> |
15 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> |
16 |
<meta name="description" content="FILL IN"/> |
17 |
<meta name="keywords" content="FILL IN"/> |
18 |
<?php include($docRoot."internal/includes/header_internal.php"); ?> |
19 |
<title>Internal | ColonyScout.com</title> |
20 |
<?php
|
21 |
if ($doLogin==true) { //start head content for login screen |
22 |
?>
|
23 |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> |
24 |
<script type="text/javascript" src="js/jquery.jcryption-1.1.js" ></script> |
25 |
<link rel="stylesheet" href="includes/jqtransformplugin/jqtransform.css" type="text/css" media="all" /> |
26 |
<script type="text/javascript" src="includes/jqtransformplugin/jquery.jqtransform.js" ></script> |
27 |
<script language="javascript"> |
28 |
$(function(){
|
29 |
$('form').jqTransform({imgPath:'includes/jqtransformplugin/img/'});
|
30 |
});
|
31 |
</script>
|
32 |
<script type="text/javascript"> |
33 |
$(function() {
|
34 |
var $status = $('<div id="status" style="margin-top:15px;"><img src="images/loading.gif" alt="Loading..." title="Loading..." style="margin-right:15px;" /><span>Checking Login Details...</span></div>').hide();
|
35 |
$("#submitButton").parent().append($status);
|
36 |
$("#callbackForm").jCryption({beforeEncryption:function() {$status.show();return true;}});
|
37 |
$(":input").removeAttr("disabled");
|
38 |
});
|
39 |
</script>
|
40 |
<style>
|
41 |
#login-box {margin:0px auto;}
|
42 |
label {width:100px;font-size:20px;}
|
43 |
.loginForm {position:relative;left:30px;}
|
44 |
</style>
|
45 |
<script type="text/javascript"> |
46 |
Cufon.replace('label');
|
47 |
</script>
|
48 |
<?php
|
49 |
} |
50 |
?>
|
51 |
</head>
|
52 |
<body bgcolor="#eeeeee"> |
53 |
|
54 |
<div id="general"> |
55 |
<?php include($docRoot."internal/includes/nav_internal.php"); ?> |
56 |
<div id="body"> |
57 |
<div id="body-boxes"> |
58 |
<div class="box-row" style="margin-top: 7px;"> |
59 |
<div class="white-top"></div> |
60 |
<div class="white-body text-box"> |
61 |
<?php
|
62 |
if ($doLogin==true) { |
63 |
if (!isset($_GET["s"])) { |
64 |
?>
|
65 |
<h1>Internal Login</h1><br/> |
66 |
<?php
|
67 |
} else { |
68 |
?>
|
69 |
<h1>Login Error</h1><br> |
70 |
<div class="hr"></div><br/> |
71 |
<h2 style="color:#CC0000;">Oops! Your username or password was incorrect.</h2><br/> |
72 |
<h2 style="color:#00CC00;">Please re-try your login.</h2><br/><br/> |
73 |
<?php
|
74 |
} |
75 |
?>
|
76 |
<div class="hr"></div><br/> |
77 |
<div id="login-box"> |
78 |
<form action="login.php" method="post" id="callbackForm"> |
79 |
<div class="rowElem"><label>Username</label> |
80 |
<div class="loginForm"><input class="login" type="text" id="user" name="muser" size=25/></div> |
81 |
</div>
|
82 |
<div class="rowElem"><label>Password</label> |
83 |
<div class="loginForm"><input class="login" type="password" id="pass" name="mpass" size=25/></div> |
84 |
</div>
|
85 |
<div class="rowElem"><label></label> |
86 |
<div class="loginForm"><input title="Submit" alt="Submit" name="submitButton" type="submit" value="Submit" class="submit" id="submitButton"/></div> |
87 |
</div>
|
88 |
<input type="hidden" name="val" value="<?php echo md5($_SERVER['REMOTE_ADDR'].date('l jS \of F Y h A')); ?>"/> |
89 |
</form>
|
90 |
</div>
|
91 |
<br/><br/><br/><br/><br/> |
92 |
<?php
|
93 |
} else {?>
|
94 |
<p>
|
95 |
<h1 style="color:#FF6600;">Getting Started</h1> |
96 |
<div class="hr"></div> |
97 |
<p><h2><img src="images/log.png"/> Trakr</h2></li> Descrition of Trakr</p> |
98 |
<div class="hr"></div> |
99 |
<p><h2><img src="images/kchart_chrt.png"/> Inventory Manager</h2> Descrition of Inventory Management</p> |
100 |
<div class="hr"></div> |
101 |
<p><h2><img src="images/document2.png"/> Assembly Instructions</h2> Self explanatory... but explain :P</p> |
102 |
</ul>
|
103 |
</p>
|
104 |
<?php
|
105 |
} |
106 |
?>
|
107 |
</div>
|
108 |
<div class="white-bottom"></div> |
109 |
</div>
|
110 |
|
111 |
|
112 |
</div>
|
113 |
</div> <!--BODY!--> |
114 |
|
115 |
|
116 |
<?php include($docRoot."footer.php"); ?> |
117 |
|
118 |
</div><!--GENERAL!--> |
119 |
|
120 |
|
121 |
</body></html> |