123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <{include file='../public/admin_header.html'}>
- <{include file='../public/admin_navi.html'}>
- <!-- 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">
- <{if $info}>
- <div class="alert alert-danger alert-dismissable"><{$info}></div>
- <{/if}>
- <div id='main' class="form-actions">
- <form method="post" action="" id="update_customer">
- <input type="hidden" name="id" value="<{$id}>" />
- <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="<{$one_info.uname}>" />
- </td>
- </tr>
- <tr>
- <td>手机号</td>
- <td>
- <input type="text" name="tel" id="tel" class="form-control" style="width:450px;" value="<{$one_info.tel}>" />
- </td>
- </tr>
- <tr>
- <td>所属分组</td>
- <td>
- <select name="group_name" style="width:450px;" id="group_name">
- <option value="0">请选择</option>
- <{foreach from=$group_list item=item}>
- <option value="<{$item.name}>" <{if $one_info.group_name==$item.name}>selected<{/if}> ><{$item.name}></option>
- <{/foreach}>
- </select>
- <span style="color:red;">所属分组必选</span>
- </td>
- </tr>
- <tr>
- <td>国家</td>
- <td>
- <input type="text" name="country" class="form-control" style="width:450px;" value="<{$one_info.country}>" />
- </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>
- $('#treeview9').addClass('active');
- $(".customer_list_left").addClass('active');
- function to_submit(){
- var tel = $('#tel').val();
- var group_name = $('#group_name').val();
- if(tel=='' || group_name==0){
- alert("邮箱和用户分组为必填项");
- }else{
- $('#update_customer').submit();
- }
- }
- </script>
- </body>
- </html>
|