App_Code/commPage.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
/// <summary>
///commPage 的摘要说明
/// </summary>
public class commPage
{
public commPage()
{
//
//TODO: 在此处添加构造函数逻辑
//
}
public static string commPageInfo()
{
string typeHtml="";
string commPre;
string commNex;
string sqlCType = "select * from CType";
DataTable dtType = DAL.SqlDataAdapterDt(sqlCType);
foreach (DataRow dr in dtType.Rows)
{
typeHtml += "<li><a href=\"allCaiDan.aspx?CType=" + dr["ID"] + "\">" + dr["CType"] + "</a></li>";
}
commPre = "<div id=\"dish_class\"><div id=\"dish_top\"><ul><li class=\"dish_num\"><a href=\"default.aspx\"/>返回</a></li><li><a href=\"list.aspx\"> <img src=\"images/call.gif\" /></a></li> </ul> </div> <div id=\"dish_2\"> <ul>";
commNex = "</ul> </div> <div id=\"dish_3\"><form id=\"fSelect\" action=\"allCaiDan.aspx\" method=\"get\"> <table width=\"166px\"> <tr><td> <input type=\"text\" id=\"dish_name\" name=\"select_name\" class=\"select_value\" /> </td> </tr><tr> <td> <a href=\"#\" > <img src=\"images/select.gif\" id=\"selectInfo\" onclick=\"goto()\"/></a> </td> </tr> <tr> <td><a href=\"allCaiDan.aspx?dish_name=\"> <img src=\"images/look.gif\" /></a> </td></tr> </table></form> </div></div>";
return commPre + typeHtml + commNex;
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
