12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- {Template header}
- <body>
- <div class="warp">
- <ul class="setting">
- <li class="length">
- <em>填入加密数据:</em>
- <textarea name="data" style="height:auto" rows="{$exceljmnum+1}" placeholder="每行必须只有一条数据,每个账号每天最多可解密{$excelusernum}次,每次最多解密{$exceljmnum}条数据"></textarea>
- </li>
- <li class="length jmdata" style="margin-top:30px;">
- <div style="margin-left:115px;"></div>
- </li>
- <li class="length" style="text-align: center;">
- <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>
- <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>
- </li>
- <div style="clear:both;"></div>
- </ul>
- </div>
- <script>var addedit="/fullorderexcel/jmexcel/";
- $(".qdjm").click(function() {
- layx.load('loadId','解密中');
- data = $("textarea[name=data]").val().replace(/\</g,"<");
- data = data.replace(/\>/g,">");
- data = data.replace(/\+/g,"%2B");
- data = data.replace(/&/g,"%26");
- $.ajax({
- url: "/fullorderexcel/jmexcel/",
- data: "data="+encodeURI(data),
- type: "POST",
- dataType: "json",
- success: function(a) {
- layx.destroy('loadId');
- if (a && a.success) {
- $(".setting .jmdata div").html(a.msg);
- } else {
- layx.alert('错误',a.msg,function(id,button){
- },{dialogIcon:'error'});
- }
- }
- });
- })
- $(".qk").click(function() {
- $("textarea[name=data]").val("");
- $(".setting .jmdata div").html("");
- })
- </script>
- {Template footer}
|