123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264 |
- @model CP.Web.ZstOutHelp
- @using CP.Model;
- @using CP.Common;
- @{
- Layout = "~/Views/Shared/_zst.cshtml";
- Page.TrendPageType = TrendPageType.renxuan;
- Page.Chart = Model.Chart;
- Page.Cz = Model.Cz;
- Page.InnerLink = Model.InnerLinkList;
- Page.ZsList = Model.ZsList;
- Page.GjList = Model.GjList;
- Page.YlList = Model.YlList;
- Page.TbList = Model.TbList;
- Page.ZtList = Model.ZtList;
- Page.Title = Model.Chart.title;
- Page.Description = Model.Chart.description;
- Page.Keywords = Model.Chart.keywords;
- var chart = Model.Chart;
- var cz = Model.Cz;
- var tjmenu = Model.InnerLinkList;
- var pagesize = Model.PageSize;
- var year = Model.Year;
- }
- <div class="wrap">
- <div class="navbar">
- <span>当前位置:</span><a href="/">首页</a> - <a href="/zs/">走势图</a> - <a href="">@cz.name</a> - @chart.name
- </div>
- </div>
- <div class="wrap">
- <div class="container">
- <div class="title">
- <div class="search-box" id="trendSearchBox">
- <div class="search-link">
- @Html.Raw(Model.Pagehtml)
- </div>
- <div class="mSelectBox" id="mSelectBox">
- <span class="mSelect year">按年份</span>
- <div class="mSelectList year">
- @Html.Raw(Model.Yearhtml)
- </div>
- </div>
- <div class="zs-search">
- <input type="text" id="startTerm" name="startTerm" class="input-term" value="@Model.Sqi"
- onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" /><span>至</span>
- <input type="text" id="endTerm" name="endTerm" class="input-term" value="@Model.Eqi"
- onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" /><span>期</span>
- </div>
- <input type="submit" value="查看" class="btn-search" id="btnSearch" />
- <input type="button" value="刷新" class="btn-search" id="btnRefresh" />
- </div>
- <h1>
- @chart.name
- </h1>
- </div>
- <div class="trend" id="trendBox">
- <table class="chartTable" id="chartBody">
- <thead>
- <tr>
- <th width="60" rowspan="2" class="sort_up brl"><strong>次数</strong></th>
- <th rowspan="2" class="split02"></th>
- <th colspan="12">一区</th>
- <th rowspan="2" class="split02"></th>
- <th colspan="12">二区</th>
- <th rowspan="2" class="split02"></th>
- <th colspan="11">三区</th>
- <th rowspan="2" class="split02"></th>
- <th colspan="12" class="brr">后区</th>
- </tr>
- <tr>
- <th width="21">01</th>
- <th width="21">02</th>
- <th width="21">03</th>
- <th width="21">04</th>
- <th width="21">05</th>
- <th width="21">06</th>
- <th width="21">07</th>
- <th width="21">08</th>
- <th width="21">09</th>
- <th width="21">10</th>
- <th width="21">11</th>
- <th width="21">12</th>
- <th width="21">13</th>
- <th width="21">14</th>
- <th width="21">15</th>
- <th width="21">16</th>
- <th width="21">17</th>
- <th width="21">18</th>
- <th width="21">19</th>
- <th width="21">20</th>
- <th width="21">21</th>
- <th width="21">22</th>
- <th width="21">23</th>
- <th width="21">24</th>
- <th width="21">25</th>
- <th width="21">26</th>
- <th width="21">27</th>
- <th width="21">28</th>
- <th width="21">29</th>
- <th width="21">30</th>
- <th width="21">31</th>
- <th width="21">32</th>
- <th width="21">33</th>
- <th width="21">34</th>
- <th width="21">35</th>
- <th width="21">01</th>
- <th width="21">02</th>
- <th width="21">03</th>
- <th width="21">04</th>
- <th width="21">05</th>
- <th width="21">06</th>
- <th width="21">07</th>
- <th width="21">08</th>
- <th width="21">09</th>
- <th width="21">10</th>
- <th width="21">11</th>
- <th width="21" class="brr">12</th>
- </tr>
- </thead>
- <tbody id="chartData">
- @{
- var ylList = (List<TcdltChzsMissInfo>)Model.Oinfo.yl;
- if (ylList.Count > 0)
- {
- var data = ylList[3];
- var max = new int[] { data.qq.Max(), data.hq.Max() }.Max();
- var step = 0;
- if (max < 30)
- {
- max = 30;
- step = 2;
- }
- else if (max < 60)
- {
- max = 60;
- step = 4;
- }
- else if (max < 105)
- {
- max = 105;
- step = 7;
- }
- else if (max < 165)
- {
- max = 165;
- step = 11;
- }
- else if (max < 1500)
- {
- max = 1500;
- step = 100;
- }
- //16行
- for (var i = 0; i < 16; i++)
- {
- if (i == 0)
- {
- <tr>
- <td class="brl">@(max - step * i)</td>
- <td class="split01"></td>
- @{
- for (var p = 1; p < 36; p++)
- {
- var red = data.qq[p];
- <td rowspan="16" style="vertical-align: bottom;"><span>@red</span><br /><img width="8" height="@Math.Round((double)red / (max+step) * 16 * 29)" style="vertical-align: bottom;" src="/static/images/line-red.gif" alt=""></td>
- if (p == 12 || p == 24 || p == 35)
- {
- <td rowspan="16" class="split01"></td>
- }
- }
- for (var p = 1; p < 13; p++)
- {
- var csscls = p == 12 ? "brr" : "";
- var blue = data.hq[p];
- <td rowspan="16" style="vertical-align: bottom;background:#f6f6f6" class=" @csscls"><span>@blue</span><br /><img width="8" height="@Math.Round((double)blue / (max+step) * 16 * 29)" style="vertical-align: bottom;" src="~/static/images/line-blue.gif" alt=""></td>
- }
- }
- </tr>
- }
- else
- {
- <tr>
- <td class="pl brl">@(max - step * i)</td>
- <td class="split01"></td>
- </tr>
- }
- }
- <tr>
- <td class="brl">出现次数</td>
- <td class="split01"></td>
- @{
- for (var p = 1; p < 36; p++)
- {
- var red = data.qq[p];
- if (red > 99)
- {
- <td title="@red" class="bg-yellow"><div class="ft9">@red</div></td>
- }
- else
- {
- <td class="bg-yellow">@red</td>
- }
- if (p == 12 || p == 24 || p == 35)
- {
- <td class="split01"></td>
- }
- }
- for (var p = 1; p < 13; p++)
- {
- var csscls = p == 12 ? "brr" : "";
- var blue = data.hq[p];
- if (blue > 99)
- {
- <td title="@blue" class="bg-yellow @csscls"><div class="ft9">@blue</div></td>
- }
- else
- {
- <td class="bg-yellow @csscls">@blue</td>
- }
- }
- }
- </tr>
- <tr>
- <td class="brl">出现频率(%)</td>
- <td class="split01"></td>
- @{
- for (var p = 1; p < 36; p++)
- {
- var rate = Math.Round(data.qq[p] / ((double)data.qq.Sum()) * 100, 1);
- <td title="@rate" style="background:#dbdbdb;">@rate</td>
- if (p == 12 || p == 24 || p == 35)
- {
- <td class="split01"></td>
- }
- }
- for (var p = 1; p < 13; p++)
- {
- var csscls = p == 12 ? "brr" : "";
- var rate = Math.Round(data.qq[p] / ((double)data.hq.Sum()) * 100, 1);
- <td title="@rate" style="background:#dbdbdb;" class="@csscls">@rate</td>
- }
- }
- </tr>
- }
- }
- </tbody>
- </table>
- </div>
- <!--画线及相关 begin-->
- <div id="chartLine">
- </div>
- <!--画线及相关 end-->
- </div>
- </div>
- <!--走势图浮动期号头部 begin-->
- <div id='zsScrollBanner' class="scrollBanner">
- <div class="scrollTrend">
- <table class="chartTable" cellspacing="1" cellpadding="0" border="0">
- <thead id="scrollTrendThead">
- </thead>
- </table>
- </div>
- </div>
- <!--走势图浮动期号头部 end-->
|