<html> <head> </head> <?php include 'index.php'; ?> <body> <fieldset style="background-color:#2F4F4F"> <legend>Please Enter the Below details carefully</legend> <form method="post" action=""> <input type="hidden" name="posted" value="true"> Name: <input type="text" name="name" placeholder="Enter the Name of customer" size="60px" max="40"><br/> Address: <input type="text" name="address" placeholder="recent address"size="58px"></br> <input type="submit" value="Submit" > <input type="reset" value="RESET"> </form> </fieldset> </body> </html> <?php if (isset($_POST['posted'])) { include 'function.php'; $add = new telephone(); $add->add_the_new_costumer(); } ?>
<html><head> </head> <?php include 'index.php'; ?> <body> <fieldset style="background-color:#2F4F4F"> <legend>Please Enter the Below details carefully</legend> <form method="post" action="bill.php" > <input type="hidden" name="posted" value="true"> ID <input type="id" name="id" placeholder="Enter the ID of customer"><br/> <b>Calls : </b><input type="number" name="call" placeholder="Enter the total number of calls" size="40" required><br/><br/> <b>Paid Amount: </b><input type="text" name="paid_amount" placeholder="Enter the amount paid." size="40" required><br/><br/> <input type="submit" value="Submit"> <input type="reset" value="RESET"> </form> </fieldset> <?php if (isset($_POST['posted'])) { include 'function.php'; $bill = new telephone(); $bill->bill_calculate(); } ?>
echo $resultStr_text; //输出结果 exit; } else { if (strstr($keyword, "答案")) { $e = new Daan(); $contentStr = $e->responseMsg($fromUsername, $keyword) . $hint_str; $resultStr_text = sprintf($textTpl, $fromUsername, $toUsername, $time, "text", $contentStr); echo $resultStr_text; //输出结果 exit; } else { if (strstr($keyword, "@") || strstr($keyword, "电话")) { //若关键字为“@ 或 电话”就查询电话号码 $keyword = str_replace($dictionary, "", $keyword); $a = new telephone(); $contentStr = $a->responseMsg($keyword, $fromUsername); $resultStr_text = sprintf($textTpl, $fromUsername, $toUsername, $time, "text", $contentStr); echo $resultStr_text; //输出结果 exit; } else { if (strstr($keyword, "雷亚")) { $b = new TheaterLeiYa(); $contentStr = $b->responseMsg(); $resultStr_text = sprintf($textTpl, $fromUsername, $toUsername, $time, "text", $contentStr); echo $resultStr_text; //输出结果 exit; } else { if (strstr($keyword, "大剧院")) {
<html><head> </head> <?php include 'index.php'; ?> <body> <form method="post" action=""> <input type="hidden" name="posted" value="true"> ID <input type="id" name="id" placeholder="Enter the ID of customer"><br/> Name: <input type="text" name="name" placeholder="Enter the Name of customer"><br/> Address: <input type="text" name="address" placeholder="recent address"></br> <input type="submit" value="Submit"> <input type="reset" value="RESET"> </body> </html> <?php if (isset($_POST['posted'])) { include 'function.php'; $add = new telephone(); $add->update_the_customer(); }
<html><head> </head> <?php include 'index.php'; ?> <body> <form method="post" action="operation.php"> <input type="hidden" value="true" name="posted"> ID <input type="number" name="id" placeholder="Enter the ID of customer"><br/> <select name="operation"> <option value="display" selected>Display</option> <option value="delete" >DELETE</option</option> </select> <input type="submit" value="SUBMIT"> <input type="reset" value="RESET"> </form> </body> </html> <?php if (isset($_POST['posted'])) { include 'function.php'; $sym = $_POST['operation']; $operate = new telephone(); if ($sym == 'delete') { $operate->delete_the_customer(); } else { $operate->display_customer(); } }