public void BindMenu(BP.Sys.XML.XmlMenus ens) { this.AddTable("width='100%'"); this.AddTR(); foreach (BP.Sys.XML.XmlMenu en in ens) { this.AddTD("<a href='" + en.Url + "'>" + en.Name + "</a>"); } this.AddTREnd(); this.AddTableEnd(); }
/// <summary> /// 显示菜单 Win7 /// </summary> /// <param name="ens"></param> /// <param name="selectVal"></param> public void MenuWin7(BP.Sys.XML.XmlMenus ens, string selectVal) { this.Add("\n<Table cellpadding='0' cellspacing='0' >"); this.Add("\n<TR>"); this.Add("\n<TD width='2%' ></TD>"); foreach (BP.Sys.XML.XmlMenu en in ens) { if (selectVal == en.No) { this.Add("\n<TD class=MenuWin7S><a href='" + en.Url + "' target=" + en.Target + ">" + en.Name + "</a></TD>"); } else { this.Add("\n<TD class=MenuWin7><a href='" + en.Url + "' target=" + en.Target + ">" + en.Name + "</a></TD>"); } } this.Add("\n<TD ></TD>"); this.Add("\n</TR>"); this.AddTableEnd(); }
/// <summary> /// 显示菜单 Yellow /// </summary> /// <param name="ens"></param> /// <param name="selectVal"></param> public void MenuYellow(BP.Sys.XML.XmlMenus ens, string selectVal) { this.Add("\n<Table style='border-bottom:1px #ffcc00 solid;' cellpadding='0' cellspacing='0' >"); this.Add("\n<TR>"); this.Add("\n<TD width='2%' ></TD>"); foreach (BP.Sys.XML.XmlMenu en in ens) { if (selectVal == en.No) { this.Add("\n<TD class=MenuS><a href='" + en.Url + "' target=" + en.Target + ">" + en.Name + "</a></TD>"); } else { this.Add("\n<TD class=MenuYellow><a href='" + en.Url + "' target=" + en.Target + ">" + en.Name + "</a></TD>"); } } this.Add("\n<TD ></TD>"); this.Add("\n</TR>"); this.AddTableEnd(); }