/LANE/decision.php

https://github.com/joelbrock/is4c_nofc · PHP · 68 lines · 36 code · 10 blank · 22 comment · 4 complexity · ed0856247ea570d99dd460ab53df9e72 MD5 · raw file

  1. <?php
  2. /*******************************************************************************
  3. Copyright 2001, 2004 Wedge Community Co-op
  4. This file is part of IS4C.
  5. IS4C is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. IS4C is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. in the file license.txt along with IS4C; if not, write to the Free Software
  15. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. *********************************************************************************/
  17. ?>
  18. <html>
  19. <body>
  20. <FORM name='Form1' method='post' action='/pos2.php'>
  21. <INPUT Type='hidden' name='input' value=''>
  22. </FORM>
  23. <?php
  24. if (!function_exists("endorseType")) include_once("clientscripts.php"); // apbw 03/24/05 Wedge Printer Swap Patch
  25. $decision = strtoupper(trim($_POST["input"]));
  26. if ($decision == "CL") {
  27. $_SESSION["msgrepeat"] = 0;
  28. $_SESSION["toggletax"] = 0;
  29. $_SESSION["chargetender"] = 0;
  30. $_SESSION["togglefoodstamp"] = 0;
  31. $_SESSION["endorseType"] = "";
  32. /* header("Location:/pos2.php");*/
  33. echo "<script language='javascript'>";
  34. echo "window.location = '/pos2.php';";
  35. echo "</script>";
  36. }
  37. elseif (strlen($decision) > 0) {
  38. $_SESSION["msgrepeat"] = 0;
  39. echo "<SCRIPT language=\"javascript\">"
  40. ."document.Form1.input.value=\"".$_SESSION["strEntered"]."\";"
  41. ."document.Form1.submit();"
  42. ."</SCRIPT>";
  43. } else {
  44. endorseType();
  45. echo "<SCRIPT language=\"javascript\">"
  46. ."document.Form1.input.value=\"".$_SESSION["strEntered"]."\";"
  47. ."document.Form1.submit();"
  48. ."</SCRIPT>";
  49. }
  50. ?>
  51. </body>
  52. </html>