edit_chain.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_chain}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form id="chain_form" method="post" action="{:url('Chain/save_edit')}">
  13. <input type="hidden" name="did" value="{$chain_info.chain_id}">
  14. <table class="ds-default-table">
  15. <tbody>
  16. <tr class="noborder">
  17. <td colspan="2" class="required">{$Think.lang.chain_username}:</td>
  18. </tr>
  19. <tr class="noborder">
  20. <td class="vatop rowform">{$chain_info.chain_name}</td>
  21. <td class="vatop tips"></td>
  22. </tr>
  23. <tr>
  24. <td colspan="2" class="required">{$Think.lang.chain_truename}:</td>
  25. </tr>
  26. <tr class="noborder">
  27. <td class="vatop rowform">{$chain_info.chain_truename}</td>
  28. <td class="vatop tips"></td>
  29. </tr>
  30. <tr>
  31. <td colspan="2" class="required">{$Think.lang.chain_mob_phone}:</td>
  32. </tr>
  33. <tr class="noborder">
  34. <td class="vatop rowform">
  35. <input class="txt" type="text" name="dmobile" value="{$chain_info.chain_mobile}">
  36. </td>
  37. <td class="vatop tips"></td>
  38. </tr>
  39. <tr>
  40. <td colspan="2" class="required">{$Think.lang.chain_telephone}:</td>
  41. </tr>
  42. <tr class="noborder">
  43. <td class="vatop rowform">
  44. <input class="txt" type="text" name="dtelephony" value="{$chain_info.chain_telephony}">
  45. </td>
  46. <td class="vatop tips"></td>
  47. </tr>
  48. <tr>
  49. <td colspan="2" class="required">{$Think.lang.chain_name}:</td>
  50. </tr>
  51. <tr class="noborder">
  52. <td class="vatop rowform">
  53. <input class="txt" type="text" name="daddressname" value="{$chain_info.chain_addressname}">
  54. </td>
  55. <td class="vatop tips"></td>
  56. </tr>
  57. <tr>
  58. <td colspan="2" class="required">{$Think.lang.chain_region}:</td>
  59. </tr>
  60. <tr class="noborder">
  61. <td class="vatop rowform">{$chain_info.chain_area_info}</td>
  62. <td class="vatop tips"></td>
  63. </tr>
  64. <tr>
  65. <td colspan="2" class="required">{$Think.lang.chain_address}:</td>
  66. </tr>
  67. <tr class="noborder">
  68. <td class="vatop rowform">
  69. <input class="txt" type="text" name="daddress" value="{$chain_info.chain_address}">
  70. </td>
  71. <td class="vatop tips"></td>
  72. </tr>
  73. <tr>
  74. <td colspan="2" class="required">{$Think.lang.chain_idcard}:</td>
  75. </tr>
  76. <tr class="noborder">
  77. <td class="vatop rowform">{$chain_info.chain_idcard}</td>
  78. <td class="vatop tips"></td>
  79. </tr>
  80. <tr>
  81. <td colspan="2" class="required">{$Think.lang.chain_idcardimage}:</td>
  82. </tr>
  83. <tr class="noborder">
  84. <td class="vatop rowform"><a href="{:get_chain_imageurl($chain_info.chain_idcardimage)}" target="_blank"><img src="{:get_chain_imageurl($chain_info.chain_idcardimage)}"></a></td>
  85. <td class="vatop tips">{$Think.lang.chain_idcardimage_tips}</td>
  86. </tr>
  87. <tr>
  88. <td colspan="2" class="required">{$Think.lang.chain_add_time}:</td>
  89. </tr>
  90. <tr class="noborder">
  91. <td class="vatop rowform">{$chain_info.chain_addtime|date="Y-m-d H:i:s"}</td>
  92. <td class="vatop tips"></td>
  93. </tr>
  94. <tr>
  95. <td colspan="2" class="required">{$Think.lang.chain_passwd}:</td>
  96. </tr>
  97. <tr class="noborder">
  98. <td class="vatop rowform"><input type="text" class="txt" name="dpasswd"></td>
  99. <td class="vatop tips">{$Think.lang.chain_passwd_tips}</td>
  100. </tr>
  101. <tr>
  102. <td colspan="2" class="required">{$Think.lang.ds_status}:</td>
  103. </tr>
  104. <?php if (in_array($chain_info['chain_state'], array(1,2))) {?>
  105. <tr class="noborder">
  106. <td class="vatop rowform onoff">
  107. <label for="site_status1" class="cb-enable {if $chain_info.chain_state == '1'}selected{/if}" ><span>{$Think.lang.ds_open}</span></label>
  108. <label for="site_status0" class="cb-disable {if $chain_info.chain_state == '0'}selected{/if}" ><span>{$Think.lang.ds_close}</span></label>
  109. <input id="site_status1" name="dstate" {if $chain_info.chain_state == '1'}checked="checked"{/if} value="1" type="radio">
  110. <input id="site_status0" name="dstate" {if $chain_info.chain_state == '0'}checked="checked"{/if} value="0" type="radio"></td>
  111. <td class="vatop tips"></td>
  112. </tr>
  113. <?php } else {?>
  114. <tr class="noborder">
  115. <td class="vatop rowform onoff"><label for="site_status1" class="cb-enable selected" ><span>{$Think.lang.ds_pass}</span></label>
  116. <label for="site_status20" class="cb-disable" ><span>{$Think.lang.ds_fail}</span></label>
  117. <input id="site_status1" name="dstate" checked="checked" value="1" type="radio">
  118. <input id="site_status20" name="dstate" value="20" type="radio"></td>
  119. <td class="vatop tips"></td>
  120. </tr>
  121. <tr style="display: none;" dstype="fail_reason">
  122. <td colspan="2" class="required">{$Think.lang.chain_fail_reason}:</td>
  123. </tr>
  124. <tr class="noborder" style="display: none;" dstype="fail_reason">
  125. <td class="vatop rowform" dstype="fail_reason">
  126. <textarea id="fail_reason" class="tarea" rows="6" name="fail_reason"></textarea>
  127. </td>
  128. </tr>
  129. <?php }?>
  130. </tbody>
  131. <tfoot>
  132. <tr>
  133. <td colspan="2"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  134. </tr>
  135. </tfoot>
  136. </table>
  137. </form>
  138. </div>
  139. <script>
  140. $(function(){
  141. $('input[name="dstate"]').change(function(){
  142. _val = $('input[name="dstate"]:checked').val();
  143. if (_val == 20) {
  144. $('[dstype="fail_reason"]').show();
  145. } else {
  146. $('[dstype="fail_reason"]').hide();
  147. }
  148. });
  149. });
  150. </script>