Browse Source

Fixes the css issue for contact_add_edit.

devel
Jonathan Rosenbaum 10 years ago
parent
commit
62231e8d68
  1. 2
      Connections/database_functions.php
  2. 33
      Connections/waiver.txt
  3. 15
      contact_add_edit.php
  4. 6
      css/contacts.css
  5. 1
      include_header.html
  6. 46
      include_header_contacts.html
  7. 2
      js/contact.js

2
Connections/database_functions.php

@ -60,7 +60,7 @@ $volunteer_interests = array(
"Answering our Phone", "Fundraising", "Bicycle Valeting",
"Publicizing", "Graphic Design", "Working at the Front Desk",
"Accounting/Record Keeping", "Ordering parts/supplies", "Picking up Donated Bikes/Parts",
"Fabricating", "Open Source Programming", "Other/Contact me for general help"
"Fabricating", "Open Source Programming", "Other/Contact me for general help",
);
// Provide a comment box - true of false

33
Connections/waiver.txt

@ -1,16 +1,17 @@
I, and my heirs, in consideration of my participation in the Positive Spin Community
Bike Project's Open Workshop hereby release Positive Spin,
its officers, directors and agents, and any other people officially connected with this
organization, from any and all liability for damage to or loss of personal
property, sickness, or injury from whatever source, legal entanglements, imprisonment,
death, or loss of money, which might occur while participating in said event/activity/class.
Specifically, I release Positive Spin from any liability or
responsibility for my personal well-being, condition of tools and equipment provided
and produced thereof, including, but not limited to, bicycles and modes of transportation
produced by participants. The Positive Spin Community Bike Project is a working,
mechanical environment and I am aware of the risks of participation. I hereby state
that I am in sufficient physical condition to accept a rigorous level of physical
activity and exertion, as is sometimes the case when working in a mechanical environment.
I understand that participation in this program is strickly voluntary and I
freely chose to participate. I understand Positive Spin does not provide medical coverage for me.
I verify that I will be responsible for any medical costs I incur as a result of my participation.
I, and my heirs, in consideration of my participation with Positive Spin
Incorporated hereby release Positive Spin Incorporated, its officers, directors
and agents, and any other people officially connected with this organization,
from any and all liability for damage to or loss of personal property, sickness, or injury from whatever source, legal entanglements, imprisonment, death, or
loss of money, which might occur while participating in said
event/activity/class. Specifically, I release Positive Spin Incorporated from
any liability or responsibility for my personal well-being, condition of tools
and equipment provided and produced thereof, including, but not limited to,
bicycles and modes of transportation produced by participants. Positive Spin
Incorporated provides a working,mechanical environment and I am aware of the
risks of participation. I hereby state that I am in sufficient physical
condition to accept a rigorous level of physical activity and exertion, as is
sometimes the case when working in a mechanical environment. I understand that
participation in this program is strickly voluntary and I freely chose to
participate. I understand Positive Spin Incorporated does not provide medical
coverage for me. I verify that I will be responsible for any medical costs I
incur as a result of my participation.

15
contact_add_edit.php

@ -122,7 +122,7 @@ $row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<?php include("include_header.html"); ?>
<?php include("include_header_contacts.html"); ?>
<table>
<tr valign="top">
@ -224,10 +224,13 @@ $totalRows_Recordset1 = mysql_num_rows($Recordset1);
$columns = 3;
$c = 0;
$interest_count = count($volunteer_interests);
while($rows < $interest_count + 1) {
echo "<tr>";
for($i = $rows - $columns; $i < $rows; $i++) {
echo "<td><input value='$volunteer_interests[$i]' type='checkbox'>" . $volunteer_interests[$i] . "</td>";
while($rows < $interest_count + 3) {
echo "<tr>";
for($i = $rows - $columns; $i < $rows; $i++) {
if($volunteer_interests[$i]) {
echo "<td><input value='$volunteer_interests[$i]' type='checkbox'>" . $volunteer_interests[$i] . "</td>";
}
}
echo "</tr>";
$rows = $rows + $columns;
@ -236,7 +239,7 @@ $totalRows_Recordset1 = mysql_num_rows($Recordset1);
<?php if($volunteer_interest_comments) { ?>
<tr><td>&nbsp;</td></tr>
<tr>
<td colspan="2"><label id="contact_comment">Comments</label>
<td class="center_comment" colspan="2"><label id="contact_comment">Comments</label>
<textarea name="comment" cols="45" rows="3"></textarea></td>
</tr>
<?php } ?>

6
css/contacts.css

@ -3,12 +3,18 @@
text-align: right;
width: 161px;
font-weight: bold;
padding-right: 5px;
}
.contact_comment {
display: inline-block;
}
/* center label with textarea */
.center_comment * {
vertical-align: middle;
}
#interest_form {
padding: 10px;
display: block;

1
include_header.html

@ -15,7 +15,6 @@ function resetTimer()
}
</script>
<!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>

46
include_header_contacts.html

@ -0,0 +1,46 @@
<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*240) //Shop welcome after 240 seconds of inactivity
}
</script>
<!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>
<link href="css/contacts.css" rel="stylesheet" type="text/css" />
<link href="css/css_yb_standard.css" rel="stylesheet" type="text/css" />
<link href="css/jquery.nouislider.css" rel="stylesheet" type="text/css" />
<link href="css/chosen.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-2.1.1.js"></script>
<script src="js/contact.js"></script>
<script src="js/jquery.mask.js"></script>
<script src="js/jquery.jeditable.js"></script>
<script src="js/jquery.nouislider.js"></script>
<script src="js/chosen.jquery.js"></script>
<script src="js/jquery.liblink.js"></script>
<script src="js/wNumb.js"></script>
</head>
<body class="yb_standard">
<table align="center" width="1000" border="0" cellpadding="1" cellspacing="0">
<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">Add/Edit Contact</a> | <a href="/stats.php">Statistics</a> | <a href="/transaction_log.php">Transaction Log</a> | <a href="http://www.positivespin.org/home2/" target="_blank">PS Home</a></td>
</tr>
<tr>
<td>

2
js/contact.js

@ -1,6 +1,8 @@
$(function(){
"use strict";
$.ajaxSetup({async:false});
var contact_id = $("#contact_id").val();
var birth_date = $("#birth_date");

Loading…
Cancel
Save