mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 02:11:38 -04:00
Moves unused devel files from the distant past into the attic.
This commit is contained in:
@@ -0,0 +1,225 @@
|
||||
<?php
|
||||
require_once('Connections/YBDB.php');
|
||||
require_once('Connections/database_functions.php');
|
||||
|
||||
$page_edit_contact = PAGE_EDIT_CONTACT;
|
||||
$page_individual_history_log = INDIVIDUAL_HISTORY_LOG;
|
||||
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
//?shop_id=2
|
||||
if($_GET['shop_id']>0){
|
||||
$shop_id = $_GET['shop_id'];
|
||||
} else {
|
||||
$shop_id = current_shop_by_ip();
|
||||
if (isset($shop_id)) {
|
||||
//$shop_id stays the same
|
||||
} else {
|
||||
$gotopage = PAGE_START_SHOP . "?error=no_shop";
|
||||
header(sprintf("Location: %s",$gotopage ));
|
||||
}
|
||||
}
|
||||
|
||||
if($_GET['visit_id']>0){
|
||||
$visit_id = $_GET['visit_id'];
|
||||
} else {
|
||||
$visit_id =-1;}
|
||||
|
||||
if($_GET['new_user_id']>0){
|
||||
$new_user_id = $_GET['new_user_id'];
|
||||
} else {
|
||||
$new_user_id = -1;
|
||||
}
|
||||
|
||||
|
||||
$query_Recordset1 = "SELECT shop_hours.shop_visit_id, shop_hours.contact_id, shop_hours.shop_user_role, shop_hours.project_id, shop_hours.time_in, shop_hours.time_out, TIME_FORMAT(TIMEDIFF(time_out, time_in),'%k:%i') as et, shop_hours.comment, CONCAT(contacts.last_name, ', ', contacts.first_name, ' ',contacts.middle_initial) AS full_name, contacts.first_name FROM shop_hours
|
||||
LEFT JOIN shop_user_roles ON shop_hours.shop_user_role=shop_user_roles.shop_user_role_id
|
||||
LEFT JOIN contacts ON shop_hours.contact_id=contacts.contact_id
|
||||
WHERE shop_hours.shop_id = $shop_id ORDER BY hours_rank, time_in DESC;";
|
||||
$Recordset1 = mysql_query($query_Recordset1, $YBDB) or die(mysql_error());
|
||||
//$row_Recordset1 = mysql_fetch_assoc($Recordset1);
|
||||
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
|
||||
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
$query_Recordset2 = "SELECT * FROM shops WHERE shop_id = $shop_id;";
|
||||
$Recordset2 = mysql_query($query_Recordset2, $YBDB) or die(mysql_error());
|
||||
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
|
||||
$totalRows_Recordset2 = mysql_num_rows($Recordset2);
|
||||
$shop_date = $row_Recordset2['date'];
|
||||
$shop_location = $row_Recordset2['shop_location'];
|
||||
$shop_type = $row_Recordset2['shop_type'];
|
||||
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
$query_Recordset3 = "SELECT MIN(time_in) as shop_start FROM shop_hours WHERE shop_id = $shop_id;";
|
||||
$Recordset3 = mysql_query($query_Recordset3, $YBDB) or die(mysql_error());
|
||||
$row_Recordset3 = mysql_fetch_assoc($Recordset3);
|
||||
$totalRows_Recordset3 = mysql_num_rows($Recordset3);
|
||||
$shop_start_time = $row_Recordset3['shop_start'];
|
||||
|
||||
//Action on form update
|
||||
//shop_log2.php?shop_id=2&visit_id=4
|
||||
$editFormAction = $_SERVER['PHP_SELF'] . "?shop_id=$shop_id&visit_id=$visit_id&welcome=yes";
|
||||
$editFormAction_novisit = $_SERVER['PHP_SELF'] . "?shop_id=$shop_id&welcome=yes";
|
||||
//if (isset($_SERVER['QUERY_STRING'])) {
|
||||
// $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
|
||||
//}
|
||||
|
||||
//Form Submit New Shop User
|
||||
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form_new") && ($_POST["contact_id"] == "no_selection")){
|
||||
//if no contact is selected
|
||||
$error_message = '<span class="yb_heading3red">Please Select a User</span><br />';
|
||||
} elseif ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form_new")) {
|
||||
$insertSQL = sprintf("INSERT INTO shop_hours (contact_id, shop_id, shop_user_role, time_in) VALUES (%s, %s, %s, %s)",
|
||||
GetSQLValueString($_POST['contact_id'], "int"),
|
||||
GetSQLValueString($shop_id, "int"),
|
||||
GetSQLValueString($_POST['user_role'], "text"),
|
||||
GetSQLValueString($_POST['time_in'], "date"));
|
||||
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
$Result1 = mysql_query($insertSQL, $YBDB) or die(mysql_error());
|
||||
|
||||
$insertGoTo = "shop_log2.php";
|
||||
if (isset($_SERVER['QUERY_STRING'])) {
|
||||
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
|
||||
$insertGoTo .= $_SERVER['QUERY_STRING'];
|
||||
}
|
||||
header(sprintf("Location: %s", $editFormAction_novisit));
|
||||
}
|
||||
|
||||
//$_POST["MM_insert"] is in the form: FormUpdate_$VisitID OR FormUpdate_142. This line seperates the visit id from the
|
||||
//list($is_UpdateForm, $visit_id) = split('[_]', $_POST["MM_insert"]);
|
||||
|
||||
//Update Record isset($_POST["MM_update"])
|
||||
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormUpdate")) {
|
||||
$updateSQL = sprintf("UPDATE shop_hours SET time_out=%s WHERE shop_visit_id=%s",
|
||||
GetSQLValueString($_POST['time_out'], "date"),
|
||||
GetSQLValueString($_POST['shop_visit_id'], "int"));
|
||||
//"2006-10-12 18:15:00"
|
||||
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
$Result1 = mysql_query($updateSQL, $YBDB) or die(mysql_error());
|
||||
|
||||
$gotopage = "index.html";
|
||||
header(sprintf("Location: %s",$editFormAction )); //$editFormAction
|
||||
}
|
||||
|
||||
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormEdit")) {
|
||||
$updateSQL = sprintf("UPDATE shop_hours SET contact_id=%s, shop_user_role=%s, project_id=%s, time_in=%s, time_out=%s, comment=%s WHERE shop_visit_id=%s",
|
||||
GetSQLValueString($_POST['contact_id'], "int"),
|
||||
GetSQLValueString($_POST['user_role'], "text"),
|
||||
GetSQLValueString($_POST['project'], "text"),
|
||||
GetSQLValueString($_POST['time_in'], "date"),
|
||||
GetSQLValueString($_POST['time_out'], "date"),
|
||||
GetSQLValueString($_POST['comment'], "text"),
|
||||
GetSQLValueString($_POST['shop_visit_id'], "int"));
|
||||
//"2006-10-12 18:15:00"
|
||||
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
$Result1 = mysql_query($updateSQL, $YBDB) or die(mysql_error());
|
||||
|
||||
header(sprintf("Location: %s",$editFormAction_novisit )); //$editFormAction
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<?php include("include_header.html"); ?>
|
||||
|
||||
<table border="0" cellpadding="1" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left" valign="bottom"><?php echo $error_message;?>
|
||||
Shop ID: <span class="yb_standarditalics"><?php echo $shop_id;?></span>; Location: <span class="yb_standarditalics"><?php echo $shop_location;?></span>; Date: <span class="yb_standarditalics"><?php echo $shop_date;?></span>; Shop Type: <span class="yb_standarditalics"><?php echo $shop_type;?></span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table border="1" cellpadding="1" cellspacing="0" bordercolor="#CCCCCC">
|
||||
<tr bordercolor="#CCCCCC" bgcolor="#99CC33">
|
||||
<td height="35"><strong>Shop User </strong></td>
|
||||
<td height="35" bgcolor="#99CC33"><strong>Status</strong></td>
|
||||
<td width="70" height="35"><strong>Time In </strong></td>
|
||||
<td width="70" height="35"><strong>Time Out </strong></td>
|
||||
<td height="35"><strong>Update Hours </strong></td>
|
||||
<td height="35"><strong>Edit Data </strong></td>
|
||||
</tr>
|
||||
<form method="post" name="form_new" action="<?php echo $editFormAction; ?>">
|
||||
<tr bordercolor="#CCCCCC">
|
||||
<td height="40" valign="bottom"><strong>New User:</strong><br>
|
||||
<span class="yb_standard_small"> Not in the list: Create <a href="<?php echo $page_edit_contact; ?>?contact_id=new_contact&shop_id=<?php echo $shop_id?>">New User</a></span>
|
||||
<?php list_contacts_select_user('contact_id', $new_user_id); ?></td>
|
||||
<td valign="bottom"><strong>
|
||||
<?php list_shop_user_roles('user_role','Personal'); ?>
|
||||
</strong></td>
|
||||
<td valign="bottom"><strong>
|
||||
<?php if($totalRows_Recordset1 <> 0){
|
||||
list_time($shop_start_time,'0000-00-00 00:00:00','time_in',-60,0,'none',16);
|
||||
} else {
|
||||
list_time("{$shop_date} 08:00:00",'0000-00-00 00:00:00','time_in',-15, 0, 'none',16);
|
||||
}
|
||||
?>
|
||||
</strong></td>
|
||||
<td valign="bottom"><img src="150_10.jpg" width="150" height="10" /></td>
|
||||
<td valign="bottom"><input name="Submit" type="submit" value="Sign In" /></td>
|
||||
<td valign="bottom"> </td>
|
||||
</tr>
|
||||
<input type="hidden" name="MM_insert" value="form_new">
|
||||
</form>
|
||||
<tr valign="bottom" bordercolor="#CCCCCC" bgcolor="#99CC33">
|
||||
<td height="25" colspan="6" bgcolor="#99CC33"> Existing Shop Users:</td>
|
||||
</tr>
|
||||
<?php while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)) { //do {
|
||||
if($visit_id == $row_Recordset1['shop_visit_id']) {?>
|
||||
<form method="post" name="FormUpdate_<?php echo $row_Recordset1['shop_visit_id']; ?>" action="<?php echo $editFormAction; ?>">
|
||||
<tr valign="bottom" bordercolor="#CCCCCC" bgcolor="#CCCC33">
|
||||
<td>Edit Record: <br>
|
||||
<?php list_contacts('contact_id', $row_Recordset1['contact_id']); ?></td>
|
||||
<td><?php list_shop_user_roles('user_role', $row_Recordset1['shop_user_role']); ?></td>
|
||||
<td><?php list_time($shop_start_time,'0000-00-00 00:00:00','time_in',-60,0,$row_Recordset1['time_in'],16); ?></td>
|
||||
<td><?php
|
||||
if ($row_Recordset1['time_out'] <> '0000-00-00 00:00:00'){
|
||||
list_time($row_Recordset1['time_in'],$row_Recordset1['time_out'],'time_out',0,1,$row_Recordset1['time_out']);
|
||||
} ?></td>
|
||||
<td><input type="submit" name="Submit" value="Update Changes" /></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr bordercolor="#CCCCCC" bgcolor="#CCCC33">
|
||||
<td colspan="6"><table border="0" cellspacing="0" cellpadding="1">
|
||||
<tr>
|
||||
<td width="125"><div align="right">Project:</div></td>
|
||||
<td><?php list_projects('project', $row_Recordset1['project_id']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><div align="right">Comment:</div></td>
|
||||
<td><input name="comment" type="text" value="<?php echo $row_Recordset1['comment']; ?>" size="90" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><div align="right">Delete:</div></td>
|
||||
<td>Click to Delete this Shop User's Visit: <a href="<?php echo PAGE_SHOP_LOG_DELETE_VISIT . "?visit_id={$visit_id}&shop_id={$shop_id}";?>">Delete</a> </td>
|
||||
</tr>
|
||||
</table> </td>
|
||||
</tr>
|
||||
<input type="hidden" name="MM_insert" value="FormEdit">
|
||||
<input type="hidden" name="shop_visit_id" value="<?php echo $row_Recordset1['shop_visit_id']; ?>">
|
||||
</form>
|
||||
<?php } else { //This section executes if it is not the visit_id selected NOT FOR EDIT ?>
|
||||
<form method="post" name="FormUpdate_<?php echo $row_Recordset1['shop_visit_id']; ?>" action="<?php echo $editFormAction; ?>">
|
||||
<tr bordercolor="#CCCCCC">
|
||||
<td><a href="<?php echo "{$page_individual_history_log}?contact_id=" . $row_Recordset1['contact_id']; ?>"><?php echo $row_Recordset1['full_name']; ?></a></td>
|
||||
<td><?php echo $row_Recordset1['shop_user_role']; ?></td>
|
||||
<td><?php echo date_to_time($row_Recordset1['time_in']); ?></td>
|
||||
<td><?php echo list_time($row_Recordset1['time_in'],$row_Recordset1['time_out'],'time_out',0,1,'none', 8,$row_Recordset1['et']); ?></td>
|
||||
<td><?php sign_out($row_Recordset1['time_out'], $row_Recordset1['first_name']); ?></td>
|
||||
<td><?php echo "<a href=\"{$_SERVER['PHP_SELF']}?shop_id={$shop_id}&visit_id={$row_Recordset1['shop_visit_id']}\">edit</a>"; ?></td>
|
||||
</tr>
|
||||
<input type="hidden" name="MM_insert" value="FormUpdate">
|
||||
<input type="hidden" name="shop_visit_id" value="<?php echo $row_Recordset1['shop_visit_id']; ?>">
|
||||
</form>
|
||||
<?php } // if
|
||||
} //while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); // while Recordset1 ?>
|
||||
</table> </tr>
|
||||
<tr>
|
||||
<td height="40" valign="bottom"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p> </p>
|
||||
<?php include("include_footer.html"); ?>
|
||||
<?php
|
||||
mysql_free_result($Recordset1);
|
||||
?>
|
||||
@@ -0,0 +1,227 @@
|
||||
<?php
|
||||
require_once('Connections/YBDB.php');
|
||||
require_once('Connections/database_functions.php');
|
||||
|
||||
$page_edit_contact = PAGE_EDIT_CONTACT;
|
||||
$page_individual_history_log = INDIVIDUAL_HISTORY_LOG;
|
||||
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
//?shop_id=2
|
||||
if($_GET['shop_id']>0){
|
||||
$shop_id = $_GET['shop_id'];
|
||||
} else {
|
||||
$shop_id = current_shop_by_ip();
|
||||
if (isset($shop_id)) {
|
||||
//$shop_id stays the same
|
||||
} else {
|
||||
$gotopage = PAGE_START_SHOP . "?error=no_shop";
|
||||
header(sprintf("Location: %s",$gotopage ));
|
||||
}
|
||||
}
|
||||
|
||||
if($_GET['visit_id']>0){
|
||||
$visit_id = $_GET['visit_id'];
|
||||
} else {
|
||||
$visit_id =-1;}
|
||||
|
||||
if($_GET['new_user_id']>0){
|
||||
$new_user_id = $_GET['new_user_id'];
|
||||
} else {
|
||||
$new_user_id = -1;
|
||||
}
|
||||
|
||||
|
||||
$query_Recordset1 = "SELECT shop_hours.shop_visit_id, shop_hours.contact_id, shop_hours.shop_user_role, shop_hours.project_id, shop_hours.time_in, shop_hours.time_out, TIME_FORMAT(TIMEDIFF(time_out, time_in),'%k:%i') as et, shop_hours.comment, CONCAT(contacts.last_name, ', ', contacts.first_name, ' ',contacts.middle_initial) AS full_name, contacts.first_name FROM shop_hours
|
||||
LEFT JOIN shop_user_roles ON shop_hours.shop_user_role=shop_user_roles.shop_user_role_id
|
||||
LEFT JOIN contacts ON shop_hours.contact_id=contacts.contact_id
|
||||
WHERE shop_hours.shop_id = $shop_id ORDER BY hours_rank, time_in DESC;";
|
||||
$Recordset1 = mysql_query($query_Recordset1, $YBDB) or die(mysql_error());
|
||||
//$row_Recordset1 = mysql_fetch_assoc($Recordset1);
|
||||
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
|
||||
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
$query_Recordset2 = "SELECT * FROM shops WHERE shop_id = $shop_id;";
|
||||
$Recordset2 = mysql_query($query_Recordset2, $YBDB) or die(mysql_error());
|
||||
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
|
||||
$totalRows_Recordset2 = mysql_num_rows($Recordset2);
|
||||
$shop_date = $row_Recordset2['date'];
|
||||
$shop_location = $row_Recordset2['shop_location'];
|
||||
$shop_type = $row_Recordset2['shop_type'];
|
||||
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
$query_Recordset3 = "SELECT MIN(time_in) as shop_start FROM shop_hours WHERE shop_id = $shop_id;";
|
||||
$Recordset3 = mysql_query($query_Recordset3, $YBDB) or die(mysql_error());
|
||||
$row_Recordset3 = mysql_fetch_assoc($Recordset3);
|
||||
$totalRows_Recordset3 = mysql_num_rows($Recordset3);
|
||||
$shop_start_time = $row_Recordset3['shop_start'];
|
||||
|
||||
//Action on form update
|
||||
//shop_log2.php?shop_id=2&visit_id=4
|
||||
$editFormAction = $_SERVER['PHP_SELF'] . "?shop_id=$shop_id&visit_id=$visit_id&welcome=yes";
|
||||
$editFormAction_novisit = $_SERVER['PHP_SELF'] . "?shop_id=$shop_id&welcome=yes";
|
||||
//if (isset($_SERVER['QUERY_STRING'])) {
|
||||
// $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
|
||||
//}
|
||||
|
||||
//Form Submit New Shop User
|
||||
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form_new") && ($_POST["contact_id"] == "no_selection")){
|
||||
//if no contact is selected
|
||||
$error_message = '<span class="yb_heading3red">Please Select a User</span><br />';
|
||||
} elseif ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form_new")) {
|
||||
$insertSQL = sprintf("INSERT INTO shop_hours (contact_id, shop_id, shop_user_role, time_in) VALUES (%s, %s, %s, %s)",
|
||||
GetSQLValueString($_POST['contact_id'], "int"),
|
||||
GetSQLValueString($shop_id, "int"),
|
||||
GetSQLValueString($_POST['user_role'], "text"),
|
||||
GetSQLValueString($_POST['time_in'], "date"));
|
||||
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
$Result1 = mysql_query($insertSQL, $YBDB) or die(mysql_error());
|
||||
|
||||
$insertGoTo = "shop_log2.php";
|
||||
if (isset($_SERVER['QUERY_STRING'])) {
|
||||
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
|
||||
$insertGoTo .= $_SERVER['QUERY_STRING'];
|
||||
}
|
||||
header(sprintf("Location: %s", $editFormAction_novisit));
|
||||
}
|
||||
|
||||
//$_POST["MM_insert"] is in the form: FormUpdate_$VisitID OR FormUpdate_142. This line seperates the visit id from the
|
||||
//list($is_UpdateForm, $visit_id) = split('[_]', $_POST["MM_insert"]);
|
||||
|
||||
//Update Record isset($_POST["MM_update"])
|
||||
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormUpdate")) {
|
||||
$updateSQL = sprintf("UPDATE shop_hours SET time_out=%s WHERE shop_visit_id=%s",
|
||||
GetSQLValueString($_POST['time_out'], "date"),
|
||||
GetSQLValueString($_POST['shop_visit_id'], "int"));
|
||||
//"2006-10-12 18:15:00"
|
||||
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
$Result1 = mysql_query($updateSQL, $YBDB) or die(mysql_error());
|
||||
|
||||
$gotopage = "index.html";
|
||||
header(sprintf("Location: %s",$editFormAction )); //$editFormAction
|
||||
}
|
||||
|
||||
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormEdit")) {
|
||||
$updateSQL = sprintf("UPDATE shop_hours SET contact_id=%s, shop_user_role=%s, project_id=%s, time_in=%s, time_out=%s, comment=%s WHERE shop_visit_id=%s",
|
||||
GetSQLValueString($_POST['contact_id'], "int"),
|
||||
GetSQLValueString($_POST['user_role'], "text"),
|
||||
GetSQLValueString($_POST['project'], "text"),
|
||||
GetSQLValueString($_POST['time_in'], "date"),
|
||||
GetSQLValueString($_POST['time_out'], "date"),
|
||||
GetSQLValueString($_POST['comment'], "text"),
|
||||
GetSQLValueString($_POST['shop_visit_id'], "int"));
|
||||
//"2006-10-12 18:15:00"
|
||||
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
$Result1 = mysql_query($updateSQL, $YBDB) or die(mysql_error());
|
||||
|
||||
header(sprintf("Location: %s",$editFormAction_novisit )); //$editFormAction
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<?php include("include_header.html"); ?>
|
||||
|
||||
<table border="0" cellpadding="1" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left" valign="bottom"><?php echo $error_message;?>
|
||||
Shop ID: <span class="yb_standarditalics"><?php echo $shop_id;?></span>; Location: <span class="yb_standarditalics"><?php echo $shop_location;?></span>; Date: <span class="yb_standarditalics"><?php echo $shop_date;?></span>; Shop Type: <span class="yb_standarditalics"><?php echo $shop_type;?></span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table border="1" cellpadding="1" cellspacing="0" bordercolor="#CCCCCC">
|
||||
<tr bordercolor="#CCCCCC" bgcolor="#99CC33">
|
||||
<td height="35"><strong>Shop User </strong></td>
|
||||
<td height="35" bgcolor="#99CC33"><strong>Status</strong></td>
|
||||
<td width="70" height="35"><strong>Time In </strong></td>
|
||||
<td width="70" height="35"><strong>Time Out </strong></td>
|
||||
<td height="35"><strong>Update Hours </strong></td>
|
||||
<td height="35"><strong>Edit Data </strong></td>
|
||||
</tr>
|
||||
<form method="post" name="form_new" action="<?php echo $editFormAction; ?>">
|
||||
<tr bordercolor="#CCCCCC">
|
||||
<td height="40" valign="bottom"><strong>New User:</strong><br>
|
||||
<span class="yb_standard_small"> Not in the list: Create <a href="<?php echo $page_edit_contact; ?>?contact_id=new_contact&shop_id=<?php echo $shop_id?>">New User</a></span>
|
||||
<?php list_contacts_select_user('contact_id', $new_user_id); ?></td>
|
||||
<td valign="bottom"><strong>
|
||||
<?php list_shop_user_roles('user_role','Personal'); ?>
|
||||
</strong></td>
|
||||
<td valign="bottom"><strong>
|
||||
<?php if($totalRows_Recordset1 <> 0){
|
||||
list_time($shop_start_time,'0000-00-00 00:00:00','time_in',-60,0,'none',16);
|
||||
} else {
|
||||
list_time("{$shop_date} 08:00:00",'0000-00-00 00:00:00','time_in',-15, 0, 'none',16);
|
||||
}
|
||||
?>
|
||||
</strong></td>
|
||||
<td valign="bottom"><img src="150_10.jpg" width="150" height="10" /></td>
|
||||
<td valign="bottom"><input name="Submit" type="submit" value="Sign In" /></td>
|
||||
<td valign="bottom"> </td>
|
||||
</tr>
|
||||
<input type="hidden" name="MM_insert" value="form_new">
|
||||
</form>
|
||||
<tr valign="bottom" bordercolor="#CCCCCC" bgcolor="#99CC33">
|
||||
<td height="25" colspan="6" bgcolor="#99CC33"> Existing Shop Users:</td>
|
||||
</tr>
|
||||
<?php while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)) { //do {
|
||||
if($visit_id == $row_Recordset1['shop_visit_id']) {?>
|
||||
<form method="post" name="FormUpdate_<?php echo $row_Recordset1['shop_visit_id']; ?>" action="<?php echo $editFormAction; ?>">
|
||||
<tr valign="bottom" bordercolor="#CCCCCC" bgcolor="#CCCC33">
|
||||
<td>Edit Record: <br>
|
||||
<?php list_contacts('contact_id', $row_Recordset1['contact_id']); ?></td>
|
||||
<td><?php list_shop_user_roles('user_role', $row_Recordset1['shop_user_role']); ?></td>
|
||||
<td><?php list_time($shop_start_time,'0000-00-00 00:00:00','time_in',-60,0,$row_Recordset1['time_in'],16); ?></td>
|
||||
<td><?php
|
||||
if ($row_Recordset1['time_out'] <> '0000-00-00 00:00:00'){
|
||||
list_time($row_Recordset1['time_in'],$row_Recordset1['time_out'],'time_out',0,1,$row_Recordset1['time_out']);
|
||||
} ?></td>
|
||||
<td><input type="submit" name="Submit" value="Update Changes" /></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr bordercolor="#CCCCCC" bgcolor="#CCCC33">
|
||||
<td colspan="6"><table border="0" cellspacing="0" cellpadding="1">
|
||||
<tr>
|
||||
<td width="125"><div align="right">Project:</div></td>
|
||||
<td><?php list_projects('project', $row_Recordset1['project_id']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><div align="right">Comment:</div></td>
|
||||
<td><input name="comment" type="text" value="<?php echo $row_Recordset1['comment']; ?>" size="90" /></td>
|
||||
</tr>
|
||||
<?php ?>
|
||||
<tr>
|
||||
<td><div align="right">Delete:</div></td>
|
||||
<td>Click to Delete this Shop User's Visit:</td>
|
||||
<?php ?>
|
||||
</tr>
|
||||
</table> </td>
|
||||
</tr>
|
||||
<input type="hidden" name="MM_insert" value="FormEdit">
|
||||
<input type="hidden" name="shop_visit_id" value="<?php echo $row_Recordset1['shop_visit_id']; ?>">
|
||||
</form>
|
||||
<?php } else { //This section executes if it is not the visit_id selected NOT FOR EDIT ?>
|
||||
<form method="post" name="FormUpdate_<?php echo $row_Recordset1['shop_visit_id']; ?>" action="<?php echo $editFormAction; ?>">
|
||||
<tr bordercolor="#CCCCCC">
|
||||
<td><a href="<?php echo "{$page_individual_history_log}?contact_id=" . $row_Recordset1['contact_id']; ?>"><?php echo $row_Recordset1['full_name']; ?></a></td>
|
||||
<td><?php echo $row_Recordset1['shop_user_role']; ?></td>
|
||||
<td><?php echo date_to_time($row_Recordset1['time_in']); ?></td>
|
||||
<td><?php echo list_time($row_Recordset1['time_in'],$row_Recordset1['time_out'],'time_out',0,1,'none', 8,$row_Recordset1['et']); ?></td>
|
||||
<td><?php sign_out($row_Recordset1['time_out'], $row_Recordset1['first_name']); ?></td>
|
||||
<td><?php echo "<a href=\"{$_SERVER['PHP_SELF']}?shop_id={$shop_id}&visit_id={$row_Recordset1['shop_visit_id']}\">edit</a>"; ?></td>
|
||||
</tr>
|
||||
<input type="hidden" name="MM_insert" value="FormUpdate">
|
||||
<input type="hidden" name="shop_visit_id" value="<?php echo $row_Recordset1['shop_visit_id']; ?>">
|
||||
</form>
|
||||
<?php } // if
|
||||
} //while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); // while Recordset1 ?>
|
||||
</table> </tr>
|
||||
<tr>
|
||||
<td height="40" valign="bottom"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p> </p>
|
||||
<?php include("include_footer.html"); ?>
|
||||
<?php
|
||||
mysql_free_result($Recordset1);
|
||||
?>
|
||||
@@ -0,0 +1,38 @@
|
||||
<!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>Welcome to YBP</title>
|
||||
<link href="css_yb_standard.css" rel="stylesheet" type="text/css" />
|
||||
<style type="text/css">
|
||||
<!--
|
||||
.style8 {font-style: italic; font-size: 18px;}
|
||||
-->
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="yb_standard">
|
||||
<table border="0" align="center" cellpadding="1" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><span class="yb_heading2">Welcome to the Austin Yellow Bike Project</span> - The Austin Yellow Bike Project (YBP) is a community supported ALL-VOLUNTEER 501(c)(3) non-profit organization dedicated to providing human-powered transportation for the people of Austin, running a community bike shop, and educating kids and adults. </p>
|
||||
<p><span class="yb_heading3red">This is Your Community Bike Shop; it is free of charge and open to the public</span>, providing a space for people to work on bikes, and learn bike mechanics skills.</p>
|
||||
<p>YBP is an All-Volunteer Organization that is supported through volunteer time, parts donations, and monetary donations. Those who use the shop should understand their responsibility to give back by volunteering time and/or cash to keep YBP a thriving community project. <span class="yb_heading3red">We recommend a $5 donation for personal use of the shop</span>, or volunteer time equivalent to the time used for personal projects. Cash donations are used to supply the shop with replacement tools, grease, oil, and other basic necessities, as well as going towards acquiring a permanent shop space for the project. </p>
|
||||
<p><span class="yb_heading3red">We encourage shop users to volunteer their time</span><span class="yb_standard"> toward current projects or consider getting more involved by becoming a coordinator. As a coordinator you can help expand the hours that the shop is open each week. Every thing done at Yellow Bike from sorting parts to running the shop, answering emails, organizing events, creating media releases, and planning for the future of Yellow Bike is done entirely by volunteers. Everyone is welcome to get as involved as they like in the positive work and vision of The Yellow Bike Project. Coordinators can answer any questions about volunteering at Yellow Bike and share their personal experiences.</span></p>
|
||||
<p>As this is a Community Space and others will use it after you, <span class="yb_heading3red">please make sure that your workspace is clean</span> and all tools used are back in their proper place before leaving. </p>
|
||||
<p>So, find a Coordinator and ask them any questions, have a look around, and enjoy the shop.</p>
|
||||
<table width="400" height="40" border="1" align="center" cellpadding="1" cellspacing="0">
|
||||
<tr align="center">
|
||||
<td><span class="style8"><a href="shop_log.php">Sign In</a> to Get Started<br />
|
||||
</span><span class="yb_standardCENTERred">talk to a coordinator</span></td>
|
||||
<td><span class="style8"><a href="shop_log.php">Sign Out</a> Before Leaving<br />
|
||||
</span><span class="yb_standardCENTERred">workspace cleaned up?</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p><span class="yb_pagetitle">Learn More</span> <br />
|
||||
<span class="yb_heading3red">Giving Back:</span> <a href="http://www.austinyellowbike.org/yb_participate.htm" target="_blank">Volunteering at YBP</a> | <a href="http://www.austinyellowbike.org/yb_services.htm" target="_blank">Volunteer Shops</a> | <a href="http://www.austinyellowbike.org/yb_projects.htm" target="_blank">Projects</a> | <a href="http://www.austinyellowbike.org/yb_bikes.htm" target="_blank">Earn-A-Bike</a> | <a href="http://www.austinyellowbike.org/yb_donate.htm" target="_blank">Donating Online</a><br />
|
||||
<span class="yb_heading3red">YBP Info:</span> <a href="http://www.austinyellowbike.org/yb_about_ybp.htm" target="_blank">Yellow Bike Home Page</a> | <a href="http://www.austinyellowbike.org/yb_about_ybp.htm" target="_blank">About YBP</a> | <a href="http://www.austinyellowbike.org/yb_calendar.html" target="_blank">Calendar</a> | <a href="http://www.austinyellowbike.org/yb_newsletters.htm" target="_blank">Monthly Newsletter</a> | <a href="http://www.austinyellowbike.org/yb_services.htm" target="_blank">Community Bike Shop Services</a> </p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user