store_edit.html 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  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_store_manage}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <div class="homepage-focus" dstype="editStoreContent">
  13. <ul class="tab-menu">
  14. <li class="current">{$Think.lang.store_info}</li>
  15. <li>{$Think.lang.register_info}</li>
  16. </ul>
  17. <form id="store_form" method="post">
  18. <input type="hidden" name="store_id" value="{$store_array.store_id}" />
  19. <table class="ds-default-table">
  20. <tbody>
  21. <tr class="noborder">
  22. <td colspan="2" class="required"><label>{$Think.lang.store_user_name}:</label></td>
  23. </tr>
  24. <tr class="noborder">
  25. <td class="vatop rowform">{$store_array.member_name}</td>
  26. <td class="vatop tips"></td>
  27. </tr>
  28. <tr>
  29. <td colspan="2" class="required"><label class="validation" for="seller_name">{$Think.lang.ds_seller_name}:</label></td>
  30. </tr>
  31. <tr class="noborder">
  32. <td class="vatop rowform">{$store_array.seller_name}</td>
  33. <td class="vatop tips">{$Think.lang.store_seller_name_tips}</td>
  34. </tr>
  35. <tr>
  36. <td colspan="2" class="required"><label class="validation" for="store_name">{$Think.lang.ds_store_name}:</label></td>
  37. </tr>
  38. <tr class="noborder">
  39. <td class="vatop rowform"><input type="text" value="{$store_array.store_name}" id="store_name" name="store_name" class="txt"></td>
  40. <td class="vatop tips"></td>
  41. </tr>
  42. <tr>
  43. <td colspan="2" class="required"><label for="store_addtime">{$Think.lang.store_addtime}:</label></td>
  44. </tr>
  45. <tr class="noborder">
  46. <td class="vatop rowform">{notempty name="$store_array.store_addtime"}{$store_array.store_addtime|date='Y-m-d'}{/notempty}</td>
  47. <td class="vatop tips"></td>
  48. </tr>
  49. <tr>
  50. <td colspan="2" class="required"><label>{$Think.lang.belongs_class}:</label></td>
  51. </tr>
  52. <tr class="noborder">
  53. <td class="vatop rowform"><select name="storeclass_id">
  54. <option value="0">{$Think.lang.ds_please_choose}...</option>
  55. {notempty name="class_list"}
  56. {foreach name="class_list" item="v" key="k" }
  57. <option {if $store_array.storeclass_id == $v.storeclass_id}selected="selected" {/if} value="{$v.storeclass_id}">{$v.storeclass_name}</option>
  58. {/foreach}
  59. {/notempty}
  60. </select></td>
  61. <td class="vatop tips"></td>
  62. </tr>
  63. </tbody>
  64. <tbody>
  65. <tr>
  66. <td colspan="2" class="required"><label>
  67. <label for="grade_id"> {$Think.lang.belongs_level}: </label>
  68. </label></td>
  69. </tr>
  70. <tr class="noborder">
  71. <td class="vatop rowform">
  72. <select id="grade_id" name="grade_id">
  73. {notempty name="grade_list"}
  74. {foreach name="grade_list" item="v" key="k" }
  75. <option {if $store_array.grade_id == $v.storegrade_id}selected="selected"{/if} value="{$v.storegrade_id}">{$v.storegrade_name}</option>
  76. {/foreach}
  77. {/notempty}
  78. </select>
  79. </td>
  80. <td class="vatop tips"></td>
  81. </tr>
  82. <tr>
  83. <td colspan="2" class="required">{$Think.lang.period_to}:</td>
  84. </tr>
  85. <tr class="noborder">
  86. <td class="vatop rowform"><input type="text" value="{$store_array.store_endtime}" id="end_time" name="end_time" class="txt date"></td>
  87. <td class="vatop tips">{$Think.lang.formart}</td>
  88. </tr>
  89. <td class="vatop tips"></td>
  90. </tr>
  91. <tr>
  92. <td colspan="2" class="required"><label for="store_tq">{$Think.lang.store_baozh_switch}:</label></td>
  93. </tr>
  94. <tr>
  95. <td>
  96. <div class="onoff" style="float:left;margin-right:10px;">
  97. <label for="store_baozh1" class="cb-enable {if $store_array.store_baozh == '1'}selected{/if}" ><span>{$Think.lang.store_baozh_1}</span></label>
  98. <label for="store_baozh0" class="cb-disable {if $store_array.store_baozh == '0'}selected{/if}" ><span>{$Think.lang.store_baozh_0}</span></label>
  99. <input id="store_baozh1" name="store_baozh" {if $store_array.store_baozh == '1'}checked="checked"{/if} value="1" type="radio">
  100. <input id="store_baozh0" name="store_baozh" {if $store_array.store_baozh == '0'}checked="checked"{/if} value="0" type="radio">
  101. </div>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td colspan="2" class="required"><label for="store_tq">{$Think.lang.store_zhping_switch}:</label></td>
  106. </tr>
  107. <tr>
  108. <td>
  109. <div class="onoff" style="float:left;margin-right:10px;">
  110. <label for="store_zhping1" class="cb-enable {if $store_array.store_zhping == '1'}selected{/if}" ><span>{$Think.lang.store_zhping_1}</span></label>
  111. <label for="store_zhping0" class="cb-disable {if $store_array.store_zhping == '0'}selected{/if}" ><span>{$Think.lang.store_zhping_0}</span></label>
  112. <input id="store_zhping1" name="store_zhping" {if $store_array.store_zhping == '1'}checked="checked"{/if} value="1" type="radio">
  113. <input id="store_zhping0" name="store_zhping" {if $store_array.store_zhping == '0'}checked="checked"{/if} value="0" type="radio">
  114. </div>
  115. <div class="onoff" style="float:left;margin-right:10px;">
  116. <label for="store_shiti1" class="cb-enable {if $store_array.store_shiti == '1'}selected{/if}" ><span>{$Think.lang.store_shiti_1}</span></label>
  117. <label for="store_shiti0" class="cb-disable {if $store_array.store_shiti == '0'}selected{/if}" ><span>{$Think.lang.store_shiti_0}</span></label>
  118. <input id="store_shiti1" name="store_shiti" {if $store_array.store_shiti == '1'}checked="checked"{/if} value="1" type="radio">
  119. <input id="store_shiti0" name="store_shiti" {if $store_array.store_shiti == '0'}checked="checked"{/if} value="0" type="radio">
  120. </div>
  121. <div class="onoff" style="float:left;margin-right:10px;">
  122. <label for="store_qtian1" class="cb-enable {if $store_array.store_qtian == '1'}selected{/if}" ><span>{$Think.lang.store_qtian_1}</span></label>
  123. <label for="store_qtian0" class="cb-disable {if $store_array.store_qtian == '0'}selected{/if}" ><span>{$Think.lang.store_qtian_0}</span></label>
  124. <input id="store_qtian1" name="store_qtian" {if $store_array.store_qtian == '1'}checked="checked"{/if} value="1" type="radio">
  125. <input id="store_qtian0" name="store_qtian" {if $store_array.store_qtian == '0'}checked="checked"{/if} value="0" type="radio">
  126. </div>
  127. </td>
  128. </tr>
  129. <tr>
  130. <td>
  131. <div class="onoff" style="float:left;margin-right:10px;">
  132. <label for="store_tuihuo1" class="cb-enable {if $store_array.store_tuihuo == '1'}selected{/if}" ><span>{$Think.lang.store_tuihuo_1}</span></label>
  133. <label for="store_tuihuo0" class="cb-disable {if $store_array.store_tuihuo == '0'}selected{/if}" ><span>{$Think.lang.store_tuihuo_0}</span></label>
  134. <input id="store_tuihuo1" name="store_tuihuo" {if $store_array.store_tuihuo == '1'}checked="checked"{/if} value="1" type="radio">
  135. <input id="store_tuihuo0" name="store_tuihuo" {if $store_array.store_tuihuo == '0'}checked="checked"{/if} value="0" type="radio">
  136. </div>
  137. <div class="onoff" style="float:left;margin-right:10px;">
  138. <label for="store_shiyong1" class="cb-enable {if $store_array.store_shiyong == '1'}selected{/if}" ><span>{$Think.lang.store_shiyong_1}</span></label>
  139. <label for="store_shiyong0" class="cb-disable {if $store_array.store_shiyong == '0'}selected{/if}" ><span>{$Think.lang.store_shiyong_0}</span></label>
  140. <input id="store_shiyong1" name="store_shiyong" {if $store_array.store_shiyong == '1'}checked="checked"{/if} value="1" type="radio">
  141. <input id="store_shiyong0" name="store_shiyong" {if $store_array.store_shiyong == '0'}checked="checked"{/if} value="0" type="radio">
  142. </div>
  143. <div class="onoff" style="float:left;margin-right:10px;">
  144. <label for="store_erxiaoshi1" class="cb-enable {if $store_array.store_erxiaoshi == '1'}selected{/if}" ><span>2H</span></label>
  145. <label for="store_erxiaoshi0" class="cb-disable {if $store_array.store_erxiaoshi == '0'}selected{/if}" ><span>{$Think.lang.store_erxiaoshi_0}</span></label>
  146. <input id="store_erxiaoshi1" name="store_erxiaoshi" {if $store_array.store_erxiaoshi == '1'}checked="checked"{/if} value="1" type="radio">
  147. <input id="store_erxiaoshi0" name="store_erxiaoshi" {if $store_array.store_erxiaoshi == '0'}checked="checked"{/if} value="0" type="radio">
  148. </div>
  149. </td>
  150. </tr>
  151. <tr>
  152. <td>
  153. <div class="onoff" style="float:left;margin-right:10px;">
  154. <label for="store_huodaofk1" class="cb-enable {if $store_array.store_huodaofk == '1'}selected{/if}" ><span>{$Think.lang.store_huodaofk_1}</span></label>
  155. <label for="store_huodaofk0" class="cb-disable {if $store_array.store_huodaofk == '0'}selected{/if}" ><span>{$Think.lang.store_huodaofk_0}</span></label>
  156. <input id="store_huodaofk1" name="store_huodaofk" {if $store_array.store_huodaofk == '1'}checked="checked"{/if} value="1" type="radio">
  157. <input id="store_huodaofk0" name="store_huodaofk" {if $store_array.store_huodaofk == '0'}checked="checked"{/if} value="0" type="radio">
  158. </div>
  159. <div class="onoff" style="float:left;margin-right:10px;">
  160. <label for="store_xiaoxie1" class="cb-enable {if $store_array.store_xiaoxie == '1'}selected{/if}" ><span>{$Think.lang.store_xiaoxie_1}</span></label>
  161. <label for="store_xiaoxie0" class="cb-disable {if $store_array.store_xiaoxie == '0'}selected{/if}" ><span>{$Think.lang.store_xiaoxie_0}</span></label>
  162. <input id="store_xiaoxie1" name="store_xiaoxie" {if $store_array.store_xiaoxie == '1'}checked="checked"{/if} value="1" type="radio">
  163. <input id="store_xiaoxie0" name="store_xiaoxie" {if $store_array.store_xiaoxie == '0'}checked="checked"{/if} value="0" type="radio">
  164. </div>
  165. </td>
  166. </tr>
  167. <tr>
  168. <td colspan="2" class="required"><label>
  169. <label>{$Think.lang.store_type}:</label>
  170. </label></td>
  171. </tr>
  172. <tr class="noborder">
  173. <td class="vatop rowform onoff"><label class="cb-enable {if $joinin_detail.store_type == '0'}selected{/if}" ><span>{$Think.lang.store_type_0}</span></label>
  174. <label class="cb-disable {if $joinin_detail.store_type == '1'}selected{/if}" ><span>{$Think.lang.store_type_1}</span></label>
  175. <input name="store_type" {if $joinin_detail.store_type == '0'}checked="checked"{/if} onclick="$('#tr_store_close_info').hide();" value="1" type="radio">
  176. <input name="store_type" {if $joinin_detail.store_type == '1'}checked="checked"{/if} onclick="$('#tr_store_close_info').show();" value="0" type="radio"></td>
  177. <td class="vatop tips"></td>
  178. </tr>
  179. <input type="hidden" name="member_id" value="{$joinin_detail.member_id}" />
  180. <tr>
  181. <tr>
  182. <td colspan="2" class="required"><label>
  183. <label for="state">{$Think.lang.state}:</label>
  184. </label></td>
  185. </tr>
  186. <tr class="noborder">
  187. <td class="vatop rowform onoff"><label for="store_state1" class="cb-enable {if $store_array.store_state == '1'}selected{/if}" ><span>{$Think.lang.ds_open}</span></label>
  188. <label for="store_state0" class="cb-disable {if $store_array.store_state == '0'}selected{/if}" ><span>{$Think.lang.ds_close}</span></label>
  189. <input id="store_state1" name="store_state" {if $store_array.store_state == '1'}checked="checked"{/if} onclick="$('#tr_store_close_info').hide();" value="1" type="radio">
  190. <input id="store_state0" name="store_state" {if $store_array.store_state == '0'}checked="checked"{/if} onclick="$('#tr_store_close_info').show();" value="0" type="radio"></td>
  191. <td class="vatop tips"></td>
  192. </tr>
  193. </tbody>
  194. <tbody id="tr_store_close_info">
  195. <tr >
  196. <td colspan="2" class="required"><label for="store_close_info">{$Think.lang.store_close_info}:</label></td>
  197. </tr>
  198. <tr class="noborder">
  199. <td class="vatop rowform"><textarea name="store_close_info" rows="6" class="tarea" id="store_close_info">{$store_array.store_close_info}</textarea></td>
  200. <td class="vatop tips"></td>
  201. </tr>
  202. </tbody>
  203. <tfoot>
  204. <tr class="tfoot">
  205. <td colspan="15"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  206. </tr>
  207. </tfoot>
  208. </table>
  209. </form>
  210. <form id="joinin_form" enctype="multipart/form-data" method="post" action="{:url('Store/edit_save_joinin')}" style="display:none;">
  211. <input type="hidden" name="member_id" value="{$joinin_detail.member_id}" />
  212. {if $joinin_detail.store_type != 1}
  213. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  214. <thead>
  215. <tr>
  216. <th colspan="20">{$Think.lang.company_contact_information}</th>
  217. </tr>
  218. </thead>
  219. <tbody>
  220. <tr>
  221. <th class="w150">{$Think.lang.company_name}:</th>
  222. <td colspan="20"><input type="text" class="txt" name="company_name" value="{$joinin_detail.company_name}"></td>
  223. </tr>
  224. <tr>
  225. <th>{$Think.lang.company_location}:</th>
  226. <td><input type="hidden" name="company_address" id="company_address" value="{$joinin_detail.company_address}"></td>
  227. <th>{$Think.lang.company_address}:</th>
  228. <td><input type="text" class="txt w300" name="company_address_detail" value="{$joinin_detail.company_address_detail}"></td>
  229. <th>{$Think.lang.registered_capital}:</th>
  230. <td><input type="text" class="txt w72" name="company_registered_capital" value="{$joinin_detail.company_registered_capital}">&nbsp;{$Think.lang.ten_thousand}{$Think.lang.ds_yuan} </td>
  231. </tr>
  232. <tr>
  233. <th>{$Think.lang.contact_name}:</th>
  234. <td><input type="text" class="txt" name="contacts_name" value="{$joinin_detail.contacts_name}"></td>
  235. <th>{$Think.lang.contact_number}:</th>
  236. <td><input type="text" class="txt" name="contacts_phone" value="{$joinin_detail.contacts_phone}"></td>
  237. <th>{$Think.lang.e_mail}:</th>
  238. <td><input type="text" class="txt" name="contacts_email" value="{$joinin_detail.contacts_email}"></td>
  239. </tr>
  240. </tbody>
  241. </table>
  242. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  243. <thead>
  244. <tr>
  245. <th colspan="20">{$Think.lang.business_license_information}</th>
  246. </tr>
  247. </thead>
  248. <tbody>
  249. <tr>
  250. <th class="w150">{$Think.lang.business_license_number}:</th>
  251. <td><input type="text" class="txt" name="business_licence_number" value="{$joinin_detail.business_licence_number}"></td></tr><tr>
  252. <th>{$Think.lang.place_business_license}:</th>
  253. <td><input type="hidden" name="business_licence_address" id="business_licence_address" value="{$joinin_detail.business_licence_address}"></td></tr><tr>
  254. <th>{$Think.lang.validity_business_license}:</th>
  255. <td><input type="text" class="txt" name="business_licence_start" id="business_licence_start" value="{$joinin_detail.business_licence_start}"> - <input type="text" class="txt" name="business_licence_end" id="business_licence_end" value="{$joinin_detail.business_licence_end}"></td>
  256. </tr>
  257. <tr>
  258. <th>{$Think.lang.legal_scope_business}:</th>
  259. <td colspan="20"><input type="text" class="txt w300" name="business_sphere" value="{$joinin_detail.business_sphere}"></td>
  260. </tr>
  261. <tr>
  262. <th>{$Think.lang.business_license}<br />{$Think.lang.electronic_version}:</th>
  263. <td colspan="20">
  264. {notempty name="joinin_detail.business_licence_number_electronic"}
  265. <a data-lightbox="lightbox-image" href="{:get_store_joinin_imageurl($joinin_detail['business_licence_number_electronic'])}"> <img src="{:get_store_joinin_imageurl($joinin_detail['business_licence_number_electronic'])}" height="100"/> </a>
  266. {/notempty}
  267. <input class="w200" type="file" name="business_licence_number_electronic">
  268. </td>
  269. </tr>
  270. </tbody>
  271. </table>
  272. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  273. <thead>
  274. <tr>
  275. <th colspan="20">{$Think.lang.bank_information}:</th>
  276. </tr>
  277. </thead>
  278. <tbody>
  279. <tr>
  280. <th class="w150">{$Think.lang.bank_name}:</th>
  281. <td><input type="text" class="txt w300" name="bank_account_name" value="{$joinin_detail.bank_account_name}"></td>
  282. </tr><tr>
  283. <th>{$Think.lang.company_bank_account}:</th>
  284. <td><input type="text" class="txt w300" name="bank_account_number" value="{$joinin_detail.bank_account_number}"></td></tr>
  285. <tr>
  286. <th>{$Think.lang.name_branch_bank}:</th>
  287. <td><input type="text" class="txt w300" name="bank_name" value="{$joinin_detail.bank_name}"></td>
  288. </tr>
  289. <tr>
  290. <th>{$Think.lang.location_bank_account}:</th>
  291. <td colspan="20"><input type="hidden" name="bank_address" id="bank_address" value="{$joinin_detail.bank_address}"></td>
  292. </tr>
  293. </tbody>
  294. </table>
  295. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  296. <thead>
  297. <tr>
  298. <th colspan="20">{$Think.lang.settlement_account_information}:</th>
  299. </tr>
  300. </thead>
  301. <tbody>
  302. <tr>
  303. <th class="w150">{$Think.lang.bank_name}:</th>
  304. <td><input type="text" class="txt w300" name="settlement_bank_account_name" value="{$joinin_detail.settlement_bank_account_name}"></td>
  305. </tr>
  306. <tr>
  307. <th>{$Think.lang.company_bank_account}:</th>
  308. <td><input type="text" class="txt w300" name="settlement_bank_account_number" value="{$joinin_detail.settlement_bank_account_number}"></td>
  309. </tr>
  310. <tr>
  311. <th>{$Think.lang.name_branch_bank}:</th>
  312. <td><input type="text" class="txt w300" name="settlement_bank_name" value="{$joinin_detail.settlement_bank_name}"></td>
  313. </tr>
  314. <tr>
  315. <th>{$Think.lang.location_bank_account}:</th>
  316. <td><input type="hidden" name="settlement_bank_address" id="settlement_bank_address" value="{$joinin_detail.settlement_bank_address}"></td>
  317. </tr>
  318. </tbody>
  319. </table>
  320. {else /}
  321. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  322. <thead>
  323. <tr>
  324. <th colspan="6">{$Think.lang.store_and_contact_info}</th>
  325. </tr>
  326. </thead>
  327. <tbody>
  328. <tr>
  329. <th>{$Think.lang.company_name}:</th>
  330. <td><input type="text" class="txt" name="company_name" value="{$joinin_detail.company_name}"></td>
  331. <th>{$Think.lang.company_location}:</th>
  332. <td><input type="hidden" name="company_address" id="company_address" value="{$joinin_detail.company_address}"></td>
  333. <th>{$Think.lang.company_address}:</th>
  334. <td colspan="3"><input type="text" class="txt w300" name="company_address_detail" value="{$joinin_detail.company_address_detail}"></td>
  335. </tr>
  336. <tr>
  337. <th>{$Think.lang.contact_name}:</th>
  338. <td><input type="text" class="txt" name="contacts_name" value="{$joinin_detail.contacts_name}"></td>
  339. <th>{$Think.lang.contact_number}:</th>
  340. <td><input type="text" class="txt" name="contacts_phone" value="{$joinin_detail.contacts_phone}"></td>
  341. <th>{$Think.lang.e_mail}:</th>
  342. <td><input type="text" class="txt" name="contacts_email" value="{$joinin_detail.contacts_email}"></td>
  343. </tr>
  344. </tbody>
  345. </table>
  346. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  347. <thead>
  348. <tr>
  349. <th colspan="20">{$Think.lang.business_license_information}</th>
  350. </tr>
  351. </thead>
  352. <tbody>
  353. <tr>
  354. <th class="w150">{$Think.lang.business_license_number}:</th>
  355. <td><input type="text" class="txt" name="business_licence_number" value="{$joinin_detail.business_licence_number}"></td></tr><tr>
  356. <th>{$Think.lang.place_business_license}:</th>
  357. <td><input type="hidden" name="business_licence_address" id="business_licence_address" value="{$joinin_detail.business_licence_address}"></td></tr><tr>
  358. <th>{$Think.lang.validity_business_license}:</th>
  359. <td><input type="text" class="txt" name="business_licence_start" id="business_licence_start" value="{$joinin_detail.business_licence_start}"> - <input type="text" class="txt" name="business_licence_end" id="business_licence_end" value="{$joinin_detail.business_licence_end}"></td>
  360. </tr>
  361. <tr>
  362. <th>{$Think.lang.legal_scope_business}:</th>
  363. <td colspan="20"><input type="text" class="txt w300" name="business_sphere" value="{$joinin_detail.business_sphere}"></td>
  364. </tr>
  365. <tr>
  366. <th>{$Think.lang.business_license}<br />{$Think.lang.electronic_version}:</th>
  367. <td colspan="20">
  368. {notempty name="joinin_detail.business_licence_number_electronic"}
  369. <a data-lightbox="lightbox-image" href="{:get_store_joinin_imageurl($joinin_detail['business_licence_number_electronic'])}"> <img src="{:get_store_joinin_imageurl($joinin_detail['business_licence_number_electronic'])}" height="100"/> </a>
  370. <input class="w200" type="file" name="business_licence_number_electronic">
  371. {/notempty}
  372. </td>
  373. </tr>
  374. </tbody>
  375. </table>
  376. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  377. <thead>
  378. <tr>
  379. <th colspan="2">{$Think.lang.store_alipay_info}:</th>
  380. </tr>
  381. </thead>
  382. <tbody>
  383. <tr>
  384. <th>{$Think.lang.store_alipay_account_name}:</th>
  385. <td><input type="text" class="txt w300" name="settlement_bank_account_name" value="{$joinin_detail.settlement_bank_account_name}"></td>
  386. </tr>
  387. <tr>
  388. <th>{$Think.lang.store_alipay_account_number}:</th>
  389. <td><input type="text" class="txt w300" name="settlement_bank_account_number" value="{$joinin_detail.settlement_bank_account_number}"></td>
  390. </tr>
  391. </tbody>
  392. </table>
  393. {/if}
  394. <div><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></div>
  395. </form>
  396. </div>
  397. </div>
  398. <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
  399. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
  400. <script type="text/javascript">
  401. $(function(){
  402. $("#company_address").ds_region();
  403. $("#business_licence_address").ds_region();
  404. $("#bank_address").ds_region();
  405. $("#settlement_bank_address").ds_region();
  406. $('#end_time').datepicker({dateFormat: 'yy-mm-dd'});
  407. $('#business_licence_start').datepicker({dateFormat: 'yy-mm-dd'});
  408. $('#business_licence_end').datepicker({dateFormat: 'yy-mm-dd'});
  409. $('input[name=store_state][value={$store_array.store_state}]').trigger('click');
  410. $('#store_form').validate({
  411. errorPlacement: function(error, element){
  412. error.appendTo(element.parentsUntil('tr').parent().prev().find('td:first'));
  413. },
  414. rules : {
  415. store_name: {
  416. required : true,
  417. remote : "{:url('Store/ckeck_store_name',['store_id'=>$store_array.store_id])}"
  418. }
  419. },
  420. messages : {
  421. store_name: {
  422. required: '{$Think.lang.please_input_store_name}',
  423. remote : '{$Think.lang.store_name_exists}'
  424. }
  425. }
  426. });
  427. $('#joinin_form').validate({
  428. errorPlacement: function(error, element){
  429. error.appendTo(element.parentsUntil('tr').parent().find('td:last'));
  430. },
  431. rules : {
  432. business_licence_start:{
  433. required: true,
  434. }
  435. },
  436. messages : {
  437. business_licence_start:{
  438. required: '{$Think.lang.business_licence_start_required}',
  439. }
  440. }
  441. });
  442. $('div[dstype="editStoreContent"] > ul').find('li').click(function(){
  443. $(this).addClass('current').siblings().removeClass('current');
  444. var _index = $(this).index();
  445. var _form = $('div[dstype="editStoreContent"]').find('form');
  446. _form.hide();
  447. _form.eq(_index).show();
  448. });
  449. });
  450. </script>