mirror of https://github.com/fspc/biketree.git
Bike Tree - https://biketree.bikelover.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
3.1 KiB
97 lines
3.1 KiB
7 years ago
|
<?php session_start(); ?>
|
||
|
|
||
|
<html>
|
||
|
<head>
|
||
|
<link rel="stylesheet" href="form.css" type="text/css">
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<?php
|
||
|
include ("../settings.php");
|
||
|
include ("../language/$cfg_language");
|
||
|
include ("../classes/db_functions.php");
|
||
|
include ("../classes/security_functions.php");
|
||
|
include ("../classes/display.php");
|
||
|
|
||
|
$lang=new language();
|
||
|
$dbf=new db_functions($cfg_server,$cfg_username,$cfg_password,$cfg_database,$cfg_tableprefix,$cfg_theme,$lang);
|
||
|
$sec=new security_functions($dbf,'Sales Clerk',$lang);
|
||
|
$display=new display($dbf->conn,$cfg_theme,$cfg_currency_symbol,$lang);
|
||
|
|
||
|
if(!$sec->isLoggedIn())
|
||
|
{
|
||
|
header ("location: ../login.php");
|
||
|
exit();
|
||
|
}
|
||
|
|
||
|
$today = date("Y-m-d");
|
||
|
//$result = mysql_query("SELECT * FROM books");
|
||
|
|
||
|
$body.="</select>";
|
||
|
|
||
|
$tablename = $cfg_tableprefix.'users';
|
||
|
$userLoginName = $dbf->idToField($tablename,'username',$_SESSION['session_user_id']);
|
||
|
|
||
|
if(isset($_GET[error])){
|
||
|
$error = (int)$_GET[error];
|
||
|
$errorMsg = "";
|
||
|
switch($error){
|
||
|
case 1:
|
||
|
$errorMsg="ERROR: invalid username or password";
|
||
|
break;
|
||
|
case 2:
|
||
|
$errorMsg="ERROR: Not a valid ammount: [$_GET[count]]";
|
||
|
break;
|
||
|
case 3:
|
||
|
$errorMsg="ERROR: Invalid Data";
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if($errorMsg != ""){
|
||
|
$body.="<br><font color=\"red\">".$errorMsg."</font><br>";
|
||
|
}
|
||
|
|
||
|
$body.="
|
||
|
<table border=\"0\"><tr><td>
|
||
|
<h2>Deposit...</h2>
|
||
|
<form class=\"form\" name=depositform enctype=\"multipart/form-data\" method=\"POST\" action=\"verifyaction.php\">
|
||
|
<h5>Please count all cash, cheques, and coupons in the coin box</h5>
|
||
|
<font face=\"Verdana\" size=\"2\">Deposit Ammount: $
|
||
|
<input type=\"text\" name=\"ammount\" size=\"10\" value=\"$_GET[count]\">
|
||
|
<br>
|
||
|
Approved by:
|
||
|
<blockquote>Username: <input type=\"text\" name=\"username\" size=\"15\" value=\"$userLoginName\"><br>
|
||
|
Password: <input type=\"password\" name=\"password\" size=\"15\"></blockquote>
|
||
|
<br><br><br>
|
||
|
<input type=\"hidden\" name=\"action\" value=\"4\">
|
||
|
Deposited by: <input type=\"text\" name=\"data\" value=\"$_GET[data]\">
|
||
|
</font>
|
||
|
<input type=\"submit\" name=\"submit\" value=\"Process Deposit!\">
|
||
|
</form></td><td>
|
||
|
<h2>Payout...</h2>
|
||
|
<form class=\"form\" name=payoutform enctype=\"multipart/form-data\" method=\"POST\" action=\"verifyaction.php\">
|
||
|
<h5>Please count all cash, cheques, and coupons in the coin box</h5>
|
||
|
<font face=\"Verdana\" size=\"2\">Payout Ammount: $
|
||
|
<input type=\"text\" name=\"ammount\" size=\"10\" value=\"$_GET[count]\">
|
||
|
<br>
|
||
|
Approved by:
|
||
|
<blockquote>Username: <input type=\"text\" name=\"username\" size=\"15\" value=\"$userLoginName\"><br>
|
||
|
Password: <input type=\"password\" name=\"password\" size=\"15\"></blockquote>
|
||
|
<br><br><br>
|
||
|
<input type=\"hidden\" name=\"action\" value=\"5\">
|
||
|
Payee: <input type=\"text\" name=\"data\" value=\"$_GET[data]\">
|
||
|
For: <input type=\"text\" name=\"data2\" value=\"$_GET[data2]\">
|
||
|
</font>
|
||
|
<input type=\"submit\" name=\"submit\" value=\"Process Payout!\">
|
||
|
</form></td></tr></table>
|
||
|
";
|
||
|
echo "$body";
|
||
|
// Counted by <b>$userLoginName</b> <input type=\"checkbox\" name=\"counter\">
|
||
|
$dbf->closeDBlink();
|
||
|
|
||
|
?>
|
||
|
|
||
|
</body>
|
||
|
</html>
|