123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- {include file="public/layout" /}
- <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
- <div id="append_parent"></div>
- <div id="ajaxwaitid"></div>
- <div class="page min-hg-c-10">
- <div class="flexigrid">
- <form class="form-horizontal" id="post_form" method="post">
- <div class="mDiv pt0">
- <div class="ftitle">
- <h3>列表分页</h3>
- </div>
- </div>
- <div class="hDiv">
- <div class="hDivBox">
- <table cellspacing="0" cellpadding="0" style="width: 100%">
- <thead>
- <tr>
- <th abbr="article_time" axis="col6" class="w150">
- <div class="tl text-l10">变量名</div>
- </th>
- <th abbr="article_time" axis="col6" class="w350">
- <div class="tl text-l10">中文默认值</div>
- </th>
- <th abbr="article_title" axis="col3" class="">
- <div class="tl text-l10">英语变量值</div>
- </th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- <div class="bDiv" style="height: auto;">
- <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
- <table style="width: 100%;">
- <tbody>
- {volist name="$list[1]" id="vo"}
- <tr>
- <td class="">
- <div class="w150 tl text-l10">
- {$key}
- </div>
- </td>
- <td class="">
- <div class="w350 tl text-l10">
- {$vo['cn']['value']}
- </div>
- </td>
- <td class="" style="width: 100%;">
- <div class="tl text-l10" >
- <input type="text" name="data[{$vo['en']['id']}]" value="{$vo['en']['value']}" style="width:500px;" placeholder="{$vo['en']['value']}" autocomplete="off">
- </div>
- </td>
- </tr>
- {/volist}
- </tbody>
- </table>
- </div>
- <div class="iDiv" style="display: none;"></div>
- </div>
- <div class="mDiv mt30">
- <div class="ftitle">
- <h3>留言提示</h3>
- </div>
- </div>
- <div class="hDiv">
- <div class="hDivBox">
- <table cellspacing="0" cellpadding="0" style="width: 100%">
- <thead>
- <tr>
- <th abbr="article_time" axis="col6" class="w150">
- <div class="tl text-l10">变量名</div>
- </th>
- <th abbr="article_time" axis="col6" class="w350">
- <div class="tl text-l10">中文默认值</div>
- </th>
- <th abbr="article_title" axis="col3" class="">
- <div class="tl text-l10">英语变量值</div>
- </th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- <div class="bDiv" style="height: auto;">
- <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
- <table style="width: 100%;">
- <tbody>
- {volist name="$list[2]" id="vo"}
- <tr>
- <td class="">
- <div class="w150 tl text-l10">
- {$key}
- </div>
- </td>
- <td class="">
- <div class="w350 tl text-l10">
- {$vo['cn']['value']}
- </div>
- </td>
- <td class="" style="width: 100%;">
- <div class="tl text-l10" >
- <input type="text" name="data[{$vo['en']['id']}]" value="{$vo['en']['value']}" style="width:500px;" placeholder="{$vo['en']['value']}" autocomplete="off">
- </div>
- </td>
- </tr>
- {/volist}
- </tbody>
- </table>
- </div>
- <div class="iDiv" style="display: none;"></div>
- </div>
- <div style="display: block;height: 50px;"></div>
- <div class="bot3 wm100">
- <a href="javascript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green"><span>确认保存</span></a>
- </div>
- </form>
- </div>
- </div>
- <script type="text/javascript">
- $(document).ready(function(){
- // 表格行点击选中切换
- $('#flexigrid > table>tbody >tr').click(function(){
- $(this).toggleClass('trSelected');
- });
- });
-
- // 判断输入框是否为空
- function checkForm(){
- layer_loading('正在处理');
- $.ajax({
- type : 'post',
- url : "{:url('Foreign/official_pack_save', ['_ajax'=>1])}",
- data : $('#post_form').serialize(),
- dataType : 'json',
- success : function(res){
- layer.closeAll();
- if(res.code == 1){
- layer.msg(res.msg, {shade: layer_shade, time: 1000}, function(){
- window.location.reload();
- });
- }else{
- showErrorMsg(res.msg);
- }
- },
- error: function(e){
- layer.closeAll();
- showErrorAlert(e.responseText);
- }
- });
- }
- </script>
-
- {include file="public/footer" /}
|