<div class="main-right-box">
    <form name="listform" id="listform"  action="<?php echo uri();?>" method="post" onsubmit="return returnform(this);">
        <h5>
            {lang_admin('product_code')}
            <!--工具栏-->
            <div class="content-eidt-nav pull-right">
                <a id="fullscreen-btn" class="btn btn-default" style="display:none;">
                    <i class="icon-frame"></i>
                    <?php echo lang_admin('container_fluid');?>
                </a>
                <span class="pull-right">
 <input class="btn btn-success" type="button" value=" {lang_admin('add')}{lang_admin('product_code')}"
        onclick="gotourl(this)" data-dataurl="index.php?case=table&act=add&table=productcode&admin_dir={get('admin_dir',true)}" data-dataurlname="{lang_admin('add_product_code')}" />
                      <a href="#" onclick="gotourl(this)" data-dataurl="<?php echo url('config/index');?>" data-dataurlname="<?php echo lang_admin('set_up');?>" class="btn btn-default">
            <i class="icon-action-redo"></i>
        </a>
                    <a id="content-eidt-nav-btn" class="btn btn-default" style="display:none;">
                    <i class="icon-close"></i>
                </a>
                </span>
            </div>
        </h5>
        <div class="line"></div>
        <div class="blank20"></div>
        <div class="box" id="box">
            <div class="table-responsive">
                <table class="table table-hover">
                    <thead>
                    <tr class="th">
                        <th class="s_out"><input title="{lang_admin('click_to_select_all_items_on_this_page')}"  onclick="CheckAll(this.form)" type="checkbox" name="chkall" class="checkbox" /></th>
                        <th class="catid text-center">{lang_admin('id')}</th>
                        <th class="catid text-center">{lang_admin('product_code')}</th>
                        <th class="catid text-center">{lang_admin('commodity')}id</th>
                        <th class="catname text-center">{lang_admin('status')}</th>
                        <th class="catname text-center">{lang_admin('administration')}</th>
                    </tr>
                    </thead>
                    <tbody>
                    {loop $data $d}
                    <tr>
                        <td class="s_out"><input onclick="c_chang(this)" type="checkbox" value="{$d['id']}" name="select[]" class="checkbox" /></td>
                        <td class="catid text-center">{cut($d['id'])}</td>
                        <td class="catname text-center">{cut($d['product'])}</td>
                        <td class="catname text-center">{cut($d['shopid'])}</td>
                        <td class="catname text-center">{cut($d['status'])}</td>
                        <td class="manage text-center">
                            <a href="#" onclick="gotourl(this)"   data-dataurl="<?php echo modify("act/edit/table/$table/id/".$d['id']);?>" title="{lang_admin('edit')}" class="btn btn-gray" data-dataurlname="{lang_admin('edit_label')}">{lang_admin('edit')}</a>
                            <a href="#" onclick="gotourl(this)"   data-dataurl="<?php echo modify("act/delete/table/$table/id/".$d['id']."/token/".$token);?>" title="{lang_admin('delete')}" class="btn btn-gray" data-dataurlname="{lang_admin('delete_label')}">{lang_admin('delete')}</a>
                        </td>
                    </tr>
                    {/loop}
                    </tbody>
                </table>
            </div>
            <input type="hidden" name="batch" value="" />
            <input class="btn btn-gray" type="button" value=" {lang_admin('delete')} " name="delete"
                   onclick="if(getSelect(this.form) && confirm('{lang_admin('are_you_sure_you_want_to_delete_it')}')){this.form.action='<?php echo modify('act/batch',true);?>'; this.form.batch.value='delete'; returnform(this.form);}"/>
            <div class="blank30"></div>
            <div class="line"></div>
            <div class="clear page">
                <?php if(get('table')!='type' && front::get('case')!='field') echo pagination::adminhtml($record_count); ?>
            </div>
        </div>
    </form>
    <script>
        $(function () { $("[data-toggle='tooltip']").tooltip(); });
    </script>
    <div class="blank30"></div>
</div>
