store_edit.html 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  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. <tr>
  180. <td colspan="2" class="required"><label>
  181. <label>到店付款商家:</label>
  182. </label></td>
  183. </tr>
  184. <tr class="noborder">
  185. <td class="vatop rowform onoff">
  186. <label for="is_array1" class="cb-enable {if $store_array.is_arrive == '1'}selected{/if}" ><span>是</span></label>
  187. <label for="is_array0" class="cb-disable {if $store_array.is_arrive == '0'}selected{/if}" ><span>否</span></label>
  188. <input id="is_array1" name="is_arrive" {if $store_array.is_arrive == '1'}checked="checked"{/if} value="1" type="radio">
  189. <input id="is_array0" name="is_arrive" {if $store_array.is_arrive == '0'}checked="checked"{/if} value="0" type="radio">
  190. </td>
  191. <td class="vatop tips"></td>
  192. </tr>
  193. <input type="hidden" name="member_id" value="{$joinin_detail.member_id}" />
  194. <tr>
  195. <tr>
  196. <td colspan="2" class="required"><label>
  197. <label for="state">{$Think.lang.state}:</label>
  198. </label></td>
  199. </tr>
  200. <tr class="noborder">
  201. <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>
  202. <label for="store_state0" class="cb-disable {if $store_array.store_state == '0'}selected{/if}" ><span>{$Think.lang.ds_close}</span></label>
  203. <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">
  204. <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>
  205. <td class="vatop tips"></td>
  206. </tr>
  207. </tbody>
  208. <tbody id="tr_store_close_info">
  209. <tr >
  210. <td colspan="2" class="required"><label for="store_close_info">{$Think.lang.store_close_info}:</label></td>
  211. </tr>
  212. <tr class="noborder">
  213. <td class="vatop rowform"><textarea name="store_close_info" rows="6" class="tarea" id="store_close_info">{$store_array.store_close_info}</textarea></td>
  214. <td class="vatop tips"></td>
  215. </tr>
  216. </tbody>
  217. <tfoot>
  218. <tr class="tfoot">
  219. <td colspan="15"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  220. </tr>
  221. </tfoot>
  222. </table>
  223. </form>
  224. <form id="joinin_form" enctype="multipart/form-data" method="post" action="{:url('Store/edit_save_joinin')}" style="display:none;">
  225. <input type="hidden" name="member_id" value="{$joinin_detail.member_id}" />
  226. {if $joinin_detail.store_type != 1}
  227. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  228. <thead>
  229. <tr>
  230. <th colspan="20">{$Think.lang.company_contact_information}</th>
  231. </tr>
  232. </thead>
  233. <tbody>
  234. <tr>
  235. <th class="w150">{$Think.lang.company_name}:</th>
  236. <td colspan="20"><input type="text" class="txt" name="company_name" value="{$joinin_detail.company_name}"></td>
  237. </tr>
  238. <tr>
  239. <th>{$Think.lang.company_location}:</th>
  240. <td><input type="hidden" name="company_address" id="company_address" value="{$joinin_detail.company_address}"></td>
  241. <th>{$Think.lang.company_address}:</th>
  242. <td><input type="text" class="txt w300" name="company_address_detail" value="{$joinin_detail.company_address_detail}"></td>
  243. <th>{$Think.lang.registered_capital}:</th>
  244. <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>
  245. </tr>
  246. <tr>
  247. <th>{$Think.lang.contact_name}:</th>
  248. <td><input type="text" class="txt" name="contacts_name" value="{$joinin_detail.contacts_name}"></td>
  249. <th>{$Think.lang.contact_number}:</th>
  250. <td><input type="text" class="txt" name="contacts_phone" value="{$joinin_detail.contacts_phone}"></td>
  251. <th>{$Think.lang.e_mail}:</th>
  252. <td><input type="text" class="txt" name="contacts_email" value="{$joinin_detail.contacts_email}"></td>
  253. </tr>
  254. </tbody>
  255. </table>
  256. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  257. <thead>
  258. <tr>
  259. <th colspan="20">{$Think.lang.business_license_information}</th>
  260. </tr>
  261. </thead>
  262. <tbody>
  263. <tr>
  264. <th class="w150">{$Think.lang.business_license_number}:</th>
  265. <td><input type="text" class="txt" name="business_licence_number" value="{$joinin_detail.business_licence_number}"></td></tr><tr>
  266. <th>{$Think.lang.place_business_license}:</th>
  267. <td><input type="hidden" name="business_licence_address" id="business_licence_address" value="{$joinin_detail.business_licence_address}"></td></tr><tr>
  268. <th>{$Think.lang.validity_business_license}:</th>
  269. <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>
  270. </tr>
  271. <tr>
  272. <th>{$Think.lang.legal_scope_business}:</th>
  273. <td colspan="20"><input type="text" class="txt w300" name="business_sphere" value="{$joinin_detail.business_sphere}"></td>
  274. </tr>
  275. <tr>
  276. <th>{$Think.lang.business_license}<br />{$Think.lang.electronic_version}:</th>
  277. <td colspan="20">
  278. {notempty name="joinin_detail.business_licence_number_electronic"}
  279. <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>
  280. {/notempty}
  281. <input class="w200" type="file" name="business_licence_number_electronic">
  282. </td>
  283. </tr>
  284. </tbody>
  285. </table>
  286. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  287. <thead>
  288. <tr>
  289. <th colspan="20">{$Think.lang.bank_information}:</th>
  290. </tr>
  291. </thead>
  292. <tbody>
  293. <tr>
  294. <th class="w150">{$Think.lang.bank_name}:</th>
  295. <td><input type="text" class="txt w300" name="bank_account_name" value="{$joinin_detail.bank_account_name}"></td>
  296. </tr><tr>
  297. <th>{$Think.lang.company_bank_account}:</th>
  298. <td><input type="text" class="txt w300" name="bank_account_number" value="{$joinin_detail.bank_account_number}"></td></tr>
  299. <tr>
  300. <th>{$Think.lang.name_branch_bank}:</th>
  301. <td><input type="text" class="txt w300" name="bank_name" value="{$joinin_detail.bank_name}"></td>
  302. </tr>
  303. <tr>
  304. <th>{$Think.lang.location_bank_account}:</th>
  305. <td colspan="20"><input type="hidden" name="bank_address" id="bank_address" value="{$joinin_detail.bank_address}"></td>
  306. </tr>
  307. </tbody>
  308. </table>
  309. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  310. <thead>
  311. <tr>
  312. <th colspan="20">{$Think.lang.settlement_account_information}:</th>
  313. </tr>
  314. </thead>
  315. <tbody>
  316. <tr>
  317. <th class="w150">{$Think.lang.bank_name}:</th>
  318. <td><input type="text" class="txt w300" name="settlement_bank_account_name" value="{$joinin_detail.settlement_bank_account_name}"></td>
  319. </tr>
  320. <tr>
  321. <th>{$Think.lang.company_bank_account}:</th>
  322. <td><input type="text" class="txt w300" name="settlement_bank_account_number" value="{$joinin_detail.settlement_bank_account_number}"></td>
  323. </tr>
  324. <tr>
  325. <th>{$Think.lang.name_branch_bank}:</th>
  326. <td><input type="text" class="txt w300" name="settlement_bank_name" value="{$joinin_detail.settlement_bank_name}"></td>
  327. </tr>
  328. <tr>
  329. <th>{$Think.lang.location_bank_account}:</th>
  330. <td><input type="hidden" name="settlement_bank_address" id="settlement_bank_address" value="{$joinin_detail.settlement_bank_address}"></td>
  331. </tr>
  332. </tbody>
  333. </table>
  334. {else /}
  335. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  336. <thead>
  337. <tr>
  338. <th colspan="6">{$Think.lang.store_and_contact_info}</th>
  339. </tr>
  340. </thead>
  341. <tbody>
  342. <tr>
  343. <th>{$Think.lang.company_name}:</th>
  344. <td><input type="text" class="txt" name="company_name" value="{$joinin_detail.company_name}"></td>
  345. <th>{$Think.lang.company_location}:</th>
  346. <td><input type="hidden" name="company_address" id="company_address" value="{$joinin_detail.company_address}"></td>
  347. <th>{$Think.lang.company_address}:</th>
  348. <td colspan="3"><input type="text" class="txt w300" name="company_address_detail" value="{$joinin_detail.company_address_detail}"></td>
  349. </tr>
  350. <tr>
  351. <th>{$Think.lang.contact_name}:</th>
  352. <td><input type="text" class="txt" name="contacts_name" value="{$joinin_detail.contacts_name}"></td>
  353. <th>{$Think.lang.contact_number}:</th>
  354. <td><input type="text" class="txt" name="contacts_phone" value="{$joinin_detail.contacts_phone}"></td>
  355. <th>{$Think.lang.e_mail}:</th>
  356. <td><input type="text" class="txt" name="contacts_email" value="{$joinin_detail.contacts_email}"></td>
  357. </tr>
  358. </tbody>
  359. </table>
  360. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  361. <thead>
  362. <tr>
  363. <th colspan="20">{$Think.lang.business_license_information}</th>
  364. </tr>
  365. </thead>
  366. <tbody>
  367. <tr>
  368. <th class="w150">{$Think.lang.business_license_number}:</th>
  369. <td><input type="text" class="txt" name="business_licence_number" value="{$joinin_detail.business_licence_number}"></td></tr><tr>
  370. <th>{$Think.lang.place_business_license}:</th>
  371. <td><input type="hidden" name="business_licence_address" id="business_licence_address" value="{$joinin_detail.business_licence_address}"></td></tr><tr>
  372. <th>{$Think.lang.validity_business_license}:</th>
  373. <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>
  374. </tr>
  375. <tr>
  376. <th>{$Think.lang.legal_scope_business}:</th>
  377. <td colspan="20"><input type="text" class="txt w300" name="business_sphere" value="{$joinin_detail.business_sphere}"></td>
  378. </tr>
  379. <tr>
  380. <th>{$Think.lang.business_license}<br />{$Think.lang.electronic_version}:</th>
  381. <td colspan="20">
  382. {notempty name="joinin_detail.business_licence_number_electronic"}
  383. <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>
  384. <input class="w200" type="file" name="business_licence_number_electronic">
  385. {/notempty}
  386. </td>
  387. </tr>
  388. </tbody>
  389. </table>
  390. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  391. <thead>
  392. <tr>
  393. <th colspan="2">{$Think.lang.store_alipay_info}:</th>
  394. </tr>
  395. </thead>
  396. <tbody>
  397. <tr>
  398. <th>{$Think.lang.store_alipay_account_name}:</th>
  399. <td><input type="text" class="txt w300" name="settlement_bank_account_name" value="{$joinin_detail.settlement_bank_account_name}"></td>
  400. </tr>
  401. <tr>
  402. <th>{$Think.lang.store_alipay_account_number}:</th>
  403. <td><input type="text" class="txt w300" name="settlement_bank_account_number" value="{$joinin_detail.settlement_bank_account_number}"></td>
  404. </tr>
  405. </tbody>
  406. </table>
  407. {/if}
  408. <div><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></div>
  409. </form>
  410. </div>
  411. </div>
  412. <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
  413. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
  414. <script type="text/javascript">
  415. $(function(){
  416. $("#company_address").ds_region();
  417. $("#business_licence_address").ds_region();
  418. $("#bank_address").ds_region();
  419. $("#settlement_bank_address").ds_region();
  420. $('#end_time').datepicker({dateFormat: 'yy-mm-dd'});
  421. $('#business_licence_start').datepicker({dateFormat: 'yy-mm-dd'});
  422. $('#business_licence_end').datepicker({dateFormat: 'yy-mm-dd'});
  423. $('input[name=store_state][value={$store_array.store_state}]').trigger('click');
  424. $('#store_form').validate({
  425. errorPlacement: function(error, element){
  426. error.appendTo(element.parentsUntil('tr').parent().prev().find('td:first'));
  427. },
  428. rules : {
  429. store_name: {
  430. required : true,
  431. remote : "{:url('Store/ckeck_store_name',['store_id'=>$store_array.store_id])}"
  432. }
  433. },
  434. messages : {
  435. store_name: {
  436. required: '{$Think.lang.please_input_store_name}',
  437. remote : '{$Think.lang.store_name_exists}'
  438. }
  439. }
  440. });
  441. $('#joinin_form').validate({
  442. errorPlacement: function(error, element){
  443. error.appendTo(element.parentsUntil('tr').parent().find('td:last'));
  444. },
  445. rules : {
  446. business_licence_start:{
  447. required: true,
  448. },
  449. business_licence_end:{
  450. required: true,
  451. }
  452. },
  453. messages : {
  454. business_licence_start:{
  455. required: '{$Think.lang.business_licence_start_required}',
  456. },
  457. business_licence_end:{
  458. required: '{$Think.lang.business_licence_start_required}',
  459. }
  460. }
  461. });
  462. $('div[dstype="editStoreContent"] > ul').find('li').click(function(){
  463. $(this).addClass('current').siblings().removeClass('current');
  464. var _index = $(this).index();
  465. var _form = $('div[dstype="editStoreContent"]').find('form');
  466. _form.hide();
  467. _form.eq(_index).show();
  468. });
  469. });
  470. </script>