123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- <?php /* Smarty version Smarty-3.1.11, created on 2017-06-28 09:24:20
- compiled from "/www/wwwroot/edm.alipearl.net/application/module/view/customer_list_admin/edit.html" */ ?>
- <?php /*%%SmartyHeaderCode:69392956659530544e8dc54-29906467%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
- $_valid = $_smarty_tpl->decodeProperties(array (
- 'file_dependency' =>
- array (
- '2d664d153f228971248a921c3080194fa946ceea' =>
- array (
- 0 => '/www/wwwroot/edm.alipearl.net/application/module/view/customer_list_admin/edit.html',
- 1 => 1498544916,
- 2 => 'file',
- ),
- ),
- 'nocache_hash' => '69392956659530544e8dc54-29906467',
- 'function' =>
- array (
- ),
- 'variables' =>
- array (
- 'info' => 0,
- 'id' => 0,
- 'one_info' => 0,
- 'group_list' => 0,
- 'item' => 0,
- ),
- 'has_nocache_code' => false,
- 'version' => 'Smarty-3.1.11',
- 'unifunc' => 'content_59530544ef9b60_36697929',
- ),false); /*/%%SmartyHeaderCode%%*/?>
- <?php if ($_valid && !is_callable('content_59530544ef9b60_36697929')) {function content_59530544ef9b60_36697929($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('../public/admin_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
- <?php echo $_smarty_tpl->getSubTemplate ('../public/admin_navi.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
- <!-- Right side column. Contains the navbar and content of the page -->
- <aside class="right-side">
- <!-- Content Header (Page header) -->
- <section class="content-header">
- <h1>
- 编辑客户信息
- <small>Control panel</small>
- </h1>
- <ol class="breadcrumb">
- <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
- <li class="active">Blank page</li>
- </ol>
- </section>
- <!-- Main content -->
- <section class="content">
- <div class="span9">
- <?php if ($_smarty_tpl->tpl_vars['info']->value){?>
- <div class="alert alert-danger alert-dismissable"><?php echo $_smarty_tpl->tpl_vars['info']->value;?>
- </div>
- <?php }?>
- <div id='main' class="form-actions">
- <form method="post" action="" id="update_customer">
- <input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
- " />
- <table class="table table-bordered" style="margin-top:15px;">
- <tr>
- <td>客户名</td>
- <td>
- <input type="text" name="username" class="form-control" style="width:450px;" value="<?php echo $_smarty_tpl->tpl_vars['one_info']->value['uname'];?>
- " />
- </td>
- </tr>
- <tr>
- <td>邮箱</td>
- <td>
- <input type="text" name="email" id="email" class="form-control" style="width:450px;" value="<?php echo $_smarty_tpl->tpl_vars['one_info']->value['email'];?>
- " />
- </td>
- </tr>
- <tr>
- <td>所属分组</td>
- <td>
- <select name="group_name" style="width:450px;" id="group_name">
- <option value="0">请选择</option>
- <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
- $_from = $_smarty_tpl->tpl_vars['group_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
- foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
- $_smarty_tpl->tpl_vars['item']->_loop = true;
- ?>
- <option value="<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
- " <?php if ($_smarty_tpl->tpl_vars['one_info']->value['group_name']==$_smarty_tpl->tpl_vars['item']->value['name']){?>selected<?php }?> ><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
- </option>
- <?php } ?>
- </select>
- <span style="color:red;">所属分组必选</span>
- </td>
- </tr>
- <tr>
- <td>手机号</td>
- <td>
- <input type="text" name="tel" class="form-control" style="width:450px;" value="<?php echo $_smarty_tpl->tpl_vars['one_info']->value['tel'];?>
- " />
- </td>
- </tr>
- <tr>
- <td>国家</td>
- <td>
- <input type="text" name="country" class="form-control" style="width:450px;" value="<?php echo $_smarty_tpl->tpl_vars['one_info']->value['country'];?>
- " />
- </td>
- </tr>
- <tr>
- <td>城市</td>
- <td>
- <input type="text" name="city" class="form-control" style="width:450px;" value="<?php echo $_smarty_tpl->tpl_vars['one_info']->value['city'];?>
- " />
- </td>
- </tr>
- <tr>
- <td> </td>
- <td >
- <input onclick="to_submit();" type="button" value="提交" class="btn btn-info" style="width:120px;" />
- </td>
- </tr>
- </table>
- </form>
- </div>
- </div>
- </section><!-- /.content -->
- </aside><!-- /.right-side -->
- </div><!-- ./wrapper -->
- <style>
- select{height:30px;}
- .form-actions li{list-style:none;width:25px;float:left;padding-bottom:8px;padding-right:5px;}
- </style>
- <script>
- $('#treeview3').addClass('active');
- $(".customer_list_left").addClass('active');
- function to_submit(){
- var email = $('#email').val();
- var group_name = $('#group_name').val();
- if(email=='' || group_name==0){
- alert("邮箱和用户分组为必填项");
- }else{
- $('#update_customer').submit();
- }
- }
- </script>
- </body>
- </html>
- <?php }} ?>
|