fullorderexcel_jmexcel.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {Template header}
  2. <body>
  3. <div class="warp">
  4. <ul class="setting">
  5. <li class="length">
  6. <em>填入加密数据:</em>
  7. <textarea name="data" style="height:auto" rows="{$exceljmnum+1}" placeholder="每行必须只有一条数据,每个账号每天最多可解密{$excelusernum}次,每次最多解密{$exceljmnum}条数据"></textarea>
  8. </li>
  9. <li class="length jmdata" style="margin-top:30px;">
  10. <div style="margin-left:115px;"></div>
  11. </li>
  12. <li class="length" style="text-align: center;">
  13. <font class="qdjm" style="height:50px;line-height:50px;background:#2ca8a1;text-align:center;color:#fff;border-radius:5px;display:inline-block;margin-left:20px;padding:0 15px;cursor:pointer;margin-top:50px;">确定解密</font>
  14. <font class="qk" style="height:50px;line-height:50px;background:#ccc;text-align:center;color:#fff;border-radius:5px;display:inline-block;margin-left:20px;padding:0 15px;cursor:pointer;margin-top:50px;">清空数据</font>
  15. </li>
  16. <div style="clear:both;"></div>
  17. </ul>
  18. </div>
  19. <script>var addedit="/fullorderexcel/jmexcel/";
  20. $(".qdjm").click(function() {
  21. layx.load('loadId','解密中');
  22. data = $("textarea[name=data]").val().replace(/\</g,"&lt;");
  23. data = data.replace(/\>/g,"&gt;");
  24. data = data.replace(/\+/g,"%2B");
  25. data = data.replace(/&/g,"%26");
  26. $.ajax({
  27. url: "/fullorderexcel/jmexcel/",
  28. data: "data="+encodeURI(data),
  29. type: "POST",
  30. dataType: "json",
  31. success: function(a) {
  32. layx.destroy('loadId');
  33. if (a && a.success) {
  34. $(".setting .jmdata div").html(a.msg);
  35. } else {
  36. layx.alert('错误',a.msg,function(id,button){
  37. },{dialogIcon:'error'});
  38. }
  39. }
  40. });
  41. })
  42. $(".qk").click(function() {
  43. $("textarea[name=data]").val("");
  44. $(".setting .jmdata div").html("");
  45. })
  46. </script>
  47. {Template footer}