Browse Source

Created a new table 'options' to store interest inventory values

also ..
1). zip to Zip Code .. some day will need to make international
2) changed Fill-in Form to "Check them out!" for volunteer interest .. subject to real world testing.
devel
Jonathan Rosenbaum 10 years ago
parent
commit
cf3cfe8838
  1. 3
      Connections/database_functions.php
  2. 2
      Connections/volunteer_interest_form_introduction.txt
  3. 5
      contact_add_edit.php
  4. 11
      sql/populate.sql

3
Connections/database_functions.php

@ -58,8 +58,9 @@ $volunteer_interests = array(
"Repairing Bikes", "Organizing Volunteers", "Serving as a Board Member",
"Arranging Events", "Volunteering at Events", "Writing Grants",
"Answering our Phone", "Fundraising", "Bicycle Valeting",
"Publicizing", "Graphic Design", "Greeter at the Front Desk",
"Publicizing/Outreach", "Graphic Design", "Greeter at the Front Desk",
"Accounting/Record Keeping", "Ordering parts/supplies", "Picking up Donated Bikes/Parts",
"Teaching classes", "League Certified Instructor", "Pricing bikes",
"Fabricating", "Open Source Programming", "Other/Contact me for general help",
);

2
Connections/volunteer_interest_form_introduction.txt

@ -1 +1 @@
Positive Spin is a volunteer organization. Your volunteered time, and our ability to benefit the community with our exciting services and programs are directly related. Please indicate if you would be interested in helping us with any of the following management, operations, events and programs:
Positive Spin is a volunteer-run organization. Your volunteered time, and our ability to benefit the community with our exciting services and programs are directly related. Please indicate if you would be interested in helping us with any of the following management, operations, events and programs:

5
contact_add_edit.php

@ -188,7 +188,7 @@ $totalRows_Recordset1 = mysql_num_rows($Recordset1);
<td><input id="state_abbreviation" name="state" type="text" value="<?php echo $row_Recordset1['state']; ?>" size="2" maxlength="2"></td>
</tr>
<tr >
<td><label class="contacts">zip:</label></td>
<td><label class="contacts">Zip Code:</label></td>
<td><input id="zip" type="text" name="zip" value="<?php echo $row_Recordset1['zip']; ?>" size="10"></td>
</tr>
<tr>
@ -245,7 +245,8 @@ $totalRows_Recordset1 = mysql_num_rows($Recordset1);
<?php } ?>
</table>
</div>
<input type="submit" id="interest_form_button" value="Fill-in Form" \>
<!-- Fill-in Form -->
<input type="submit" id="interest_form_button" value="Check them out!" \>
</td>
</tr>
<?php } ?>

11
sql/populate.sql

@ -193,3 +193,14 @@ ALTER TABLE transaction_log ADD change_fund float DEFAULT NULL;
ALTER TABLE transaction_log ADD anonymous tinyint(1) NOT NULL DEFAULT '0';
ALTER TABLE transaction_log ADD history longblob NOT NULL;
ALTER TABLE transaction_log MODIFY description text(2048) DEFAULT NULL;
-- options
-- some what borrowed from WordPress
-- Currently just for variable values like found in the Volunteer Interest inventory
-- where values may be 0 or 1 or text.
CREATE TABLE IF NOT EXISTS options (
id int(10) unsigned NOT NULL,
option_name varchar(64) NOT NULL,
option_value text NOT NULL,
PRIMARY KEY (option_name)
);

Loading…
Cancel
Save