include "clientscripts.php"; } include_once "prehkeys.php"; if (isset($_POST["loan"])) { $entered = strtoupper(trim($_POST["loan"])); } else { $entered = ""; } $_SESSION["away"] = 1; if (!$entered || strlen($entered) < 1) { gohome(); } if (!is_numeric($entered) || strpbrk($entered, ".") == true) { echo "<body onLoad='document.forms[0].elements[0].focus();'>\n"; printheaderb(); loanenter("Invalid entry<br />Try again (hint: 15000 = \$150)"); } else { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body onload="window.top.input.location = 'input.php'; document.form.submit();" > <?php $_SESSION["loanTime"] = 'time(Y-m-d H:i:s)'; $db = pDataConnect(); $query = "SELECT id FROM custdata WHERE CardNo = 99999"; $result = sql_query($query, $db); $nonmemID = mysql_result($result, 0); setMember($nonmemID);
(at your option) any later version. IS4C is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License in the file license.txt along with IS4C; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *********************************************************************************/ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body onLoad='document.loanamt.loan.focus();'> <?php include "drawscreen.php"; $_SESSION["away"] = 1; printheaderb(); loanenter("Enter loan amount"); $_SESSION["scan"] = "noScan"; $_SESSION["beep"] = "noBeep"; printfooter(); ?> </body> </html>