Ingen beskrivning
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

official_pack_index.htm 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page min-hg-c-10">
  6. <div class="flexigrid">
  7. <form class="form-horizontal" id="post_form" method="post">
  8. <div class="mDiv pt0">
  9. <div class="ftitle">
  10. <h3>列表分页</h3>
  11. </div>
  12. </div>
  13. <div class="hDiv">
  14. <div class="hDivBox">
  15. <table cellspacing="0" cellpadding="0" style="width: 100%">
  16. <thead>
  17. <tr>
  18. <th abbr="article_time" axis="col6" class="w150">
  19. <div class="tl text-l10">变量名</div>
  20. </th>
  21. <th abbr="article_time" axis="col6" class="w350">
  22. <div class="tl text-l10">中文默认值</div>
  23. </th>
  24. <th abbr="article_title" axis="col3" class="">
  25. <div class="tl text-l10">英语变量值</div>
  26. </th>
  27. </tr>
  28. </thead>
  29. </table>
  30. </div>
  31. </div>
  32. <div class="bDiv" style="height: auto;">
  33. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  34. <table style="width: 100%;">
  35. <tbody>
  36. {volist name="$list[1]" id="vo"}
  37. <tr>
  38. <td class="">
  39. <div class="w150 tl text-l10">
  40. {$key}
  41. </div>
  42. </td>
  43. <td class="">
  44. <div class="w350 tl text-l10">
  45. {$vo['cn']['value']}
  46. </div>
  47. </td>
  48. <td class="" style="width: 100%;">
  49. <div class="tl text-l10" >
  50. <input type="text" name="data[{$vo['en']['id']}]" value="{$vo['en']['value']}" style="width:500px;" placeholder="{$vo['en']['value']}" autocomplete="off">
  51. </div>
  52. </td>
  53. </tr>
  54. {/volist}
  55. </tbody>
  56. </table>
  57. </div>
  58. <div class="iDiv" style="display: none;"></div>
  59. </div>
  60. <div class="mDiv mt30">
  61. <div class="ftitle">
  62. <h3>留言提示</h3>
  63. </div>
  64. </div>
  65. <div class="hDiv">
  66. <div class="hDivBox">
  67. <table cellspacing="0" cellpadding="0" style="width: 100%">
  68. <thead>
  69. <tr>
  70. <th abbr="article_time" axis="col6" class="w150">
  71. <div class="tl text-l10">变量名</div>
  72. </th>
  73. <th abbr="article_time" axis="col6" class="w350">
  74. <div class="tl text-l10">中文默认值</div>
  75. </th>
  76. <th abbr="article_title" axis="col3" class="">
  77. <div class="tl text-l10">英语变量值</div>
  78. </th>
  79. </tr>
  80. </thead>
  81. </table>
  82. </div>
  83. </div>
  84. <div class="bDiv" style="height: auto;">
  85. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  86. <table style="width: 100%;">
  87. <tbody>
  88. {volist name="$list[2]" id="vo"}
  89. <tr>
  90. <td class="">
  91. <div class="w150 tl text-l10">
  92. {$key}
  93. </div>
  94. </td>
  95. <td class="">
  96. <div class="w350 tl text-l10">
  97. {$vo['cn']['value']}
  98. </div>
  99. </td>
  100. <td class="" style="width: 100%;">
  101. <div class="tl text-l10" >
  102. <input type="text" name="data[{$vo['en']['id']}]" value="{$vo['en']['value']}" style="width:500px;" placeholder="{$vo['en']['value']}" autocomplete="off">
  103. </div>
  104. </td>
  105. </tr>
  106. {/volist}
  107. </tbody>
  108. </table>
  109. </div>
  110. <div class="iDiv" style="display: none;"></div>
  111. </div>
  112. <div style="display: block;height: 50px;"></div>
  113. <div class="bot3 wm100">
  114. <a href="javascript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green"><span>确认保存</span></a>
  115. </div>
  116. </form>
  117. </div>
  118. </div>
  119. <script type="text/javascript">
  120. $(document).ready(function(){
  121. // 表格行点击选中切换
  122. $('#flexigrid > table>tbody >tr').click(function(){
  123. $(this).toggleClass('trSelected');
  124. });
  125. });
  126. // 判断输入框是否为空
  127. function checkForm(){
  128. layer_loading('正在处理');
  129. $.ajax({
  130. type : 'post',
  131. url : "{:url('Foreign/official_pack_save', ['_ajax'=>1])}",
  132. data : $('#post_form').serialize(),
  133. dataType : 'json',
  134. success : function(res){
  135. layer.closeAll();
  136. if(res.code == 1){
  137. layer.msg(res.msg, {shade: layer_shade, time: 1000}, function(){
  138. window.location.reload();
  139. });
  140. }else{
  141. showErrorMsg(res.msg);
  142. }
  143. },
  144. error: function(e){
  145. layer.closeAll();
  146. showErrorAlert(e.responseText);
  147. }
  148. });
  149. }
  150. </script>
  151. {include file="public/footer" /}