mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 02:11:38 -04:00
Moving more unecessary files to the attic.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
<title>YBDB</title>
|
||||
|
||||
<?php
|
||||
//Welcome page redirects
|
||||
if ($shop_type == 'Open Shop')
|
||||
redirect(180); //Always redirect in 2 min seconds on this page
|
||||
|
||||
if (($_GET['welcome'] == 'yes') AND ($shop_type == 'Open Shop'))
|
||||
redirect(180); //Redirect in 2 min if there is an action
|
||||
?>
|
||||
|
||||
<link href="css_yb_standard.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
|
||||
|
||||
<body class="yb_standard">
|
||||
<table align="center">
|
||||
<tr valign="top">
|
||||
<td height="40" align="right"><a href="shop_log.php">Current Shop</a> | <a href="start_shop.php"> All Shops</a> | <a href="contact_add_edit_select.php">Edit Contact Info</a> | <a href="stats.php">Statistics</a> | <a href="transaction_log.php">Transaction Log</a> | <a href="http://www.austinyellowbike.org/" target="_blank">YBP Home</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
@@ -0,0 +1 @@
|
||||
<h1>Hello</h1>
|
||||
@@ -0,0 +1,17 @@
|
||||
<!--//This function redirects the Log to the Welcome Page ================================================ -->
|
||||
<script type="text/javascript">
|
||||
var t;
|
||||
window.onload=resetTimer;
|
||||
document.onmousedown=resetTimer;
|
||||
document.onkeypress=resetTimer;
|
||||
|
||||
function logout()
|
||||
{
|
||||
location.href='shop_welcome.php'
|
||||
}
|
||||
function resetTimer()
|
||||
{
|
||||
clearTimeout(t);
|
||||
t=setTimeout(logout,1000*5) //logs out in 30 minutes
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
require_once('Connections/YBDB.php');
|
||||
require_once('Connections/database_functions.php');
|
||||
|
||||
if($_GET['visit_id']>0){
|
||||
$visit_id = $_GET['visit_id'];
|
||||
} else {
|
||||
$visit_id =-1;
|
||||
}
|
||||
|
||||
if($_GET['shop_id']>0){
|
||||
$shop_id = $_GET['shop_id'];
|
||||
} else {
|
||||
$shop_id =-1;
|
||||
}
|
||||
|
||||
if(isset($_GET['confirm_delete'])){
|
||||
$confirm_delete = $_GET['confirm_delete'];
|
||||
} else {
|
||||
$confirm_delete ='no';
|
||||
}
|
||||
|
||||
$page_delete_yes = $_SERVER['PHP_SELF'] . "?" . htmlentities($_SERVER['QUERY_STRING']) . "&confirm=yes";
|
||||
|
||||
if ($shop_id <> 90){
|
||||
//returns to the shop_log?shop_id page
|
||||
$page_delete_no = PAGE_SHOP_LOG . "?" . htmlentities($_SERVER['QUERY_STRING']);
|
||||
} else {
|
||||
//returns to the individual hours page
|
||||
$page_delete_no = INDIVIDUAL_HOURS_LOG . "?" . htmlentities($_SERVER['QUERY_STRING']);
|
||||
}
|
||||
|
||||
if ((visit_id <> -1) && (shop_id <> -1) && ($_GET['confirm'] == 'yes')){
|
||||
|
||||
$insertSQL = "DELETE FROM shop_hours WHERE shop_visit_id = {$visit_id}";
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
$Result1 = mysql_query($insertSQL, $YBDB) or die(mysql_error());
|
||||
|
||||
$pagegoto = $page_delete_no;
|
||||
header(sprintf("Location: %s", $pagegoto)); //browse back to shop
|
||||
} // end if to delete
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
<title>Yellow Bike - Shop Login</title>
|
||||
<link href="css_yb_standard.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
|
||||
<body class="yb_standard">
|
||||
<p>Do you really want to delete this visit:</p>
|
||||
<p>
|
||||
<a href="<?php echo $page_delete_yes ?>">Yes</a>
|
||||
<a href="<?php echo $page_delete_no ?>">No</a></p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user