public void CreatePage() { int id = RequestTool.RequestInt("id", 0); string languageid = RequestTool.RequestString("Language"); Lebi_Theme_Page model = B_Lebi_Theme_Page.GetModel(id); string Path = ""; if (model == null) { Response.Write("{\"msg\":\"" + Tag("参数错误") + "\"}"); return; } Path = model.StaticPath; string urlpath = "http://" + HttpContext.Current.Request.Url.Authority + WebPath; //string port= List <Lebi_Language> langs; if (languageid == "") { langs = Language.AllLanguages(); } else { langs = B_Lebi_Language.GetList("id in (lbsql{" + languageid + "})", ""); } foreach (Lebi_Language lang in langs) { Lebi_Theme theme = B_Lebi_Theme.GetModel(lang.Theme_id); if (theme == null) { Response.Write("{\"msg\":\"" + Tag("语言与模板关联错误") + "\"}"); return; } } switch (model.Code) { case "P_About": P_About(langs, model, urlpath); break; case "P_ArticleDetails": P_ArticleDetails(langs, model, urlpath); break; case "P_Help": P_Help(langs, model, urlpath); break; case "P_NewsDetails": P_NewsDetails(langs, model, urlpath); break; case "P_Product": P_Product(langs, model, urlpath); break; default: OnePage(langs, model, urlpath); break; } }