Example #1
0
    $away = 1;
    gohome();
} else {
    $memberID = $entered;
    $db_a = pDataConnect();
    if (!is_numeric($entered)) {
        $query = "select * from custdata where LastName like '" . $entered . "%' order by LastName, FirstName";
    } else {
        $query = "select * from custdata where CardNo = '" . $entered . "' order by personNum";
    }
    $result = sql_query($query, $db_a);
    $num_rows = sql_num_rows($result);
    if ($num_rows < 1) {
        echo "<body onLoad='document.searchform.search.focus();'>";
        printheaderb();
        membersearchbox("no match found<br />next search or member number");
    } elseif ($num_rows > 1 || !is_numeric($entered)) {
        ?>
<!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>
        <script type="text/javascript">
            function keyDown(e) {
                if ( !e ) {
                    e = event;
                }
                var ieKey=e.keyCode;
                if (ieKey==13) {
                    document.selectform.submit();
                }
Example #2
0
    (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.searchform.search.focus();'>
        <?
            if (!function_exists("printheaderb")) include("drawscreen.php");

            $_SESSION["away"] = 1;
            printheaderb();
            membersearchbox("enter member number or search string");
            $_SESSION["scan"] = "noScan";
            printfooter();
        ?>
    </body>
</html>