123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <?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;}*/ ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="360-site-verification" content="a7c876fae8b6e3175a52ea9f19543f51" />
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
- <script src="/static/dist/xm-select.js"></script>
- <link rel="mobile-prefetch" href=""/>
- <title><?php echo get_system_config('web','admin_title'); ?></title>
- <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
- <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
- <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
- <style>
- .layui-td-gray-2{
- text-align: center;
- }
-
- .footer{
- display: none;
- }
- </style>
- </head>
- <body class="main-body">
- <!-- 主体 -->
-
- <form class="layui-form p-4">
- <h3 class="pb-3">编辑总公司</h3>
- <table class="layui-table layui-table-form">
- <tr><td class="layui-td-gray-2">总公司<font>*</font></td>
- <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>
- <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>
- <td><input type="text" name="principal" lay-verify="required" lay-reqText="请完善负责人" value="<?php echo htmlentities($detail['principal']); ?>" autocomplete="off" placeholder="请输入负责人" class="layui-input"></td>
- </tr>
- <tr><td class="layui-td-gray-2">电话<font>*</font></td>
- <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>
- <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>
- <td>
- <select name="module" lay-verify="required" lay-reqText="请完善授权模块">
- <option value="">请选择</option>
- <option value="1" <?php if($detail['module'] == '1'): ?> selected<?php endif; ?>>选项一</option>
- <option value="2" <?php if($detail['module'] == '2'): ?> selected<?php endif; ?>>选项二</option>
- </select>
- </td>
- </tr>
- <tr><td class="layui-td-gray-2">到期时间</td>
- <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>
- <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>
- <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>
- </tr>
- <tr><td class="layui-td-gray-2">删除时间</td>
- <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>
- </tr>
- </table>
- <div class="py-3">
- <input type="hidden" name="" value="<?php echo htmlentities($detail['id']); ?>"/>
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">立即提交</button>
- <button type="reset" class="layui-btn layui-btn-primary">重置</button>
- </div>
- </form>
- <!-- /主体 -->
- <!-- 底部 -->
-
- <div class="footer">
- 逸管工程项目管理系统 © www.yiguanfep.com
- <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
- <a href="https://beian.mps.gov.cn/#/query/websearch?code=45030202000160 " rel="\"noreferrer'target=\”blank\"" onclick="window.open(this.href); return false;">桂公网安备45030202000160号</a>
- <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
- </div>
-
-
- <!-- /底部 -->
-
- <!-- 脚本 -->
-
- <script>
- var moduleInit = ['tool'];
- function gouguInit() {
- var form = layui.form, tool = layui.tool;
- //日期选择
- layui.laydate.render({
- elem: '#laydate_maturity_time' //指定元素
- });//日期选择
- layui.laydate.render({
- elem: '#laydate_create_time' //指定元素
- });//日期选择
- layui.laydate.render({
- elem: '#laydate_update_time' //指定元素
- });//日期选择
- layui.laydate.render({
- elem: '#laydate_delete_time' //指定元素
- });
-
-
- let a = 1;
- //监听提交
- form.on('submit(webform)', function (data) {
- if(a){
- let callback = function (e) {
- layer.msg(e.msg);
- if (e.code == 0) {
- tool.sideClose(1000);
- a = 1
- }
- }
- tool.post("/admin/cpuser.institution/edit", data.field, callback);
- }
-
- a = 0
- return false;
- });
- }
- </script>
- <!-- /脚本 -->
-
- <!-- <script src="/static/assets/layui/layui.js"></script> -->
- <script src="/static/assets/layui/layui.js"></script>
- <script src="/static/assets/third_party/echart/echarts.min.js"></script>
- <script src="/static/assets/gougu/gouguInit.js"></script>
- <script src="https://unpkg.com/pinyin-pro"></script>
- <script>
-
- var { pinyin } = pinyinPro;
- </script>
-
-
- <!-- 统计代码 -->
-
- <!-- /统计代码 -->
- </body>
- </html>
|