addSort.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. session_start();
  3. if (isset($_SESSION["username"])) {
  4. ?>
  5. <?php require_once('common/header.php'); ?>
  6. <!--页面主要内容-->
  7. <main class="lyear-layout-content">
  8. <div class="container-fluid">
  9. <div class="col-md-12">
  10. <div class="card">
  11. <div class="card-header bg-primary">
  12. <h4>添加分类</h4>
  13. </div>
  14. <div class="card-body">
  15. <form action="controller/tianjiaSort.php" method="POST">
  16. <div class="input-group m-b-10">
  17. <label class="input-group-addon" for="yys" id="basic-addon1">名称</label>
  18. <input type="text" class="form-control" name="yys" placeholder="请输入运营商名称" required>
  19. </div>
  20. <div class="input-group m-b-10">
  21. <span class="input-group-addon" for="yysabbr" id="basic-addon1">缩写</span>
  22. <input type="text" class="form-control" name="yysabbr" placeholder="请输入运营商英文缩写" required>
  23. </div>
  24. <div class="input-group m-b-10">
  25. <span class="input-group-addon" for="sortid" id="basic-addon1">序号</span>
  26. <input type="number" class="form-control" name="sortid" placeholder="填写数字,数值越大越靠前" required>
  27. </div>
  28. <div class="form-row mt-3">
  29. <div class="offset-2">
  30. <button class="btn btn-success" type="submit" value="添加">立即添加</button>
  31. <button class="btn btn-danger" type="reset" value="重置">信息重置</button>
  32. </div>
  33. </div>
  34. </form>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </main>
  41. <!--End 页面主要内容-->
  42. <?php require_once('common/footer.php'); ?>
  43. <?php
  44. } else {
  45. echo "<script>alert('您尚未登录,没有权限访问该页面');location.href='login.php';</script>";
  46. }
  47. ?>