addChannel.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. session_start();
  3. if (isset($_SESSION["username"])) {
  4. ?>
  5. <?php require_once('common/header.php');
  6. $time = time();
  7. ?>
  8. <!--页面主要内容-->
  9. <main class="lyear-layout-content">
  10. <div class="container-fluid">
  11. <div class="col-md-12">
  12. <div class="card">
  13. <div class="card-header bg-primary">
  14. <h4>添加渠道</h4>
  15. </div>
  16. <div class="card-body">
  17. <form action="controller/doChannel.php" method="POST">
  18. <div class="input-group m-b-10">
  19. <label class="input-group-addon" for="channel_name" id="basic-addon1">渠道名称</label>
  20. <input type="text" class="form-control" name="channel_name" placeholder="请输入渠道名称" required>
  21. </div>
  22. <div class="input-group m-b-10">
  23. <span class="input-group-addon" for="channel_type" id="basic-addon1">渠道类型</span>
  24. <select class="form-control" name="channel_type">
  25. <option value="0">线上渠道</option>
  26. <option value="1">线下渠道</option>
  27. </select>
  28. </div>
  29. <div class="input-group m-b-10">
  30. <span class="input-group-addon" for="channel_leader" id="basic-addon1">渠道负责人</span>
  31. <input type="text" class="form-control" name="channel_leader" placeholder="请输入渠道负责人" required>
  32. </div>
  33. <div class="input-group m-b-10">
  34. <span class="input-group-addon" for="channel_phone" id="basic-addon1">负责人号码</span>
  35. <input type="text" class="form-control" name="channel_phone" placeholder="请输入负责人号码" required>
  36. </div>
  37. <!--<div class="input-group m-b-10">-->
  38. <!-- <span class="input-group-addon" for="channel_type" id="basic-addon1">时间戳</span>-->
  39. <input type="hidden" class="form-control" name="channel_ctime" value="<?php echo $time; ?>" required>
  40. <!--</div>-->
  41. <div class="form-row mt-3">
  42. <div class="offset-2">
  43. <button class="btn btn-success" type="submit" value="添加">立即添加</button>
  44. <button class="btn btn-danger" type="reset" value="重置">信息重置</button>
  45. </div>
  46. </div>
  47. </form>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </main>
  54. <!--End 页面主要内容-->
  55. <?php require_once('common/footer.php'); ?>
  56. <?php
  57. } else {
  58. echo "<script>alert('您尚未登录,没有权限访问该页面');location.href='login.php';</script>";
  59. }
  60. ?>