index.html 2.4 KB


<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        {:build_heading(null,FALSE)}
        <div class="panel-lead"><em>发票管理</em>用于申请开具发票,发票开具记录功能</div>
        <ul class="nav nav-tabs" data-field="scene_id">
            {foreach name="scene_list" item="vo"  index="i" }
            <li {if condition="$i eq 1"}class='active'{/if}><a  href="#t-{$key|htmlentities}" data-value="{$key|htmlentities}" data-toggle="tab">
            {$vo|htmlentities}<span class="pull-right-container {$key|htmlentities}"><small class="label pull-right bg-orange"></small></span>
        </a></li>
            {/foreach}
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="contract_table">
                        <div id="toolbar" class="toolbar">
                             {:build_toolbar('refresh,add')}
							  <a class="btn btn-info btn-setting btn-dialog {:$auth->check('facrm/invoice/setting')?'':'hide'}"
                               href="{:url('facrm/invoice/setting')}" title="{:__('发票配置')}"><i class="fa fa-gear fa-fw"></i> {:__('发票配置')}</a>
							 <a class="btn btn-success btn-recyclebin btn-dialog {:$auth->check('facrm/invoice/recyclebin')?'':'hide'}"
                               href="{:url('facrm/invoice/recyclebin')}" title="{:__('Recycle bin')}"><i class="fa fa-recycle"></i> {:__('回收站')}</a>
                        </div>
                        <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                               data-operate-edit="{:$auth->check('facrm/invoice/edit')}"
                               data-operate-del="{:$auth->check('facrm/invoice/del')}"
                               data-operate-add="{:$auth->check('facrm/invoice/add')}"
							   data-operate-opener="{:$auth->check('facrm/invoice/opener')}"

                               width="100%">
                        </table>

                    </div>

                </div>
            </div>

        </div>
    </div>
</div>
<script>
    var scene_list={:json_encode($scene_list)};
    var from_type="{:input('from_type')}";
  
    var customer_id="{:input('customer_id')}";
</script>