{template nheader.html}
<div class="page-bar">
    <ul class="page-breadcrumb mylink">
        {$menu.link}
    </ul>
    <ul class="page-breadcrumb myname">
        {$menu.name}
    </ul>
    <div class="page-toolbar">
        <div class="btn-group pull-right">
            <button type="button" class="btn green btn-sm btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> {fc_lang('操作菜单')}
                <i class="fa fa-angle-down"></i>
            </button>
            <ul class="dropdown-menu pull-right" role="menu">
                {loop $menu.quick $t}
                <li>
                    <a href="{$t.url}">{$t.icon} {$t.name}</a>
                </li>
                {/loop}
                <li class="divider"> </li>
                <li>
                    <a href="javascript:window.location.reload();">
                        <i class="icon-refresh"></i> {fc_lang('刷新页面')}</a>
                </li>
            </ul>
        </div>
    </div>
</div>


<div class="mytopsearch">
    <form class="row" method="post" action="" name="searchform" id="searchform">
        <input name="search" id="search" type="hidden" value="1" />
        <div class="col-md-12">
            <label>
                <select name="data[field]" class="form-control">
                    <option value="id" {if $param.field=='id'}selected{/if}>Id</option>
                    <option value="uid" {if $param.field=='uid'}selected{/if}>Uid</option>
                    {loop $field $t}
                    {if $t.ismain && $t.fieldname != 'inputtime'}
                    <option value="{$t.fieldname}" {if $param.field==$t.fieldname}selected{/if}>{$t.name}</option>
                    {/if}
                    {/loop}
                </select>
            </label>
            <label><i class="fa fa-caret-right"></i></label>
            <label style="padding-right: 20px;"><input type="text" class="form-control" placeholder="{fc_lang('多个Id可以用“,”分隔')}" value="{$param['keyword']}" name="data[keyword]" /></label>

            <label>{fc_lang('录入时间')} ：</label>
            <label>{dr_field_input('start', 'Date', array('option'=>array('format'=>'Y-m-d','width'=>'100')), (int)$param.start)}</label>
            <label><i class="fa fa-minus"></i></label>
            <label style="margin-right:10px">{dr_field_input('end', 'Date', array('option'=>array('format'=>'Y-m-d','width'=>'100')), (int)$param.end)}</label>
            <label><button type="submit" class="btn green btn-sm" name="submit" > <i class="fa fa-search"></i> {fc_lang('搜索')}</button></label>
        </div>
    </form>
</div>


<div class="portlet light bordered">
    <div class="portlet-body">
        <div class="table-scrollable v3table">
            <form action="" method="post" name="myform" id="myform">
                <input name="action" id="action" type="hidden" value="" />
                <table class="table">
                    <thead>
                    <tr>
                        <th align=""></th>
                        <th class="{ns_sorting('id')}" name="id">Id</th>
                        <th class="{ns_sorting('content')}" name="content">{fc_lang('内容')}</th>
                        <th class="{ns_sorting('username')}" name="username">{fc_lang('录入作者')}</th>
                        <th class="{ns_sorting('inputtime')}" name="inputtime">{fc_lang('录入时间')}</th>
                        <th align="left" class="dr_option">{fc_lang('操作')}</th>
                    </tr>
                    </thead>
                    <tbody>
                    {loop $list $t}
                    <tr>
                        <td><input name="ids[]" type="checkbox" class="dr_select toggle md-check" value="{$t.id}" /></td>
                        <td>{$t.id}</td>
                        <td>{dr_keyword_highlight(dr_strcut(dr_clearhtml($t.content), 40), $param.keyword)}</td>
                        <td><a href="javascript:;" onclick="dr_dialog_member('{$t.uid}')">{dr_strcut($t.username, 10)}</a></td>
                        <td>{dr_date($t.inputtime, NULL, 'red')}</td>
                        <td>
                            <a class="btn green btn-xs" href="{dr_url('wmaterial/index',array('action'=>'edit','id' => $t.id))}"> <i class="fa fa-edit"></i> {fc_lang('修改')}</a>
                        </td>
                    </tr>
                    {/loop}
                    <tr>
                        <td width="20"><input name="dr_select" class="toggle md-check" id="dr_select" type="checkbox" onClick="dr_selected()" /></td>
                        <td colspan="99" align="left">
                            <button type="button" class="btn red btn-sm" name="option" onClick="$('#action').val('del');dr_confirm_set_all('{fc_lang('您确定要这样操作吗？')}')"><i class="fa fa-trash"></i> {fc_lang('删除')}</button>

                        </td>
                    </tr>
                    </tbody>
                </table>
            </form>
            <div id="pages"><a>{fc_lang('共%s条', $total)}</a>{$pages}</div>
        </div>

    </div>
</div>

{template nfooter.html}