Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More POST to GET - Help Sections - Lightbox Help Sections

Transformed more search tools from POST to GET.  Parsed through the
help sections again for grammatical errors.  Installed/implemented
jQuery, but yet to resolve the conflict with (legacy)Prototype.
Installed add-on module for jQuery known as PrettyPhoto, for lightbox
inclusion.  Continued to complete new Skin for DemoClub.
  • Loading branch information...
commit ba61fbf61953c0634cb762bacdaf362f889256ab 1 parent 5428cb0
@wegenern wegenern authored
Showing with 14,924 additions and 5,357 deletions.
  1. +234 −230 admin/add_scheduling_policy.php
  2. +211 −207 admin/add_skill_range_policy.php
  3. +156 −156 admin/player_lookup.php
  4. +170 −0 css/prettyPhoto.css
  5. +5 −5 help/box_leagues.html
  6. +2 −4 help/club_ladders.html
  7. +97 −102 help/scheduling_policies_explained.html
  8. +90 −91 help/skill_range_policies_explained.html
  9. +63 −31 help/squash-rankings.html
  10. BIN  images/prettyPhoto/dark_rounded/btnNext.png
  11. BIN  images/prettyPhoto/dark_rounded/btnPrevious.png
  12. BIN  images/prettyPhoto/dark_rounded/contentPattern.png
  13. BIN  images/prettyPhoto/dark_rounded/default_thumbnail.gif
  14. BIN  images/prettyPhoto/dark_rounded/loader.gif
  15. BIN  images/prettyPhoto/dark_rounded/sprite.png
  16. BIN  images/prettyPhoto/dark_square/btnNext.png
  17. BIN  images/prettyPhoto/dark_square/btnPrevious.png
  18. BIN  images/prettyPhoto/dark_square/contentPattern.png
  19. BIN  images/prettyPhoto/dark_square/default_thumbnail.gif
  20. BIN  images/prettyPhoto/dark_square/loader.gif
  21. BIN  images/prettyPhoto/dark_square/sprite.png
  22. BIN  images/prettyPhoto/default/default_thumb.png
  23. BIN  images/prettyPhoto/default/loader.gif
  24. BIN  images/prettyPhoto/default/sprite.png
  25. BIN  images/prettyPhoto/default/sprite_next.png
  26. BIN  images/prettyPhoto/default/sprite_prev.png
  27. BIN  images/prettyPhoto/default/sprite_x.png
  28. BIN  images/prettyPhoto/default/sprite_y.png
  29. BIN  images/prettyPhoto/facebook/btnNext.png
  30. BIN  images/prettyPhoto/facebook/btnPrevious.png
  31. BIN  images/prettyPhoto/facebook/contentPatternBottom.png
  32. BIN  images/prettyPhoto/facebook/contentPatternLeft.png
  33. BIN  images/prettyPhoto/facebook/contentPatternRight.png
  34. BIN  images/prettyPhoto/facebook/contentPatternTop.png
  35. BIN  images/prettyPhoto/facebook/default_thumbnail.gif
  36. BIN  images/prettyPhoto/facebook/loader.gif
  37. BIN  images/prettyPhoto/facebook/sprite.png
  38. BIN  images/prettyPhoto/light_rounded/btnNext.png
  39. BIN  images/prettyPhoto/light_rounded/btnPrevious.png
  40. BIN  images/prettyPhoto/light_rounded/default_thumbnail.gif
  41. BIN  images/prettyPhoto/light_rounded/loader.gif
  42. BIN  images/prettyPhoto/light_rounded/sprite.png
  43. BIN  images/prettyPhoto/light_square/btnNext.png
  44. BIN  images/prettyPhoto/light_square/btnPrevious.png
  45. BIN  images/prettyPhoto/light_square/default_thumbnail.gif
  46. BIN  images/prettyPhoto/light_square/loader.gif
  47. BIN  images/prettyPhoto/light_square/sprite.png
  48. +65 −114 includes/include_reservation_doubles.php
  49. +54 −98 includes/include_reservation_singles.php
  50. +19 −0 js/jquery-1.3.2.min.js
  51. +167 −0 js/jquery-1.4.4.min.js
  52. +18 −0 js/jquery-1.6.1.min.js
  53. +4 −0 js/jquery-1.7.1.min.js
  54. +9,300 −0 js/jquery-1.7.js
  55. +81 −0 js/jquery.prettyPhoto.js
  56. +60 −30 lib/applicationlib.php
  57. +184 −225 templates/add_scheduling_policy_form.php
  58. +159 −194 templates/add_skill_range_policy_form.php
  59. +11 −0 templates/footer_yui.php
  60. +19 −7 templates/header_yui.php
  61. +2 −2 templates/login_form.php
  62. +150 −184 templates/player_info_form.php
  63. +461 −461 templates/player_ladder_form.php
  64. +50 −87 templates/player_lookup_form.php
  65. +156 −175 templates/reservation_form.php
  66. +514 −514 templates/team_ladder_form.php
  67. +7 −10 users/ajaxServer.php
  68. +1,684 −1,693 users/court_reservation.php
  69. +86 −92 users/player_info.php
  70. +296 −293 users/player_ladder.php
  71. +48 −51 users/player_lookup.php
  72. +301 −301 users/player_rankings.php
View
464 admin/add_scheduling_policy.php
@@ -1,231 +1,235 @@
-<?
-
-
-include("../application.php");
-require_login();
-require_priv("2");
-
-$DOC_TITLE = "Scheduling Policy Setup";
-$buttonLabel = "Add Scheduling Policy";
-
-$policyid = $_REQUEST["policyid"];
-
-//If a policy id was passed in, then load it up.
-if( !empty($policyid) ) {
- $schedulePolicy = load_reservation_policy($policyid);
- $buttonLabel = "Update Scheduling Policy";
-}
-
-
-
-/* form has been submitted, try to create the new role */
-if (match_referer() && isset($_POST['submitme'])) {
-
- $frm = $_POST;
- $errormsg = validate_form($frm, $errors);
- $wwwroot = $_SESSION["CFG"]["wwwroot"];
-
-
- if ( empty($errormsg)) {
- insert_hours_policy($frm);
- header ("Location: $wwwroot/admin/policy_preferences.php#schedule");
- die;
- }
-
-
-}
-
-elseif(isset($_POST['back'])) {
- $wwwroot = $_SESSION["CFG"]["wwwroot"];
- header ("Location: $wwwroot/admin/policy_preferences.php");
-}
-
-include($_SESSION["CFG"]["templatedir"]."/header_yui.php");
-include($_SESSION["CFG"]["templatedir"]."/add_scheduling_policy_form.php");
-include($_SESSION["CFG"]["templatedir"]."/footer_yui.php");
-
-/******************************************************************************
- * FUNCTIONS
- *****************************************************************************/
-
-function validate_form(&$frm, &$errors) {
-
-
- $errors = new Object;
- $msg = "";
-
- if( isset($frm["starttime"]) ){
- $startTimeArray = explode (":", $frm["starttime"]);
- }
- if( isset($frm["endtime"]) ){
- $endTimeArray = explode (":", $frm["endtime"]);
- }
-
-
- //Make sure that they selected everything
- if (empty($frm["name"])) {
-
- $msg .= "You did not specify a policy name.";
- $errors->name = true;
- }
- elseif (empty($frm["courtid"])) {
-
- $msg .= "You did not specify a court.";
- $errors->courtid = true;
- }
- elseif ($frm["dow"]=="") {
-
- $msg .= "You did not specify a day of the week.";
- $errors->dow = true;
- }
-
- elseif ( !empty($frm["reservationwindow"]) && empty($frm["starttime"]) ){
-
- $msg .= "You did not specify a start time.";
- $errors->starttime = true;
-
- }
- elseif ( !empty($frm["reservationwindow"]) && empty($frm["endtime"]) ) {
-
- $msg .= "You did not specify an end time.";
- $errors->endtime = true;
-
- }
- //Validate that the start is before end
- elseif (isset($startTimeArray) && isset($endTimeArray) && $startTimeArray[0] > $endTimeArray[0] ){
-
- $msg .= "The start time needs to occur before the end time.";
- $errors->startime = true;
- }
-
- return $msg;
-
-
-}
-
-function get_sitecourts_dropdown($siteid){
-
- $query = "SELECT courtid, courtname
- FROM tblCourts
- WHERE siteid = $siteid
- AND enable =1";
-
- return db_query($query);
-
-}
-
-function get_dow_dropdown(){
-
- $query = "SELECT dayid, name
- FROM tblDays";
-
- return db_query($query);
-
-}
-
-function get_scheduling_policy_types(){
-
- $query = "SELECT id, policytypename
- FROM tblSchedulingPolicyType ";
-
- return db_query($query);
-
-}
-
-
-function insert_hours_policy(&$frm) {
-/* add the new user into the database */
-
-
-// Strip Slashes
-if(get_magic_quotes_gpc()){
- $description=stripslashes($frm['description']);
-
-}else{
- $description=addslashes($frm['description']);
-}
-
-
-if($frm['courtid']=="all"){
- $courtid = "NULL";
-}else{
- $courtid = $frm['courtid'];
-}
-
-if($frm['dow']=="all"){
- $dayid = "NULL";
-}else{
- $dayid = $frm['dow'];
-
-}
-
-if($frm['allowlooking']=="yes"){
- $allowlooking = 'y';
-}
-else{
- $allowlooking = 'n';
-}
-
-// Back to Back
-if($frm['back2back']=="yes"){
- $allowback2back = 'y';
-}
-else{
- $allowback2back = 'n';
-}
-
-if(!isset($frm['reservationwindow'])){
-
- $starttime = "NULL";
- $endtime = "NULL";
-
-}else{
-
- $starttime = "'$frm[starttime]'";
- $endtime = "'$frm[endtime]'";
-}
-
- //If this is the case, then we're updating an existing policy
- if( !empty($frm['policyid'] )) {
-
- if( isDebugEnabled(1) ) logMessage("add_scheduling_policy.insert_hours_policy: Updating scheduling policy ".$frm['policyid'] );
-
- $query = "UPDATE tblSchedulingPolicy SET
- policyname = '$frm[name]'
- ,description = '$description'
- ,schedulelimit = '$frm[limit]'
- ,dayid = $dayid
- ,courtid = $courtid
- ,siteid = ". get_siteid()."
- ,allowlooking = '$allowlooking'
- ,allowback2back = '$allowback2back'
- ,starttime = $starttime
- ,endtime = $endtime
- WHERE policyid = '$frm[policyid]'";
-
- }else{
-
- if( isDebugEnabled(1) ) logMessage("add_scheduling_policy.insert_hours_policy: Adding new scheduling policy ");
-
- $query = "INSERT INTO tblSchedulingPolicy (
- policyname, description,schedulelimit,dayid,courtid,siteid,allowlooking,allowback2back,starttime,endtime
- ) VALUES (
- '$frm[name]'
- ,'$frm[description]'
- ,$frm[limit]
- ,$dayid
- ,$courtid
- ,".get_siteid()."
- ,'$allowlooking'
- ,'$allowback2back'
- ,$starttime
- ,$endtime)";
- }
-
-
- // run the query on the database
- $result = db_query($query);
-
-}
-
+<?php
+
+include("../application.php");
+require_login();
+require_priv("2");
+
+// Include jQuery
+define("_JQUERY_",true);
+// Include PrettyPhoto
+define("_PRETTYPHOTO_",true);
+
+$DOC_TITLE = "Scheduling Policy Setup";
+$buttonLabel = "Add Scheduling Policy";
+
+$policyid = $_REQUEST["policyid"];
+
+//If a policy id was passed in, then load it up.
+if( !empty($policyid) ) {
+ $schedulePolicy = load_reservation_policy($policyid);
+ $buttonLabel = "Update Scheduling Policy";
+}
+
+
+
+/* form has been submitted, try to create the new role */
+if (match_referer() && isset($_POST['submitme'])) {
+
+ $frm = $_POST;
+ $errormsg = validate_form($frm, $errors);
+ $wwwroot = $_SESSION["CFG"]["wwwroot"];
+
+
+ if ( empty($errormsg)) {
+ insert_hours_policy($frm);
+ header ("Location: $wwwroot/admin/policy_preferences.php#schedule");
+ die;
+ }
+
+
+}
+
+elseif(isset($_POST['back'])) {
+ $wwwroot = $_SESSION["CFG"]["wwwroot"];
+ header ("Location: $wwwroot/admin/policy_preferences.php");
+}
+
+include($_SESSION["CFG"]["templatedir"]."/header_yui.php");
+include($_SESSION["CFG"]["templatedir"]."/add_scheduling_policy_form.php");
+include($_SESSION["CFG"]["templatedir"]."/footer_yui.php");
+
+/******************************************************************************
+ * FUNCTIONS
+ *****************************************************************************/
+
+function validate_form(&$frm, &$errors) {
+
+
+ $errors = new Object;
+ $msg = "";
+
+ if( isset($frm["starttime"]) ){
+ $startTimeArray = explode (":", $frm["starttime"]);
+ }
+ if( isset($frm["endtime"]) ){
+ $endTimeArray = explode (":", $frm["endtime"]);
+ }
+
+
+ //Make sure that they selected everything
+ if (empty($frm["name"])) {
+
+ $msg .= "You did not specify a policy name.";
+ $errors->name = true;
+ }
+ elseif (empty($frm["courtid"])) {
+
+ $msg .= "You did not specify a court.";
+ $errors->courtid = true;
+ }
+ elseif ($frm["dow"]=="") {
+
+ $msg .= "You did not specify a day of the week.";
+ $errors->dow = true;
+ }
+
+ elseif ( !empty($frm["reservationwindow"]) && empty($frm["starttime"]) ){
+
+ $msg .= "You did not specify a start time.";
+ $errors->starttime = true;
+
+ }
+ elseif ( !empty($frm["reservationwindow"]) && empty($frm["endtime"]) ) {
+
+ $msg .= "You did not specify an end time.";
+ $errors->endtime = true;
+
+ }
+ //Validate that the start is before end
+ elseif (isset($startTimeArray) && isset($endTimeArray) && $startTimeArray[0] > $endTimeArray[0] ){
+
+ $msg .= "The start time needs to occur before the end time.";
+ $errors->startime = true;
+ }
+
+ return $msg;
+
+
+}
+
+function get_sitecourts_dropdown($siteid){
+
+ $query = "SELECT courtid, courtname
+ FROM tblCourts
+ WHERE siteid = $siteid
+ AND enable =1";
+
+ return db_query($query);
+
+}
+
+function get_dow_dropdown(){
+
+ $query = "SELECT dayid, name
+ FROM tblDays";
+
+ return db_query($query);
+
+}
+
+function get_scheduling_policy_types(){
+
+ $query = "SELECT id, policytypename
+ FROM tblSchedulingPolicyType ";
+
+ return db_query($query);
+
+}
+
+
+function insert_hours_policy(&$frm) {
+/* add the new user into the database */
+
+
+// Strip Slashes
+if(get_magic_quotes_gpc()){
+ $description=stripslashes($frm['description']);
+
+}else{
+ $description=addslashes($frm['description']);
+}
+
+
+if($frm['courtid']=="all"){
+ $courtid = "NULL";
+}else{
+ $courtid = $frm['courtid'];
+}
+
+if($frm['dow']=="all"){
+ $dayid = "NULL";
+}else{
+ $dayid = $frm['dow'];
+
+}
+
+if($frm['allowlooking']=="yes"){
+ $allowlooking = 'y';
+}
+else{
+ $allowlooking = 'n';
+}
+
+// Back to Back
+if($frm['back2back']=="yes"){
+ $allowback2back = 'y';
+}
+else{
+ $allowback2back = 'n';
+}
+
+if(!isset($frm['reservationwindow'])){
+
+ $starttime = "NULL";
+ $endtime = "NULL";
+
+}else{
+
+ $starttime = "'$frm[starttime]'";
+ $endtime = "'$frm[endtime]'";
+}
+
+ //If this is the case, then we're updating an existing policy
+ if( !empty($frm['policyid'] )) {
+
+ if( isDebugEnabled(1) ) logMessage("add_scheduling_policy.insert_hours_policy: Updating scheduling policy ".$frm['policyid'] );
+
+ $query = "UPDATE tblSchedulingPolicy SET
+ policyname = '$frm[name]'
+ ,description = '$description'
+ ,schedulelimit = '$frm[limit]'
+ ,dayid = $dayid
+ ,courtid = $courtid
+ ,siteid = ". get_siteid()."
+ ,allowlooking = '$allowlooking'
+ ,allowback2back = '$allowback2back'
+ ,starttime = $starttime
+ ,endtime = $endtime
+ WHERE policyid = '$frm[policyid]'";
+
+ }else{
+
+ if( isDebugEnabled(1) ) logMessage("add_scheduling_policy.insert_hours_policy: Adding new scheduling policy ");
+
+ $query = "INSERT INTO tblSchedulingPolicy (
+ policyname, description,schedulelimit,dayid,courtid,siteid,allowlooking,allowback2back,starttime,endtime
+ ) VALUES (
+ '$frm[name]'
+ ,'$frm[description]'
+ ,$frm[limit]
+ ,$dayid
+ ,$courtid
+ ,".get_siteid()."
+ ,'$allowlooking'
+ ,'$allowback2back'
+ ,$starttime
+ ,$endtime)";
+ }
+
+
+ // run the query on the database
+ $result = db_query($query);
+
+}
+
?>
View
418 admin/add_skill_range_policy.php
@@ -1,208 +1,212 @@
-<?
-
-
-include("../application.php");
-require_login();
-require_priv("2");
-
-$DOC_TITLE = "Skill Range Policy Setup";
-$buttonLabel = "Add Skill Range Policy";
-
-//This puppy will be set when editing a policy
-$policyid = $_REQUEST["policyid"];
-if( !empty($policyid) ) {
- $skillRangePolicy = load_skill_range_policy($policyid);
- $buttonLabel = "Update Skill Range Policy";
-}
-
-
-/* form has been submitted, try to create the new role */
-if (match_referer() && isset($_POST['submitme'])) {
-
- $frm = $_POST;
- $errormsg = validate_form($frm, $errors);
- $wwwroot = $_SESSION["CFG"]["wwwroot"];
-
- if ( empty($errormsg) ) {
- insert_skill_range_policy($frm);
- $wwwroot = $_SESSION["CFG"]["wwwroot"];
- header ("Location: $wwwroot/admin/policy_preferences.php#skill");
-
- }
-
-}
-
-elseif(isset($_POST['back'])) {
- $wwwroot = $_SESSION["CFG"]["wwwroot"];
- header ("Location: $wwwroot/admin/policy_preferences.php");
-}
-
-elseif( isset($_POST['skillpolicyid']) ){
- $policy = load_skill_range_policy($_POST['skillpolicyid']);
-}
-
-include($_SESSION["CFG"]["templatedir"]."/header_yui.php");
-include($_SESSION["CFG"]["templatedir"]."/add_skill_range_policy_form.php");
-include($_SESSION["CFG"]["templatedir"]."/footer_yui.php");
-
-/******************************************************************************
- * FUNCTIONS
- *****************************************************************************/
-
-function validate_form(&$frm, &$errors) {
-
-
- $errors = new Object;
- $msg = "";
-
- if( isset($frm["starttime"]) ){
- $startTimeArray = explode (":", $frm["starttime"]);
- }
- if( isset($frm["endtime"]) ){
- $endTimeArray = explode (":", $frm["endtime"]);
- }
-
-
- //Make sure that they selected everything
- if (empty($frm["name"])) {
-
- $msg .= "You did not specify a policy name.";
- $errors->name = true;
- }
- elseif (empty($frm["description"])) {
-
- $msg .= "You did not specify a description.";
- $errors->description = true;
- }
- elseif (empty($frm["skillrange"])) {
-
- $msg .= "You did not specify a skill range.";
- $errors->skillrange = true;
- }
- elseif (empty($frm["courtid"])) {
-
- $msg .= "You did not specify a court.";
- $errors->courtid = true;
- }
- elseif ($frm["dow"]=="") {
-
- $msg .= "You did not specify a day of the week.";
- $errors->dow = true;
- }
-
- elseif ( !empty($frm["reservationwindow"]) && empty($frm["starttime"]) ){
-
- $msg .= "You did not specify a start time.";
- $errors->starttime = true;
-
- }
- elseif ( !empty($frm["reservationwindow"]) && empty($frm["endtime"]) ) {
-
- $msg .= "You did not specify an end time.";
- $errors->endtime = true;
- }
- //Validate that the start is before end
- elseif (isset($startTimeArray) && isset($endTimeArray) && $startTimeArray[0] > $endTimeArray[0] ){
-
- $msg .= "The start time needs to occur before the end time.";
- $errors->window = true;
- }
-
- return $msg;
-
-
-}
-
-function get_sitecourts_dropdown($siteid){
-
- $query = "SELECT courtid, courtname
- FROM tblCourts
- WHERE siteid = $siteid
- AND enable =1";
-
- return db_query($query);
-
-}
-
-function get_dow_dropdown(){
-
- $query = "SELECT dayid, name
- FROM tblDays";
-
- return db_query($query);
-
-}
-
-
-function insert_skill_range_policy(&$frm) {
-
-
- // Strip Slashes
- if(get_magic_quotes_gpc()){
- $description=stripslashes($frm['description']);
-
- }else{
- $description=addslashes($frm['description']);
- }
-
- if($frm['courtid']=="all"){
- $courtid = "NULL";
- }else{
- $courtid = $frm['courtid'];
- }
-
- if($frm['dow']=="all"){
- $dayid = "NULL";
- }else{
- $dayid = $frm['dow'];
-
- }
-
- if(!isset($frm['reservationwindow'])){
- $alltimes = 'y';
- $starttime = "NULL";
- $endtime = "NULL";
-
- }else{
- $alltimes = 'n';
- $starttime = "'$frm[starttime]'";
- $endtime = "'$frm[endtime]'";
- }
-
-
-
- //If this is the case, then we're updating an existing policy
- if( !empty($frm['policyid'] )) {
-
- $query = "UPDATE tblSkillRangePolicy SET
- policyname = '$frm[name]'
- ,description = '$description'
- ,skillrange = '$frm[skillrange]'
- ,dayid = $dayid
- ,courtid = $courtid
- ,siteid = ". get_siteid()."
- ,starttime = $starttime
- ,endtime = $endtime
- WHERE policyid = '$frm[policyid]'";
-
- }else{
- $query = "INSERT INTO tblSkillRangePolicy (
- policyname, description, skillrange, dayid, courtid, siteid, starttime, endtime
- ) VALUES (
- '$frm[name]'
- ,'$description'
- ,'$frm[skillrange]'
- ,$dayid
- ,$courtid
- ,".get_siteid()."
- ,$starttime
- ,$endtime)";
-
- }
-
- // run the query on the database
- $result = db_query($query);
-
-}
-
+<?php
+
+include("../application.php");
+require_login();
+require_priv("2");
+
+// Include jQuery
+define("_JQUERY_",true);
+// Include PrettyPhoto
+define("_PRETTYPHOTO_",true);
+
+$DOC_TITLE = "Skill Range Policy Setup";
+$buttonLabel = "Add Skill Range Policy";
+
+//This puppy will be set when editing a policy
+$policyid = $_REQUEST["policyid"];
+if( !empty($policyid) ) {
+ $skillRangePolicy = load_skill_range_policy($policyid);
+ $buttonLabel = "Update Skill Range Policy";
+}
+
+
+/* form has been submitted, try to create the new role */
+if (match_referer() && isset($_POST['submitme'])) {
+
+ $frm = $_POST;
+ $errormsg = validate_form($frm, $errors);
+ $wwwroot = $_SESSION["CFG"]["wwwroot"];
+
+ if ( empty($errormsg) ) {
+ insert_skill_range_policy($frm);
+ $wwwroot = $_SESSION["CFG"]["wwwroot"];
+ header ("Location: $wwwroot/admin/policy_preferences.php#skill");
+
+ }
+
+}
+
+elseif(isset($_POST['back'])) {
+ $wwwroot = $_SESSION["CFG"]["wwwroot"];
+ header ("Location: $wwwroot/admin/policy_preferences.php");
+}
+
+elseif( isset($_POST['skillpolicyid']) ){
+ $policy = load_skill_range_policy($_POST['skillpolicyid']);
+}
+
+include($_SESSION["CFG"]["templatedir"]."/header_yui.php");
+include($_SESSION["CFG"]["templatedir"]."/add_skill_range_policy_form.php");
+include($_SESSION["CFG"]["templatedir"]."/footer_yui.php");
+
+/******************************************************************************
+ * FUNCTIONS
+ *****************************************************************************/
+
+function validate_form(&$frm, &$errors) {
+
+
+ $errors = new Object;
+ $msg = "";
+
+ if( isset($frm["starttime"]) ){
+ $startTimeArray = explode (":", $frm["starttime"]);
+ }
+ if( isset($frm["endtime"]) ){
+ $endTimeArray = explode (":", $frm["endtime"]);
+ }
+
+
+ //Make sure that they selected everything
+ if (empty($frm["name"])) {
+
+ $msg .= "You did not specify a policy name.";
+ $errors->name = true;
+ }
+ elseif (empty($frm["description"])) {
+
+ $msg .= "You did not specify a description.";
+ $errors->description = true;
+ }
+ elseif (empty($frm["skillrange"])) {
+
+ $msg .= "You did not specify a skill range.";
+ $errors->skillrange = true;
+ }
+ elseif (empty($frm["courtid"])) {
+
+ $msg .= "You did not specify a court.";
+ $errors->courtid = true;
+ }
+ elseif ($frm["dow"]=="") {
+
+ $msg .= "You did not specify a day of the week.";
+ $errors->dow = true;
+ }
+
+ elseif ( !empty($frm["reservationwindow"]) && empty($frm["starttime"]) ){
+
+ $msg .= "You did not specify a start time.";
+ $errors->starttime = true;
+
+ }
+ elseif ( !empty($frm["reservationwindow"]) && empty($frm["endtime"]) ) {
+
+ $msg .= "You did not specify an end time.";
+ $errors->endtime = true;
+ }
+ //Validate that the start is before end
+ elseif (isset($startTimeArray) && isset($endTimeArray) && $startTimeArray[0] > $endTimeArray[0] ){
+
+ $msg .= "The start time needs to occur before the end time.";
+ $errors->window = true;
+ }
+
+ return $msg;
+
+
+}
+
+function get_sitecourts_dropdown($siteid){
+
+ $query = "SELECT courtid, courtname
+ FROM tblCourts
+ WHERE siteid = $siteid
+ AND enable =1";
+
+ return db_query($query);
+
+}
+
+function get_dow_dropdown(){
+
+ $query = "SELECT dayid, name
+ FROM tblDays";
+
+ return db_query($query);
+
+}
+
+
+function insert_skill_range_policy(&$frm) {
+
+
+ // Strip Slashes
+ if(get_magic_quotes_gpc()){
+ $description=stripslashes($frm['description']);
+
+ }else{
+ $description=addslashes($frm['description']);
+ }
+
+ if($frm['courtid']=="all"){
+ $courtid = "NULL";
+ }else{
+ $courtid = $frm['courtid'];
+ }
+
+ if($frm['dow']=="all"){
+ $dayid = "NULL";
+ }else{
+ $dayid = $frm['dow'];
+
+ }
+
+ if(!isset($frm['reservationwindow'])){
+ $alltimes = 'y';
+ $starttime = "NULL";
+ $endtime = "NULL";
+
+ }else{
+ $alltimes = 'n';
+ $starttime = "'$frm[starttime]'";
+ $endtime = "'$frm[endtime]'";
+ }
+
+
+
+ //If this is the case, then we're updating an existing policy
+ if( !empty($frm['policyid'] )) {
+
+ $query = "UPDATE tblSkillRangePolicy SET
+ policyname = '$frm[name]'
+ ,description = '$description'
+ ,skillrange = '$frm[skillrange]'
+ ,dayid = $dayid
+ ,courtid = $courtid
+ ,siteid = ". get_siteid()."
+ ,starttime = $starttime
+ ,endtime = $endtime
+ WHERE policyid = '$frm[policyid]'";
+
+ }else{
+ $query = "INSERT INTO tblSkillRangePolicy (
+ policyname, description, skillrange, dayid, courtid, siteid, starttime, endtime
+ ) VALUES (
+ '$frm[name]'
+ ,'$description'
+ ,'$frm[skillrange]'
+ ,$dayid
+ ,$courtid
+ ,".get_siteid()."
+ ,$starttime
+ ,$endtime)";
+
+ }
+
+ // run the query on the database
+ $result = db_query($query);
+
+}
+
?>
View
312 admin/player_lookup.php
@@ -1,157 +1,157 @@
-<?
-
-
-/*
- * $LastChangedRevision: 838 $
- * $LastChangedBy: Adam Preston $
- * $LastChangedDate: 2011-02-23 00:14:23 -0600 (Wed, 23 Feb 2011) $
- */
-
-include ("../application.php");
-$DOC_TITLE = "Account Maintenance";
-require_loginwq();
-
-/* form has been submitted, try to create the new role */
-$searchname = $_REQUEST['searchname'];
-
-
-//Check to see if the view is empty
-
- if (isset ($searchname)) {
-
- $errormsg = validate_form($searchname);
- $backtopage = $_SESSION["CFG"]["wwwroot"]."/admin/player_lookup.php";
-
- if ( empty($errormsg) ) {
-
- $playerResults = get_all_player_search($searchname);
-
- if(isDebugEnabled(1) ) logMessage("player_lookup: Found ".mysql_num_rows($playerResults)." results");
-
- include ($_SESSION["CFG"]["templatedir"]."/header_yui.php");
- print_players($searchname, $playerResults, $DOC_TITLE, $ME);
- include ($_SESSION["CFG"]["templatedir"]."/footer_yui.php");
- die;
- }
- }
-
-include ($_SESSION["CFG"]["templatedir"]."/header_yui.php");
-include ($_SESSION["CFG"]["templatedir"]."/player_lookup_form.php");
-include ($_SESSION["CFG"]["templatedir"]."/footer_yui.php");
-
-/******************************************************************************
- * FUNCTIONS
- *****************************************************************************/
-
-function validate_form($searchname) {
- /* validate the signup form, and return the error messages in a string. if
- * the string is empty, then there are no errors */
-
- $errors = new Object;
- $msg = "";
-
- if ( empty($searchname) ) {
- //$errors->searchname = true;
- $msg .= "You did not specify a name to search";
- }
- elseif (strpos($searchname, "'") !== false) {
- //$errors->searchname = true;
- $msg .= "No speical characters please. ";
-
- }
-
- return $msg;
-}
-
-/******************************************************************************
- * Print_players
- *****************************************************************************/
-
-function print_players($searchname, $playerResults, $DOC_TITLE, $ME) {
-
- $wwwroot = $_SESSION["CFG"]["wwwroot"];
-
- if(isDebugEnabled(1) ) logMessage("player_lookup.print_players: searchname: $searchname");
-
- if (mysql_num_rows($playerResults) < 1) {
- $errormsg = "Sorry, no results found.";
- include ($_SESSION["CFG"]["includedir"]."/errorpage.php");
-
- } else {
-
- include($_SESSION["CFG"]["templatedir"]."/player_lookup_form.php");
-
-
-
- mysql_data_seek($playerResults, 0);
- $num_fields = mysql_num_fields($playerResults);
- $num_rows = mysql_num_rows($playerResults);
-?>
-
- <table cellpadding="20" width="650" class="bordertable">
- <tr class="loginth">
- <td height="25"><span class="whitenorm"><div align="center">First Name</div></span></td>
- <td height="25"><span class="whitenorm"><div align="center">Last Name</div></span></td>
- <td height="25"><span class="whitenorm"><div align="center">Club</div></span></td>
-
- <td></td>
- </tr>
-
- <?
-
-
- $rownum = mysql_num_rows($playerResults);
- while ($playerarray = mysql_fetch_array($playerResults)) {
-
- $rc = (($rownum/2 - intval($rownum/2)) > .1) ? "darkrow" : "lightrow";
-
- ?>
-
- <tr class="<?=$rc?>" >
- <form name="playerform<?=$rownum?>" method="post" action="<?=$_SESSION["CFG"]["wwwroot"]?>/admin/player_info.php">
- <td><div align="center"><?=$playerarray['firstname']?></div> </td>
- <td><div align="center"><?=$playerarray['lastname']?></div> </td>
- <input type="hidden" name="userid" value="<?=$playerarray[0]?>">
- <input type="hidden" name="searchname" value="<?=$searchname?>">
- <td><div align="center"><?=$playerarray['clubname']?></div> </td>
- <td><div align="center"><a href="javascript:submitForm('playerform<?=$rownum?>')">Info</a></td>
- </form>
- </tr>
-
- <?
- $rownum = $rownum -1;
- }
-?>
-
- </table>
-
- <div style="height: 2em;"></div>
- <div>
- <span style="text-align: right;"> <a href="<?=$_SESSION["CFG"]["wwwroot"]?>/admin/player_lookup.php"><< New Search</a> </span>
- </div>
-
- <?
- }
-}
-
- /******************************************************************************
- * Get_player_search
- *****************************************************************************/
-
- function get_all_player_search($searchname) {
-
- $playerquery = "SELECT users.userid, users.firstname, users.lastname, clubs.clubname
- FROM tblUsers users, tblClubs clubs, tblClubUser clubuser
- WHERE clubuser.clubid = clubs.clubid
- AND users.userid = clubuser.userid
- AND (users.firstname Like '$searchname%'
- OR users.lastname Like '$searchname%')
- AND clubuser.roleid != 4
- AND clubuser.enddate IS NULL
- ORDER BY users.lastname";
- if(isDebugEnabled(1) ) logMessage($playerquery);
-
- return db_query($playerquery);
-
- }
+<?
+
+
+/*
+ * $LastChangedRevision: 838 $
+ * $LastChangedBy: Adam Preston $
+ * $LastChangedDate: 2011-02-23 00:14:23 -0600 (Wed, 23 Feb 2011) $
+ */
+
+include ("../application.php");
+$DOC_TITLE = "Account Maintenance";
+require_loginwq();
+
+/* form has been submitted, try to create the new role */
+$searchname = $_REQUEST['searchname'];
+
+
+//Check to see if the view is empty
+
+ if (isset ($searchname)) {
+
+ $errormsg = validate_form($searchname);
+ $backtopage = $_SESSION["CFG"]["wwwroot"]."/admin/player_lookup.php";
+
+ if ( empty($errormsg) ) {
+
+ $playerResults = get_all_player_search($searchname);
+
+ if(isDebugEnabled(1) ) logMessage("player_lookup: Found ".mysql_num_rows($playerResults)." results");
+
+ include ($_SESSION["CFG"]["templatedir"]."/header_yui.php");
+ print_players($searchname, $playerResults, $DOC_TITLE, $ME);
+ include ($_SESSION["CFG"]["templatedir"]."/footer_yui.php");
+ die;
+ }
+ }
+
+include ($_SESSION["CFG"]["templatedir"]."/header_yui.php");
+include ($_SESSION["CFG"]["templatedir"]."/player_lookup_form.php");
+include ($_SESSION["CFG"]["templatedir"]."/footer_yui.php");
+
+/******************************************************************************
+ * FUNCTIONS
+ *****************************************************************************/
+
+function validate_form($searchname) {
+ /* validate the signup form, and return the error messages in a string. if
+ * the string is empty, then there are no errors */
+
+ $errors = new Object;
+ $msg = "";
+
+ if ( empty($searchname) ) {
+ //$errors->searchname = true;
+ $msg .= "You did not specify a name to search";
+ }
+ elseif (strpos($searchname, "'") !== false) {
+ //$errors->searchname = true;
+ $msg .= "No speical characters please. ";
+
+ }
+
+ return $msg;
+}
+
+/******************************************************************************
+ * Print_players
+ *****************************************************************************/
+
+function print_players($searchname, $playerResults, $DOC_TITLE, $ME) {
+
+ $wwwroot = $_SESSION["CFG"]["wwwroot"];
+
+ if(isDebugEnabled(1) ) logMessage("player_lookup.print_players: searchname: $searchname");
+
+ if (mysql_num_rows($playerResults) < 1) {
+ $errormsg = "Sorry, no results found.";
+ include ($_SESSION["CFG"]["includedir"]."/errorpage.php");
+
+ } else {
+
+ include($_SESSION["CFG"]["templatedir"]."/player_lookup_form.php");
+
+
+
+ mysql_data_seek($playerResults, 0);
+ $num_fields = mysql_num_fields($playerResults);
+ $num_rows = mysql_num_rows($playerResults);
+?>
+
+ <table cellpadding="20" width="650" class="bordertable">
+ <tr class="loginth">
+ <td height="25"><span class="whitenorm"><div align="center">First Name</div></span></td>
+ <td height="25"><span class="whitenorm"><div align="center">Last Name</div></span></td>
+ <td height="25"><span class="whitenorm"><div align="center">Club</div></span></td>
+
+ <td></td>
+ </tr>
+
+ <?
+
+
+ $rownum = mysql_num_rows($playerResults);
+ while ($playerarray = mysql_fetch_array($playerResults)) {
+
+ $rc = (($rownum/2 - intval($rownum/2)) > .1) ? "darkrow" : "lightrow";
+
+ ?>
+
+ <tr class="<?=$rc?>" >
+ <form name="playerform<?=$rownum?>" method="get" action="<?=$_SESSION["CFG"]["wwwroot"]?>/admin/player_info.php">
+ <td><div align="center"><?=$playerarray['firstname']?></div> </td>
+ <td><div align="center"><?=$playerarray['lastname']?></div> </td>
+ <input type="hidden" name="userid" value="<?=$playerarray[0]?>">
+ <input type="hidden" name="searchname" value="<?=$searchname?>">
+ <td><div align="center"><?=$playerarray['clubname']?></div> </td>
+ <td><div align="center"><a href="javascript:submitForm('playerform<?=$rownum?>')">Info</a></td>
+ </form>
+ </tr>
+
+ <?
+ $rownum = $rownum -1;
+ }
+?>
+
+ </table>
+
+ <div style="height: 2em;"></div>
+ <div>
+ <span style="text-align: right;"> <a href="<?=$_SESSION["CFG"]["wwwroot"]?>/admin/player_lookup.php"><< New Search</a> </span>
+ </div>
+
+ <?
+ }
+}
+
+ /******************************************************************************
+ * Get_player_search
+ *****************************************************************************/
+
+ function get_all_player_search($searchname) {
+
+ $playerquery = "SELECT users.userid, users.firstname, users.lastname, clubs.clubname
+ FROM tblUsers users, tblClubs clubs, tblClubUser clubuser
+ WHERE clubuser.clubid = clubs.clubid
+ AND users.userid = clubuser.userid
+ AND (users.firstname Like '$searchname%'
+ OR users.lastname Like '$searchname%')
+ AND clubuser.roleid != 4
+ AND clubuser.enddate IS NULL
+ ORDER BY users.lastname";
+ if(isDebugEnabled(1) ) logMessage($playerquery);
+
+ return db_query($playerquery);
+
+ }
?>
View
170 css/prettyPhoto.css
@@ -0,0 +1,170 @@
+div.pp_default .pp_top,div.pp_default .pp_top .pp_middle,div.pp_default .pp_top .pp_left,div.pp_default .pp_top .pp_right,div.pp_default .pp_bottom,div.pp_default .pp_bottom .pp_left,div.pp_default .pp_bottom .pp_middle,div.pp_default .pp_bottom .pp_right{height:13px}
+div.pp_default .pp_top .pp_left{background:url(../images/prettyPhoto/default/sprite.png) -78px -93px no-repeat}
+div.pp_default .pp_top .pp_middle{background:url(../images/prettyPhoto/default/sprite_x.png) top left repeat-x}
+div.pp_default .pp_top .pp_right{background:url(../images/prettyPhoto/default/sprite.png) -112px -93px no-repeat}
+div.pp_default .pp_content .ppt{color:#f8f8f8}
+div.pp_default .pp_content_container .pp_left{background:url(../images/prettyPhoto/default/sprite_y.png) -7px 0 repeat-y;padding-left:13px}
+div.pp_default .pp_content_container .pp_right{background:url(../images/prettyPhoto/default/sprite_y.png) top right repeat-y;padding-right:13px}
+div.pp_default .pp_next:hover{background:url(../images/prettyPhoto/default/sprite_next.png) center right no-repeat;cursor:pointer}
+div.pp_default .pp_previous:hover{background:url(../images/prettyPhoto/default/sprite_prev.png) center left no-repeat;cursor:pointer}
+div.pp_default .pp_expand{background:url(../images/prettyPhoto/default/sprite.png) 0 -29px no-repeat;cursor:pointer;height:28px;width:28px}
+div.pp_default .pp_expand:hover{background:url(../images/prettyPhoto/default/sprite.png) 0 -56px no-repeat;cursor:pointer}
+div.pp_default .pp_contract{background:url(../images/prettyPhoto/default/sprite.png) 0 -84px no-repeat;cursor:pointer;height:28px;width:28px}
+div.pp_default .pp_contract:hover{background:url(../images/prettyPhoto/default/sprite.png) 0 -113px no-repeat;cursor:pointer}
+div.pp_default .pp_close{background:url(../images/prettyPhoto/default/sprite.png) 2px 1px no-repeat;cursor:pointer;height:30px;width:30px}
+div.pp_default .pp_gallery ul li a{background:url(../images/prettyPhoto/default/default_thumb.png) center center #f8f8f8;border:1px solid #aaa}
+div.pp_default .pp_social{margin-top:7px}
+div.pp_default .pp_gallery a.pp_arrow_previous,div.pp_default .pp_gallery a.pp_arrow_next{left:auto;position:static}
+div.pp_default .pp_nav .pp_play,div.pp_default .pp_nav .pp_pause{background:url(../images/prettyPhoto/default/sprite.png) -51px 1px no-repeat;height:30px;width:30px}
+div.pp_default .pp_nav .pp_pause{background-position:-51px -29px}
+div.pp_default a.pp_arrow_previous,div.pp_default a.pp_arrow_next{background:url(../images/prettyPhoto/default/sprite.png) -31px -3px no-repeat;height:20px;margin:4px 0 0;width:20px}
+div.pp_default a.pp_arrow_next{background-position:-82px -3px;left:52px}
+div.pp_default .pp_content_container .pp_details{margin-top:5px}
+div.pp_default .pp_nav{clear:none;height:30px;position:relative;width:110px}
+div.pp_default .pp_nav .currentTextHolder{color:#999;font-family:Georgia;font-size:11px;font-style:italic;left:75px;line-height:25px;margin:0;padding:0 0 0 10px;position:absolute;top:2px}
+div.pp_default .pp_close:hover,div.pp_default .pp_nav .pp_play:hover,div.pp_default .pp_nav .pp_pause:hover,div.pp_default .pp_arrow_next:hover,div.pp_default .pp_arrow_previous:hover{opacity:0.7}
+div.pp_default .pp_description{font-size:11px;font-weight:700;line-height:14px;margin:5px 50px 5px 0}
+div.pp_default .pp_bottom .pp_left{background:url(../images/prettyPhoto/default/sprite.png) -78px -127px no-repeat}
+div.pp_default .pp_bottom .pp_middle{background:url(../images/prettyPhoto/default/sprite_x.png) bottom left repeat-x}
+div.pp_default .pp_bottom .pp_right{background:url(../images/prettyPhoto/default/sprite.png) -112px -127px no-repeat}
+div.pp_default .pp_loaderIcon{background:url(../images/prettyPhoto/default/loader.gif) center center no-repeat}
+div.light_rounded .pp_top .pp_left{background:url(../images/prettyPhoto/light_rounded/sprite.png) -88px -53px no-repeat}
+div.light_rounded .pp_top .pp_right{background:url(../images/prettyPhoto/light_rounded/sprite.png) -110px -53px no-repeat}
+div.light_rounded .pp_next:hover{background:url(../images/prettyPhoto/light_rounded/btnNext.png) center right no-repeat;cursor:pointer}
+div.light_rounded .pp_previous:hover{background:url(../images/prettyPhoto/light_rounded/btnPrevious.png) center left no-repeat;cursor:pointer}
+div.light_rounded .pp_expand{background:url(../images/prettyPhoto/light_rounded/sprite.png) -31px -26px no-repeat;cursor:pointer}
+div.light_rounded .pp_expand:hover{background:url(../images/prettyPhoto/light_rounded/sprite.png) -31px -47px no-repeat;cursor:pointer}
+div.light_rounded .pp_contract{background:url(../images/prettyPhoto/light_rounded/sprite.png) 0 -26px no-repeat;cursor:pointer}
+div.light_rounded .pp_contract:hover{background:url(../images/prettyPhoto/light_rounded/sprite.png) 0 -47px no-repeat;cursor:pointer}
+div.light_rounded .pp_close{background:url(../images/prettyPhoto/light_rounded/sprite.png) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
+div.light_rounded .pp_nav .pp_play{background:url(../images/prettyPhoto/light_rounded/sprite.png) -1px -100px no-repeat;height:15px;width:14px}
+div.light_rounded .pp_nav .pp_pause{background:url(../images/prettyPhoto/light_rounded/sprite.png) -24px -100px no-repeat;height:15px;width:14px}
+div.light_rounded .pp_arrow_previous{background:url(../images/prettyPhoto/light_rounded/sprite.png) 0 -71px no-repeat}
+div.light_rounded .pp_arrow_next{background:url(../images/prettyPhoto/light_rounded/sprite.png) -22px -71px no-repeat}
+div.light_rounded .pp_bottom .pp_left{background:url(../images/prettyPhoto/light_rounded/sprite.png) -88px -80px no-repeat}
+div.light_rounded .pp_bottom .pp_right{background:url(../images/prettyPhoto/light_rounded/sprite.png) -110px -80px no-repeat}
+div.dark_rounded .pp_top .pp_left{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -53px no-repeat}
+div.dark_rounded .pp_top .pp_right{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -53px no-repeat}
+div.dark_rounded .pp_content_container .pp_left{background:url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat-y}
+div.dark_rounded .pp_content_container .pp_right{background:url(../images/prettyPhoto/dark_rounded/contentPattern.png) top right repeat-y}
+div.dark_rounded .pp_next:hover{background:url(../images/prettyPhoto/dark_rounded/btnNext.png) center right no-repeat;cursor:pointer}
+div.dark_rounded .pp_previous:hover{background:url(../images/prettyPhoto/dark_rounded/btnPrevious.png) center left no-repeat;cursor:pointer}
+div.dark_rounded .pp_expand{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -26px no-repeat;cursor:pointer}
+div.dark_rounded .pp_expand:hover{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -47px no-repeat;cursor:pointer}
+div.dark_rounded .pp_contract{background:url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -26px no-repeat;cursor:pointer}
+div.dark_rounded .pp_contract:hover{background:url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -47px no-repeat;cursor:pointer}
+div.dark_rounded .pp_close{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
+div.dark_rounded .pp_description{color:#fff;margin-right:85px}
+div.dark_rounded .pp_nav .pp_play{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -100px no-repeat;height:15px;width:14px}
+div.dark_rounded .pp_nav .pp_pause{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -24px -100px no-repeat;height:15px;width:14px}
+div.dark_rounded .pp_arrow_previous{background:url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -71px no-repeat}
+div.dark_rounded .pp_arrow_next{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -22px -71px no-repeat}
+div.dark_rounded .pp_bottom .pp_left{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -80px no-repeat}
+div.dark_rounded .pp_bottom .pp_right{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -80px no-repeat}
+div.dark_rounded .pp_loaderIcon{background:url(../images/prettyPhoto/dark_rounded/loader.gif) center center no-repeat}
+div.dark_square .pp_left,div.dark_square .pp_middle,div.dark_square .pp_right,div.dark_square .pp_content{background:#000}
+div.dark_square .pp_description{color:#fff;margin:0 85px 0 0}
+div.dark_square .pp_loaderIcon{background:url(../images/prettyPhoto/dark_square/loader.gif) center center no-repeat}
+div.dark_square .pp_expand{background:url(../images/prettyPhoto/dark_square/sprite.png) -31px -26px no-repeat;cursor:pointer}
+div.dark_square .pp_expand:hover{background:url(../images/prettyPhoto/dark_square/sprite.png) -31px -47px no-repeat;cursor:pointer}
+div.dark_square .pp_contract{background:url(../images/prettyPhoto/dark_square/sprite.png) 0 -26px no-repeat;cursor:pointer}
+div.dark_square .pp_contract:hover{background:url(../images/prettyPhoto/dark_square/sprite.png) 0 -47px no-repeat;cursor:pointer}
+div.dark_square .pp_close{background:url(../images/prettyPhoto/dark_square/sprite.png) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
+div.dark_square .pp_nav{clear:none}
+div.dark_square .pp_nav .pp_play{background:url(../images/prettyPhoto/dark_square/sprite.png) -1px -100px no-repeat;height:15px;width:14px}
+div.dark_square .pp_nav .pp_pause{background:url(../images/prettyPhoto/dark_square/sprite.png) -24px -100px no-repeat;height:15px;width:14px}
+div.dark_square .pp_arrow_previous{background:url(../images/prettyPhoto/dark_square/sprite.png) 0 -71px no-repeat}
+div.dark_square .pp_arrow_next{background:url(../images/prettyPhoto/dark_square/sprite.png) -22px -71px no-repeat}
+div.dark_square .pp_next:hover{background:url(../images/prettyPhoto/dark_square/btnNext.png) center right no-repeat;cursor:pointer}
+div.dark_square .pp_previous:hover{background:url(../images/prettyPhoto/dark_square/btnPrevious.png) center left no-repeat;cursor:pointer}
+div.light_square .pp_expand{background:url(../images/prettyPhoto/light_square/sprite.png) -31px -26px no-repeat;cursor:pointer}
+div.light_square .pp_expand:hover{background:url(../images/prettyPhoto/light_square/sprite.png) -31px -47px no-repeat;cursor:pointer}
+div.light_square .pp_contract{background:url(../images/prettyPhoto/light_square/sprite.png) 0 -26px no-repeat;cursor:pointer}
+div.light_square .pp_contract:hover{background:url(../images/prettyPhoto/light_square/sprite.png) 0 -47px no-repeat;cursor:pointer}
+div.light_square .pp_close{background:url(../images/prettyPhoto/light_square/sprite.png) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
+div.light_square .pp_nav .pp_play{background:url(../images/prettyPhoto/light_square/sprite.png) -1px -100px no-repeat;height:15px;width:14px}
+div.light_square .pp_nav .pp_pause{background:url(../images/prettyPhoto/light_square/sprite.png) -24px -100px no-repeat;height:15px;width:14px}
+div.light_square .pp_arrow_previous{background:url(../images/prettyPhoto/light_square/sprite.png) 0 -71px no-repeat}
+div.light_square .pp_arrow_next{background:url(../images/prettyPhoto/light_square/sprite.png) -22px -71px no-repeat}
+div.light_square .pp_next:hover{background:url(../images/prettyPhoto/light_square/btnNext.png) center right no-repeat;cursor:pointer}
+div.light_square .pp_previous:hover{background:url(../images/prettyPhoto/light_square/btnPrevious.png) center left no-repeat;cursor:pointer}
+div.facebook .pp_top .pp_left{background:url(../images/prettyPhoto/facebook/sprite.png) -88px -53px no-repeat}
+div.facebook .pp_top .pp_middle{background:url(../images/prettyPhoto/facebook/contentPatternTop.png) top left repeat-x}
+div.facebook .pp_top .pp_right{background:url(../images/prettyPhoto/facebook/sprite.png) -110px -53px no-repeat}
+div.facebook .pp_content_container .pp_left{background:url(../images/prettyPhoto/facebook/contentPatternLeft.png) top left repeat-y}
+div.facebook .pp_content_container .pp_right{background:url(../images/prettyPhoto/facebook/contentPatternRight.png) top right repeat-y}
+div.facebook .pp_expand{background:url(../images/prettyPhoto/facebook/sprite.png) -31px -26px no-repeat;cursor:pointer}
+div.facebook .pp_expand:hover{background:url(../images/prettyPhoto/facebook/sprite.png) -31px -47px no-repeat;cursor:pointer}
+div.facebook .pp_contract{background:url(../images/prettyPhoto/facebook/sprite.png) 0 -26px no-repeat;cursor:pointer}
+div.facebook .pp_contract:hover{background:url(../images/prettyPhoto/facebook/sprite.png) 0 -47px no-repeat;cursor:pointer}
+div.facebook .pp_close{background:url(../images/prettyPhoto/facebook/sprite.png) -1px -1px no-repeat;cursor:pointer;height:22px;width:22px}
+div.facebook .pp_description{margin:0 37px 0 0}
+div.facebook .pp_loaderIcon{background:url(../images/prettyPhoto/facebook/loader.gif) center center no-repeat}
+div.facebook .pp_arrow_previous{background:url(../images/prettyPhoto/facebook/sprite.png) 0 -71px no-repeat;height:22px;margin-top:0;width:22px}
+div.facebook .pp_arrow_previous.disabled{background-position:0 -96px;cursor:default}
+div.facebook .pp_arrow_next{background:url(../images/prettyPhoto/facebook/sprite.png) -32px -71px no-repeat;height:22px;margin-top:0;width:22px}
+div.facebook .pp_arrow_next.disabled{background-position:-32px -96px;cursor:default}
+div.facebook .pp_nav{margin-top:0}
+div.facebook .pp_nav p{font-size:15px;padding:0 3px 0 4px}
+div.facebook .pp_nav .pp_play{background:url(../images/prettyPhoto/facebook/sprite.png) -1px -123px no-repeat;height:22px;width:22px}
+div.facebook .pp_nav .pp_pause{background:url(../images/prettyPhoto/facebook/sprite.png) -32px -123px no-repeat;height:22px;width:22px}
+div.facebook .pp_next:hover{background:url(../images/prettyPhoto/facebook/btnNext.png) center right no-repeat;cursor:pointer}
+div.facebook .pp_previous:hover{background:url(../images/prettyPhoto/facebook/btnPrevious.png) center left no-repeat;cursor:pointer}
+div.facebook .pp_bottom .pp_left{background:url(../images/prettyPhoto/facebook/sprite.png) -88px -80px no-repeat}
+div.facebook .pp_bottom .pp_middle{background:url(../images/prettyPhoto/facebook/contentPatternBottom.png) top left repeat-x}
+div.facebook .pp_bottom .pp_right{background:url(../images/prettyPhoto/facebook/sprite.png) -110px -80px no-repeat}
+div.pp_pic_holder a:focus{outline:none}
+div.pp_overlay{background:#000;display:none;left:0;position:absolute;top:0;width:100%;z-index:9500}
+div.pp_pic_holder{display:none;position:absolute;width:100px;z-index:10000}
+.pp_content{height:40px;min-width:40px}
+* html .pp_content{width:40px}
+.pp_content_container{position:relative;text-align:left;width:100%}
+.pp_content_container .pp_left{padding-left:20px}
+.pp_content_container .pp_right{padding-right:20px}
+.pp_content_container .pp_details{float:left;margin:10px 0 2px}
+.pp_description{display:none;margin:0}
+.pp_social{float:left;margin:0}
+.pp_social .facebook{float:left;margin-left:5px;overflow:hidden;width:55px}
+.pp_social .twitter{float:left}
+.pp_nav{clear:right;float:left;margin:3px 10px 0 0}
+.pp_nav p{float:left;margin:2px 4px;white-space:nowrap}
+.pp_nav .pp_play,.pp_nav .pp_pause{float:left;margin-right:4px;text-indent:-10000px}
+a.pp_arrow_previous,a.pp_arrow_next{display:block;float:left;height:15px;margin-top:3px;overflow:hidden;text-indent:-10000px;width:14px}
+.pp_hoverContainer{position:absolute;top:0;width:100%;z-index:2000}
+.pp_gallery{display:none;left:50%;margin-top:-50px;position:absolute;z-index:10000}
+.pp_gallery div{float:left;overflow:hidden;position:relative}
+.pp_gallery ul{float:left;height:35px;margin:0 0 0 5px;padding:0;position:relative;white-space:nowrap}
+.pp_gallery ul a{border:1px rgba(0,0,0,0.5) solid;display:block;float:left;height:33px;overflow:hidden}
+.pp_gallery ul a img{border:0}
+.pp_gallery li{display:block;float:left;margin:0 5px 0 0;padding:0}
+.pp_gallery li.default a{background:url(../images/prettyPhoto/facebook/default_thumbnail.gif) 0 0 no-repeat;display:block;height:33px;width:50px}
+.pp_gallery .pp_arrow_previous,.pp_gallery .pp_arrow_next{margin-top:7px!important}
+a.pp_next{background:url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;display:block;float:right;height:100%;text-indent:-10000px;width:49%}
+a.pp_previous{background:url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;display:block;float:left;height:100%;text-indent:-10000px;width:49%}
+a.pp_expand,a.pp_contract{cursor:pointer;display:none;height:20px;position:absolute;right:30px;text-indent:-10000px;top:10px;width:20px;z-index:20000}
+a.pp_close{display:block;line-height:22px;position:absolute;right:0;text-indent:-10000px;top:0}
+.pp_loaderIcon{display:block;height:24px;left:50%;margin:-12px 0 0 -12px;position:absolute;top:50%;width:24px}
+#pp_full_res{line-height:1!important}
+#pp_full_res .pp_inline{text-align:left}
+#pp_full_res .pp_inline p{margin:0 0 15px}
+div.ppt{color:#fff;display:none;font-size:17px;margin:0 0 5px 15px;z-index:9999}
+div.pp_default .pp_content,div.light_rounded .pp_content{background-color:#fff}
+div.pp_default #pp_full_res .pp_inline,div.light_rounded .pp_content .ppt,div.light_rounded #pp_full_res .pp_inline,div.light_square .pp_content .ppt,div.light_square #pp_full_res .pp_inline,div.facebook .pp_content .ppt,div.facebook #pp_full_res .pp_inline{color:#000}
+div.pp_default .pp_gallery ul li a:hover,div.pp_default .pp_gallery ul li.selected a,.pp_gallery ul a:hover,.pp_gallery li.selected a{border-color:#fff}
+div.pp_default .pp_details,div.light_rounded .pp_details,div.dark_rounded .pp_details,div.dark_square .pp_details,div.light_square .pp_details,div.facebook .pp_details{position:relative}
+div.light_rounded .pp_top .pp_middle,div.light_rounded .pp_content_container .pp_left,div.light_rounded .pp_content_container .pp_right,div.light_rounded .pp_bottom .pp_middle,div.light_square .pp_left,div.light_square .pp_middle,div.light_square .pp_right,div.light_square .pp_content,div.facebook .pp_content{background:#fff}
+div.light_rounded .pp_description,div.light_square .pp_description{margin-right:85px}
+div.light_rounded .pp_gallery a.pp_arrow_previous,div.light_rounded .pp_gallery a.pp_arrow_next,div.dark_rounded .pp_gallery a.pp_arrow_previous,div.dark_rounded .pp_gallery a.pp_arrow_next,div.dark_square .pp_gallery a.pp_arrow_previous,div.dark_square .pp_gallery a.pp_arrow_next,div.light_square .pp_gallery a.pp_arrow_previous,div.light_square .pp_gallery a.pp_arrow_next{margin-top:12px!important}
+div.light_rounded .pp_arrow_previous.disabled,div.dark_rounded .pp_arrow_previous.disabled,div.dark_square .pp_arrow_previous.disabled,div.light_square .pp_arrow_previous.disabled{background-position:0 -87px;cursor:default}
+div.light_rounded .pp_arrow_next.disabled,div.dark_rounded .pp_arrow_next.disabled,div.dark_square .pp_arrow_next.disabled,div.light_square .pp_arrow_next.disabled{background-position:-22px -87px;cursor:default}
+div.light_rounded .pp_loaderIcon,div.light_square .pp_loaderIcon{background:url(../images/prettyPhoto/light_rounded/loader.gif) center center no-repeat}
+div.dark_rounded .pp_top .pp_middle,div.dark_rounded .pp_content,div.dark_rounded .pp_bottom .pp_middle{background:url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat}
+div.dark_rounded .currentTextHolder,div.dark_square .currentTextHolder{color:#c4c4c4}
+div.dark_rounded #pp_full_res .pp_inline,div.dark_square #pp_full_res .pp_inline{color:#fff}
+.pp_top,.pp_bottom{height:20px;position:relative}
+* html .pp_top,* html .pp_bottom{padding:0 20px}
+.pp_top .pp_left,.pp_bottom .pp_left{height:20px;left:0;position:absolute;width:20px}
+.pp_top .pp_middle,.pp_bottom .pp_middle{height:20px;left:20px;position:absolute;right:20px}
+* html .pp_top .pp_middle,* html .pp_bottom .pp_middle{left:0;position:static}
+.pp_top .pp_right,.pp_bottom .pp_right{height:20px;left:auto;position:absolute;right:0;top:0;width:20px}
+.pp_fade,.pp_gallery li.default a img{display:none}
View
10 help/box_leagues.html
@@ -3,14 +3,14 @@
<html>
<head>
<title>Sportsynergy Box Leagues</title>
-<LINK href="../main.css" rel=stylesheet type=text/css>
</head>
<body>
<h1>Box Leagues</h1>
-<font class=normalsm>
-<p> Box leagues are designed after the ever popular box leagues used widely across England. They are perfect for the member who wants a competitive squash match each week, and where the results are clearly reflected in the club rankings. </p>
-<p> How the box league works is very simple. Each player has to play all the other players in his/her box within an allotted period of time. At the end of the period, the player(s) with the most points move up a box, while the player(s) with the fewest points move down. One point is awarded for just showing up to play, another for every game won, and another for every match won. Example: If Player A beats Player B 3-2, A gets five points, and B gets three. At the end of the time period, the boxes are adjusted, and the process repeats, until the box league season ends.
-<p> When reserving a court for a box league match select "Box League" from the available match types. To look for a box league match, simply select "I am looking for match" and emails will be sent out to all other players in the box. </p>
+<p>Box leagues are designed after the ever-popular box leagues used widely across England. They are perfect for the member who wants a competitive squash match each week, and where the results are clearly reflected in the club rankings.
+</p>
+<p>How the box league works is very simple. Each player has to play all the other players in his/her box within an allotted period of time. At the end of the period, the player(s) with the most points move up a box, while the player(s) with the fewest points move down. One point is awarded for just showing up to play, another for every game won, and another for every match won. Example: If Player [A] beats Player [B] 3-2, [A] gets five points, and [B] gets three. At the end of the time period, the boxes are adjusted, and the process repeats, until the box league season ends.
+</p>
+<p>When reserving a court for a box league match - select &quot;Box League&quot; from the available match types. To look for a box league match, simply select &quot;I am looking for match&quot; and emails will be sent out to all other players in the box.</p>
</body>
</html>
View
6 help/club_ladders.html
@@ -8,11 +8,9 @@
<body>
<h1>Club Ladders</h1>
-<font class="normalsm">
-
<p>
-A Club Ladder is a ranking of players not on their assigned ranking but rather on their record with other players. When you beat someone ranked higher on the ladder
-you take their position and they drop down one spot.
+ A Club Ladder is a ranking of players not on their assigned ranking but rather on their record with other players. When you beat someone ranked higher on the ladder
+ you take their position and they drop down one spot.
</p>
<p>
View
199 help/scheduling_policies_explained.html
@@ -2,114 +2,109 @@
<html>
<head>
- <title>Reservation Policies</title>
- <LINK href="../main.css" rel=stylesheet type=text/css>
+<title>Reservation Policies</title>
+<LINK href="../main.css" rel=stylesheet type=text/css>
</head>
<body>
-<h1>Scheduling Policies</h1><br>
-Scheduling policies are a convenient and flexible way to control how users of this system can make or cancel reservations. Policies are cumulative, meaning that the most restrictive will apply.
+<h1>Scheduling Policies</h1>
<br>
+Scheduling policies are a convenient and flexible way to control how users of this system can make or cancel reservations. Policies are cumulative, meaning that the most restrictive will apply. <br>
<table width="100%" cellpadding="5">
-<tr>
- <td valign="top"><div class="label">Name:</div></td>
- <td>A meaningful name that will be used to identify the policy on the club preferences page. If someone does try to make a reservation that violates
- this policy, the name will be used in the message displayed to the user. So, if you have someone come up to you saying that a policy prevented them
- from making a reservation, they should be able to tell you which exact policy it was. This should help you out.</td>
-</tr>
-<tr>
- <td valign="top"><div class="label">Description:</div></td>
- <td>A detailed description of this policy. This is only used for you to write a little note about the policy. Unlike, the policy name the
- description will not be displayed in any error message to the user.</td>
-</tr>
-<tr>
- <td valign="top"><div class="label">Type:</div></td>
- <td>Scheduling policies can be made as either as Reservation policies or cancellation policies.
- A reservation policy will control how many reservations can be made by a user whereas a cancellation policy
- will control how many cancellations can be made by a user.</td>
-</tr>
-<tr>
- <td valign="top"><div class="label">Schedule Limit:</div></td>
- <td>This represents the daily limit imposed per court. For a reservation policy, this is the number of reservations that can be made by a user per day. For cancellation policy, this is the number of cancellations that can be made by a user per day.</td>
-</tr>
-<tr>
- <td valign="top"><div class="label">Court:</div></td>
- <td>Scheduling policies can be applied selectively to individual courts or can be applied to all courts.</td>
-</tr>
-<tr>
- <td valign="top"><div class="label">Allow Looking for a Match:</div></td>
- <td>This restricts people from signing up for a singles court and looking for a partner. By Default this is true.</td>
-</tr>
-<tr>
- <td valign="top"><div class="label">Allow Back to Back Reservations:</div></td>
- <td>With this one, you just can't make back to back reservations, pretty much as you would expect. By Default this is true.</td>
-</tr>
-<tr>
- <td valign="top"><div class="label">Day of Week:</div></td>
- <td>Scheduling polices can be applied selectively to specific days or can be applied to all days.</td>
-</tr>
-<tr>
- <td valign="top"><div class="label">Specify Window:</div></td>
- <td>Optionally, scheduling windows can be specified. A scheduling window can be created to block off a time range. This can be used to specify. When a scheduling window is not specified, the scheduling policy applies for the entire day.</td>
-</tr>
-<tr>
- <td valign="top"><div class="label">Start Time:</div></td>
- <td>When the specify window checkbox is checked, the start time represents the time of day that the policy will be enforced.</td>
-</tr>
-<tr>
- <td valign="top"><div class="label">End Time:</div></td>
- <td>When the specify window checkbox is checked, the start time represents the time of day that policy is no longer enforced.</td>
-</tr>
-
-
-
-
+ <tr>
+ <td valign="top"><div class="label">Name:</div></td>
+ <td>A meaningful name that will be used to identify the policy on the club preferences page. If someone does try to make a reservation that violates
+ this policy, the name will be used in the message displayed to the user. So, if you have someone come up to you saying that a policy prevented them
+ from making a reservation, they should be able to tell you which exact policy it was. This should help you out.</td>
+ </tr>
+ <tr>
+ <td valign="top"><div class="label">Description:</div></td>
+ <td>A detailed description of this policy. This is only used for you to write a little note about the policy. Unlike, the policy name the
+ description will not be displayed in any error message to the user.</td>
+ </tr>
+ <tr>
+ <td valign="top"><div class="label">Type:</div></td>
+ <td>Scheduling policies can be made as either as Reservation policies or cancellation policies.
+ A reservation policy will control how many reservations can be made by a user whereas a cancellation policy
+ will control how many cancellations can be made by a user.</td>
+ </tr>
+ <tr>
+ <td valign="top"><div class="label">Schedule Limit:</div></td>
+ <td>This represents the daily limit imposed per court. For a reservation policy, this is the number of reservations that can be made by a user per day. For cancellation policy, this is the number of cancellations that can be made by a user per day.</td>
+ </tr>
+ <tr>
+ <td valign="top"><div class="label">Court:</div></td>
+ <td>Scheduling policies can be applied selectively to individual courts or can be applied to all courts.</td>
+ </tr>
+ <tr>
+ <td valign="top"><div class="label">Allow Looking for a Match:</div></td>
+ <td>This restricts people from signing up for a singles court and looking for a partner. By Default this is true.</td>
+ </tr>
+ <tr>
+ <td valign="top"><div class="label">Allow Back to Back Reservations:</div></td>
+ <td>With this one, you just can't make back to back reservations, pretty much as you would expect. By Default this is true.</td>
+ </tr>
+ <tr>
+ <td valign="top"><div class="label">Day of Week:</div></td>
+ <td>Scheduling polices can be applied selectively to specific days or can be applied to all days.</td>
+ </tr>
+ <tr>
+ <td valign="top"><div class="label">Specify Window:</div></td>
+ <td>Optionally, scheduling windows can be specified. A scheduling window can be created to block off a time range. This can be used to specify. When a scheduling window is not specified, the scheduling policy applies for the entire day.</td>
+ </tr>
+ <tr>
+ <td valign="top"><div class="label">Start Time:</div></td>
+ <td>When the specify window checkbox is checked, the start time represents the time of day that the policy will be enforced.</td>
+ </tr>
+ <tr>
+ <td valign="top"><div class="label">End Time:</div></td>
+ <td>When the specify window checkbox is checked, the start time represents the time of day that policy is no longer enforced.</td>
+ </tr>
</table>
-<br><br>
+<br>
+<br>
<div class="label">Example:</div>
-
-<br><br>
-2) To create a policy that will create a prime time window between 5pm-7pm everyday:<br><br>
-
-<table width="100%" cellpadding="5">
- <tr>
- <td><div class="italitcsm">Name:</div></td>
- <td><div class="italitcsm">Prime time Policy</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Description:</div></td>
- <td><div class="italitcsm">A reservation policy that restricts the number of reservations users to one daily reservation.</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Type</div></td>
- <td><div class="italitcsm">Reservation</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Schedule Limit</div></td>
- <td><div class="italitcsm">1</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Court:</div></td>
- <td><div class="italitcsm">All Courts</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Day of Week</div></td>
- <td><div class="italitcsm">All Days</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Specify Window</div></td>
- <td><div class="italitcsm">< checked ></div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Start Time:</div></td>
- <td><div class="italitcsm">17:00</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">End Time:</div></td>
- <td><div class="italitcsm">19:00</div></td>
- </tr>
-</table>
-
+<ol>
+ <li> To create a policy that will create a prime time window between 5pm-7pm everyday:<br/>
+ <table width="100%" cellpadding="5">
+ <tr>
+ <td><div class="italitcsm">Name:</div></td>
+ <td><div class="italitcsm">Prime time Policy</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Description:</div></td>
+ <td><div class="italitcsm">A reservation policy that restricts the number of reservations users to one daily reservation.</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Type</div></td>
+ <td><div class="italitcsm">Reservation</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Schedule Limit</div></td>
+ <td><div class="italitcsm">1</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Court:</div></td>
+ <td><div class="italitcsm">All Courts</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Day of Week</div></td>
+ <td><div class="italitcsm">All Days</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Specify Window</div></td>
+ <td><div class="italitcsm">< checked ></div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Start Time:</div></td>
+ <td><div class="italitcsm">17:00</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">End Time:</div></td>
+ <td><div class="italitcsm">19:00</div></td>
+ </tr>
+ </table>
+ </li>
+</ol>
</body>
</html>
-
View
181 help/skill_range_policies_explained.html
@@ -5,16 +5,14 @@
<title>Reservation Policies</title>
<br>
<LINK href="../main.css" rel=stylesheet type=text/css>
-</head>
-<body>
+</head><body>
<h1>Skill Range Policies</h1>
-<br>
Skill range policies are a convenient and flexible way to control the restrictions. Policies are cumulative, meaning that the most restrictive will apply. <br>
<br>
<table width="100%" cellpadding="5">
<tr>
- <td valign="top"><div class="label">Name:</div></td>
- <td>A meaningful name that will be used to identify the policy on the club preferences page.</td>
+ <td width="14%" valign="top"><div class="label">Name:</div></td>
+ <td width="86%">A meaningful name that will be used to identify the policy on the club preferences page.</td>
</tr>
<tr>
<td valign="top"><div class="label">Description:</div></td>
@@ -34,105 +32,106 @@
</tr>
<tr>
<td valign="top"><div class="label">Day of Week:</div></td>
- <td>Scheduling polices can be applied selectively to specific days or can be applied to all days.</td>
+ <td>Scheduling policies can be applied selectively to specific days or can be applied to all days.</td>
</tr>
<tr>
<td valign="top"><div class="label">Specify Window:</div></td>
- <td>Optionally, scheduling windows can be specified. A scheduling window can be created to block off a time range. This can be used to specify. When a scheduling window is not specified, the scheduling policy applies for the entire day.</td>
+ <td>Optionally, scheduling windows can be specified. A scheduling window can be created to block off a time range during the day. <br />
+ Note: When a scheduling window is not specified, the scheduling policy applies for the entire day.</td>
</tr>
<tr>
<td valign="top"><div class="label">Start Time:</div></td>
- <td>When the specify window checkbox is checked, the start time represents the time of day that the policy will be enforced.</td>
+ <td>When the specify window checkbox is checked, the <em>start-time</em> represents the time of day that the policy will be enforced.</td>
</tr>
<tr>
<td valign="top"><div class="label">End Time:</div></td>
- <td>When the specify window checkbox is checked, the start time represents the time of day that policy is no longer enforced.</td>
+ <td>When the specify window checkbox is checked, the <em>end-time</em> represents the time of day that policy is no longer enforced.</td>
</tr>
</table>
<br>
<br>
<div class="label">Examples:</div>
-1) To create a policy restricting players from making any reservation with other players who are ranked more than .25 higher or lower than them:<br>
-<br>
-<table width="100%" cellpadding="5">
- <tr>
- <td><div class="italitcsm">Name:</div></td>
- <td><div class="italitcsm">Skill Range Policy</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Description:</div></td>
- <td><div class="italitcsm">A cancellation policy restricting users cancellation privileges</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Type</div></td>
- <td><div class="italitcsm">Cancellation</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Skill Range</div></td>
- <td><div class="italitcsm">.25</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Court:</div></td>
- <td><div class="italitcsm">All Courts</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Day of Week</div></td>
- <td><div class="italitcsm">All Days</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Specify Window</div></td>
- <td><div class="italitcsm">< not checked ></div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Start Time:</div></td>
- <td><div class="italitcsm">N/A</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">End Time:</div></td>
- <td><div class="italitcsm">N/A</div></td>
- </tr>
-</table>
-<br>
-<br>
-2) To create a policy restricting players from making reservations on Saturdays between 11am and 2pm with other players who are ranked more than .5 higher or lower than them:<br>
-<br>
-<table width="100%" cellpadding="5">
- <tr>
- <td><div class="italitcsm">Name:</div></td>
- <td><div class="italitcsm">Prime time Policy</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Description:</div></td>
- <td><div class="italitcsm">A reservation policy that restricts the number of reservations users to one daily reservation.</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Type</div></td>
- <td><div class="italitcsm">Reservation</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Skill Range</div></td>
- <td><div class="italitcsm">.5</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Court:</div></td>
- <td><div class="italitcsm">All Courts</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Day of Week</div></td>
- <td><div class="italitcsm">Saturday</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Specify Window</div></td>
- <td><div class="italitcsm">< checked ></div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">Start Time:</div></td>
- <td><div class="italitcsm">11:00</div></td>
- </tr>
- <tr>
- <td><div class="italitcsm">End Time:</div></td>
- <td><div class="italitcsm">14:00</div></td>
- </tr>
-</table>
+<ol>
+ <li>To create a policy restricting players from making any reservation with other players who are ranked more than .25 higher or lower than them:<br />
+ <table width="100%" cellpadding="5">
+ <tr>
+ <td width="13%"><div class="italitcsm">Name:</div></td>
+ <td width="87%"><div class="italitcsm">Skill Range Policy</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Description:</div></td>
+ <td><div class="italitcsm">A cancellation policy restricting users cancellation privileges</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Type:</div></td>
+ <td><div class="italitcsm">Cancellation</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Skill Range:</div></td>
+ <td><div class="italitcsm">.25</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Court:</div></td>
+ <td><div class="italitcsm">All Courts</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Day of Week:</div></td>
+ <td><div class="italitcsm">All Days</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Specify&nbsp;Window:</div></td>
+ <td><div class="italitcsm">< not checked ></div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Start Time:</div></td>
+ <td><div class="italitcsm">N/A</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">End Time:</div></td>
+ <td><div class="italitcsm">N/A</div></td>
+ </tr>
+ </table>
+ </li>
+ <li> To create a policy restricting players from making reservations on Saturdays between 11am and 2pm with other players who are ranked more than .5 higher or lower than them:<br />
+ <table width="100%" cellpadding="5">
+ <tr>
+ <td width="14%"><div class="italitcsm">Name:</div></td>
+ <td width="86%"><div class="italitcsm">Prime time Policy</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Description:</div></td>
+ <td><div class="italitcsm">A reservation policy that restricts the number of reservations users to one daily reservation.</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Type:</div></td>
+ <td><div class="italitcsm">Reservation</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Skill Range:</div></td>
+ <td><div class="italitcsm">.5</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Court:</div></td>
+ <td><div class="italitcsm">All Courts</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Day of Week:</div></td>
+ <td><div class="italitcsm">Saturday</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Specify&nbsp;Window:</div></td>
+ <td><div class="italitcsm">< checked ></div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">Start Time:</div></td>
+ <td><div class="italitcsm">11:00</div></td>
+ </tr>
+ <tr>
+ <td><div class="italitcsm">End Time:</div></td>
+ <td><div class="italitcsm">14:00</div></td>
+ </tr>
+ </table>
+ </li>
+</ol>
</body>
</html>
View
94 help/squash-rankings.html
@@ -1,31 +1,63 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
- <title>Squash Rankings</title><br>
- <LINK href="../main.css" rel=stylesheet type=text/css>
-</head>
-
-<body>
-<h1>Rankings</h1><br>
-Sportsynergy uses a nationally recognized ranking calculation. <br>
-<font class=italitcsm>
-// --------------------------------------------------------------------------<br>
- // WRO= Winner's old rating<br>
- // LRO = Loser's old rating<br>
- // K = constant = .1<br>
- // D = denominator = .5<br>
- // PW = Probability that the winner would win = (1/power(10,(-(WRO-LRO)/D))+1))<br>
- // PL = Probability that the lose would win = (1/Power(10,(-(LRO-WRO)/D))+1))<br>
- // WRN = Winners's new raing = (WRO+K*(1-PW))<br>
- // LRN = Loser's new rating = (LRO+K*K(0-PL)<br>
- // --------------------------------------------------------------------------<br>
-
- </font>
-<br><br>
-The flames next to player's names indicate that the person has won his/her last match
-as welll as at least 13 games in their last 5 matches.
-
-
-</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+