-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.php
199 lines (187 loc) · 8.37 KB
/
main.php
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<?php
session_start();
if($_SESSION['user']==FALSE) {
echo "<script>alert('Anda tidak berhak mengakses halaman ini');document.location='index.php'</script>";
}
else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Main Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/login-.css" rel="stylesheet" type="text/css" />
<link href="css/main-.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.head {
color: #FFF;
opacity: 0.8;
-webkit-transition: box-shadow .25s ease-in-out;
-moz-transition: box-shadow .25s ease-in-out;
-o-transition: box-shadow .25s ease-in-out;
transition: box-shadow .25s ease-in-out;
background: #0099CC;
padding: 10px;
border-radius: 5px;
box-shadow: 1px 0px 15px #FFF;
}
.head:hover {
box-shadow: 1px 0px 40px #66CCFF;
}
.title h1{
color:#FFFFFF;
text-shadow: 0 1px 2px #000;
}
.hov {
-webkit-transition: background .25s ease-in-out;
-moz-transition: background .25s ease-in-out;
-o-transition: background .25s ease-in-out;
transition: background .25s ease-in-out;
}
.hov:hover {
background: #333;
opacity: 0.7;
}
.tittab {
background: #FFF;
color: #000;
padding: 15px;
}
.link a {
color: #000;
}
.link:hover {
color: #000;
}
</style>
<script type="text/javascript" src="js/button.js"></script>
<script language="JavaScript">
function validateForm(theForm){
if(theForm.calc_result.value ==""){
alert("Enter the number");
theForm.userid.focus();
return false;
}
if(theForm.password.value==""){
alert("enter the password");
theForm.password.focus();
return false;
}
return true;
if(theForm.kode.value==""){
alert("enter the kode");
theForm.password.focus();
return false;
}
return true;
if(theForm.nominal.value==""){
alert("enter the nominal");
theForm.password.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<p align="right" class="link"><a href="log.php">Log Transaksi</a> - <a href="logout.php">Logout</a></p>
<div class="container">
<div class="main">
<h1>FAST-CELL.com</h1>
<form method="POST" action="send_message_to_yahoo_messenger.php" onsubmit="return validateForm(this);">
<table class="calculator" id="calc" border="0">
<tbody><tr>
<td colspan="4" class="calc_td_result" align="left">
<input type="text" style="width: 750px; height: 50px; font-size: 20px;" name="calc_result" id="calc_result" class="calc_result" onkeydown="javascript:key_detect_calc('calc',event);">
</td>
</tr>
<tr>
<td class="calc_td_result" valign="top" style="padding-top: 7px;">
<input type="password" name="password" style="width: 150px;">
</td>
<td class="calc_td_result" valign="top" style="padding-top: 7px;">
<select name="kode" style="width: 100px;">
<!-- KODE PROVIDER UNTUK DIEDIT TINGGAL IKUTI PENULISAN SEBELUMMNYA -->
<option value="">-KODE-</option>
<option value="xl">XL</option>
<option value="tri">Tri</option>
<option value="telk">Telkomsel</option>
<!-- KODE PROVIDER END -->
</select>
</td>
<td class="calc_td_result" valign="top" style="padding-top: 7px;">
<select name="nominal" style="width: 100px;">
<option value="">-NOMINAL-</option>
<!-- NOMINAL PROVIDER UNTUK DIEDIT TINGGAL IKUTI PENULISAN SEBELUMMNYA -->
<option value="5">5</option>
<option value="10">10</option>
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
<!-- NOMINAL PROVIDER END -->
</select>
</td>
<td>
<table class="calculator" id="calc" border="0">
<tr align="center">
<td class="calc_td_btn">
<input type="button" class="calc_btn" value="7" onclick="javascript:add_calc('calc',7);">
</td>
<td class="calc_td_btn">
<input type="button" class="calc_btn" value="8" onclick="javascript:add_calc('calc',8);">
</td>
<td class="calc_td_btn">
<input type="button" class="calc_btn" value="9" onclick="javascript:add_calc('calc',9);">
</td>
</tr>
<tr align="center">
<td class="calc_td_btn">
<input type="button" class="calc_btn" value="4" onclick="javascript:add_calc('calc',4);">
</td>
<td class="calc_td_btn">
<input type="button" class="calc_btn" value="5" onclick="javascript:add_calc('calc',5);">
</td>
<td class="calc_td_btn">
<input type="button" class="calc_btn" value="6" onclick="javascript:add_calc('calc',6);">
</td>
</tr>
<tr align="center">
<td class="calc_td_btn">
<input type="button" class="calc_btn" value="1" onclick="javascript:add_calc('calc',1);">
</td>
<td class="calc_td_btn">
<input type="button" class="calc_btn" value="2" onclick="javascript:add_calc('calc',2);">
</td>
<td class="calc_td_btn">
<input type="button" class="calc_btn" value="3" onclick="javascript:add_calc('calc',3);">
</td>
</tr>
<tr align="center">
<td class="calc_td_btn">
<input type="button" class="calc_btn" value="Del" onclick="javascript:f_calc('calc','ce');">
</td>
<td class="calc_td_btn">
<input type="button" class="calc_btn" value="0" onclick="javascript:add_calc('calc',0);">
</td>
<td class="calc_td_btn">
<input type="button" class="calc_btn" value="←" onclick="javascript:f_calc('calc','nbs');">
</td>
<td class="calc_td_btn">
<input type="submit" class="calc_btn" name="submit" value="Ok">
</td>
</tr>
</table>
</td>
</tr>
</tbody></table>
</form>
</div>
<script type="text/javascript">
document.getElementById('calc').onload=init_calc('calc');
</script>
</div>
</body>
</html>
<?php
}
?>