<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="VouchCompanyList.aspx.cs" Inherits="WAP2P.Web.PC.Admin.Account.VouchCompanyList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server"></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <dl class="ui-tabs">
        <dt><a href="javascript:" class="on">担保机构列表</a></dt>        
        <dd>
             <form action="?action=search" method="get" class="m-search">
                <table class="m-criteria" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th>担保机构筛选：</th>
                        <td>
                            <ruson:Select runat="server" ID="type" FillRequestValue="true">
                                <option value="机构名称">机构名称</option>
                                <option value="联系人">联系人</option>
                            </ruson:Select>
                            <input type="text" size="35" placeholder="输入搜索条件" name="key" value="<% =Request.QueryString["key"].HtmlEncode() %>" />
                            <span class="ml20 js-inlinesubmit"><input type="submit" class="btn-base c-priority iconfont" value="&#xe60f; 搜索" /><input type="reset" class="btn-base c-normal iconfont" value="&#xe670; 清空条件" /></span>
                        </td>
                    </tr>
                    <tr class="g-hide">
                        <th>添加时间筛选：</th>
                        <td>
                            <input type="text" name="startAt" id="startAt" value="<% =Request.QueryString["startAt"].UrlEncode() %>" class="ui-date w150" data-maxdate="#endAt" /> 至 <input type="text" name="endAt" id="endAt" value="<% =Request.QueryString["endAt"].UrlEncode() %>" class="ui-date w150" data-mindate="#startAt" />
                        </td>
                    </tr>
                    <tr class="g-hide">
                        <th></th>
                        <td><input type="submit" class="btn-base c-priority iconfont" value="&#xe60f; 搜索"  /><input type="reset" class="btn-base c-normal iconfont" value="&#xe670; 清空条件"  /></td>
                    </tr>
                </table>  
                <a href="javascript:void(0);" id="btnSwithMoreFilter" class="iconfont"><span>&#xe661; 显示更多筛选条件</span></a>              
            </form>
            <div class="m-content">
                <div class="m-oper">
                    <ruson:PermissionSpace runat="server" Module="资金管理" Function="担保机构列表" Operate="新建">
                        <input type="button" class="oper-clear btn-larger c-priority iconfont" value="&#xe67a; 新建机构" onclick="$.jPopupEdit('新建担保机构', 'VouchCompanyDetail.aspx');" />
                    </ruson:PermissionSpace>
                    <ruson:PermissionSpace runat="server" Module="资金管理" Function="担保机构列表" Operate="删除|修改">
                        <input type="button" class="oper-clear btn-smaller c-normal selall iconfont" value="&#xe612; 全选" />
                        <input type="button" class="oper-clear btn-smaller c-normal selreverse iconfont" value="&#xe644; 反选" />
                    </ruson:PermissionSpace>
                    <ruson:PermissionSpace runat="server" Module="资金管理" Function="担保机构列表" Operate="删除">
                        <input type="button" class="oper-clear btn-smaller c-important delsel iconfont" data-function="担保机构列表" data-operate="批量删除" data-freemes="<% =FreeLimit.ActionLimitMes %>" value="&#xe611; 删除选中" />
                    </ruson:PermissionSpace>
                    <ruson:PermissionSpace runat="server" Module="资金管理" Function="担保机构列表" Operate="修改">
                        <input type="button" class="oper-clear btn-smaller c-obvious iconfont" data-action="saveActive" data-function="担保机构列表" data-operate="批量修改" data-freemes="<% =FreeLimit.ActionLimitMes %>" value="&#xe683; 批量开通/关闭" />
                    </ruson:PermissionSpace>
                    <span class="iconfont"><i class="fs22 fcjade-1">&#xe655;</i>担保机构已开通<i class="fs22 fcred-3">&#xe639;</i>担保机构已关闭</span>
                </div>
                <table class="m-list" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th width="5%">选取</th>
                        <th width="5%">编号</th>
                        <th width="10%">机构名称</th>
                        <th width="10%">机构标示</th>
                        <th width="10%">联系人</th>
                        <th width="10%">联系电话</th>
                        <th width="25%" class="g-fleft">详细说明</th>
                        <th width="15%">添加时间</th>
                        <th width="5%">状态</th>
                        <th width="10%">操作</th>
                    </tr>
                </table>
            </div>
        </dd>
    </dl>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server">
    <ruson:Repater runat="server" ID="rptList" ItemType="WAP2P.Sys.VouchCompany">
        <ItemTemplate>
            <tr id="tr<%# Item.Id %>">
                <td><input type="checkbox" class="del" data-id="<%# Item.Id %>" /></td>
                <td><%# Item.Id %></td>
                <td><%# Item.Name %></td>
                <td><%# !string.IsNullOrEmpty(Item.Logo) ? string.Format("<img src=\"{0}\"  height=\"40\" alt=\"\">", Item.Logo) : "暂无" %></td>
                <td><%# Item.ContactName %></td>
                <td><%# Item.ContactPhone %></td>
                <td class="g-fleft"><%# Item.Description.LeftX(30) %></td>
                <td><%# Item.CreateAt.ToDateTimeString() %></td>
                <td><%# Item.Active ? "<i class=\"fs22 iconfont fcjade-1\">&#xe655;</i>" : "<i class=\"fs22 iconfont fcred-3\">&#xe639;</i>" %></td>
                <td>
                    <ruson:PermissionSpace runat="server" Module="资金管理" Function="担保机构列表" Operate="修改"><a class="iconfont oper edit" href="javascript:;" onclick="$.jPopupEdit('编辑担保机构', 'VouchCompanyDetail.aspx?ID=<%# Item.Id %>');">&#xe642; 编辑</a></ruson:PermissionSpace>
                    <ruson:PermissionSpace runat="server" Module="资金管理" Function="担保机构列表" Operate="删除"><a class="iconfont del" href="VouchCompanyDetail.aspx?ID=<%# Item.Id %>&action=del">&#xe611; 删除</a></ruson:PermissionSpace>
                </td>
            </tr>
        </ItemTemplate>
        <EmptyTemplate>
            <tr>
                <td colspan="10" class="g-fleft">暂无数据。</td>
            </tr>
        </EmptyTemplate>
    </ruson:Repater>
    <tr class="pager">
        <td colspan="10" ><ruson:Pager runat="server" ID="pages" CssClass="pages" /><a href="<% =Request.RawUrl %>" class="g-hide"></a></td>
    </tr>
</asp:Content>
