📄 top.aspx.cs
字号:
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;
using System.Xml;
namespace 图书管理.后台
{
/// <summary>
/// TOP 的摘要说明。
/// </summary>
public class TOP : System.Web.UI.Page
{
admin.login longin= new 图书管理.admin.login();
XmlDocument Xml=new XmlDocument();
string path;
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
Response.Write("<table id=mytab cellSpacing=0 cellPadding=0 width=100% border=0><tr><td background=../image/1.gif bgColor=#4996d8 height=94><TABLE id=mytab style=Z-INDEX: 101; LEFT: 0px; WIDTH: 840px; POSITION: absolute; TOP: 112px; HEIGHT: 27px cellSpacing=1 cellPadding=1 width=840 border=1></TABLE>");
Response.Write("<table cellSpacing=0 cellPadding=0 width=770 align=center border=0><tr><td style=HEIGHT: 91px height=91><OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 height=94 width=770 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 VIEWASTEXT><PARAM NAME=_cx VALUE=20373> <PARAM NAME=_cy VALUE=2487><PARAM NAME=FlashVars VALUE= ><PARAM NAME=Movie VALUE=../image/tsgl.swf> <PARAM NAME=Src VALUE=../image/tsgl.swf> <PARAM NAME=WMode VALUE=Window><PARAM NAME=Play VALUE=-1><PARAM NAME=Loop VALUE=-1><PARAM NAME=Quality VALUE=High><PARAM NAME=SAlign VALUE=><PARAM NAME=Menu VALUE=-1><PARAM NAME=Base VALUE=><PARAM NAME=AllowScriptAccess VALUE=always><PARAM NAME=Scale VALUE=ShowAll><PARAM NAME=DeviceFont VALUE=0><PARAM NAME=EmbedMovie VALUE=0><PARAM NAME=BGColor VALUE=><PARAM NAME=SWRemote VALUE=><PARAM NAME=MovieData VALUE=><PARAM NAME=SeamlessTabbing VALUE=1><embed src=../image/tsgl.swf quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=770 height=94> </embed></OBJECT></td></tr></table>");
path=Server.MapPath(".")+"\\ML.xml";
Xml.Load(path);
XmlElement element=Xml.DocumentElement;
Response.Write("<table id=mytab1 width=100% height=2 border=0 align=center><tr>");
foreach(XmlNode node in element.SelectNodes("YJT"))
{
string qx=longin.yjt();
int i=int.Parse(node.ChildNodes[0].InnerText);
if (int.Parse(qx.Substring(i,1))!=0)
{
Response.Write("<td align=center><img src='"+node.ChildNodes[3].InnerText+"'><font size=2><a href='"+node.ChildNodes[2].InnerText+"' border=0 target=qiaozhui>"+node.ChildNodes[1].InnerText+"</a></font></td>");
}
else
{
Response.Write("<td align=center><img src='"+node.ChildNodes[3].InnerText+"'><font size=2><a href='Error.aspx' border=0 target=qiaozhui1>"+node.ChildNodes[1].InnerText+"</a></font></td>");
}
}
Response.Write("</TR></table>");
}
#region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -