exchange.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <div class="dsp-voucher-exchange">
  2. {if $result===TRUE}
  3. <form method="post" action="{:url('Pointvoucher/voucherexchange_save')}" id="exform">
  4. <input type="hidden" name="vid" value="{$template_info.vouchertemplate_id}"/>
  5. <div class="pic">
  6. <span>
  7. <img src="{$template_info.vouchertemplate_customimg}"/>
  8. </span>
  9. </div>
  10. <dl>
  11. <dt>{$Think.lang.home_bein_use}<span class="ml5 mr5">{$template_info.vouchertemplate_points}</span>{$Think.lang.points_unit}&nbsp;{$Think.lang.home_exchange_one|raw}<br/>
  12. {$template_info.store_name}{$template_info.vouchertemplate_price}{$Think.lang.ds_yuan}{$Think.lang.store_voucher}(<em>{$Think.lang.home_voucher_desc_1}{$template_info.vouchertemplate_limit}{$Think.lang.home_voucher_desc_2}{$template_info.vouchertemplate_price}</em>)</dt>
  13. <dd>{$Think.lang.store_voucher_valid_until}{:date('Y-m-d',$template_info.vouchertemplate_enddate)}</dd>
  14. <dd>
  15. {if $template_info.vouchertemplate_eachlimit >0}
  16. {$Think.lang.each_id_collection}{$template_info.vouchertemplate_eachlimit}{$Think.lang.ds_zhang}
  17. {else/}
  18. {$Think.lang.each_id_collection_unlimited}
  19. {/if}
  20. </dd>
  21. </dl>
  22. <div class="button">
  23. <input type="submit" class="submit" value="{$Think.lang.exchange}"/>
  24. <a href="javascript:DialogManager.close('vexchange');" class="dsp-btn">{$Think.lang.ds_cancel}</a>
  25. </div>
  26. </form>
  27. {else/}
  28. <div class="errormsg" style="height:50px; text-align:center;">{$message}</div>
  29. <div style="text-align:center;"><a href="javascript:DialogManager.close('vexchange');" class="dsp-btn">{$Think.lang.ds_cancel}</a></div>
  30. {/if}
  31. </div>
  32. <script>
  33. $(document).ready(function(){
  34. $('#exform').validate({
  35. submitHandler:function(form){
  36. ds_ajaxpost('exform');
  37. }
  38. });
  39. });
  40. </script>