exchange.html 1.8 KB

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