reopen_index.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_main"}
  3. <div class="alert alert-block mt10">
  4. <ul>
  5. <li>{$Think.lang.renewal_notice1}</li>
  6. {notempty name="reopen_list"}
  7. <li>{$Think.lang.renewal_notice2} {$store_info.store_endtime|date="Y-m-d"},{$Think.lang.renewal_notice3} {$store_info.allow_applay_date|date="Y-m-d"} {$Think.lang.renewal_notice4}</li>
  8. {/notempty}
  9. </ul>
  10. </div>
  11. <table class="dssc-default-table">
  12. <thead>
  13. <tr>
  14. <th class="w10"></th>
  15. <th>{$Think.lang.fee_standard}</th>
  16. <th>{$Think.lang.renewal_time}</th>
  17. <th>{$Think.lang.payment_amount}</th>
  18. <th>{$Think.lang.payment_voucher}</th>
  19. <th>{$Think.lang.ds_state}</th>
  20. <th>{$Think.lang.ds_handle}</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. {notempty name="reopen_list"}
  25. {foreach name="reopen_list" item="val" }
  26. <tr class="bd-line">
  27. <td></td>
  28. <td>{$val.storereopen_grade_price} ( {$val.storereopen_grade_name} )</td>
  29. <td>{$val.storereopen_year}</td>
  30. <td>{if $val.storereopen_pay_amount == 0}{$Think.lang.free}{else/}{$val.storereopen_pay_amount}{/if}</td>
  31. <td>
  32. {if $val.storereopen_pay_cert != ''}
  33. <a data-lightbox="lightbox-image" href="{:get_store_joinin_imageurl($val['storereopen_pay_cert'])}">{$Think.lang.ds_view}</a>
  34. {/if}
  35. </td>
  36. <td><?php echo str_replace(array('0','1','2'),array(lang('pending_payment'),lang('pending_audit'),lang('approved_audit')),$val['storereopen_state']);?></td>
  37. <td class="dscs-table-handle">
  38. {if $val.storereopen_state == '0'}
  39. <span><a href="javascript:void(0)" class="btn-red" onclick="ds_ajaxget_confirm('{:url('Sellerinfo/reopen_del',['storereopen_id'=>$val.storereopen_id])}','{$Think.lang.ds_ensure_del}');"><i class="iconfont">&#xe725;</i><p>{$Think.lang.ds_del}</p></a></span>
  40. {/if}
  41. </td>
  42. </tr>
  43. {/foreach}
  44. {else /}
  45. <tr>
  46. <td colspan="20" class="norecord"><div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div></td>
  47. </tr>
  48. {/notempty}
  49. </tbody>
  50. </table>
  51. <div class="dssc-form-default">
  52. {if isset($upload_cert)}
  53. <form method="post" action="{:url('Sellerinfo/reopen_upload')}" name="upload_form" id="upload_form" enctype="multipart/form-data">
  54. <input type="hidden" name="storereopen_id" value="{$reopen_info.storereopen_id}">
  55. <dl>
  56. <dt>{$Think.lang.payment_amount}{$Think.lang.ds_colon}</dt>
  57. <dd>
  58. {$reopen_info.storereopen_pay_amount} {$Think.lang.ds_yuan}
  59. </dd>
  60. </dl>
  61. <dl>
  62. <dt>{$Think.lang.upload_payment_voucher}{$Think.lang.ds_colon}</dt>
  63. <dd>
  64. <input name="storereopen_pay_cert" type="file">
  65. </dd>
  66. </dl>
  67. <dl>
  68. <dt>{$Think.lang.note}{$Think.lang.ds_colon}</dt>
  69. <dd>
  70. <textarea name="storereopen_pay_cert_explain" rows="10" cols="30"></textarea>
  71. </dd>
  72. </dl>
  73. <div class="bottom">
  74. <input type="submit" class="submit" value="{$Think.lang.ds_submit}" />
  75. </div>
  76. </form>
  77. {/if}
  78. {if isset($applay_reopen)}
  79. <form method="post" action="{:url('Sellerinfo/reopen_add')}" name="add_form" id="add_form">
  80. <dl>
  81. <dt>{$Think.lang.apply_store_level}{$Think.lang.ds_colon}</dt>
  82. <dd>
  83. <select name="storereopen_grade_id" style="width: auto;">
  84. {notempty name="grade_list"}
  85. {foreach name="grade_list" item="val" }
  86. <option {if $val.storegrade_id==$current_grade_id}selected{/if} value="{$val.storegrade_id}">{$val.storegrade_name} {if floatval($val['storegrade_price'])>0}{$val.storegrade_price}{$Think.lang.ds_yuan}/{$Think.lang.year}{else/}{$Think.lang.free}{/if}</option>
  87. {/foreach}
  88. {/notempty}
  89. </select>
  90. </dd>
  91. </dl>
  92. <dl>
  93. <dt>{$Think.lang.application_renewal_duration}{$Think.lang.ds_colon}</dt>
  94. <dd>
  95. <select name="storereopen_year">
  96. <option value="1">1 {$Think.lang.year}</option>
  97. <option value="2">2 {$Think.lang.year}</option>
  98. </select>
  99. </dd>
  100. </dl>
  101. <div class="bottom">
  102. <input type="button" id="btn_add_reopen" class="submit" value="{$Think.lang.ds_submit}" />
  103. </div>
  104. </form>
  105. {/if}
  106. </div>
  107. <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
  108. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
  109. <script type="text/javascript">
  110. $(document).ready(function() {
  111. //页面输入内容验证
  112. $('#btn_add_reopen').on('click', function() {
  113. ds_ajaxpost('add_form')
  114. });
  115. $('#upload_form').validate({
  116. rules: {
  117. storereopen_pay_cert: {
  118. required: true
  119. },
  120. storereopen_pay_cert_explain: {
  121. maxlength: 100
  122. }
  123. },
  124. messages: {
  125. storereopen_pay_cert: {
  126. required: '{$Think.lang.please_select_payment_voucher}'
  127. },
  128. storereopen_pay_cert_explain: {
  129. maxlength: jQuery.validator.format("{$Think.lang.max_word}")
  130. }
  131. }
  132. });
  133. });
  134. </script>
  135. {/block}