Permalink
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...
1 parent 5428cb0 commit ba61fbf61953c0634cb762bacdaf362f889256ab @wegenern wegenern committed Jan 12, 2012
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

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -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);
+
+ }
?>
Oops, something went wrong.

0 comments on commit ba61fbf

Please sign in to comment.