コード例 #1
0
<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:&nbsp;<input type="text" name="name" placeholder="Enter the Name of customer" size="60px" max="40"><br/>
  Address:&nbsp;<input type="text" name="address" placeholder="recent address"size="58px"></br>
  <input type="submit" value="Submit" >
  &nbsp;&nbsp;<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();
}
?>
 
コード例 #2
0
<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&nbsp;<input type="id" name="id" placeholder="Enter the ID of customer"><br/>
 <b>Calls :&nbsp;&nbsp;</b><input type="number" name="call"  placeholder="Enter the total number of calls" size="40" required><br/><br/>
 <b>Paid Amount:&nbsp;</b><input type="text" name="paid_amount"  placeholder="Enter the amount paid." size="40" required><br/><br/>
 
<input type="submit" value="Submit">
  &nbsp;&nbsp;<input type="reset" value="RESET">
  </form>
  </fieldset>
  <?php 
if (isset($_POST['posted'])) {
    include 'function.php';
    $bill = new telephone();
    $bill->bill_calculate();
}
?>
 
コード例 #3
0
ファイル: index.php プロジェクト: sueflybaby/learngit
     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, "大剧院")) {
コード例 #4
0
<html><head>
</head>
<?php 
include 'index.php';
?>
<body>
<form method="post" action="">
<input type="hidden" name="posted" value="true">
  ID&nbsp;<input type="id" name="id" placeholder="Enter the ID of customer"><br/>

  Name:&nbsp;<input type="text" name="name" placeholder="Enter the Name of customer"><br/>
  Address:&nbsp;<input type="text" name="address" placeholder="recent address"></br>
  <input type="submit" value="Submit">
  &nbsp;&nbsp;<input type="reset" value="RESET">
 </body>
  </html>
  <?php 
if (isset($_POST['posted'])) {
    include 'function.php';
    $add = new telephone();
    $add->update_the_customer();
}
コード例 #5
0
<html><head>
</head>
<?php 
include 'index.php';
?>
<body>
<form method="post" action="operation.php">
<input type="hidden" value="true" name="posted">
  ID&nbsp;<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">

  &nbsp;&nbsp;<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();
    }
}