listcpuser.jsp

来自「移动彩信管理平台」· JSP 代码 · 共 175 行

JSP
175
字号
<%@ include file="../common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="${webctx}/css/style.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
 a{
     font-size:12px;
     color:696969;
     text-decoration:none;
    } 
    a:hover{    
     color:#FF0000;
     text-decoration:underline
    }
</style>
<script type="text/javascript">
   function checkMsg(){
       if(document.getElementById("sel").value==""){
           alert("必须选择单位属性");
           return false;
       }
       document.frm.submit();  
   }   
   function getForm_Value(){
         if(document.frm.userType.value==""){
             document.frm.userType.value="${userType}"
         }
         if(document.frm.isUse.value==""){
             document.frm.isUse.value="${isUse}"
         }
         if(document.frm.userName.value==""){
             document.frm.userName.value="${userName}"
         }
         if(document.frm.company.value==""){
             document.frm.company.value="${company}"
         }               
   }
  </script>
</head>
<body onLoad="getForm_Value();">
<table width="98%" border="0" cellspacing="0" cellpadding="0"> 
  <tr>
    <td><table border="0" align="left" cellpadding="0" cellspacing="0">
      <tr>
        <td width="8" align="left"><img src="images/pny_01.jpg" width="8" height="25" /></td>
        <td width="80" align="center" background="images/pny_bg.gif" class="psize3">查询用户</td>
        <td width="8" align="right"><img src="images/pny_02.jpg" width="8" height="25" /></td>
      </tr>
    </table></td>
  </tr>
</table>

<form  name="frm" action="findAllUser.do" method="post">
   <table width="98%" border="0" cellspacing="1" cellpadding="4" style="border:1px solid #5C92B7;"> 
  <tr>    
    <td height="20" align="center" bgcolor="#FFFFFF"><table width="99%" border="0" cellspacing="1" cellpadding="4" style="border:1px solid #5C92B7;">
      <tr>
        <td height="20" align="left" bgcolor="#CEE8EA"><font color='red'>*</font> 单位属性:<span class="psize4"> <span class="ysize1">
 <s:select id="sel"  theme="simple" name="userType" list="listType" listKey="code" listValue="name" headerKey="" headerValue="--请选择用户类型--"  cssStyle="WIDTH: 130px"></s:select>           
           <!--<select id="sel"  name="userType" style="WIDTH: 105px">
                        <option value="" selected="selected">--请选择类别--</option>
                        <option value="1">运营商管理员</option> 
                        <option value="2">平台管理员</option> 
                        <option value="3">客服管理员</option> 
                        <option value="4">内容商管理</option>     
                    </select>-->
        </span></span></td>        
        <td align="left" bgcolor="#CEE8EA">&nbsp;&nbsp;单位名称:<span class="psize4">
          <input name="company" type="text" size="20" value=""/>
        </span></td>
      </tr>
      <tr>
        <td height="20" align="left" bgcolor="#F3F3F3">&nbsp;&nbsp;用户状态:<span class="psize4"> <span class="ysize1">       
        
            <select id="isUse"  name="isUse" style="WIDTH: 105px">
                        <option value="3">全部</option>
                        <option value="1">可用</option> 
                        <option value="0">不可用</option> 
                        <option value="2">等待审批</option>     
            </select>
        </span> &nbsp;&nbsp;</span></td>
        <td height="20" align="left" bgcolor="#F3F3F3">&nbsp;&nbsp;信息修改:<span class="psize4">
          
         <input name="auditState" type="radio" value="0" <s:if test="${auditState}==0"> checked</s:if> />
          </span>是<span class="psize4">
         <input name="auditState" type="radio" value="1" <s:if test="${auditState}==1"> checked</s:if>/>
        </span> 否</td>
      </tr>
      <tr>
        <td height="20" colspan="2" align="left" bgcolor="#CEE8EA">&nbsp;&nbsp;用户姓名:<span class="psize4">
          <input name="userName" type="text" size="20" value=""/>
        </span></td>
      </tr>
      <tr>
        <td height="20" colspan="2" align="center">
        <input type="button" class="pal" value="查询" onclick="checkMsg();"/>
        <input type="reset" class="pal" value="重置"/>
        </td>
      </tr>       
    </table>
</form>            
      
 <table width="99%" border="0" cellspacing="1" cellpadding="4" style="border:1px solid #5C92B7;">
        <tr>
          <td align="center" bgcolor="#A6D5D9" class="psize4">单位名称</td>          
          <td align="center" bgcolor="#A6D5D9" class="psize4">联系人</td>
          <td align="center" bgcolor="#A6D5D9" class="psize4">负责业务名称</td>
          <td align="center" bgcolor="#A6D5D9" class="psize4">用户状态</td>
          <td align="center" bgcolor="#A6D5D9" class="psize4">信息修改</td>
         <td align="center" bgcolor="#A6D5D9" class="psize4">操作</td>
        </tr>       
        
             
 <s:if test="${!empty cpList}"> 
   <s:iterator value="cpList" id="cp" status="status">   
          <td align="center" <s:if test="#status.even==true">bgcolor="#CEE8EA"</s:if><s:else>bgcolor="#F3F3F3"</s:else> ><s:property value="userCompany"/></td>
          <td align="center" <s:if test="#status.even==true">bgcolor="#CEE8EA"</s:if><s:else>bgcolor="#F3F3F3"</s:else> >           
          <s:property value="userName"/>   
          </td>
          <td align="center" <s:if test="#status.even==true">bgcolor="#CEE8EA"</s:if><s:else>bgcolor="#F3F3F3"</s:else> >
            <s:if test="${userGroup==4}">
               有栏目
            </s:if>
             <s:if test="${userGroup!=4}">
               无栏目
            </s:if>             
          </td>
          <td align="center" <s:if test="#status.even==true">bgcolor="#CEE8EA"</s:if><s:else>bgcolor="#F3F3F3"</s:else> >
              <s:if test="${cp.isUse}==1">
                     <s:if test="${cp.auditState}==1">
                            可用
                    </s:if>
              </s:if>                
              <s:if test="${cp.isUse}==1">
                     <s:if test="${cp.auditState}==2">
                          审批未过(可用)  
                    </s:if>
                     <s:if test="${cp.auditState}==0">
                           等待审批(可用) 
                    </s:if>
              </s:if>   
              <s:if test="${cp.isUse}==0">
                           不可用
              </s:if>
          </td>
          <td align="center" <s:if test="#status.even==true">bgcolor="#CEE8EA"</s:if><s:else>bgcolor="#F3F3F3"</s:else> >  
                <s:if test="${cp.auditState}==0">
                   </s:if>  
                   <s:if test="${cp.auditState}==2">
                   </s:if>   
                   <s:if test="${cp.auditState}==1">
                   </s:if>              
          </td>
          <td align="center" <s:if test="#status.even==true">bgcolor="#CEE8EA"</s:if><s:else>bgcolor="#F3F3F3"</s:else> >
          【<a href="${webctx}/findCp.do?userId=<s:property value="userId"/>&&groupId=<s:property value="userGroup"/>" class="ap2">查询</a>】
          </td>
        </tr>
   </s:iterator>   
   <tr align="right" > <td colspan="6" align="right">
  			<s:property value="href" escape="false"/>
  </td>
  </tr>
</s:if>

</table>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?