?> <br><br><H1>Registration</H1> <br><br>Save this page to a PDF file and send to petclinic.email@gmail.com <br><br> <?php $mysqli = new mysqli('localhost', $user, mc_decrypt($_SESSION["up"], ps_key), ''); $sql = "SELECT * FROM `petcliniccorp`.`company`;"; $result = $mysqli->query($sql); if ($result == FALSE) { put_errormsg("Cannot access petcliniccorp.company table"); } else { $row_cnt = $result->num_rows; if ($row_cnt == 0) { put_errormsg("The Company Information is missing"); } else { while ($row = $result->fetch_row()) { $coname = $row[0]; $address = mc_decrypt($row[1], ENCRYPTION_KEY); $city = mc_decrypt($row[3], ENCRYPTION_KEY); $state = $row[5]; $zipcode = $row[6]; $telephone = $row[9]; } } } $mysqli->close(); $errormsg = get_errormsg(); echo "<br><br>"; echo $coname . "<br>" . $address . "<br>" . $city . "<br>" . $state . "<br>" . $zipcode . "<br>" . $telephone . "<br><br>"; echo "<br><br><br>"; include "includes/returnmainmenu.inc";
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * *****************************************************************/ session_start(); $display = "Login"; $background = "0"; $logFileName = "user"; $headerTitle = "USER LOG"; require_once "includes/header1.inc"; require_once "includes/header2.inc"; require_once "includes/common.inc"; $log->logThis($logdatetimeecc . "user at login display"); $emplnumber = ''; if (isset($_SESSION['employeenumber'])) { $emplnumber = $_SESSION['employeenumber']; } $errormessage = get_errormsg(); delete_errormsg(); ?> <form action="login.php" method="post"> <div id="loginPage" class="center"> <div id="loginLeft" class="left"> <img class="loginImg" src="pictures/dog.jpg"><br> <img src="pictures/dog1.jpg"> </div> <div id="loginMiddle"> <div class="fieldSet"> <div class="fieldLabel">Employee Number</div><input type="text" name="emplnumber" value="" size="20" maxlength="10"> </div> <div class="fieldSet"> <div class="fieldLabel">User ID</div><input type="text" name="userid" value="" size="20" maxlength="20"> </div>