@model string
<div class="current-location">
    <ul>
        <li class="left"><i class="glyphicon glyphicon-home"></i><a href="javascript:void(0)" onclick="location.href=location.href">站内短信管理</a></li>
        <li class="right"><a href="javascript:void(0)" onclick="LoadData()" title="刷新"><span class="glyphicon glyphicon-refresh"></span></a></li>
    </ul>
</div>
<div class="main">
    <table class="tb-head" cellpadding="0" cellspacing="0" border="0">
        <tr class="control-group">
            <td class="btn-group left">
                <button type="button" class="btn btn-default btn-sm ui-selectInvert">反选</button>
                <button type="button" class="btn btn-default ui-deleteMultiple btn-sm" data-custom-params="url:'@Url.Action("Delete")'">删除</button>
            </td>
            <td class="right form-inline form-group-sm">
                <select id="order" class="form-control ui-queryString option_jj">
                    <option value="thedate desc">按提交时间↓</option>
                    <option value="thedate asc">按提交时间↑</option>
                </select>
                <input type="text" id="thedate" name="thedate" placeholder="开始日期" maxlength="30" style="width:110px" onclick="laydate({istime:true,format:'YYYY-MM-DD'})" class="laydate-icon form-control ui-queryString">
                <input type="text" id="thedate" name="thedate" placeholder="结束日期" maxlength="30" style="width:110px" onclick="laydate({istime:true,format:'YYYY-MM-DD'})" class="laydate-icon form-control ui-queryString">
                <select id="field" name="field" class="btn-xs ui-queryString ui-setName  form-control option_jj">
                    <option value="">选择搜索字段</option>
                    <option value="title">标题</option>
                    <option value="receiver">收件人</option>
                    <option value="username">发件人</option>
                </select>
                <input type="text" id="keyword" name="keyword" class="form-control ui-queryString ui-keyword" placeholder="输入关键词" style="width:120px">
                <button type="button" class="btn btn-default btn-sm ui-queryString-search">确定</button>
            </td>
        </tr>
    </table>
    <table border=0 cellpadding=0 cellspacing=0 width=100% class="table table-bordered" id="tb_list">
        <thead><tr>
            <td align="center"  style="width:40px"><input type="checkbox" title="选择" class="ui-selectInvert" data-custom-params="isReverse:false"></td>
            <td align="center" width="25%">标题</td>
            <td align="center" width="15%">收件人</td>
            <td align="center" width="15%">发件人</td>
            <td align="center" width="22%">时间</td>
            <td align="center" width="20%">查看</td>
        </tr>
        <tr class="item" id="item_{id}">
            <td align="center" ><input type="checkbox" id="id" name="id" value="{id}"></td>
            <td align=left>
                <span class='icon icon-mailopen'></span><a href="javascript:void(0)">Re:{title}</a>
            </td>
            <td align="center">{receiver}</td>
            <td align="center">{username}</td>
            <td align="center">{thedate}</td>
            <td align="center">
                <div class="btn-group btn-group-sm">
                    <a href="javascript:void(0)" class="btn btn-default btn-sm ui-dialog" data-custom-params="title:'查看订单',url:'@Url.Action("Edit")?id={id}',width:'600px',height:'80%'">查看</a>
                    <a href="javascript:void(0)" class="btn btn-default btn-sm ui-deleteSingle" data-custom-params="url:'@Url.Action("Delete")',id:'{id}'">删除</a>
                </div>
            </td>
        </tr>

    </table>
</div>
<script type="text/javascript">
        document.write('<' + 'script type="text/javascript" src="' + baseUrl + '/js/list.js"></' + 'script>');
    function LoadData()
    {
        var url = "@Url.Action("PageListData")"
        $("#tb_list").ListBind(url, {callBack: "LoadedInit" });
    }
    LoadData();

</script>