5c057b70cf849069aa918c118839d86bdca046d6.file.add.html.php 5.0 KB

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