user_manage_edit.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <link href="<?php echo WEB_SITE_GLOBAL ?>/img/admin/style.css" rel="stylesheet" type="text/css" />
  6. <script type="text/javascript" src="<?php echo WEB_SITE_GLOBAL ?>/js/jquery-1.7.1.min.js"></script>
  7. <script type="text/javascript" src="<?php echo WEB_SITE_GLOBAL ?>/js/admin/over.js"></script>
  8. <script type="text/javascript" src="<?php echo WEB_SITE_GLOBAL ?>/js/admin/admin.js"></script>
  9. <script type="text/javascript" src="<?php echo WEB_SITE_GLOBAL ?>/js/admin/calendar.js"></script>
  10. </head>
  11. <body>
  12. <div class="main_content new_product">
  13. <div class="crumbbar"><a href="/index/main_navon">快速导航</a> » <?php echo $data['map']; ?></div>
  14. <div class=" clearfix">
  15. <div class="globle_list">
  16. <table width="100%" border="0" cellpadding="2" cellspacing="6" style="_margin-left:-10px; ">
  17. <tbody><tr>
  18. <td><table width="100%" border="0" cellpadding="2" cellspacing="6">
  19. <tbody><tr>
  20. <td>
  21. <?php echo $data['success']; ?>
  22. <div id="append">
  23. </div>
  24. <form action="/index/main_user_manage_update" method="post" onsubmit="return user_form()">
  25. <input type="hidden" name="uid" value="<?php echo $data['user']['uid']; ?>"/>
  26. <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
  27. <tbody><tr class="header">
  28. <td colspan="2">用户信息</td>
  29. </tr>
  30. <tr>
  31. <td class="altbg1" width="45%"><b>用户组:</b><br/><span class="smalltxt">用户所在用户组</span></td>
  32. <td class="altbg2">
  33. <select name="groupid">
  34. <optgroup label="会员用户组">
  35. <?php foreach($data['group']['user'] as $k1=>$v1): ?>
  36. <option <?php if( $data['user']['groupid']==$v1['groupid'] ): ?>selected<?php endif; ?> value="<?php echo $v1['groupid']; ?>"><?php echo $v1['grouptitle']; ?></option>
  37. <?php endforeach; ?>
  38. </optgroup>
  39. <optgroup label="系统用户组">
  40. <?php foreach($data['group']['sys'] as $k1=>$v1): ?>
  41. <option <?php if( $data['user']['groupid']==$v1['groupid'] ): ?>selected<?php endif; ?> value="<?php echo $v1['groupid']; ?>"><?php echo $v1['grouptitle']; ?></option>
  42. <?php endforeach; ?>
  43. </optgroup>
  44. <optgroup label="特殊用户组">
  45. <?php foreach($data['group']['vip_user'] as $k1=>$v1): ?>
  46. <option <?php if( $data['user']['groupid']==$v1['groupid'] ): ?>selected<?php endif; ?> value="<?php echo $v1['groupid']; ?>"><?php echo $v1['grouptitle']; ?></option>
  47. <?php endforeach; ?>
  48. </optgroup>
  49. </select>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td class="altbg1" width="45%"><b>专家:</b><br/><span class="smalltxt">设置专家</span></td>
  54. <td class="altbg2">普通用户:<input type="radio" value="0" name="expert" <?php if( $data['user']['expert']==0 ): ?>checked<?php endif; ?> />
  55. 专家:<input type="radio" value="1" name="expert" <?php if( $data['user']['expert']==1 ): ?>checked<?php endif; ?> />
  56. </td>
  57. </tr>
  58. <tr>
  59. <td class="altbg1" width="45%"><b>积分:</b><br/><span class="smalltxt">积分,可以修改</span></td>
  60. <td class="altbg2"><input class="text" name="credit1" value="<?php echo $data['user']['credit1']; ?>"/></td>
  61. </tr>
  62. <tr>
  63. <td class="altbg1" width="45%"><b>性别:</b><br/><span class="smalltxt">用户性别设置</span></td>
  64. <td class="altbg2">
  65. <input class="radio" id="pmcenteryes" type="radio" <?php if( $data['user']['gender']==1 ): ?>checked<?php endif; ?> value="1" name="gender"/><label for="pmcenteryes">帅哥</label>&nbsp;&nbsp;&nbsp;
  66. <input class="radio" id="pmcenterno" type="radio" <?php if( $data['user']['gender']==0 ): ?>checked<?php endif; ?> value="0" name="gender"/><label for="pmcenterno">美女</label>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td class="altbg1" width="45%"><b>生日:</b><br/><span class="smalltxt">用户出生日期</span></td>
  71. <td class="altbg2"><input class="text" name="bday" value="<?php echo $data['user']['bday']; ?>" onclick="showcalendar();"/></td>
  72. </tr>
  73. <tr>
  74. <td class="altbg1" width="45%"><b>联系电话:</b><br/><span class="smalltxt">手机、固话都可以</span></td>
  75. <td class="altbg2"><input class="text" name="phone" value="<?php echo $data['user']['phone']; ?>"/></td>
  76. </tr>
  77. <tr>
  78. <td class="altbg1" width="45%"><b>QQ:</b><br/><span class="smalltxt">QQ号码</span></td>
  79. <td class="altbg2"><input class="text" name="qq" value="<?php echo $data['user']['qq']; ?>"/></td>
  80. </tr>
  81. <tr>
  82. <td class="altbg1" width="45%"><b>MSN:</b><br/><span class="smalltxt">MSN账号</span></td>
  83. <td class="altbg2"><input class="text" name="msn" value="<?php echo $data['user']['msn']; ?>"/></td>
  84. </tr>
  85. <tr>
  86. <td class="altbg1" width="45%"><b>个性签名:</b><br/><span class="smalltxt">设置个性签名</span></td>
  87. <td class="altbg2"><textarea class="textarea" cols="50" rows="2" name="signature"><?php echo $data['user']['signature']; ?></textarea></td>
  88. </tr>
  89. <?php if( $data['user']['expert'] ): ?>
  90. <tr>
  91. <td class="altbg1" width="45%"><b>擅长分类:</b><br/><span class="smalltxt">设置擅长分类</span></td>
  92. <td class="altbg2">
  93. <div>已选中:
  94. <?php if( !empty($data['user']['cids_json']) ): ?>
  95. <?php foreach($data['user']['cids_json'] as $k1=>$v1): ?>
  96. <span style="color:red"><?php echo $v1; ?></span>
  97. <?php endforeach; ?>
  98. <?php endif; ?>
  99. </div>
  100. <?php foreach($data['categoryinfo']['top'] as $k1=>$v1): ?>
  101. <input type="checkbox" id="cids[]" name="cids[]" value="<?php echo $v1->id; ?>:<?php echo $v1->name; ?>" /><?php echo $v1->name; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  102. <?php endforeach; ?>
  103. <?php foreach($data['categoryinfo']['second'] as $k1=>$v1): ?>
  104. <input type="checkbox" id="cids[]" name="cids[]" value="<?php echo $v1->id; ?>:<?php echo $v1->name; ?>" /><?php echo $v1->name; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  105. <?php endforeach; ?>
  106. </td>
  107. </tr>
  108. <?php endif; ?>
  109. </tbody></table>
  110. <br/>
  111. <center><input type="submit" class="button" name="submit" value="提 交"/></center><br/>
  112. </form>
  113. </td></tr>
  114. </tbody>
  115. </table>
  116. </td></tr></tbody></table>
  117. </div>
  118. </div>
  119. </div>
  120. </body>
  121. </html>