工作台 - 开始进件
Showing
8 changed files
with
127 additions
and
1 deletions
| ... | @@ -11,5 +11,23 @@ class Work extends CI_Controller { | ... | @@ -11,5 +11,23 @@ class Work extends CI_Controller { |
| 11 | $this->load->view('work/index'); | 11 | $this->load->view('work/index'); |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | /** | ||
| 15 | * 开始进件 | ||
| 16 | * | ||
| 17 | * @return void | ||
| 18 | */ | ||
| 19 | public function add() | ||
| 20 | { | ||
| 21 | $this->load->view('work/add'); | ||
| 22 | } | ||
| 14 | 23 | ||
| 24 | /** | ||
| 25 | * 开始进件 | ||
| 26 | * | ||
| 27 | * @return void | ||
| 28 | */ | ||
| 29 | public function added() | ||
| 30 | { | ||
| 31 | $this->load->view('work/added'); | ||
| 32 | } | ||
| 15 | } | 33 | } | ... | ... |
| ... | @@ -2,3 +2,6 @@ | ... | @@ -2,3 +2,6 @@ |
| 2 | <script type="text/javascript" src="/resource/lib/layer/2.4/layer.js"></script> | 2 | <script type="text/javascript" src="/resource/lib/layer/2.4/layer.js"></script> |
| 3 | <script type="text/javascript" src="/resource/static/h-ui/js/H-ui.min.js"></script> | 3 | <script type="text/javascript" src="/resource/static/h-ui/js/H-ui.min.js"></script> |
| 4 | <script type="text/javascript" src="/resource/static/h-ui.admin/js/H-ui.admin.js"></script> | 4 | <script type="text/javascript" src="/resource/static/h-ui.admin/js/H-ui.admin.js"></script> |
| 5 | <script type="text/javascript" src="/resource/lib/jquery.validation/1.14.0/jquery.validate.js"></script> | ||
| 6 | <script type="text/javascript" src="/resource/lib/jquery.validation/1.14.0/validate-methods.js"></script> | ||
| 7 | <script type="text/javascript" src="/resource/lib/jquery.validation/1.14.0/messages_zh.js"></script> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
| 7 | <nav class="nav navbar-nav"> | 7 | <nav class="nav navbar-nav"> |
| 8 | <ul class="cl"> | 8 | <ul class="cl"> |
| 9 | <li class="dropDown dropDown_hover"> | 9 | <li class="dropDown dropDown_hover"> |
| 10 | <a href="<?=site_url('welcome/work')?>">工作台</a> | 10 | <a data-href="<?=site_url('work')?>" data-title="全部进件" onClick="Hui_admin_tab(this)">工作台</a> |
| 11 | </li> | 11 | </li> |
| 12 | <li class="dropDown dropDown_hover"> | 12 | <li class="dropDown dropDown_hover"> |
| 13 | <a href="<?=site_url('welcome/user')?>" >用户管理</a> | 13 | <a href="<?=site_url('welcome/user')?>" >用户管理</a> | ... | ... |
| 1 | <aside class="Hui-aside"> | 1 | <aside class="Hui-aside"> |
| 2 | <div class="menu_dropdown bk_2"> | 2 | <div class="menu_dropdown bk_2"> |
| 3 | <ul> | ||
| 4 | <li><a data-href="<?=site_url('/work/add')?>" data-title="开始进件" href="javascript:void(0)"><i class="Hui-iconfont"></i> 开始进件</a></li> | ||
| 5 | <li><a data-href="<?=site_url('/work')?>" data-title="开始进件" href="javascript:void(0)"><i class="Hui-iconfont"></i> 全部进件</a></li> | ||
| 6 | </ul> | ||
| 3 | <dl id="menu-article"> | 7 | <dl id="menu-article"> |
| 4 | <dt><i class="Hui-iconfont"></i> 工作台<i class="Hui-iconfont menu_dropdown-arrow"></i></dt> | 8 | <dt><i class="Hui-iconfont"></i> 工作台<i class="Hui-iconfont menu_dropdown-arrow"></i></dt> |
| 5 | <dd> | 9 | <dd> | ... | ... |
application/views/work/add.php
0 → 100644
| 1 | <!-- | ||
| 2 | 开始进件 | ||
| 3 | --> | ||
| 4 | <?php $this->load->view('common/header'); ?> | ||
| 5 | |||
| 6 | <body> | ||
| 7 | <div class="page-container"> | ||
| 8 | <div class="panel panel-default"> | ||
| 9 | <div class="panel-header">填写借款人信息</div> | ||
| 10 | <div class="panel-body"> | ||
| 11 | <form action="<?=site_url('work/added')?>" method="post" class="form form-horizontal" id="work_add"> | ||
| 12 | <div class="row cl"> | ||
| 13 | <label class="form-label col-xs-4 col-sm-3">姓名</label> | ||
| 14 | <div class="formControls col-xs-3 col-sm-3"> | ||
| 15 | <input type="text" class="input-text" name="name"> | ||
| 16 | </div> | ||
| 17 | </div> | ||
| 18 | <div class="row cl"> | ||
| 19 | <label class="form-label col-xs-4 col-sm-3">手机号</label> | ||
| 20 | <div class="formControls col-xs-3 col-sm-3"> | ||
| 21 | <input type="text" class="input-text" name="tel"> | ||
| 22 | </div> | ||
| 23 | </div> | ||
| 24 | <div class="row cl"> | ||
| 25 | <label class="form-label col-xs-4 col-sm-3">身份证</label> | ||
| 26 | <div class="formControls col-xs-3 col-sm-3"> | ||
| 27 | <input type="text" class="input-text" name="ID"> | ||
| 28 | </div> | ||
| 29 | </div> | ||
| 30 | <div class="row cl"> | ||
| 31 | <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3"> | ||
| 32 | <input class="btn btn-primary radius" type="submit" value="提交"> | ||
| 33 | </div> | ||
| 34 | </div> | ||
| 35 | </form> | ||
| 36 | </div> | ||
| 37 | </div> | ||
| 38 | </div> | ||
| 39 | <?php $this->load->view('common/footer'); ?> | ||
| 40 | |||
| 41 | <script> | ||
| 42 | $().ready(function() { | ||
| 43 | $("#work_add").validate({ | ||
| 44 | rules: { | ||
| 45 | name: { | ||
| 46 | required: true, | ||
| 47 | rangelength: [2, 5], | ||
| 48 | isChinese: true | ||
| 49 | }, | ||
| 50 | tel: { | ||
| 51 | required: true, | ||
| 52 | isMobile: true | ||
| 53 | }, | ||
| 54 | ID: { | ||
| 55 | isIdCardNo: true, | ||
| 56 | required: true | ||
| 57 | } | ||
| 58 | } | ||
| 59 | }); | ||
| 60 | }); | ||
| 61 | </script> | ||
| 62 | </body> | ||
| 63 | </html> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
application/views/work/added.php
0 → 100644
| 1 | <!-- | ||
| 2 | 开始进件 | ||
| 3 | --> | ||
| 4 | <?php $this->load->view('common/header'); ?> | ||
| 5 | |||
| 6 | <body> | ||
| 7 | <div class="page-container"> | ||
| 8 | <div class="panel panel-default"> | ||
| 9 | <div class="panel-header">提交结果</div> | ||
| 10 | <div class="panel-body text-c"> | ||
| 11 | <div class="msg pb-20"> | ||
| 12 | <img src="<?=base_url("/resource/check.png");?>" /> | ||
| 13 | <p><strong>提交成功</strong></p> | ||
| 14 | <p class="c-666">提示: 已经【消息推送】方式通知相应工作人员进行预审</p> | ||
| 15 | </div> | ||
| 16 | <div class="flow pb-20"> | ||
| 17 | </div> | ||
| 18 | <div> | ||
| 19 | <button onclick="loadIframe('<?=site_url('/work/all')?>', '全部进件');" class="btn btn-primary size-M radius mr-20">返回【进行记录】</a> | ||
| 20 | <button onclick="loadIframe('<?=site_url('/work/add')?>', '开始进件');" class="btn btn-primary size-M radius ml-20">继续【添加进行】</button> | ||
| 21 | </div> | ||
| 22 | </div> | ||
| 23 | </div> | ||
| 24 | </div> | ||
| 25 | |||
| 26 | <?php $this->load->view('common/footer'); ?> | ||
| 27 | </body> | ||
| 28 | </html> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
resource/check.png
0 → 100644
22.6 KB
| ... | @@ -93,6 +93,16 @@ function min_titleList(){ | ... | @@ -93,6 +93,16 @@ function min_titleList(){ |
| 93 | aLi = show_nav.find("li"); | 93 | aLi = show_nav.find("li"); |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | function loadIframe(href, titleName) { | ||
| 97 | var topWindow = $(window.parent.document), | ||
| 98 | iframe = topWindow.find('#iframe_box .show_iframe'), | ||
| 99 | tab = topWindow.find(".acrossTab li"), | ||
| 100 | showTab = topWindow.find(".acrossTab li.active"), | ||
| 101 | i = showTab.index(); | ||
| 102 | tab.eq(i).html('<span data-href="'+href+'">'+titleName+'</span><i></i><em></em>'); | ||
| 103 | iframe.eq(i).load(href); | ||
| 104 | } | ||
| 105 | |||
| 96 | /*创建iframe*/ | 106 | /*创建iframe*/ |
| 97 | function creatIframe(href,titleName){ | 107 | function creatIframe(href,titleName){ |
| 98 | var topWindow=$(window.parent.document), | 108 | var topWindow=$(window.parent.document), | ... | ... |
-
Please register or sign in to post a comment