Web/Views/UserInfo/userlist.cshtml

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

@model Conris.Controls.MVC.PagedList<Conris.DBA.Model.UserInfo>
@using Conris.Controls.MVC  
  <table class="tablelist">
    	<thead>
    	<tr>
        <th>序号<i class="sort"><img src="/Content/images/px.gif" /></i></th>
              <th>用户名</th>
        <th>手机号码</th>
            <th>真实姓名</th>
             <th>注册时间</th>
            <th>等级</th>
        
             <th>状态</th>   
        <th>操作</th>
        </tr>
        </thead>
        <tbody>
              @if (Model != null && Model.Count > 0)
              {
                  int i = 0;

                  foreach (var item in Model)
                  {
                      i++;    
        <tr>
        <td>@i</td>
            <td>@item.UserName</td>
        <td>@item.Phone</td>
            <td>@item.Name</td>
             <td>@item.CreateTime.ToString().Split(' ')[0].Replace('/','-')</td>
            @if (item.UserType=="0")
            {
                 <td>用户</td>
                
            }
           
            else if (item.UserType == "2")
            {
            <td>管理员</td>
             
            }
            else
            {
              <td></td>
               
            }
           @if (item.IsDisable == "1")
           {
            <td style="color:green;">启用中</td>
                            <td><a href="#" state="0" userid='@item.ID' onclick="EditUser(this)">禁用</a>  <a href="#" class="click"   onclick="Init('@item.ID')">重置密码 </a> 

                              
                            </td>

           }
           else
           {
            <td style="color:red;">禁用中</td>
                        <td><a href="#" state="1"  userid='@item.ID' onclick="EditUser(this)">启用 </a>  <a href="#"  class="click" onclick="Init('@item.ID')">重置密码 </a>

后面还有 18 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。