:::

5-6 post_tpl.html

<!DOCTYPE html>
<html lang="zh-TW">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <title>編輯新聞</title>

  <!-- Latest compiled and minified CSS -->
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">

</head>
<body>

  <div class="container">

    <h1>編輯新聞</h1>

    <div class="row">

      <div class="col-md-9">
        <!-- 表單 action指定變數欲送至的目的地,method指定變數傳送方式 -->
        <form action="post.php" method="post" role="form">
          <div class="form-group">
            <input type="text" name="news_title" placeholder="請輸入新聞標題" class="form-control" value="[var.news_title]">
          </div>

          <div class="form-group">
            <textarea name="news_content" style="height:300px;" placeholder="請輸入新聞內容" class="form-control">[var.news_content]</textarea>
          </div>

          <div class="row">
            <div class="col-md-3">
            </div>
            <div class="col-md-3">
              [var.ip]
            </div>
            <div class="col-md-3">
              <div class="form-group">
                <input type="password" name="password" class="form-control" placeholder="請輸入密碼">
              </div>
            </div>
            <div class="col-md-3">

              <input type="hidden" name="sn" value="[var.sn]">
              <input type="hidden" name="op" value="[var.next_op]">
              <input type="submit" value="儲存新聞" class="btn btn-info btn-block">
            </div>
          </div>

          [var.passwd_error]

        </form>
      </div>

      <div class="col-md-3">
        <a href="index.php" class="btn btn-success btn-block">新聞列表</a>

        <img src="http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=[var.url]" alt="QR Code">
        [var.url]
      </div>

    </div>
  </div>

</body>
</html>

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1069%26tbsn%3D34

書籍目錄

展開 | 闔起

線上使用者

60人線上 (17人在瀏覽線上書籍)

會員: 0

訪客: 60

更多…