using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CB.Common; using CB.Data; using CB.Entity; using CB.Framework; namespace CB.Wap.kjh.rules { public partial class article : WebPage { /// /// 彩种菜单列表 /// protected string MenuHtml = ""; /// /// 规则内容 /// protected string ContentHtml = ""; /// /// 玩法规则/和中奖规则切换 /// protected string SwitchHtml = ""; /// /// 页面标题切换 /// protected string PageTitle = ""; protected string LotteryName = ""; protected void Page_Load(object sender, EventArgs e) { InitData(); } protected override void InitData() { IList lists = Caches.GetTopicClassList(211); if (lists == null || lists.Count < 1) return; foreach (var list in lists) { string style = "style='display:none'", ZjgzHtml = "", WfgzHtml = ""; string lclass = ""; if (list.Cid == GetTopicTypeId()) { style = ""; lclass = "class='brline'"; PageTitle = list.Name + "玩法规则"; } MenuHtml += "
  • " + list.Name + "
  • "; //MenuHtml += "" + list.Name + ""; var items = Caches.GetHelpList(list.Cid); if (items == null || items.Count < 1) continue; foreach (var item in items) { if (item.Title.IndexOf("玩法规则", StringComparison.Ordinal) > -1) { WfgzHtml = "
    " + item.Context + "
    "; } else if (item.Title.IndexOf("中奖规则", StringComparison.Ordinal) > -1) { ZjgzHtml = ""; } } SwitchHtml += "
    " + "
  • 玩法规则
  • " + "
  • 中奖规则
  • "; ContentHtml += "
    " + WfgzHtml + ZjgzHtml + "
    "; } //this.header1.ColumnName = LotteryName + "玩法规则"; base.InitData(); } /// /// 将彩种转换成对应的id /// /// private int GetTopicTypeId() { string lottery = WRequest.GetQueryString("lottery"); int topicTypeId = 213; switch (lottery) { case "ssq": topicTypeId = 214; LotteryName = "双色球"; break; case "p5": topicTypeId = 215; LotteryName = "排列五"; break; case "p3": topicTypeId = 223; LotteryName = "排列三"; break; case "qxc": topicTypeId = 216; LotteryName = "七星彩"; break; case "ssc": topicTypeId = 217; LotteryName = "时时彩"; break; case "qlc": topicTypeId = 218; LotteryName = "七乐彩"; break; case "qyh": topicTypeId = 219; LotteryName = "群英会"; break; case "ssl": topicTypeId = 220; LotteryName = "时时乐"; break; case "hc1": topicTypeId = 221; LotteryName = "好彩1"; break; case "dlt": topicTypeId = 224; LotteryName = "大乐透"; break; case "3d": case "sd": topicTypeId = 213; LotteryName = "福彩3D"; break; case "df6j1": topicTypeId = 230; LotteryName = "东方6+1"; break; case "hlj11x5": topicTypeId = 234; LotteryName = "黑龙江11选5"; break; case "tjklsf": topicTypeId = 235; LotteryName = "天津快乐十分"; break; case "hd15x5": topicTypeId = 236; LotteryName = "华东15选5"; break; case "zj6j1": topicTypeId = 238; LotteryName = "浙江6+1"; break; case "js11x5": topicTypeId = 239; LotteryName = "江苏11选5"; break; case "js7ws": topicTypeId = 240; LotteryName = "江苏7位数"; break; case "sxklsf": topicTypeId = 241; LotteryName = "山西快乐十分"; break; case "heb11x5": topicTypeId = 242; LotteryName = "河北11选5"; break; //case "hb22x5": topicTypeId = 243; LotteryName = "湖北22选5"; break; case "hb30x5": topicTypeId = 243; LotteryName = "湖北30选5"; break; case "gxklsf": topicTypeId = 244; LotteryName = "广西快乐十分"; break; case "gd11x5": topicTypeId = 245; LotteryName = "广东11选5"; break; case "zj11x5": topicTypeId = 246; LotteryName = "浙江11选5"; break; case "gdklsf": topicTypeId = 247; LotteryName = "广东快乐十分"; break; case "yn11x5": topicTypeId = 248; LotteryName = "云南11选5"; break; case "hn22x5": topicTypeId = 249; LotteryName = "河南22选5"; break; case "zjklc": topicTypeId = 250; LotteryName = "浙江快乐彩"; break; case "jl11x5": topicTypeId = 251; LotteryName = "吉林11选5"; break; case "jx11x5": topicTypeId = 252; LotteryName = "江西11选5"; break; case "ln11x5": topicTypeId = 253; LotteryName = "辽宁11选5"; break; case "xj35x7": topicTypeId = 254; LotteryName = "新疆35选7"; break; case "sd11x5": topicTypeId = 255; LotteryName = "山东11选5"; break; case "jsk3": topicTypeId = 256; LotteryName = "江苏快3"; break; case "lnkl12": topicTypeId = 257; LotteryName = "辽宁快乐12"; break; case "fj36x7": topicTypeId = 258; LotteryName = "福建36选7"; break; case "ny36x7": topicTypeId = 259; LotteryName = "南粤36选7"; break; case "sckl12": topicTypeId = 260; LotteryName = "四川快乐12"; break; case "hbk3": topicTypeId = 261; LotteryName = "河北快3"; break; case "fj31x7": topicTypeId = 262; LotteryName = "福建31选7"; break; case "ahk3": topicTypeId = 263; LotteryName = "安徽快3"; break; case "jlk3": topicTypeId = 264; LotteryName = "吉林快3"; break; case "nmgk3": topicTypeId = 265; LotteryName = "内蒙古快3"; break; case "sdqyh": topicTypeId = 219; LotteryName = "山东群英会"; break; } return topicTypeId; } /// /// id转换对应的页面地址配置 /// /// private string GetUrlPrifix(int topicTypeId) { string prifix = ""; switch (topicTypeId) { case 214: prifix = "ssq"; break; case 215: prifix = "p5"; break; case 223: prifix = "p3"; break; case 216: prifix = "qxc"; break; case 217: prifix = "ssc"; break; case 218: prifix = "qlc"; break; case 219: prifix = "sdqyh"; break;// case 220: prifix = "ssl"; break; case 221: prifix = "hc1"; break; case 224: prifix = "dlt"; break; case 213: prifix = "3d"; break; case 230: prifix = "df6j1"; break; case 234: prifix = "hlj11x5"; break; case 235: prifix = "tjklsf"; break; case 236: prifix = "hd15x5"; break; case 238: prifix = "zj6j1"; break; case 239: prifix = "js11x5"; break; case 240: prifix = "js7ws"; break; case 241: prifix = "sxklsf"; break; case 242: prifix = "heb11x5"; break; case 243: prifix = "hb30x5"; break; case 244: prifix = "gxklsf"; break; case 245: prifix = "gd11x5"; break; case 246: prifix = "zj11x5"; break; case 247: prifix = "gdklsf"; break; case 248: prifix = "yn11x5"; break; case 249: prifix = "hn22x5"; break; case 250: prifix = "zjklc"; break; case 251: prifix = "jl11x5"; break; case 252: prifix = "jx11x5"; break; case 253: prifix = "ln11x5"; break; case 254: prifix = "xj35x7"; break; case 255: prifix = "sd11x5"; break; case 256: prifix = "jsk3"; break; case 257: prifix = "lnkl12"; break; case 258: prifix = "fj36x7"; break; case 259: prifix = "ny36x7"; break; case 260: prifix = "sckl12"; break; case 261: prifix = "hbk3"; break; case 262: prifix = "fj31x7"; break; case 263: prifix = "ahk3"; break; case 264: prifix = "jlk3"; break; case 265: prifix = "nmgk3"; break; // case 219: prifix = "sdqyh"; break; } return prifix; } } }