⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sm_main.jsp

📁 计算机技术的快速发展
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@page contentType="text/html; charset=gb2312" language="java" errorPage="error.jsp"%>
<%@page import="com.suninformation.*,com.suninformation.user.*,com.suninformation.tools.*,com.suninformation.schoolmate.*"%>
<%request.setCharacterEncoding("gb2312");%>
<%
  String UserName = (String) session.getAttribute("userName");
  boolean errorLogin = false;
  if (UserName == "" || UserName == null) {
    errorLogin = true;
  }
  SMSchool sms = null;
  SMClass[] smc = null;
  SMMember smm = null;
%>
<html>
<head>
<title>校友录_首页</title>
<link href="Includes/im.css" rel="stylesheet" type="text/css">
<link href="Includes/user.css" rel="stylesheet" type="text/css">
<script language="javascript" src="Includes/functionForUser.js"></script>
<script language="javascript" type="text/javascript">
	function InputValidate(obj)
	{
		if(obj.value.length==0)
		{
			alert("请输入同学姓名!");
			return false;
		}
		return true;
	}
</script>
</head>
<body>
<table width="610" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
    <%if (errorLogin) {    %>
      <br>
      <TABLE width="572" border=0 align="center" cellPadding=0 cellSpacing=0>
        <TR>
          <TD class=FONT02 align=right width=135 bgColor=#ededed height=26>轻松加入三部曲:</TD>
          <TD bgColor=#ededed>
            <A href="school_search.jsp">
              <IMG height=20 src="Images/search2.gif" width=331 border=0>
            </A>
          </TD>
        </TR>
      </TABLE>
    <%} else {    %>
      <br><%
                    try {
                      smc = SMManager.getSMProxy().getMyClass(UserName);
                    }
                    catch (UnacceptableException une) {}
                  %>
      <TABLE width=572 border=0 align="center" cellPadding=0 cellSpacing=0>
        <TBODY>
          <TR>
            <TD bgColor=#7eb704 colSpan=2 height=2>            </TD>
          </TR>
          <TR>
            <TD width=48 bgColor=#b0d810>&nbsp;&nbsp;&nbsp;
              <IMG height=24 src="Images/pic_08.gif" width=20 align=absMiddle>
            </TD>
            <TD class=FONT03 width=548 bgColor=#b0d810>我的校友录班级列表</TD>
          </TR>
          <TR vAlign=top bgColor=#fffff7>
            <TD align=middle colSpan=2>
              <TABLE style="MARGIN-TOP: 8px" cellSpacing=0 cellPadding=0 width=525 border=0>
                <TBODY>
                  <TR bgColor=#eeeeee>
                    <TD align=middle width=40 height=20>&nbsp;&nbsp;<IMG height=11 src="Images/pic_09.gif" width=11>
                    </TD>
                    <TD align=left>
                      <FONT color=#dc5503>我的班级</FONT>
                    </TD>
                    <TD width=410>                    </TD>
                  </TR>
                  <TR>
                    <TD rowSpan=4>                    </TD>
                    <TD style="PADDING-TOP: 5px" vAlign=top>
                      <IMG height=7 src="Images/pic_10.gif" width=4>
                      <FONT color=#000000>我的大学:</FONT>
                    </TD>
                    <TD style="LINE-HEIGHT: 160%; PADDING-TOP: 3px">
                    <%
                      if (smc != null) {
                        for (int i = 0; i < smc.length; i++) {
                          sms = new SMSchool(smc[i].getSchoolId());
                          smm = new SMMember(UserName,smc[i].getClassId());
                          if (sms.getLvId() == 1 && smm.getIsPassed()==1 && smm.getMemberType()<=2) {
                            out.println("·<a href=class_search.jsp?schoolid=" + smc[i].getSchoolId() + ">" + sms.getSchoolName() + "</a> - <a href=class_index.jsp?classid=" + smc[i].getClassId() + ">" + smc[i].getClassName() + "</a><br>");
                          }
                        }
                      }
                    %>
                    </TD>
                  </TR>
                  <TR>
                    <TD style="PADDING-TOP: 5px" vAlign=top>
                      <IMG height=7 src="Images/pic_10.gif" width=4>
                      <FONT color=#000000>我的中学:</FONT>
                    </TD>
                    <TD style="LINE-HEIGHT: 160%; PADDING-TOP: 3px">
                    <%
                      if (smc != null) {
                        for (int i = 0; i < smc.length; i++) {
                          sms = new SMSchool(smc[i].getSchoolId());
                          smm = new SMMember(UserName,smc[i].getClassId());
                          if ((sms.getLvId() == 2 || sms.getLvId() == 3) && smm.getIsPassed()==1 && smm.getMemberType()<=2) {
                            out.println("·<a href=class_search.jsp?schoolid=" + smc[i].getSchoolId() + ">" + sms.getSchoolName() + "</a> - <a href=class_index.jsp?classid=" + smc[i].getClassId() + ">" + smc[i].getClassName() + "</a><br>");
                          }
                        }
                      }
                    %>
                    </TD>
                  </TR>
                  <TR>
                    <TD style="PADDING-TOP: 5px" vAlign=top>
                      <IMG height=7 src="Images/pic_10.gif" width=4>
                      <FONT color=#000000>我的小学:</FONT>
                    </TD>
                    <TD style="LINE-HEIGHT: 160%; PADDING-TOP: 3px">
                    <%
                      if (smc != null) {
                        for (int i = 0; i < smc.length; i++) {
                          sms = new SMSchool(smc[i].getSchoolId());
                          smm = new SMMember(UserName,smc[i].getClassId());
                          if (sms.getLvId() == 4 && smm.getIsPassed()==1 && smm.getMemberType()<=2) {
                            out.println("·<a href=class_search.jsp?schoolid=" + smc[i].getSchoolId() + ">" + sms.getSchoolName() + "</a> - <a href=class_index.jsp?classid=" + smc[i].getClassId() + ">" + smc[i].getClassName() + "</a><br>");
                          }
                        }
                      }
                    %>
                    </TD>
                  </TR>
                  <TR>
                    <TD style="PADDING-TOP: 5px" vAlign=top>
                      <IMG height=7 src="Images/pic_10.gif" width=4>
                      <FONT color=#000000>其  他:</FONT>
                    </TD>
                    <TD style="LINE-HEIGHT: 160%; PADDING-TOP: 3px">
                    <%
                      if (smc != null) {
                        for (int i = 0; i < smc.length; i++) {
                          sms = new SMSchool(smc[i].getSchoolId());
                          smm = new SMMember(UserName,smc[i].getClassId());
                          if (sms.getLvId() == 5 && smm.getIsPassed()==1 && smm.getMemberType()<=2) {
                            out.println("·<a href=class_search.jsp?schoolid=" + smc[i].getSchoolId() + ">" + sms.getSchoolName() + "</a> - <a href=class_index.jsp?classid=" + smc[i].getClassId() + ">" + smc[i].getClassName() + "</a><br>");
                          }
                        }
                      }
                    %>
                    </TD>
                  </TR>
                </TBODY>
              </TABLE>
              <TABLE cellSpacing=0 cellPadding=0 width=525 border=0>
                <TBODY>
                  <TR>
                    <TD bgColor=#eeeeee colSpan=2 height=20>&nbsp;&nbsp;&nbsp;<IMG height=11 src="Images/pic_09.gif" width=11>&nbsp;&nbsp;<FONT color=#dc5503>我的客人班级</FONT>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="110"></td>
                      <td>
                      <%
                      if (smc != null) {
                        for (int i = 0; i < smc.length; i++) {
                          sms = new SMSchool(smc[i].getSchoolId());
                          smm = new SMMember(UserName,smc[i].getClassId());
                          if (smm.getIsPassed()==1 && smm.getMemberType()==3) {
                            out.println("·<a href=class_search.jsp?schoolid=" + smc[i].getSchoolId() + ">" + sms.getSchoolName() + "</a> - <a href=class_index.jsp?classid=" + smc[i].getClassId() + ">" + smc[i].getClassName()  + "</a><br>");
                          }
                        }
                      }
                      %>
                      </td>
                      <td>&nbsp;</td>
                    </tr>
                  </table>
                    </TD>
                  </TR>
                </TBODY>
              </TABLE>
              <TABLE style="MARGIN-TOP: 5px; MARGIN-BOTTOM: 5px" cellSpacing=0 cellPadding=0 width=525 border=0>
                <TBODY>
                  <TR>
                    <TD bgColor=#eeeeee colSpan=2 height=20>&nbsp;&nbsp;&nbsp;<IMG height=11 src="Images/pic_09.gif" width=11>&nbsp;&nbsp;<FONT color=#dc5503>待批准加入班级</FONT>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="110"></td>
                      <td>
                      <%
                      if (smc != null) {
                        for (int i = 0; i < smc.length; i++) {
                          sms = new SMSchool(smc[i].getSchoolId());
                          smm = new SMMember(UserName,smc[i].getClassId());
                          if (smm.getIsPassed()==0) {
                            out.println("·<a href=class_search.jsp?schoolid=" + smc[i].getSchoolId() + ">" + sms.getSchoolName() + "</a> - <a href=class_index.jsp?classid=" + smc[i].getClassId() + ">" + smc[i].getClassName() + "</a><br>");
                          }
                        }
                      }
                      %>
                      </td>
                      <td>&nbsp;</td>
                    </tr>
                  </table>
                    </TD>
                  </TR>
                </TBODY>
              </TABLE>
            </TD>
          </TR>
        </TBODY>
      </TABLE>
      <br>
      <table width="572" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <TD bgcolor="#efb841" height=26 colSpan=2 align="center">
            <FONT color=#a01b03>提示:</FONT>
            创建新班级,必须先找到您的学校;为了使其他用户查询方便,请不要建立重复的学校或班级。
</TD>
        </tr>
      </table>
    <%}    %>
      <br>
      <table width="572" height="139" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EDEDED">

⌨️ 快捷键说明

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