<table border="0" align="center" cellpadding="0" cellspacing="0" id="mian" ms-controller="settingloginlogs">
  <tbody><tr>
   <!--leftNav-->
    <!--<td width="198" height="450" valign="top" id="tdleft">
      <div id="left"> 
        <ul>
            <li class="selected"><a href="#/Settings/LoginLogs" class="log">登录日志</a></li>
            <li><a href="#/Settings/ActionLogs"  class="log">操作日志</a></li>
            <li class="last"><a href="#/Settings/APPLogs"  class="log">应用程序日志</a></li>
        </ul>
    </div>
    </td>-->
    <!--End leftNav-->
    <td valign="top" id="right" class="addrightbg">   
    <div class="boxtip" id="boxtip">
        <h1>登录日志</h1>
        <p>登录日志</p>
        <a href="javascript:history.go(-1)" class="btn_back"></a>
    </div> 
    <!--End Mian-->
    <table border="0" align="left" cellpadding="0" cellspacing="0" id="nobgmian">
        <tbody><tr>
            <td width="600" valign="top">
                <div class="boxTitlenob">
                    <h2>
                        登录日志列表
                        <input ms-if="memberShip.IsSuperAdmin" type="button" class="btn btn-danger" value="清空日志" ms-click="clearLog" />
                        <span class="rseachbox">
                            <input class="input" type="text" placeholder="关键词" ms-duplex="keyword" ms-enter="grid1.doSearch">
                            <button type="button" class="inputbt" ms-click="grid1.doSearch"></button>
                        </span>
                    </h2>
                    
                </div>
                <table id="tableList" width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                   <tbody>
                       <tr class="head" style="background-color: rgb(255, 255, 255); ">
                         <td style="width:10%;" align="center">
                            用户名
                        </td>
                       <td style="width:5%;" align="center">
                            操作
                        </td>
                       <td style="width:5%;" align="center">
                            状态
                        </td>
                        <td style="width:10%;" align="center">
                            登录IP
                        </td>
                        <td style="width:50%;" align="center">
                            备注
                        </td>
                        <td style="width:10%;" align="center">
                            登录时间
                        </td> 
                    </tr> 
                    <tr ms-repeat-item="grid1.list" class="bg" ms-class-1="red:item.UserId==0" style="background:#F6F6F6">
                        <td align="center">
                            <span ms-if="item.UserId==0"> {{item.UserName}}</span>
                            <a ms-if="item.UserId>0" href="javascript:void(0)"  ms-widget='userCard' ms-data-userid="item.UserId">{{item.UserName}}</a>
                        </td>
                        <td align="center">
                            {{item.ActionDescription}}
                        </td>
                        <td align="center">
                            {{item.UserId>0?"成功":"失败"}}
                        </td>
                        <td align="center">
                            <a ms-href="'http://www.baidu.com/s?wd='+item.IP" target="_blank">{{item.IP}}</a>
                        </td>
                        <td style="width:60%; white-space:normal;"  align="left">
                            {{item.ClientInfo}}
                        </td>
                        <td align="center">
                            {{item.LogDate}}
                        </td>
                     </tr>  
                    <tr style="background-color: rgb(246, 246, 246); ">
                        <td colspan="6" ms-widget='paging' data-gridid="grid1"> 
                        </td> 
                    </tr>
                </tbody></table>
            </td>
        </tr>
    </tbody></table> 
    </td>
  </tr>
</tbody></table>