oicq/Redirct.aspx.cs

(开头部分) 2KB

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

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace OI
{
	/// <summary>
	/// Redirct 的摘要说明。
	/// </summary>
	public class Redirct : OI.PageBase
	{
		protected System.Web.UI.WebControls.Label lContent;		
		protected System.Web.UI.WebControls.HyperLink[] hls=new HyperLink[20];

		private void Page_Load(object sender, System.EventArgs e)
		{
			if(this.IsPostBack)
				return;
			string ModuleID=Request.QueryString["ModuleID"];
			this.Redirect(ModuleID);
		}
		private void Redirect(string ModuleID)
		{
			menu omenu=new menu();
			omenu.UserID=((OI.OIIdentity)this.User.Identity).Name;
			if(omenu.HaveChild(ModuleID))
			{
				//显示子节点列表
				DataSet ds=omenu.GetSecondNodeTab(ModuleID);
				DataTable dt=ds.Tables[0];	
				int count=3;//
				int r;
				string ico;
				for(int i=1;i<=dt.Rows.Count;i++)
				{				
					r=i % count;					
					if(r== 1)
						this.lContent.Text+="<tr align=center height=100>\r\n";
					ico="<a href=\"Redirct.aspx?ModuleID="+dt.Rows[i-1]["ModuleID"].ToString()+"\"><img src=\"images/modules/"+dt.Rows[i-1]["ImageUrl"]+"\" border=\"0\"><br>"+dt.Rows[i-1]["ModuleName"].ToString()+"</a>";
					this.lContent.Text+="<td>"+ico+"</td>";
						
					if(i==dt.Rows.Count)
					{
						switch(r)
						{
							case 1:
								this.lContent.Text+="<td>&nbsp;</td><td>&nbsp;</td></tr>";//count-1
								break;
							case 2:
								this.lContent.Text+="<td>&nbsp;</td></tr>";//count-2
								break;
						}
					}
后面还有 38 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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