2d664d153f228971248a921c3080194fa946ceea.file.edit.html.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <?php /* Smarty version Smarty-3.1.11, created on 2017-06-28 09:24:20
  2. compiled from "/www/wwwroot/edm.alipearl.net/application/module/view/customer_list_admin/edit.html" */ ?>
  3. <?php /*%%SmartyHeaderCode:69392956659530544e8dc54-29906467%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '2d664d153f228971248a921c3080194fa946ceea' =>
  8. array (
  9. 0 => '/www/wwwroot/edm.alipearl.net/application/module/view/customer_list_admin/edit.html',
  10. 1 => 1498544916,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '69392956659530544e8dc54-29906467',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'info' => 0,
  21. 'id' => 0,
  22. 'one_info' => 0,
  23. 'group_list' => 0,
  24. 'item' => 0,
  25. ),
  26. 'has_nocache_code' => false,
  27. 'version' => 'Smarty-3.1.11',
  28. 'unifunc' => 'content_59530544ef9b60_36697929',
  29. ),false); /*/%%SmartyHeaderCode%%*/?>
  30. <?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);?>
  31. <?php echo $_smarty_tpl->getSubTemplate ('../public/admin_navi.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
  32. <!-- Right side column. Contains the navbar and content of the page -->
  33. <aside class="right-side">
  34. <!-- Content Header (Page header) -->
  35. <section class="content-header">
  36. <h1>
  37. 编辑客户信息
  38. <small>Control panel</small>
  39. </h1>
  40. <ol class="breadcrumb">
  41. <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  42. <li class="active">Blank page</li>
  43. </ol>
  44. </section>
  45. <!-- Main content -->
  46. <section class="content">
  47. <div class="span9">
  48. <?php if ($_smarty_tpl->tpl_vars['info']->value){?>
  49. <div class="alert alert-danger alert-dismissable"><?php echo $_smarty_tpl->tpl_vars['info']->value;?>
  50. </div>
  51. <?php }?>
  52. <div id='main' class="form-actions">
  53. <form method="post" action="" id="update_customer">
  54. <input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
  55. " />
  56. <table class="table table-bordered" style="margin-top:15px;">
  57. <tr>
  58. <td>客户名</td>
  59. <td>
  60. <input type="text" name="username" class="form-control" style="width:450px;" value="<?php echo $_smarty_tpl->tpl_vars['one_info']->value['uname'];?>
  61. " />
  62. </td>
  63. </tr>
  64. <tr>
  65. <td>邮箱</td>
  66. <td>
  67. <input type="text" name="email" id="email" class="form-control" style="width:450px;" value="<?php echo $_smarty_tpl->tpl_vars['one_info']->value['email'];?>
  68. " />
  69. </td>
  70. </tr>
  71. <tr>
  72. <td>所属分组</td>
  73. <td>
  74. <select name="group_name" style="width:450px;" id="group_name">
  75. <option value="0">请选择</option>
  76. <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
  77. $_from = $_smarty_tpl->tpl_vars['group_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  78. foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
  79. $_smarty_tpl->tpl_vars['item']->_loop = true;
  80. ?>
  81. <option value="<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
  82. " <?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'];?>
  83. </option>
  84. <?php } ?>
  85. </select>
  86. <span style="color:red;">所属分组必选</span>
  87. </td>
  88. </tr>
  89. <tr>
  90. <td>手机号</td>
  91. <td>
  92. <input type="text" name="tel" class="form-control" style="width:450px;" value="<?php echo $_smarty_tpl->tpl_vars['one_info']->value['tel'];?>
  93. " />
  94. </td>
  95. </tr>
  96. <tr>
  97. <td>国家</td>
  98. <td>
  99. <input type="text" name="country" class="form-control" style="width:450px;" value="<?php echo $_smarty_tpl->tpl_vars['one_info']->value['country'];?>
  100. " />
  101. </td>
  102. </tr>
  103. <tr>
  104. <td>城市</td>
  105. <td>
  106. <input type="text" name="city" class="form-control" style="width:450px;" value="<?php echo $_smarty_tpl->tpl_vars['one_info']->value['city'];?>
  107. " />
  108. </td>
  109. </tr>
  110. <tr>
  111. <td>&nbsp;</td>
  112. <td >
  113. <input onclick="to_submit();" type="button" value="提交" class="btn btn-info" style="width:120px;" />
  114. </td>
  115. </tr>
  116. </table>
  117. </form>
  118. </div>
  119. </div>
  120. </section><!-- /.content -->
  121. </aside><!-- /.right-side -->
  122. </div><!-- ./wrapper -->
  123. <style>
  124. select{height:30px;}
  125. .form-actions li{list-style:none;width:25px;float:left;padding-bottom:8px;padding-right:5px;}
  126. </style>
  127. <script>
  128. $('#treeview3').addClass('active');
  129. $(".customer_list_left").addClass('active');
  130. function to_submit(){
  131. var email = $('#email').val();
  132. var group_name = $('#group_name').val();
  133. if(email=='' || group_name==0){
  134. alert("邮箱和用户分组为必填项");
  135. }else{
  136. $('#update_customer').submit();
  137. }
  138. }
  139. </script>
  140. </body>
  141. </html>
  142. <?php }} ?>