Hzzs.cshtml 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. @model CP.Web.ZstOutHelp
  2. @using CP.Model;
  3. @using CP.Common;
  4. @{
  5. Layout = "~/Views/Shared/_zst.cshtml";
  6. Page.TrendPageType = TrendPageType.renxuan;
  7. Page.Chart = Model.Chart;
  8. Page.Cz = Model.Cz;
  9. Page.InnerLink = Model.InnerLinkList;
  10. Page.ZsList = Model.ZsList;
  11. Page.GjList = Model.GjList;
  12. Page.YlList = Model.YlList;
  13. Page.TbList = Model.TbList;
  14. Page.ZtList = Model.ZtList;
  15. Page.Title = Model.Chart.title;
  16. Page.Description = Model.Chart.description;
  17. Page.Keywords = Model.Chart.keywords;
  18. var chart = Model.Chart;
  19. var cz = Model.Cz;
  20. var tjmenu = Model.InnerLinkList;
  21. var pagesize = Model.PageSize;
  22. var year = Model.Year;
  23. var week = Model.Week;
  24. }
  25. <div class="wrap">
  26. <div class="navbar">
  27. <span>当前位置:</span><a href="/">首页</a> - <a href="/zs/">走势图</a> - <a href="">@cz.name</a> - @chart.name
  28. </div>
  29. </div>
  30. <div class="wrap">
  31. <div class="container">
  32. <div class="title">
  33. <div class="search-box" id="trendSearchBox">
  34. <div class="search-link">
  35. @Html.Raw(Model.Pagehtml)
  36. </div>
  37. <div class="mSelectBox" style="margin-right:12px;" id="wSelectBox">
  38. <span class="mSelect week">按星期</span>
  39. <div class="mSelectList week">
  40. @Html.Raw(Model.Weekhtml)
  41. </div>
  42. </div>
  43. <div class="mSelectBox" id="mSelectBox">
  44. <span class="mSelect year">按年份</span>
  45. <div class="mSelectList year">
  46. @Html.Raw(Model.Yearhtml)
  47. </div>
  48. </div>
  49. <div class="zs-search">
  50. <input type="text" id="startTerm" name="startTerm" class="input-term" value="@Model.Sqi"
  51. onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" /><span>至</span>
  52. <input type="text" id="endTerm" name="endTerm" class="input-term" value="@Model.Eqi"
  53. onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" /><span>期</span>
  54. </div>
  55. <input type="submit" value="查看" class="btn-search" id="btnSearch" />
  56. <input type="button" value="刷新" class="btn-search" id="btnRefresh" />
  57. </div>
  58. <h1>
  59. @chart.name
  60. </h1>
  61. </div>
  62. <div class="trend" id="trendBox">
  63. <!--走势图功能选择部分 begin-->
  64. <div class="ctl-box">
  65. 标注形式选择:
  66. <span class="ctl-item"><input type="checkbox" name="ctl_foldLine" id="ctl_foldLine1" checked="checked" autocomplete="off"><label for="ctl_foldLine1">折线</label></span>
  67. <span class="ctl-item"><input type="checkbox" name="ctl_miss" id="ctl_miss1" autocomplete="off"><label for="ctl_miss1">不带遗漏数据</label></span>
  68. <span class="ctl-item"><input type="checkbox" name="ctl_sliceMiss" id="ctl_sliceMiss1" autocomplete="off"><label for="ctl_sliceMiss1">遗漏分层</label></span>
  69. </div>
  70. <!--走势图功能选择部分 end-->
  71. <!--数据体部分 begin-->
  72. <table class="chartTable" id="chartBody">
  73. <thead>
  74. <tr>
  75. <th width="60" rowspan="2" class="sort_up brl"><strong>期号</strong></th>
  76. <th width="35" rowspan="2"><strong>星期</strong></th>
  77. <th width="120" rowspan="2" colspan="6">红球</th>
  78. <th width="35" rowspan="2">蓝球</th>
  79. <th width="35" rowspan="2">和值</th>
  80. <th colspan="12">红球和值区间分布</th>
  81. <th colspan="3">和值形态</th>
  82. <th width="35" rowspan="2">和尾</th>
  83. <th colspan="10" class="brr">和尾分布</th>
  84. </tr>
  85. <tr>
  86. <th width="43">21<br />|<br />60</th>
  87. <th width="43">61<br />|<br />70</th>
  88. <th width="43">71<br />|<br />80</th>
  89. <th width="43">81<br />|<br />90</th>
  90. <th width="43">91<br />|<br />100</th>
  91. <th width="43">101<br />|<br />110</th>
  92. <th width="43">111<br />|<br />120</th>
  93. <th width="43">121<br />|<br />130</th>
  94. <th width="43">131<br />|<br />140</th>
  95. <th width="43">141<br />|<br />150</th>
  96. <th width="43">151<br />|<br />160</th>
  97. <th width="43">161<br />|<br />183</th>
  98. <th width="30" class="no-border-lr">奇</th>
  99. <th width="30" class="no-border-lr">偶</th>
  100. <th width="35">振幅</th>
  101. <th width="25">0</th>
  102. <th width="25">1</th>
  103. <th width="25">2</th>
  104. <th width="25">3</th>
  105. <th width="25">4</th>
  106. <th width="25">5</th>
  107. <th width="25">6</th>
  108. <th width="25">7</th>
  109. <th width="25">8</th>
  110. <th width="25" class="no-border-lr brr">9</th>
  111. </tr>
  112. </thead>
  113. <tbody id="chartData">
  114. @Html.Raw(Model.Oinfo.zsthtml)
  115. </tbody>
  116. <!--模拟选号框-->
  117. <tbody id="preseleBody">
  118. <tr class="presele">
  119. <td colspan="9" class="presele-title brl"><strong>选号1</strong></td>
  120. <td></td>
  121. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">21<br />|<br />60</td>
  122. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">61<br />|<br />70</td>
  123. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">71<br />|<br />80</td>
  124. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">81<br />|<br />90</td>
  125. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">91<br />|<br />100</td>
  126. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">101<br />|<br />110</td>
  127. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">111<br />|<br />120</td>
  128. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">121<br />|<br />130</td>
  129. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">131<br />|<br />140</td>
  130. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">141<br />|<br />150</td>
  131. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">151<br />|<br />160</td>
  132. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">161<br />|<br />183</td>
  133. <td width="30" style="height:15px;line-height:15px;" pl="bg-box1">奇</td>
  134. <td width="30" style="height:15px;line-height:15px;" pl="bg-box1">偶</td>
  135. <td></td>
  136. <td></td>
  137. <td pl="bg-box2">0</td>
  138. <td pl="bg-box2">1</td>
  139. <td pl="bg-box2">2</td>
  140. <td pl="bg-box2">3</td>
  141. <td pl="bg-box2">4</td>
  142. <td pl="bg-box2">5</td>
  143. <td pl="bg-box2">6</td>
  144. <td pl="bg-box2">7</td>
  145. <td pl="bg-box2">8</td>
  146. <td pl="bg-box2" class="brr">9</td>
  147. </tr>
  148. <tr class="presele">
  149. <td colspan="9" class="presele-title brl"><strong>选号2</strong></td>
  150. <td></td>
  151. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">21<br />|<br />60</td>
  152. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">61<br />|<br />70</td>
  153. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">71<br />|<br />80</td>
  154. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">81<br />|<br />90</td>
  155. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">91<br />|<br />100</td>
  156. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">101<br />|<br />110</td>
  157. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">111<br />|<br />120</td>
  158. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">121<br />|<br />130</td>
  159. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">131<br />|<br />140</td>
  160. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">141<br />|<br />150</td>
  161. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">151<br />|<br />160</td>
  162. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">161<br />|<br />183</td>
  163. <td width="30" style="height:15px;line-height:15px;" pl="bg-box1">奇</td>
  164. <td width="30" style="height:15px;line-height:15px;" pl="bg-box1">偶</td>
  165. <td></td>
  166. <td></td>
  167. <td pl="bg-box2">0</td>
  168. <td pl="bg-box2">1</td>
  169. <td pl="bg-box2">2</td>
  170. <td pl="bg-box2">3</td>
  171. <td pl="bg-box2">4</td>
  172. <td pl="bg-box2">5</td>
  173. <td pl="bg-box2">6</td>
  174. <td pl="bg-box2">7</td>
  175. <td pl="bg-box2">8</td>
  176. <td pl="bg-box2" class="brr">9</td>
  177. </tr>
  178. <tr class="presele">
  179. <td colspan="9" class="presele-title brl"><strong>选号3</strong></td>
  180. <td></td>
  181. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">21<br />|<br />60</td>
  182. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">61<br />|<br />70</td>
  183. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">71<br />|<br />80</td>
  184. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">81<br />|<br />90</td>
  185. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">91<br />|<br />100</td>
  186. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">101<br />|<br />110</td>
  187. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">111<br />|<br />120</td>
  188. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">121<br />|<br />130</td>
  189. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">131<br />|<br />140</td>
  190. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">141<br />|<br />150</td>
  191. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">151<br />|<br />160</td>
  192. <td width="43" style="height:15px;line-height:15px;" pl="hz_red">161<br />|<br />183</td>
  193. <td width="30" style="height:15px;line-height:15px;" pl="bg-box1">奇</td>
  194. <td width="30" style="height:15px;line-height:15px;" pl="bg-box1">偶</td>
  195. <td></td>
  196. <td></td>
  197. <td pl="bg-box2">0</td>
  198. <td pl="bg-box2">1</td>
  199. <td pl="bg-box2">2</td>
  200. <td pl="bg-box2">3</td>
  201. <td pl="bg-box2">4</td>
  202. <td pl="bg-box2">5</td>
  203. <td pl="bg-box2">6</td>
  204. <td pl="bg-box2">7</td>
  205. <td pl="bg-box2">8</td>
  206. <td pl="bg-box2" class="brr">9</td>
  207. </tr>
  208. </tbody>
  209. </table>
  210. <!--数据体部分 end-->
  211. <div class="ctl-box">
  212. 标注形式选择:
  213. <span class="ctl-item"><input type="checkbox" name="ctl_foldLine" id="ctl_foldLine2" checked="checked" autocomplete="off"><label for="ctl_foldLine2">折线</label></span>
  214. <span class="ctl-item"><input type="checkbox" name="ctl_miss" id="ctl_miss2" autocomplete="off"><label for="ctl_miss2">不带遗漏数据</label></span>
  215. <span class="ctl-item"><input type="checkbox" name="ctl_sliceMiss" id="ctl_sliceMiss2" autocomplete="off"><label for="ctl_sliceMiss2">遗漏分层</label></span>
  216. <div class="dataAnalysisBox">
  217. <input name="analysisbtn" id="currentAnalysis" checked="checked" type="radio" autocomplete="off">
  218. <label for="currentAnalysis">当前页统计</label>
  219. <input name="analysisbtn" id="historyAnalysis" type="radio" autocomplete="off">
  220. <label for="historyAnalysis">历史统计</label>
  221. </div>
  222. </div>
  223. <!--数据统计-->
  224. <table class="chartTable" id="chartBody">
  225. <tbody>
  226. <tr>
  227. <th width="60" rowspan="2" class="sort_up brl"><strong>期号</strong></th>
  228. <th width="35" rowspan="2"><strong>星期</strong></th>
  229. <th width="120" rowspan="2" colspan="6">红球</th>
  230. <th width="35" rowspan="2">蓝球</th>
  231. <th width="35" rowspan="2">和值</th>
  232. <th colspan="12">红球和值区间分布</th>
  233. <th colspan="3">和值形态</th>
  234. <th width="35" rowspan="2">和尾</th>
  235. <th colspan="10" class="brr">和尾分布</th>
  236. </tr>
  237. <tr>
  238. <th width="43">21<br />|<br />60</th>
  239. <th width="43">61<br />|<br />70</th>
  240. <th width="43">71<br />|<br />80</th>
  241. <th width="43">81<br />|<br />90</th>
  242. <th width="43">91<br />|<br />100</th>
  243. <th width="43">101<br />|<br />110</th>
  244. <th width="43">111<br />|<br />120</th>
  245. <th width="43">121<br />|<br />130</th>
  246. <th width="43">131<br />|<br />140</th>
  247. <th width="43">141<br />|<br />150</th>
  248. <th width="43">151<br />|<br />160</th>
  249. <th width="43">161<br />|<br />183</th>
  250. <th width="30" class="no-border-lr">奇</th>
  251. <th width="30" class="no-border-lr">偶</th>
  252. <th width="35">振幅</th>
  253. <th width="25">0</th>
  254. <th width="25">1</th>
  255. <th width="25">2</th>
  256. <th width="25">3</th>
  257. <th width="25">4</th>
  258. <th width="25">5</th>
  259. <th width="25">6</th>
  260. <th width="25">7</th>
  261. <th width="25">8</th>
  262. <th width="25" class="no-border-lr brr">9</th>
  263. </tr>
  264. </tbody>
  265. <tbody id="currentData" style="">
  266. @{
  267. var ylList = (List<FcssqHzMissInfo>)Model.Oinfo.yl;
  268. var index = 0;
  269. if (ylList.Count > 0)
  270. {
  271. foreach (var yl in ylList)
  272. {
  273. if (index < 3)
  274. {
  275. <tr>
  276. <td colspan="9" class="brl" title="@yl.name">@yl.name</td>
  277. <td></td>
  278. @foreach (var hz in yl.hz)
  279. {
  280. if (hz > 99)
  281. {
  282. <td title="@hz" class="bg-yellow"><div class="ft9">@hz</div></td>
  283. }
  284. else
  285. {
  286. <td class="bg-yellow">@hz</td>
  287. }
  288. }
  289. @foreach (var jo in yl.jo)
  290. {
  291. if (jo > 99)
  292. {
  293. <td title="@jo" class="bg-yellow"><div class="ft9">@jo</div></td>
  294. }
  295. else
  296. {
  297. <td class="bg-yellow">@jo</td>
  298. }
  299. }
  300. <td></td>
  301. <td></td>
  302. @for (var k = 0; k < yl.hw.Length; k++)
  303. {
  304. var hw = yl.hw[k];
  305. var cls = k == yl.hw.Length - 1 ? "brr" : "";
  306. if (hw > 99)
  307. {
  308. <td title="@hw" class="bg-yellow @cls"><div class="ft9">@hw</div></td>
  309. }
  310. else
  311. {
  312. <td class="bg-yellow @cls">@hw</td>
  313. }
  314. }
  315. </tr>
  316. }
  317. else
  318. {
  319. var max = new int[] { yl.hz.Max(), yl.jo.Max(), yl.hw.Max() }.Max();
  320. <tr>
  321. <td colspan="9" class="brl" title="@yl.name">@yl.name</td>
  322. <td></td>
  323. @{
  324. foreach (var hz in yl.hz)
  325. {
  326. <td class="appears bg-yellow">@hz<br><img width="16" height="@Math.Round((double)hz / max * 60)" src="/static/images/line-red.gif" alt=""></td>
  327. }
  328. foreach (var jo in yl.jo)
  329. {
  330. <td class="appears bg-yellow">@jo<br><img width="16" height="@Math.Round((double)jo / max * 60)" src="/static/images/line-purple.gif" alt=""></td>
  331. }
  332. <td></td>
  333. <td></td>
  334. for (var k = 0; k < yl.hw.Length; k++)
  335. {
  336. var hw = yl.hw[k];
  337. var cls = k == yl.hw.Length - 1 ? "brr" : "";
  338. <td class="appears bg-yellow @cls">@hw<br><img width="16" height="@Math.Round((double)hw / max * 60)" src="/static/images/line-red.gif" alt=""></td>
  339. }
  340. }
  341. </tr>
  342. }
  343. index++;
  344. }
  345. }
  346. }
  347. </tbody>
  348. <tbody id="historyData" style="display:none;">
  349. @{
  350. var lsylList = (List<FcssqHzMissInfo>)Model.Oinfo.lsyl;
  351. var lsindex = 0;
  352. if (lsylList.Count > 0)
  353. {
  354. foreach (var yl in lsylList)
  355. {
  356. if (lsindex < 3)
  357. {
  358. <tr>
  359. <td colspan="9" class="brl" title="@yl.name">@yl.name</td>
  360. <td></td>
  361. @foreach (var hz in yl.hz)
  362. {
  363. if (hz > 99)
  364. {
  365. <td title="@hz" class="bg-yellow"><div class="ft9">@hz</div></td>
  366. }
  367. else
  368. {
  369. <td class="bg-yellow">@hz</td>
  370. }
  371. }
  372. @foreach (var jo in yl.jo)
  373. {
  374. if (jo > 99)
  375. {
  376. <td title="@jo" class="bg-yellow"><div class="ft9">@jo</div></td>
  377. }
  378. else
  379. {
  380. <td class="bg-yellow">@jo</td>
  381. }
  382. }
  383. <td></td>
  384. <td></td>
  385. @for (var k = 0; k < yl.hw.Length; k++)
  386. {
  387. var hw = yl.hw[k];
  388. var cls = k == yl.hw.Length - 1 ? "brr" : "";
  389. if (hw > 99)
  390. {
  391. <td title="@hw" class="bg-yellow @cls"><div class="ft9">@hw</div></td>
  392. }
  393. else
  394. {
  395. <td class="bg-yellow @cls">@hw</td>
  396. }
  397. }
  398. </tr>
  399. }
  400. else
  401. {
  402. var max = new int[] { yl.hz.Max(), yl.jo.Max(), yl.hw.Max() }.Max();
  403. <tr>
  404. <td colspan="9" class="brl" title="@yl.name">@yl.name</td>
  405. <td></td>
  406. @{
  407. foreach (var hz in yl.hz)
  408. {
  409. <td class="appears bg-yellow">@hz<br><img width="16" height="@Math.Round((double)hz / max * 60)" src="/static/images/line-red.gif" alt=""></td>
  410. }
  411. foreach (var jo in yl.jo)
  412. {
  413. <td class="appears bg-yellow">@jo<br><img width="16" height="@Math.Round((double)jo / max * 60)" src="/static/images/line-purple.gif" alt=""></td>
  414. }
  415. <td></td>
  416. <td></td>
  417. for (var k = 0; k < yl.hw.Length; k++)
  418. {
  419. var hw = yl.hw[k];
  420. var cls = k == yl.hw.Length - 1 ? "brr" : "";
  421. <td class="appears bg-yellow @cls">@hw<br><img width="16" height="@Math.Round((double)hw / max * 60)" src="/static/images/line-red.gif" alt=""></td>
  422. }
  423. }
  424. </tr>
  425. }
  426. lsindex++;
  427. }
  428. }
  429. }
  430. </tbody>
  431. </table>
  432. </div>
  433. <!--画线及相关 begin-->
  434. <div id="chartLine">
  435. </div>
  436. <!--画线及相关 end-->
  437. </div>
  438. </div>
  439. <!--走势图浮动期号头部 begin-->
  440. <div id='zsScrollBanner' class="scrollBanner">
  441. <div class="scrollTrend">
  442. <table class="chartTable">
  443. <thead id="scrollTrendThead">
  444. </thead>
  445. </table>
  446. </div>
  447. </div>
  448. <!--走势图浮动期号头部 end-->