72b485bd31e3791eca4e85aefff0208b.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?php /*a:2:{s:71:"D:\phpstudy_pro\WWW\caiping\app\admin\view\cpuser\institution\edit.html";i:1723541257;s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\common\base.html";i:1723541257;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="360-site-verification" content="a7c876fae8b6e3175a52ea9f19543f51" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
  10. <script src="/static/dist/xm-select.js"></script>
  11. <link rel="mobile-prefetch" href=""/>
  12. <title><?php echo get_system_config('web','admin_title'); ?></title>
  13. <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
  14. <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
  15. <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
  16. <style>
  17. .layui-td-gray-2{
  18. text-align: center;
  19. }
  20. .footer{
  21. display: none;
  22. }
  23. </style>
  24. </head>
  25. <body class="main-body">
  26. <!-- 主体 -->
  27. <form class="layui-form p-4">
  28. <h3 class="pb-3">编辑总公司</h3>
  29. <table class="layui-table layui-table-form">
  30. <tr><td class="layui-td-gray-2">总公司<font>*</font></td>
  31. <td><input type="text" name="parent_company" lay-verify="required" lay-reqText="请完善总公司" value="<?php echo htmlentities($detail['parent_company']); ?>" autocomplete="off" placeholder="请输入总公司" class="layui-input"></td><td class="layui-td-gray-2">名称<font>*</font></td>
  32. <td><input type="text" name="name" lay-verify="required" lay-reqText="请完善名称" value="<?php echo htmlentities($detail['name']); ?>" autocomplete="off" placeholder="请输入名称" class="layui-input"></td><td class="layui-td-gray-2">负责人<font>*</font></td>
  33. <td><input type="text" name="principal" lay-verify="required" lay-reqText="请完善负责人" value="<?php echo htmlentities($detail['principal']); ?>" autocomplete="off" placeholder="请输入负责人" class="layui-input"></td>
  34. </tr>
  35. <tr><td class="layui-td-gray-2">电话<font>*</font></td>
  36. <td><input type="text" name="phone" lay-verify="required" lay-reqText="请完善电话" value="<?php echo htmlentities($detail['phone']); ?>" autocomplete="off" placeholder="请输入电话" class="layui-input"></td><td class="layui-td-gray-2">公司类型<font>*</font></td>
  37. <td><input type="text" name="type" lay-verify="required" lay-reqText="请完善公司类型" value="<?php echo htmlentities($detail['type']); ?>" autocomplete="off" placeholder="请输入公司类型" class="layui-input"></td><td class="layui-td-gray-2">授权模块<font>*</font></td>
  38. <td>
  39. <select name="module" lay-verify="required" lay-reqText="请完善授权模块">
  40. <option value="">请选择</option>
  41. <option value="1" <?php if($detail['module'] == '1'): ?> selected<?php endif; ?>>选项一</option>
  42. <option value="2" <?php if($detail['module'] == '2'): ?> selected<?php endif; ?>>选项二</option>
  43. </select>
  44. </td>
  45. </tr>
  46. <tr><td class="layui-td-gray-2">到期时间</td>
  47. <td><input type="text" name="maturity_time" value="<?php echo htmlentities(time_format($detail['maturity_time'],'Y-m-d')); ?>" readonly readonly id="laydate_maturity_time" autocomplete="off" placeholder="请选择" class="layui-input"></td><td class="layui-td-gray-2">创建时间</td>
  48. <td><input type="text" name="create_time" value="<?php echo htmlentities(time_format($detail['create_time'],'Y-m-d')); ?>" readonly readonly id="laydate_create_time" autocomplete="off" placeholder="请选择" class="layui-input"></td><td class="layui-td-gray-2">更新时间</td>
  49. <td><input type="text" name="update_time" value="<?php echo htmlentities(time_format($detail['update_time'],'Y-m-d')); ?>" readonly readonly id="laydate_update_time" autocomplete="off" placeholder="请选择" class="layui-input"></td>
  50. </tr>
  51. <tr><td class="layui-td-gray-2">删除时间</td>
  52. <td><input type="text" name="delete_time" value="<?php echo htmlentities(time_format($detail['delete_time'],'Y-m-d')); ?>" readonly readonly id="laydate_delete_time" autocomplete="off" placeholder="请选择" class="layui-input"></td><td colspan='4'></td>
  53. </tr>
  54. </table>
  55. <div class="py-3">
  56. <input type="hidden" name="" value="<?php echo htmlentities($detail['id']); ?>"/>
  57. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">立即提交</button>
  58. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  59. </div>
  60. </form>
  61. <!-- /主体 -->
  62. <!-- 底部 -->
  63. <div class="footer">
  64. 逸管工程项目管理系统 © www.yiguanfep.com
  65. <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
  66. <a href="https://beian.mps.gov.cn/#/query/websearch?code=45030202000160 " rel="\&quot;noreferrer'target=\”blank\&quot;" onclick="window.open(this.href); return false;">桂公网安备45030202000160号</a>
  67. <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
  68. </div>
  69. <!-- /底部 -->
  70. <!-- 脚本 -->
  71. <script>
  72. var moduleInit = ['tool'];
  73. function gouguInit() {
  74. var form = layui.form, tool = layui.tool;
  75. //日期选择
  76. layui.laydate.render({
  77. elem: '#laydate_maturity_time' //指定元素
  78. });//日期选择
  79. layui.laydate.render({
  80. elem: '#laydate_create_time' //指定元素
  81. });//日期选择
  82. layui.laydate.render({
  83. elem: '#laydate_update_time' //指定元素
  84. });//日期选择
  85. layui.laydate.render({
  86. elem: '#laydate_delete_time' //指定元素
  87. });
  88. let a = 1;
  89. //监听提交
  90. form.on('submit(webform)', function (data) {
  91. if(a){
  92. let callback = function (e) {
  93. layer.msg(e.msg);
  94. if (e.code == 0) {
  95. tool.sideClose(1000);
  96. a = 1
  97. }
  98. }
  99. tool.post("/admin/cpuser.institution/edit", data.field, callback);
  100. }
  101. a = 0
  102. return false;
  103. });
  104. }
  105. </script>
  106. <!-- /脚本 -->
  107. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  108. <script src="/static/assets/layui/layui.js"></script>
  109. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  110. <script src="/static/assets/gougu/gouguInit.js"></script>
  111. <script src="https://unpkg.com/pinyin-pro"></script>
  112. <script>
  113. var { pinyin } = pinyinPro;
  114. </script>
  115. <!-- 统计代码 -->
  116. <!-- /统计代码 -->
  117. </body>
  118. </html>