-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddsplash.php
More file actions
71 lines (67 loc) · 1.9 KB
/
addsplash.php
File metadata and controls
71 lines (67 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
include_once 'header.php';
if($_SESSION['id'] == 'ok'){
?>
<script language="JavaScript" type="text/javascript">
<!--
// IsNumeric Function
function IsNumeric(sText)
{
var ValidChars = "0123456789";
var IsNumber=true;
var Char;
for (i = 0; i < sText.length && IsNumber == true; i++)
{
Char = sText.charAt(i);
if (ValidChars.indexOf(Char) == -1)
{
IsNumber = false;
}
}
return IsNumber;
}
//Function to select the status...
function statusSelect()
{
var url = document.status.hw_type.options[document.status.hw_type.selectedIndex].value
window.location.href = url
}
//-->
</script>
<div data-role="page" class="type-interior mybg">
<div data-role="header" data-theme="a">
<h1>Add Inventory Item</h1>
<a href="#" data-icon="home" data-iconpos="notext" data-direction="reverse" onclick="history.go(-1)">Home</a>
</div><!-- /header -->
<br />
<div data-role="content">
<label for="basic"><b>Select the hardware type.</b></label>
<br />
<form name="status" method="post" action="add.php">
<label for="basic">Hardware Type:</label>
<select name="hw_type">
<option selected value="<?php print "addsplash.php"?>">--- ----</option>
<option value="computer">Computer</option>
<option value="monitor">Monitor</option>
<option value="printer">Printer</option>
<option value="projector">Projector</option>
<option value="scanner">Scanner</option>
</select>
<input type="submit" name="Submit" value="Submit" class="button" title="Submit work order" data-inline="true" data-theme="d">
</form>
<?php
} else {
?>
<label for="basic">You're Not Logged in!</label>
<form action="mobilelogin.php" method="get">
<input type="hidden" name="adding" value="yes" />
<a href="mobilelogin.php" data-inline="true" data-role="button">Login</a>
</form>
<?php
}
?>
</div>
<?php
include_once 'footer.php';
include_once 'common/end.inc.php';
?>