阅兵假期回郑州了,没有更新,抱歉了。
鉴于代码还没有完善,提供邮箱的朋友,我已经把项目发过去了。
等项目整合完毕之后,共享源码。参考网站:革西网络
接着说说数据的绑定:
1 public ActionResult Index() 2 { 3 ViewBag.userinfo = ""; 4 var user = Session["user"] as UserInfo; 5 ViewBag.userinfo = user; 6 //Banner 7 IndexModel.Bannerlist = _bll.GetModelTopList<BannerInfo>("6", "Ichecksign=1 and BannerType=1", "BannerInfo", "Id desc"); 8 //新闻推荐 9 IndexModel.NewsTui1 = _bll.GetModelTopList<BriefNewsInfo>("6", " IsDelete=1 and IsHotSpot=1 and CheckState=1", "NewsInfo", "Time desc");10 //新闻11 IndexModel.NewsInfo1 = WebInfoManager.GetNewsInfo(2);12 IndexModel.NewsInfo2 = WebInfoManager.GetNewsInfo(3);13 IndexModel.NewsInfo3 = WebInfoManager.GetNewsInfo(4);14 IndexModel.NewsInfo4 = WebInfoManager.GetNewsInfo(12);15 16 IndexModel.NewsTui2 = _bll.GetModelTopList<BriefNewsInfo>("6", " IsDelete=1 and IsHotSpot=1", "TechInfo", "Time desc");17 IndexModel.NewsTui3 = _bll.GetModelTopList<BriefNewsInfo>("6", " IsDelete=1 and IsHotSpot=1", "FinanceInfo", "Time desc");18 IndexModel.NewsTui4 = _bll.GetModelTopList<BriefNewsInfo>("6", " IsDelete=1 and IsHotSpot=1", "FashionInfo", "Time desc");19 IndexModel.NewsTui5 = _bll.GetModelTopList<BriefNewsInfo>("6", " IsDelete=1 and IsHotSpot=1", "EntertainmentInfo", "Time desc");20 21 //科技22 IndexModel.TechInfo = _bll.GetModelTopList<BriefNewsInfo>("3", "IsDelete=1 and IsHotSpot=1 and Id not in (select top(6) Id from TechInfo where IsDelete=1 and IsHotSpot=1 order by Time desc) ", "TechInfo", "Id desc");23 IndexModel.TechInfo1 = _bll.GetModelTopList<BriefNewsInfo>("12", "IsDelete=1 and IsHotSpot=2", "TechInfo", "Id desc");24 25 //财经26 IndexModel.FinanceInfo = _bll.GetModelTopList<BriefNewsInfo>("3", "IsDelete=1 and IsHotSpot=1 and Id not in (select top(6) Id from FinanceInfo where IsDelete=1 and IsHotSpot=1 order by Time desc)", "FinanceInfo", "Id desc"); 27 IndexModel.FinanceInfo1 = _bll.GetModelTopList<BriefNewsInfo>("12", "IsDelete=1 and IsHotSpot=2", "FinanceInfo", "Id desc"); ;28 29 //教育30 IndexModel.EducationInfo = _bll.GetModelTopList<BriefNewsInfo>("3", "IsDelete=1 and IsHotSpot=1", "EducationInfo", "Id desc"); ;31 IndexModel.EducationInfo1 = _bll.GetModelTopList<BriefNewsInfo>("12", "IsDelete=1 and IsHotSpot=2", "EducationInfo", "Id desc");32 33 //历史34 IndexModel.HistoryInfo = _bll.GetModelTopList<BriefNewsInfo>("3", "IsDelete=1 and IsHotSpot=1", "HistoryInfo", "Id desc");35 IndexModel.HistoryInfo1 = _bll.GetModelTopList<BriefNewsInfo>("12", "IsDelete=1 and IsHotSpot=2", "HistoryInfo", "Id desc");36 37 //革西传媒38 IndexModel.GexiInfoList = _bll.GetModelTopList<BriefNewsInfo>("12", "IsDelete=1", "GexiInfo", "Id desc");39 40 //自媒体41 IndexModel.GexiInfo = _bll.GetModelTopList<BriefNewsInfo>("6", "IsDelete=1 and IsHotSpot=1", "GexiInfo", "Id desc");42 43 //时尚 娱乐 故事44 IndexModel.EntertainmentInfo = _bll.GetModelTopList<BriefNewsInfo>("8", "IsDelete=1 and IsHotSpot=2", "EntertainmentInfo", "Id desc");45 IndexModel.FashionInfo = _bll.GetModelTopList<BriefNewsInfo>("8", "IsDelete=1 and IsHotSpot=2", "FashionInfo", "Id desc");46 IndexModel.SoulInfo = _bll.GetModelTopList<BriefNewsInfo>("8", "IsDelete=1 and IsHotSpot=1", "SoulInfo", "Id desc");47 //汽车 房产48 IndexModel.CarInfo = _bll.GetModelTopList<BriefNewsInfo>("2", "IsDelete=1 and IsHotSpot=1", "CarInfo", "Id desc");49 IndexModel.CarInfo1 = _bll.GetModelTopList<BriefNewsInfo>("8", "IsDelete=1 and IsHotSpot=2", "CarInfo", "Id desc");50 IndexModel.HouseInfo = _bll.GetModelTopList<BriefNewsInfo>("2", "IsDelete=1 and IsHotSpot=1", "HouseInfo", "Id desc");51 IndexModel.HouseInfo1 = _bll.GetModelTopList<BriefNewsInfo>("8", "IsDelete=1 and IsHotSpot=2", "HouseInfo", "Id desc");52 53 //友链 54 List<CooperationInfo> cooperationInfo2 = _bll.GetModelTopList<CooperationInfo>("20", "TypeId=2 and Ichecksign=1", "Cooperation", "Id");55 IndexModel.CooperationInfo2 = cooperationInfo2;56 return View();57 }
IndexModel代码:
1 public static class IndexModel 2 { 3 public static List<BannerInfo> Bannerlist { get; set; } 4 public static List<BriefNewsInfo> GexiInfo { get; set; } 5 public static List<BriefNewsInfo> GexiInfoList { get; set; } 6 public static List<BriefNewsInfo> NewsTui1 { get; set; } 7 public static List<BriefNewsInfo> NewsTui2 { get; set; } 8 public static List<BriefNewsInfo> NewsTui3 { get; set; } 9 public static List<BriefNewsInfo> NewsTui4 { get; set; }10 public static List<BriefNewsInfo> NewsTui5 { get; set; }11 12 13 public static List<BriefNewsInfo> NewsInfo1 { get; set; }14 public static List<BriefNewsInfo> NewsInfo2 { get; set; }15 public static List<BriefNewsInfo> NewsInfo3 { get; set; }16 public static List<BriefNewsInfo> NewsInfo4 { get; set; }17 18 19 public static List<BriefNewsInfo> TechInfo { get; set; }20 public static List<BriefNewsInfo> TechInfo1 { get; set; }21 22 public static List<BriefNewsInfo> FinanceInfo { get; set; }23 public static List<BriefNewsInfo> FinanceInfo1 { get; set; }24 25 public static List<BriefNewsInfo> EducationInfo { get; set; }26 public static List<BriefNewsInfo> EducationInfo1 { get; set; }27 28 public static List<BriefNewsInfo> HistoryInfo { get; set; }29 public static List<BriefNewsInfo> HistoryInfo1 { get; set; }30 31 32 33 public static List<BriefNewsInfo> EntertainmentInfo { get; set; }34 public static List<BriefNewsInfo> FashionInfo { get; set; }35 public static List<BriefNewsInfo> SoulInfo { get; set; }36 public static List<BriefNewsInfo> CarInfo { get; set; }37 public static List<BriefNewsInfo> CarInfo1 { get; set; }38 public static List<BriefNewsInfo> HouseInfo { get; set; }39 public static List<BriefNewsInfo> HouseInfo1 { get; set; }40 41 public static List<CooperationInfo> CooperationInfo2 { get; set; }42 43 }
WebInfoManager公用类代码:
1 public class WebInfoManager 2 { 3 public static string GetNewsTypeByID(int oid) 4 { 5 string str = "/"; 6 if (oid != 0) 7 { 8 foreach (var item in DictionaryHelper.NewsType) 9 { 10 if (oid == item.Key) 11 { 12 str = item.Value; 13 } 14 } 15 } 16 return str; 17 } 18 19 public static string GetTechTypeByID(int oid) 20 { 21 string str = "/"; 22 if (oid != 0) 23 { 24 foreach (var item in DictionaryHelper.TechType) 25 { 26 if (oid == item.Key) 27 { 28 str = item.Value; 29 } 30 } 31 } 32 return str; 33 } 34 public static string GetFinanceTypeByID(int oid) 35 { 36 string str = "/"; 37 if (oid != 0) 38 { 39 foreach (var item in DictionaryHelper.FinanceType) 40 { 41 if (oid == item.Key) 42 { 43 str = item.Value; 44 } 45 } 46 } 47 return str; 48 } 49 public static string GetEducationTypeByID(int oid) 50 { 51 BLL webinfoM = new BLL(); 52 string str = "/"; 53 if (oid != 0) 54 { 55 foreach (var item in DictionaryHelper.EduType) 56 { 57 if (oid == item.Key) 58 { 59 str = item.Value; 60 } 61 } 62 } 63 return str; 64 } 65 public static string GetHistoryInfoTypeByID(int oid) 66 { 67 BLL webinfoM = new BLL(); 68 string str = "/"; 69 if (oid != 0) 70 { 71 foreach (var item in DictionaryHelper.HisType) 72 { 73 if (oid == item.Key) 74 { 75 str = item.Value; 76 } 77 } 78 } 79 return str; 80 } 81 public static string GettravelTypeByID(int oid) 82 { 83 BLL webinfoM = new BLL(); 84 string str = "/"; 85 if (oid != 0) 86 { 87 foreach (var item in DictionaryHelper.TravelType) 88 { 89 if (oid == item.Key) 90 { 91 str = item.Value; 92 } 93 } 94 } 95 return str; 96 } 97 public static string GetCarTypeByID(int oid) 98 { 99 BLL webinfoM = new BLL();100 string str = "/";101 if (oid != 0)102 {103 foreach (var item in DictionaryHelper.CarType)104 {105 if (oid == item.Key)106 {107 str = item.Value;108 }109 }110 }111 return str;112 }113 public static string GetHouseTypeByID(int oid)114 {115 BLL webinfoM = new BLL();116 string str = "/";117 if (oid != 0)118 {119 foreach (var item in DictionaryHelper.HouseType)120 {121 if (oid == item.Key)122 {123 str = item.Value;124 }125 }126 }127 return str;128 }129 public static string GetSoulTypeByID(int oid)130 {131 BLL webinfoM = new BLL();132 string str = "/";133 if (oid != 0)134 {135 foreach (var item in DictionaryHelper.SoulType)136 {137 if (oid == item.Key)138 {139 str = item.Value;140 }141 }142 }143 return str;144 }145 146 public static string GetFashionTypeByID(int oid)147 {148 BLL webinfoM = new BLL();149 string str = "/";150 if (oid != 0)151 {152 foreach (var item in DictionaryHelper.FashionType)153 {154 if (oid == item.Key)155 {156 str = item.Value;157 }158 }159 }160 return str;161 }162 public static string GetEntertainmentTypeByID(int oid)163 {164 BLL webinfoM = new BLL();165 string str = "/";166 if (oid != 0)167 {168 foreach (var item in DictionaryHelper.EntertainmentType)169 {170 if (oid == item.Key)171 {172 str = item.Value;173 }174 }175 }176 return str;177 }178 public static string GetNoticeTypeByID(int oid)179 {180 BLL webinfoM = new BLL();181 string str = "/";182 if (oid != 0)183 {184 foreach (var item in DictionaryHelper.NoticeType)185 {186 if (oid == item.Key)187 {188 str = item.Value;189 }190 }191 }192 return str;193 }194 public static string GetCooperationTypeByID(int oid)195 {196 BLL webinfoM = new BLL();197 string str = "/";198 if (oid != 0)199 {200 foreach (var item in DictionaryHelper.CooperationType)201 {202 if (oid == item.Key)203 {204 str = item.Value;205 }206 }207 }208 return str;209 }210 public static string GetLieByID(object OID)211 {212 if (OID != null)213 {214 if (Convert.ToInt32(OID) == 1)215 {216 return "专题";217 }218 else219 {220 return "模版";221 }222 }223 else224 {225 return "/";226 }227 }228 229 public static string GetSpecialType(object OID)230 {231 string retstring = "/";232 BLL bll = new BLL();233 List<ImgSpecial> imglist = bll.GetModelList<ImgSpecial>("IsDelete=1", "ImgSpecial");234 foreach (var item in imglist)235 {236 if (item.Id == Convert.ToInt32(OID))237 {238 retstring = item.Title;239 }240 }241 return retstring;242 }243 244 public static List<BriefNewsInfo> GetNewsInfo(int NewsTypeId)245 {246 BLL bll = new BLL();247 List<BriefNewsInfo> NewsInfo = bll.GetModelTopList<BriefNewsInfo>("6", "NewsTypeId=" + NewsTypeId + " and IsDelete=1 and IsHotSpot!=1 and CheckState=1", "NewsInfo", "Id desc");248 return NewsInfo;249 }250 251 public static string GetUserNameById(int id)252 {253 BLL bll = new BLL();254 string retinfo = "/";255 UserInfo userinfo = bll.GetModle<UserInfo>("UserInfo", "Id=" + id + "");256 if (userinfo != null)257 {258 retinfo = userinfo.UserNickname;259 }260 if (id == 0)261 {262 retinfo = "革西网友";263 }264 return retinfo;265 }266 public static string GetUserImgById(int id)267 {268 BLL bll = new BLL();269 string retinfo = "/";270 UserInfo userinfo = bll.GetModle<UserInfo>("UserInfo", "Id=" + id + "");271 if (userinfo != null)272 {273 retinfo = "/content/Files/" + userinfo.UserImg;274 }275 if (id == 0)276 {277 retinfo = "/content/img/nologin.jpg";278 }279 return retinfo;280 }281 282 public static string GetConfig(string key)283 {284 return ConfigurationManager.AppSettings[key];285 286 }287 288 public static string GexinetUrl289 {290 get291 {292 return GetConfig("GexinetUrl");293 }294 }295 public static string GetCheckStateByID(object id)296 {297 string retstring = "未知";298 if (id != null)299 {300 var idint = Convert.ToInt32(id);301 if (idint == 0)302 {303 retstring = "未审核";304 }305 if (idint == 1)306 {307 retstring = "通过";308 }309 if (idint == 2)310 {311 retstring = "拒绝";312 }313 }314 return retstring;315 }316 /// <summary>317 /// 根据邮箱 得到邮箱服务器318 /// </summary>319 public static string gotoEmail(string email)320 {321 string endstr = email.Split('@')[1];322 endstr = endstr.ToLower();323 string retstr = "/";324 if (endstr == "163.com")325 {326 retstr = "http://mail.163.com";327 }328 else if (endstr == "vip.163.com")329 {330 retstr = "http://vip.163.com";331 }332 else if (endstr == "126.com")333 {334 retstr = "http://mail.126.com";335 }336 else if (endstr == "qq.com" || endstr == "vip.qq.com" || endstr == "foxmail.com")337 {338 retstr = "http://mail.qq.com";339 }340 else if (endstr == "gmail.com")341 {342 retstr = "http://mail.google.com";343 }344 else if (endstr == "sohu.com")345 {346 retstr = "http://mail.sohu.com";347 }348 else if (endstr == "tom.com")349 {350 retstr = "http://mail.tom.com";351 }352 else if (endstr == "vip.sina.com")353 {354 retstr = "http://vip.sina.com";355 }356 else if (endstr == "sina.com.cn" || endstr == "sina.com")357 {358 retstr = "http://mail.sina.com.cn";359 }360 else if (endstr == "tom.com")361 {362 retstr = "http://mail.tom.com";363 }364 else if (endstr == "yahoo.com.cn" || endstr == "yahoo.cn")365 {366 retstr = "http://mail.cn.yahoo.com";367 }368 else if (endstr == "tom.com")369 {370 retstr = "http://mail.tom.com";371 }372 else if (endstr == "yeah.net")373 {374 retstr = "http://www.yeah.net";375 }376 else if (endstr == "21cn.com")377 {378 retstr = "http://mail.21cn.com";379 }380 else if (endstr == "hotmail.com")381 {382 retstr = "http://www.hotmail.com";383 }384 else if (endstr == "sogou.com")385 {386 retstr = "http://mail.sogou.com";387 }388 else if (endstr == "188.com")389 {390 retstr = "http://www.188.com";391 }392 else if (endstr == "139.com")393 {394 retstr = "http://mail.10086.cn";395 }396 else if (endstr == "189.cn")397 {398 retstr = "http://webmail15.189.cn/webmail";399 }400 else if (endstr == "wo.com.cn")401 {402 retstr = "http://mail.wo.com.cn/smsmail";403 }404 else if (endstr == "139.com")405 {406 retstr = "http://mail.10086.cn";407 }408 else409 {410 retstr = "";411 }412 return retstr;413 }414 415 416 }
View代码:
1 @using GexiApp.Models 2 @using GexiCommon 3 @{ 4 Layout = null; 5 //幻灯片 //光荣榜 6 List<GexiModels.BannerInfo> bannerlist = IndexModel.Bannerlist; 7 //头条 & 新闻 8 List<BriefNewsInfo> newsTui1 = IndexModel.NewsTui1; 9 List<BriefNewsInfo> NewsTui2 = IndexModel.NewsTui2; 10 List<BriefNewsInfo> NewsTui3 = IndexModel.NewsTui3; 11 List<BriefNewsInfo> NewsTui4 = IndexModel.NewsTui4; 12 List<BriefNewsInfo> NewsTui5 = IndexModel.NewsTui5; 13 //自媒体 14 List<BriefNewsInfo> GexiInfo = IndexModel.GexiInfo; 15 List<BriefNewsInfo> GexiInfo1 = IndexModel.GexiInfoList; 16 //新闻 17 List<BriefNewsInfo> NewsInfo1 = IndexModel.NewsInfo1; 18 List<BriefNewsInfo> NewsInfo2 = IndexModel.NewsInfo2; 19 List<BriefNewsInfo> NewsInfo3 = IndexModel.NewsInfo3; 20 List<BriefNewsInfo> NewsInfo4 = IndexModel.NewsInfo4; 21 //科技 22 List<BriefNewsInfo> TechInfo = IndexModel.TechInfo; 23 List<BriefNewsInfo> TechInfo1 = IndexModel.TechInfo1; 24 //财经 25 List<BriefNewsInfo> FinanceInfo = IndexModel.FinanceInfo; 26 List<BriefNewsInfo> FinanceInfo1 = IndexModel.FinanceInfo1; 27 //教育 28 List<BriefNewsInfo> EducationInfo = IndexModel.EducationInfo; 29 List<BriefNewsInfo> EducationInfo1 = IndexModel.EducationInfo1; 30 //历史 31 List<BriefNewsInfo> HistoryInfo = IndexModel.HistoryInfo; 32 List<BriefNewsInfo> HistoryInfo1 = IndexModel.HistoryInfo1; 33 //汽车 34 List<BriefNewsInfo> CarInfo = IndexModel.CarInfo; 35 List<BriefNewsInfo> CarInfo1 = IndexModel.CarInfo1; 36 //房产 37 List<BriefNewsInfo> HouseInfo = IndexModel.HouseInfo; 38 List<BriefNewsInfo> HouseInfo1 = IndexModel.HouseInfo1; 39 //娱乐 时尚 心里鸡汤 40 List<BriefNewsInfo> EntertainmentInfo = IndexModel.EntertainmentInfo; 41 List<BriefNewsInfo> FashionInfo = IndexModel.FashionInfo; 42 List<BriefNewsInfo> SoulInfo = IndexModel.SoulInfo; 43 //合作 &友链 44 List<GexiModels.CooperationInfo> CooperationInfo2 = IndexModel.CooperationInfo2; 45 } 46 <!DOCTYPE html> 47 <html> 48 <head> 49 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 50 <title>革西网络,倾心打造一个属于我们自己的门户网站_革西网络工作室</title> 51 <meta name="Keywords" content="革西,革西网,革西网络,革西新闻,革西财经,革西科技,革西历史,革西教育,革西旅游,革西时尚,革西娱乐,革西房产,革西汽车,自媒体" /> 52 <meta name="Description" content="革西网,一个集新闻、财经、科技、教育、历史、时尚、娱乐、旅游、房产、汽车为一体的资讯网站。革西网络,专业的团队为大家打造一个属于我们自己的门户网站。革西网络让我们一起成长,北京革西科技网络工作室。" /> 53 <link href="/Content/Css/CSS.css" rel="stylesheet" /> 54 <script type="text/javascript"> (function (win, doc) { var s = doc.createElement("script"), h = doc.getElementsByTagName("head")[0]; if (!win.alimamatk_show) { s.charset = "gbk"; s.async = true; s.src = "http://a.alimama.cn/tkapi.js"; h.insertBefore(s, h.firstChild); }; var o = { pid: "mm_46552798_8280367_29506529",/*推广单元ID,用于区分不同的推广渠道*/ appkey: "",/*通过TOP平台申请的appkey,设置后引导成交会关联appkey*/ unid: ""/*自定义统计字段*/ }; win.alimamatk_onload = win.alimamatk_onload || []; win.alimamatk_onload.push(o); })(window, document);</script> 55 <meta name="baidu-site-verification" content="cPAy6NN9Vd" /> 56 <script src="http://siteapp.baidu.com/static/webappservice/uaredirect.js" type="text/javascript"></script> 57 <script type="text/javascript">uaredirect("http://m.gexinet.com", "http://www.gexinet.com");</script> 58 @RenderPage("~/Views/Shared/_css.cshtml") 59 </head> 60 <body> 61 @RenderPage("~/Views/Shared/_Top.cshtml") 62 <div class="divtop02"> 63 <div class="divtop02info"> 64 <div class="divtop02in" id="divstop"> 65 <ul> 66 <li style="width: 80px;"> 67 <a target="_blank" href="@(WebInfoManager.GexinetUrl)" >革西网络 </a> 68 </li> 69 <li> 70 <a target="_blank" href="/news">新闻</a> 71 </li> 72 <li> 73 <a target="_blank" href="@(WebInfoManager.GexinetUrl)/tech">科技</a> 74 </li> 75 <li> 76 <a target="_blank" href="@(WebInfoManager.GexinetUrl)/finance">财经</a> 77 </li> 78 <li> 79 <a target="_blank" href="@(WebInfoManager.GexinetUrl)/edu">教育</a> 80 </li> 81 <li> 82 <a target="_blank" href="@(WebInfoManager.GexinetUrl)/history">历史</a> 83 </li> 84 <li> 85 <a target="_blank" href="@(WebInfoManager.GexinetUrl)/fashion">时尚</a> 86 </li> 87 <li> 88 <a target="_blank" href="@(WebInfoManager.GexinetUrl)/enter">娱乐</a> 89 </li> 90 <li> 91 <a target="_blank" href="@(WebInfoManager.GexinetUrl)/media">媒体</a> 92 </li> 93 </ul> 94 </div> 95 </div> 96 </div> 97 <div class="divinfo01"> 98 <div class="infoleft"> 99 <div class="divin01">100 <div id="zSlider">101 <div id="picshow">102 <div id="picshow_img">103 <ul>104 @{105 if (bannerlist != null)106 {107 foreach (var item in bannerlist)108 {109 if (item.UrlOrBanner != "1")110 {111 <li><a href="[email protected]" target="_blank">112 <img alt="@item.ImgDec" src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgName)" /></a></li>113 }114 else115 {116 <li><a href="[email protected]" target="_blank">117 <img alt="@item.ImgDec" src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgName)" /></a></li>118 }119 }120 }121 }122 </ul>123 </div>124 <div id="picshow_tx">125 <ul style="overflow: hidden">126 @{127 if (bannerlist != null)128 {129 foreach (var item in bannerlist)130 {131 if (item.UrlOrBanner != "1")132 {133 <li>134 <h3><a href="[email protected]" target="_blank">@item.Title</a></h3>135 <p>@StringHelp.CutStr(item.Abstract, 150)</p>136 </li>137 }138 else139 {140 <li>141 <h3><a href="[email protected]" target="_blank">@item.Title</a></h3>142 <p>@item.Abstract</p>143 </li>144 }145 }146 }147 }148 </ul>149 </div>150 </div>151 <div id="select_btn">152 <ul>153 @{154 var num = 1;155 if (bannerlist != null)156 {157 foreach (var item in bannerlist)158 {159 if (item.UrlOrBanner != "1")160 {161 <li><a href="[email protected]" target="_blank">162 <span class="select_img">@num</span>163 </a></li>164 }165 else166 {167 <li><a href="[email protected]" target="_blank">168 <span class="select_img">@num</span>169 </a></li>170 }171 num++;172 }173 }174 }175 </ul>176 </div>177 </div>178 </div>179 <div class="divin02">180 <script type="text/javascript">181 var cpro_id = "u2017709";182 (window["cproStyleApi"] = window["cproStyleApi"] || {})[cpro_id] = { at: "3", rsi0: "730", rsi1: "100", pat: "6", tn: "baiduCustNativeAD", rss1: "#FFFFFF", conBW: "0", adp: "1", ptt: "0", titFF: "%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91", titFS: "14", rss2: "#363636", titSU: "0", ptbg: "90", piw: "0", pih: "0", ptp: "0" }183 </script>184 <script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>185 </div>186 <div class="divin03">187 <div class="divkejitop">188 <div class="divkejitopleft"><span style="float: left" title="革西网">革西传媒</span></div>189 </div>190 <div class="divin03left" style="width: 350px; margin-right: 15px;">191 <ul>192 @{ 193 var varnum07 = 1;194 foreach (var item in GexiInfo1)195 {196 <li>197 <div class="agxspanleftnewsm">@varnum07.</div>198 <div class="agxspancenternews"><a href="[email protected]" target="_blank" class="news_@(varnum07)" title="@item.Title">@StringHelp.CutStr(item.Title, 40)</a></div>199 <div class="agxspanright">@item.Author</div>200 </li>201 varnum07++;202 }203 }204 </ul>205 </div>206 <div class="divin03right" style="width: 350px; margin-left: 15px;">207 @{ 208 foreach (var item in GexiInfo)209 {210 <div class="divin03bom">211 <div class="divin03bomimg">212 <a target="_blank" href="[email protected]">213 <img alt="@item.Title" src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgInfo)" /></a>214 </div>215 <div class="divin03bomjs" title="@item.Title"><a target="_blank" href="[email protected]" title="@item.Title">@StringHelp.CutStr(item.Title, 27)</a></div>216 </div>217 }218 }219 </div>220 </div>221 </div>222 <div class="inforight">223 <div class="inforight01">224 @{225 foreach (var item in newsTui1)226 {227 <span class="spanleft"><a title="@item.Title" target="_blank" href="[email protected]">@StringHelp.CutStr(item.Title, 40)</a></span>228 <span class="spanright">@item.Author</span>229 }230 }231 </div>232 <div class="inforight01">233 @foreach (var item in NewsTui2)234 {235 <span class="spanleft"><a title="@item.Title" target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">@StringHelp.CutStr(item.Title, 40)</a></span>236 <span class="spanright">@item.Author</span>237 }238 </div>239 <div class="inforight01">240 @{241 foreach (var item in NewsTui3)242 {243 <span class="spanleft"><a title="@item.Title" target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">@StringHelp.CutStr(item.Title, 40)</a></span>244 <span class="spanright">@item.Author</span>245 }246 }247 </div>248 <div class="inforight01">249 @{250 foreach (var item in NewsTui4)251 {252 <span class="spanleft"><a title="@item.Title" target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">@StringHelp.CutStr(item.Title, 40)</a></span>253 <span class="spanright">@item.Author</span>254 }255 }256 </div>257 <div class="inforight01">258 @{259 foreach (var item in NewsTui5)260 {261 <span class="spanleft"><a title="@item.Title" target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">@StringHelp.CutStr(item.Title, 40)</a></span>262 <span class="spanright">@item.Author</span>263 }264 }265 </div>266 </div>267 </div>268 <div class="divinfo02">269 <div class="infoleft02">270 <div class="divofkeji">271 <div class="divkejitop">272 <div class="divkejitopleft">最新资讯</div>273 <div class="divkejitopright">274 <span class="napinfotopleft"><a href="/news/internal" target="_blank">国内</a></span>275 <span class="napinfotopleft"><a href="/news/international" target="_blank">国际</a></span>276 <span class="napinfotopleft"><a href="/news/military" target="_blank">军事</a></span>277 <span class="napinfotopleft"><a href="/news/attention" target="_blank">关注</a></span>278 <span class="napinfotopleft"><a href="/news/commonweal" target="_blank">公益</a></span>279 </div>280 </div>281 <div class="infoleft02in02">282 <div class="left03in" style="width: 350px; margin-right: 10px;">283 <ul>284 @{ 285 var varnum = 1;286 foreach (var item in NewsInfo1)287 {288 <li>289 <div class="agxspanleftnews">•</div>290 <div class="agxspancenternews"><a href="[email protected]" target="_blank" class="news_@(varnum)" title="@item.Title">@StringHelp.CutStr(item.Title, 40)</a></div>291 <div class="agxspanright">@StringHelp.GetShotTime(item.Time)</div>292 </li>293 varnum++;294 }295 }296 @{ 297 var varnum2 = 1;298 foreach (var item in NewsInfo2)299 {300 <li>301 <div class="agxspanleftnews">•</div>302 <div class="agxspancenternews"><a href="[email protected]" target="_blank" class="news_@(varnum2)" title="@item.Title">@StringHelp.CutStr(item.Title, 40)</a></div>303 <div class="agxspanright">@StringHelp.GetShotTime(item.Time)</div>304 </li>305 varnum2++;306 }307 }308 </ul>309 </div>310 <div class="left03in" style="width: 350px; margin-left: 10px;">311 <ul>312 @{ 313 var varnum3 = 1;314 foreach (var item in NewsInfo3)315 {316 <li>317 <div class="agxspanleftnews">•</div>318 <div class="agxspancenternews"><a href="[email protected]" target="_blank" class="news_@(varnum3)" title="@item.Title">@StringHelp.CutStr(item.Title, 40)</a></div>319 <div class="agxspanright">@StringHelp.GetShotTime(item.Time)</div>320 </li>varnum3++;321 }322 }323 @{ 324 var varnum4 = 1;325 foreach (var item in NewsInfo4)326 {327 <li>328 <div class="agxspanleftnews">•</div>329 <div class="agxspancenternews"><a href="[email protected]" target="_blank" class="news_@(varnum4)" title="@item.Title">@StringHelp.CutStr(item.Title, 40)</a></div>330 <div class="agxspanright">@StringHelp.GetShotTime(item.Time)</div>331 </li>varnum4++;332 }333 }334 </ul>335 </div>336 </div>337 </div>338 </div>339 <div class="inforight02">340 <div class="inforight02in">341 <div style="height: 500px; overflow: hidden">342 <script type="text/javascript">343 var cpro_id = "u1996701";344 (window["cproStyleApi"] = window["cproStyleApi"] || {})[cpro_id] = { at: "3", rsi0: "320", rsi1: "500", pat: "6", tn: "baiduCustNativeAD", rss1: "#FFFFFF", conBW: "0", adp: "1", ptt: "0", titFF: "%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91", titFS: "14", rss2: "#363636", titSU: "0", ptbg: "90", piw: "140", pih: "90", ptp: "0" }345 </script>346 <script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>347 </div>348 </div>349 </div>350 </div>351 <div class="divinfo03">352 <div class="infoleft03">353 <div class="divofkeji">354 <div class="divkejitop">355 <div class="divkejitopleft">科技前沿</div>356 <div class="divkejitopright">357 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/tech/Frontera" target="_blank">前沿</a></span>358 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/tech/Internet" target="_blank">互联网</a></span>359 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/tech/Electric" target="_blank">电商</a></span>360 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/tech/Communication" target="_blank">通信</a></span>361 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/tech/Invention" target="_blank">发明</a></span>362 </div>363 </div>364 <div class="divkejiinfo">365 <div class="divkejiinfo01">366 @{ 367 var varnumsss05 = 1;368 foreach (var item in TechInfo)369 {370 if (varnumsss05 == 1)371 {372 <div class="Kejiimgtop">373 <div class="kejilagimg">374 <a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">375 <img alt="@item.Title" src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgInfo)" /></a>376 </div>377 <div class="divImgJS"><a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">@item.Title</a></div>378 </div> }379 else380 {381 <div class="Kejiimgbom">382 <div class="kejismallimg">383 <a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">384 <img alt="@item.Title" src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgInfo)" /></a>385 </div>386 <div class="divImgJS"><a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">@item.Title</a></div>387 </div>388 }389 varnumsss05++;390 }391 }392 </div>393 <div class="divkejiinfo02">394 <ul>395 @{ 396 var varnum007 = 1;397 foreach (var item in TechInfo1)398 {399 <li>400 <div class="agxspanleftlong">•</div>401 <div class="agxspancenterlong"><a href="@(WebInfoManager.GexinetUrl)[email protected]" target="_blank" class="news_@(varnum007)" title="@item.Title">@StringHelp.CutStr(item.Title, 40)</a></div>402 <div class="agxspanright">@StringHelp.GetTimeByTime(item.Time)</div>403 </li>varnum007++;404 }405 }406 </ul>407 </div>408 </div>409 </div>410 <div class="divofkeji">411 <div class="divkejitop">412 <div class="divkejitopleft">革西财经</div>413 <div class="divkejitopright">414 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/finance/Stock" target="_blank">股票</a></span>415 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/finance/Bank" target="_blank">银行</a></span>416 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/finance/Gold" target="_blank">黄金</a></span>417 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/finance/Insurance" target="_blank">保险</a></span>418 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/finance/Money" target="_blank">理财</a></span>419 </div>420 </div>421 <div class="divkejiinfo">422 <div class="divkejiinfo01">423 424 425 @{ 426 var varnum8 = 1;427 foreach (var item in FinanceInfo)428 {429 if (varnum8 == 1)430 {431 <div class="Kejiimgtop">432 <div class="kejilagimg">433 <a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">434 <img alt="@item.Title" src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgInfo)" /></a>435 </div>436 <div class="divImgJS"><a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">@item.Title</a></div>437 </div> }438 else if (varnum8 == 2)439 { 440 <div class="Kejiimgbom">441 <div class="kejismallimg">442 <a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">443 <img alt="@item.Title" src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgInfo)" /></a>444 </div>445 <div class="divImgJS"><a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">@item.Title</a></div>446 </div>}447 else448 {449 <div class="Kejiimgbom" style="margin-right: 0px;">450 <div class="kejismallimg">451 <a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">452 <img alt="@item.Title" src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgInfo)" /></a>453 </div>454 <div class="divImgJS"><a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">@item.Title</a></div>455 </div>456 }457 varnum8++;458 }459 }460 </div>461 <div class="divkejiinfo02">462 <ul>463 @{ 464 var varnum9 = 1;465 foreach (var item in FinanceInfo1)466 {467 <li>468 <div class="agxspanleftlong">•</div>469 <div class="agxspancenterlong">470 <a href="@(WebInfoManager.GexinetUrl)[email protected]" target="_blank" class="news_@(varnum9)" title="@item.Title">@StringHelp.CutStr(item.Title, 40)</a>471 </div>472 <div class="agxspanright">@StringHelp.GetTimeByTime(item.Time)</div>473 </li> 474 varnum9++;475 }476 }477 </ul>478 </div>479 </div>480 </div>481 </div>482 <div class="inforight03" style="padding-top: 10px">483 <div class="righttabInfo2">484 <div class="rightinfotop2">485 <div class="divkejitopleft">房产</div>486 </div>487 <div class="righttabInfo2bom">488 @{489 foreach (var item in HouseInfo)490 {491 <div class="divShiPin">492 <div class="divShiPinin">493 <div style="height: 80px;">494 <a href="@(WebInfoManager.GexinetUrl)[email protected]" target="_blank">495 <img src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgInfo)" alt="@item.Title" /></a>496 </div>497 <div class="imgstabinbom"><a href="@(WebInfoManager.GexinetUrl)[email protected]" target="_blank" title="@item.Title">@StringHelp.CutStr(item.Title, 22)</a></div>498 </div>499 </div>500 }501 }502 @{503 foreach (var item in HouseInfo1)504 {505 <div class="righttabInfo2boma">506 <div class="agxspanleft">•</div>507 <div class="agxspancenter">508 <a href="@(WebInfoManager.GexinetUrl)[email protected]" target="_blank" title="@item.Title">@StringHelp.CutStr(item.Title, 38)</a>509 </div>510 <div class="agxspanright">@item.Author</div>511 </div>512 }513 }514 </div>515 </div>516 <div class="righttabInfo2">517 <div class="rightinfotop2">518 <div class="divkejitopleft">汽车</div>519 </div>520 <div class="righttabInfo2bom">521 @foreach (var item in CarInfo)522 {523 <div class="divShiPin">524 <div class="divShiPinin">525 <div style="height: 80px;">526 <a href="@(WebInfoManager.GexinetUrl)[email protected]" target="_blank">527 <img src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgInfo)" alt="@item.Title" /></a>528 </div>529 <div class="imgstabinbom"><a href="@(WebInfoManager.GexinetUrl)[email protected]" target="_blank" title="@item.Title">@StringHelp.CutStr(item.Title, 22)</a></div>530 </div>531 </div>532 }533 @foreach (var item in CarInfo1)534 {535 <div class="righttabInfo2boma">536 <div class="agxspanleft">•</div>537 <div class="agxspancenter">538 <a href="@(WebInfoManager.GexinetUrl)[email protected]" target="_blank" title="@item.Title">@StringHelp.CutStr(item.Title, 38)</a>539 </div>540 <div class="agxspanright">@item.Author</div>541 </div>542 }543 </div>544 </div>545 </div>546 </div>547 <div class="indexad">548 <div class="indexasleft" style="margin-right: 20px">549 <script type="text/javascript">550 var cpro_id = "u1996760";551 (window["cproStyleApi"] = window["cproStyleApi"] || {})[cpro_id] = { at: "3", rsi0: "730", rsi1: "100", pat: "6", tn: "baiduCustNativeAD", rss1: "#FFFFFF", conBW: "0", adp: "1", ptt: "0", titFF: "%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91", titFS: "14", rss2: "#363636", titSU: "0", ptbg: "90", piw: "0", pih: "0", ptp: "0" }552 </script>553 <script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>554 </div>555 <script type="text/javascript">556 var cpro_id = "u1996819";557 (window["cproStyleApi"] = window["cproStyleApi"] || {})[cpro_id] = { at: "3", rsi0: "320", rsi1: "100", pat: "6", tn: "baiduCustNativeAD", rss1: "#FFFFFF", conBW: "0", adp: "1", ptt: "0", titFF: "%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91", titFS: "14", rss2: "#363636", titSU: "0", ptbg: "90", piw: "0", pih: "0", ptp: "0" }558 </script>559 <script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>560 </div>561 <div class="divinfo03">562 <div class="infoleft03">563 <div class="divofkeji">564 <div class="divkejitop">565 <div class="divkejitopleft">革西教育</div>566 <div class="divkejitopright">567 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/edu/Immigration" target="_blank">移民</a></span>568 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/edu/Abroad" target="_blank">留学</a></span>569 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/edu/Examination" target="_blank">考试</a></span>570 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/edu/University" target="_blank">大学</a></span>571 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/edu/Mechanism" target="_blank">机构</a></span>572 </div>573 </div>574 <div class="divkejiinfo">575 <div class="divkejiinfo01">576 @{ 577 var varnum11 = 1;578 foreach (var item in EducationInfo)579 {580 if (varnum11 == 1)581 {582 <div class="Kejiimgtop">583 <div class="kejilagimg">584 <a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">585 <img alt="@item.Title" src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgInfo)" /></a>586 </div>587 <div class="divImgJS"><a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">@item.Title</a></div>588 </div> }589 else if (varnum11 == 2)590 { 591 <div class="Kejiimgbom">592 <div class="kejismallimg">593 <a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">594 <img alt="@item.Title" src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgInfo)" /></a>595 </div>596 <div class="divImgJS"><a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">@item.Title</a></div>597 </div>}598 else599 {600 <div class="Kejiimgbom" style="margin-right: 0px;">601 <div class="kejismallimg">602 <a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">603 <img alt="@item.Title" src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgInfo)" /></a>604 </div>605 <div class="divImgJS"><a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">@item.Title</a></div>606 </div>607 }608 varnum11++;609 }610 }611 </div>612 <div class="divkejiinfo02">613 <ul>614 @{ 615 var varnum12 = 1;616 foreach (var item in EducationInfo1)617 {618 <li>619 <div class="agxspanleftlong">•</div>620 <div class="agxspancenterlong">621 <a href="@(WebInfoManager.GexinetUrl)[email protected]" target="_blank" class="news_@(varnum12)" title="@item.Title">@StringHelp.CutStr(item.Title, 40)</a>622 </div>623 <div class="agxspanright">@StringHelp.GetTimeByTime(item.Time)</div>624 </li> 625 varnum12++;626 }627 }628 </ul>629 </div>630 </div>631 </div>632 <div class="divofkeji" style="margin-bottom: 15px;">633 <div class="divkejitop">634 <div class="divkejitopleft">历史风云</div>635 <div class="divkejitopright">636 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/history/Literature" target="_blank">文学</a></span>637 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/history/Datum" target="_blank">资料</a></span>638 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/history/Legend" target="_blank">传奇</a></span>639 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/history/Secret" target="_blank">揭秘</a></span>640 <span class="napinfotopleft"><a href="@(WebInfoManager.GexinetUrl)/history/Book" target="_blank">史书</a></span>641 </div>642 </div>643 <div class="divkejiinfo">644 <div class="divkejiinfo01">645 @{ 646 var varnum16 = 1;647 foreach (var item in HistoryInfo)648 {649 if (varnum16 == 1)650 {651 <div class="Kejiimgtop">652 <div class="kejilagimg">653 <a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">654 <img alt="@item.Title" src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgInfo)" /></a>655 </div>656 <div class="divImgJS"><a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">@item.Title</a></div>657 </div> }658 else if (varnum16 == 2)659 { 660 <div class="Kejiimgbom">661 <div class="kejismallimg">662 <a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">663 <img alt="@item.Title" src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgInfo)" /></a>664 </div>665 <div class="divImgJS"><a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">@item.Title</a></div>666 </div>}667 else668 {669 <div class="Kejiimgbom" style="margin-right: 0px;">670 <div class="kejismallimg">671 <a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">672 <img alt="@item.Title" src="@(WebInfoManager.GexinetUrl + "/Content/Files/" + item.ImgInfo)" /></a>673 </div>674 <div class="divImgJS"><a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]">@item.Title</a></div>675 </div>676 }677 varnum16++;678 }679 }680 </div>681 <div class="divkejiinfo02">682 <ul>683 @{ 684 var varnum14 = 1;685 foreach (var item in HistoryInfo1)686 {687 <li>688 <div class="agxspanleftlong">•</div>689 <div class="agxspancenterlong">690 <a href="@(WebInfoManager.GexinetUrl)[email protected]" target="_blank" class="news_@(varnum14)" title="@item.Title">@StringHelp.CutStr(item.Title, 40)</a>691 </div>692 <div class="agxspanright">@StringHelp.GetTimeByTime(item.Time)</div>693 </li> 694 varnum14++;695 }696 }697 </ul>698 </div>699 </div>700 </div>701 </div>702 <div class="inforight03">703 <div class="righttabInfo3">704 <div class="rightinfotop">时尚</div>705 <div class="righttabInfo2bom">706 @{707 foreach (var item in FashionInfo)708 {709 <div class="righttabInfo2boma">710 <div class="agxspanleft">•</div>711 <div class="agxspancenter">712 <a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]" title="@item.Title">@StringHelp.CutStr(item.Title, 38)</a>713 </div>714 <div class="agxspanright">@item.Author</div>715 </div>716 } 717 }718 </div>719 </div>720 <div class="righttabInfo3">721 <div class="rightinfotop">娱乐</div>722 <div class="righttabInfo2bom">723 @{724 foreach (var item in EntertainmentInfo)725 {726 <div class="righttabInfo2boma">727 <div class="agxspanleft">•</div>728 <div class="agxspancenter">729 <a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]" title="@item.Title">@StringHelp.CutStr(item.Title, 38)</a>730 </div>731 <div class="agxspanright">@item.Author</div>732 </div>733 } 734 }735 </div>736 </div>737 <div class="righttabInfo3">738 <div class="rightinfotop">文学</div>739 <div class="righttabInfo2bom">740 @{741 foreach (var item in SoulInfo)742 {743 <div class="righttabInfo2boma">744 <div class="agxspanleft">•</div>745 <div class="agxspancenter">746 <a target="_blank" href="@(WebInfoManager.GexinetUrl)[email protected]" title="@item.Title">@StringHelp.CutStr(item.Title, 38)</a>747 </div>748 <div class="agxspanright">@item.Author</div>749 750 </div>751 } 752 }753 </div>754 </div>755 </div>756 </div>757 <div class="divlink">758 <div class="divkejitop">759 <div class="divkejitopleft">友情连接 </div>760 <div style="float: right;">761 <span class="napinfotopleft"><a target="_blank" href="/index/applyline">申请友链</a></span>762 </div>763 </div>764 <div class="divlinkin">765 @{766 foreach (var item in CooperationInfo2)767 {768 <a target="_blank" href="@item.Url">@item.Name</a>769 }770 }771 </div>772 <div style="clear: both"></div>773 </div>774 @RenderPage("~/Views/Shared/_Bom.cshtml")775 </body>776 <script>777 $(function () {778 $('#TextBox1').focus();779 $(".btninfo").click(function () {780 var urlquan = window.location.href;781 var urlzhu = "";782 var indexofwenhao = urlquan.indexOf("/");783 if (indexofwenhao != "-1") {784 urlzhu = urlquan.substring(0, indexofwenhao);785 }786 var str = $('#TextBox1').val();787 if (str == "") {788 return;789 }790 window.open(urlzhu + "/search?txtSearch=" + str);791 });792 });793 $(document).bind("keydown", function (event) {794 if (event.keyCode == 13) {795 var loginBtn = $(".btninfo");796 if (loginBtn.attr("disabled") == undefined) {797 loginBtn.click();798 }799 return false;800 }801 });802 </script>803 </html>
如果您按照我写的代码做下来,还没有实现功能的话,请留下您的邮箱。
- 5楼耘
- 1.魔鬼数字,2.hardcde,3.圈复杂度,4.函数功能,。。。。 ,怎一个lan字了得....
- 4楼gzhy
- [email protected]
- 3楼编译真难
- [email protected] 学习下,有兴趣
- Re: 西贝晴
- @编译真难,已发,欢迎指导指导!
- 2楼风语者5031
- [email protected],,谢谢博主啦
- 1楼木头园
- [email protected] 学习 (来自博客园v3.3.1)
- Re: 西贝晴
- @木头园,代码已发。查收一下,欢迎指导!