123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- {include file="public/header" /}
- <div class="page">
- <div class="fixed-bar">
- <div class="item-title">
- <div class="subject">
- <h3>{$Think.lang.ds_rechargecard}</h3>
- <h5></h5>
- </div>
- {include file="public/admin_items" /}
- </div>
- </div>
- <form method="get" name="formSearch">
- <div class="ds-search-form">
- <dl>
- <dt>{$Think.lang.rc_sn}</dt>
- <dd><input class="txt" type="text" name="sn" id="search-sn" value="{$Request.get.sn}" /></dd>
- </dl>
- <dl>
- <dt>{$Think.lang.rc_batchflag}</dt>
- <dd><input class="txt" type="text" name="batchflag" id="search-batchflag" value="{$Request.get.batchflag}" /></dd>
- </dl>
- <dl>
- <dt>{$Think.lang.rc_state}</dt>
- <dd><select name="state" id="search-state">
- <option value="">{$Think.lang.ds_all}</option>
- <option value="0">{$Think.lang.rc_state_not_receive}</option>
- <option value="1">{$Think.lang.rc_state_receive}</option>
- </select>
- <script>$('#search-state').val('{$Request.get.state}');</script>
- </dd>
- </dl>
- <div class="btn_group">
- <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
- <a class="btn btn-default" href="{:url('Rechargecard/index')}" title="{$Think.lang.ds_cancel_search}"><span>{$Think.lang.ds_cancel_search}</span></a>
- <a class="btn" href="javascript:export_xls('{:url('Rechargecard/export_step1')}')" target="_blank">{$Think.lang.ds_export}Excel</a>
- </div>
- </div>
- </form>
- <div class="explanation" id="explanation">
- <div class="title" id="checkZoom">
- <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
- <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
- </div>
- <ul>
- <li>{$Think.lang.rechargecard_index_help1}</li>
- </ul>
- </div>
- <table class="ds-default-table">
- <thead>
- <tr class="thead">
- <th class="w24"> </th>
- <th>{$Think.lang.rc_sn}</th>
- <th>{$Think.lang.rc_batchflag}</th>
- <th class="w60 align-center">{$Think.lang.rc_denomination}</th>
- <th class="w96 align-center">{$Think.lang.rc_admin_name}</th>
- <th class="w150 align-center">{$Think.lang.rc_tscreated}</th>
- <th class="w270 align-center">{$Think.lang.rc_state}</th>
- <th class="w60 align-center">{$Think.lang.ds_handle} </th>
- </tr>
- </thead>
- {empty name="card_list"}
- <tbody>
- <tr class="no_data">
- <td colspan="20">{$Think.lang.ds_no_record}</td>
- </tr>
- </tbody>
- {else /}
- <tbody>
- {foreach name="card_list" item="val"}
- <tr class="space" id="ds_row_{$val.rc_id}">
- <td class="w24">
- {if $val.rc_state == 0}
- <input type="checkbox" class="checkitem" name="ids[]" value="{$val.rc_id}" />
- {else /}
- <input type="checkbox" disabled="disabled" />
- {/if}
- </td>
- <td class="">{$val.rc_sn}</td>
- <td class="">{$val.rc_batchflag}</td>
- <td class="align-center">{$val.rc_denomination}</td>
- <td class="align-center">{$val.rc_admin_name}</td>
- <td class="align-center">{$val.rc_tscreated|date="Y-m-d H:i:s"}</td>
- <td class="align-center">
- {if $val.rc_state == 1 && $val.member_id >0 && $val.rc_tsused >0}
- {$Think.lang.ds_member} {$val.member_name} {$Think.lang.rechargecard_at} {$val.rc_tsused|date="Y-m-d H:i:s"}{$Think.lang.rc_state_receive}
- {else /}
- {$Think.lang.rc_state_not_receive}
- {/if}
- </td>
- <td class="align-center">
- {if $val.rc_state == 0}
- <a href="javascript:dsLayerConfirm('{:url('Rechargecard/del_card',['rc_id'=>$val.rc_id])}','{$Think.lang.ds_ensure_del}',{$val.rc_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
- {/if}
- </td>
- </tr>
- {/foreach}
- </tbody>
- <tfoot>
- <tr class="tfoot">
- <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
- <td colspan="16"><label for="checkallBottom">{$Think.lang.ds_select_all}</label>
- <a href="javascript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
- </td>
- </tr>
- </tfoot>
- {/empty}
- </table>
- {$show_page|raw}
- </div>
- <script type="text/javascript">
- function submit_delete(ids_str){
- _uri = ADMINSITEURL+"/Rechargecard/del_card.html?rc_id=" + ids_str;
- dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
- }
- </script>
|