forked from fundaev/fake2co
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
64 lines (57 loc) · 1.92 KB
/
index.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
<html>
<head>
<script type="text/javascript">
function updateFormState()
{
if (document.process_order_form.send_callback.checked) {
document.process_order_form.invoice_status.removeAttribute('disabled');
document.process_order_form.fraud_status.removeAttribute('disabled');
} else {
document.process_order_form.invoice_status.setAttribute('disabled', 'disabled');
document.process_order_form.fraud_status.setAttribute('disabled', 'disabled');
}
}
</script>
</head>
<body>
<form action="process_order.php" method="POST" name="process_order_form">
<input type="hidden" name="action" value="processOrder" />
<label for="send_callback">Send callback:</label>
<input type="checkbox" name="send_callback" checked="checked" onclick="javascript: updateFormState(); void(0);" />
<br /><br />
<label for="invoice_status">Invoice status:</label>
<select name="invoice_status">
<option value="approved">Approved</option>
<option value="pending">Pending</option>
<option value="deposited">Deposited</option>
<option value="declined">Declined</option>
</select>
<label for="fraud_status">Fraud status:</label>
<select name="fraud_status">
<option value="pass">Pass</option>
<option value="fail">Fail</option>
<option value="wait">Wait</option>
</select>
<br /><br />
<input type="submit" value=" Submit " />
<!--
<input type="button" value=" Process order " onclick="javascript: document.process_order_form.action.value='processOrder';document.process_order_form.submit();" />
<input type="button" value=" Decline order " onclick="javascript: document.process_order_form.action.value='declineOrder';document.process_order_form.submit();" />
-->
<?php
foreach ($_GET as $var => $val)
echo ' <input type="hidden" name="'.$var.'" value="'.$val.'" />'."\n";
?>
</form>
<hr />
<h4>Parameters:</h4>
<ul>
<?php
foreach ($_GET as $var => $value) {
echo "<li>$var: $value</li>\n";
}
?>
</ul>
</body>
</html>