You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

512 lines
22 KiB

4 days ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. <link href="~/Content/css/framework-font.css" rel="stylesheet" />
  6. <link href="~/Content/css/framework-ui.css" rel="stylesheet" />
  7. <script src="~/Content/js/jquery/jquery-2.1.1.min.js"></script>
  8. <link href="~/Content/css/framework-theme.css" rel="stylesheet" />
  9. <link href="~/Content/js/bootstrap/bootstrap.min.css" rel="stylesheet" />
  10. <link href="~/Content/css/framework-theme.css" rel="stylesheet" />
  11. <script src="~/Content/js/charts/Chart.js"></script>
  12. <style>
  13. .item {
  14. opacity: 0;
  15. transition: opacity 1s ease .2s; /* 添加过渡效果 */
  16. }
  17. .item:first-child {
  18. opacity: 1; /* 第一张图片显示 */
  19. }
  20. </style>
  21. <script>
  22. $(function () {
  23. GetSalaryChart();
  24. GetLeaveChart();
  25. //var speed = 10//速度数值越大速度越慢
  26. //var demo2 = document.getElementById("demo2");
  27. //var demo = document.getElementById("demo");
  28. //var demo1 = document.getElementById("demo1");
  29. //demo2.innerHTML = demo1.innerHTML
  30. //function Marquee() {
  31. // if (demo2.offsetWidth - demo.scrollLeft <= 0)
  32. // demo.scrollLeft -= demo1.offsetWidth
  33. // else {
  34. // demo.scrollLeft++
  35. // }
  36. //}
  37. //var MyMar = setInterval(Marquee, speed)
  38. //demo.onmouseover = function () { clearInterval(MyMar) }
  39. //demo.onmouseout = function () { MyMar = setInterval(Marquee, speed) }
  40. });
  41. function GetSalaryChart() {
  42. var randomScalingFactor = function () { return Math.round(Math.random() * 100) };
  43. var lineChartData = {
  44. labels: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "8月", "10月", "11月", "12月"],
  45. datasets: [
  46. {
  47. label: "My First dataset",
  48. fillColor: "rgba(220,220,220,0.2)",
  49. strokeColor: "rgba(220,220,220,1)",
  50. pointColor: "rgba(220,220,220,1)",
  51. pointStrokeColor: "#fff",
  52. pointHighlightFill: "#fff",
  53. pointHighlightStroke: "rgba(220,220,220,1)",
  54. data: [randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor()]
  55. },
  56. {
  57. label: "My Second dataset",
  58. fillColor: "rgba(151,187,205,0.2)",
  59. strokeColor: "rgba(151,187,205,1)",
  60. pointColor: "rgba(151,187,205,1)",
  61. pointStrokeColor: "#fff",
  62. pointHighlightFill: "#fff",
  63. pointHighlightStroke: "rgba(151,187,205,1)",
  64. data: [randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor()]
  65. }
  66. ]
  67. }
  68. //var ctx = document.getElementById("salarychart").getContext("2d");
  69. //window.myLine = new Chart(ctx).Line(lineChartData, {
  70. // responsive: false,
  71. // bezierCurve: false
  72. //});
  73. }
  74. function GetLeaveChart() {
  75. var randomScalingFactor = function () { return Math.round(Math.random() * 100) };
  76. var a_value = randomScalingFactor();
  77. var b_value = randomScalingFactor();
  78. var c_value = randomScalingFactor();
  79. var d_value = randomScalingFactor();
  80. var doughnutData = [
  81. {
  82. value: a_value,
  83. color: "#F7464A",
  84. highlight: "#FF5A5E",
  85. label: "事假"
  86. },
  87. {
  88. value: b_value,
  89. color: "#46BFBD",
  90. highlight: "#5AD3D1",
  91. label: "病假"
  92. },
  93. {
  94. value: c_value,
  95. color: "#FDB45C",
  96. highlight: "#FFC870",
  97. label: "公休假"
  98. },
  99. {
  100. value: d_value,
  101. color: "#949FB1",
  102. highlight: "#A8B3C5",
  103. label: "调休假"
  104. }
  105. ];
  106. //var ctx = document.getElementById("leavechart").getContext("2d");
  107. //window.myDoughnut = new Chart(ctx).Doughnut(doughnutData, { responsive: false });
  108. //$("#a_value").html(a_value + "小时");
  109. //$("#b_value").html(b_value + "小时");
  110. //$("#c_value").html(c_value + "小时");
  111. //$("#d_value").html(d_value + "小时");
  112. }
  113. </script>
  114. </head>
  115. <body>
  116. <div id="areascontent">
  117. <div class="rows" style="margin-bottom: 1%; border: 1px solid #e6e6e6; overflow: hidden; padding-left: 1px;">
  118. <div class="panel panel-default">
  119. <div class="panel-heading">
  120. <i class="fa fa-line-chart fa-lg" style="padding-right: 5px;"></i>欢迎页面
  121. <div style="float: right; position: relative; top: -4px; right: 0px;">
  122. <iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=1" width="400" height="35" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
  123. </div>
  124. </div>
  125. @*<div class="panel-body">
  126. <div class="dashboard-stats">
  127. <div class="dashboard-stats-item" style="background-color: #fc8675;">
  128. <h2 class="m-top-none">&nbsp;</h2>
  129. <h5>&nbsp;</h5>
  130. <div class="stat-icon">
  131. <i class="fa fa-user fa-3x"></i>
  132. </div>
  133. </div>
  134. </div>
  135. <div class="dashboard-stats">
  136. <div class="dashboard-stats-item" style="background-color: #6bafbd;">
  137. <h2 class="m-top-none">&nbsp;</h2>
  138. <h5>&nbsp;</h5>
  139. <div class="stat-icon">
  140. <i class="fa fa-hdd-o fa-3x"></i>
  141. </div>
  142. </div>
  143. </div>
  144. <div class="dashboard-stats">
  145. <div class="dashboard-stats-item" style="background-color: #f3ce85;">
  146. <h2 class="m-top-none">&nbsp;</h2>
  147. <h5>&nbsp;</h5>
  148. <div class="stat-icon">
  149. <i class="fa fa-shopping-cart fa-3x"></i>
  150. </div>
  151. </div>
  152. </div>
  153. <div class="dashboard-stats">
  154. <div class="dashboard-stats-item" style="background-color: #949FB1;">
  155. <h2 class="m-top-none">&nbsp;</h2>
  156. <h5>&nbsp;</h5>
  157. <div class="stat-icon">
  158. <i class="fa fa-gavel fa-3x"></i>
  159. </div>
  160. </div>
  161. </div>
  162. <div class="dashboard-stats">
  163. <div class="dashboard-stats-item" style="background-color: #65cea7; margin-right: 0px;">
  164. <h2 class="m-top-none">&nbsp;</h2>
  165. <h5>&nbsp;</h5>
  166. <div class="stat-icon">
  167. <i class="fa fa-truck fa-3x"></i>
  168. </div>
  169. </div>
  170. </div>
  171. </div>*@
  172. </div>
  173. </div>
  174. <div class="banner">
  175. <div class="warp">
  176. @*<div class="item"><img src="~/Content/img/banner1.jpg" alt=""></div>
  177. <div class="item"><img src="~/Content/img/2.png" alt=""></div>
  178. <div class="item"><img src="~/Content/img/3.png" alt=""></div>
  179. <div class="item"><img src="~/Content/img/Index3.jpg" alt=""></div>*@
  180. <div class="item"><img src="~/Content/img/5.png" alt=""></div>
  181. <div class="item"><img src="~/Content/img/6.png" alt=""></div>
  182. <div class="item"><img src="~/Content/img/7.png" alt=""></div>
  183. <div class="item"><img src="~/Content/img/8.png" alt=""></div>
  184. </div>
  185. <div class="div1">
  186. <
  187. </div> <div class="div2 ">
  188. >
  189. </div>
  190. <div class="pagenation">
  191. <div id="pagenation-item0"></div>
  192. <div id="pagenation-item1"></div>
  193. <div id="pagenation-item2"></div>
  194. <div id="pagenation-item3"></div>
  195. </div>
  196. </div>
  197. @*<div class="rows" style="overflow: hidden;">
  198. <div style="float: left; width: 34%; margin-right: 1%;">
  199. <div style="height: 265px; border: 1px solid #e6e6e6; background-color: #fff;">
  200. <div class="panel panel-default">
  201. <div class="panel-heading"><i class="fa fa-thumbs-o-up fa-lg" style="padding-right: 5px;"></i>最新签约</div>
  202. <div class="panel-body">
  203. <ul>
  204. <li><a href="#">南京森鹿皮件服饰有限公司</a><span class="time">2016-07-21</span></li>
  205. <li><a href="#">曲靖市绿能燃气运输有限公司</a><span class="time">2016-07-20</span></li>
  206. <li><a href="#">青海航天信息有限公司</a><span class="time">2016-07-19</span></li>
  207. <li><a href="#">吉林省蔬菜花卉科学研究院</a><span class="time">2016-07-17</span></li>
  208. <li><a href="#">青海省广播电视信息网络股份有限公司</a><span class="time">2016-07-17</span></li>
  209. <li><a href="#">国营长空精密机械制造公司</a><span class="time">2016-07-13</span></li>
  210. <li><a href="#">广东友元国土信息工程有限公司</a><span class="time">2016-07-12</span></li>
  211. <li><a href="#">广东友元国土信息工程有限公司</a><span class="time">2016-07-12</span></li>
  212. </ul>
  213. </div>
  214. </div>
  215. </div>
  216. </div>
  217. <div style="float: left; width: 34%; margin-right: 1%;">
  218. <div style="height: 265px; border: 1px solid #e6e6e6; background-color: #fff;">
  219. <div class="panel panel-default">
  220. <div class="panel-heading"><i class="fa fa-rss fa-lg" style="padding-right: 5px;"></i>通知公告</div>
  221. <div class="panel-body">
  222. <ul>
  223. <li><a href="#">【通知】新版员工守则,即日执行</a><span class="time">2016-07-21</span></li>
  224. <li><a href="#">【公告】OA办公使用指南</a><span class="time">2016-07-21</span></li>
  225. <li><a href="#">【公告】劳动节集体出游指南</a><span class="time">2016-07-21</span></li>
  226. <li><a href="#">【通知】2016年G20财长和央行行</a><span class="time">2016-07-21</span></li>
  227. <li><a href="#">【通知】2016年G20财长和央行行</a><span class="time">2016-07-21</span></li>
  228. <li><a href="#">【通知】品牌价值的最佳选择</a><span class="time">2016-07-21</span></li>
  229. <li><a href="#">【公告】采购商城全新升级自营业正品</a><span class="time">2016-07-21</span></li>
  230. <li><a href="#">【公告】采购商城全新升级自营业正品</a><span class="time">2016-07-21</span></li>
  231. </ul>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. <div style="float: right; width: 30%;">
  237. <div style="height: 265px; border: 1px solid #e6e6e6; background-color: #fff;">
  238. <div class="panel panel-default">
  239. <div class="panel-heading"><i class="fa fa-send fa-lg" style="padding-right: 5px;"></i>企业文化</div>
  240. <div class="panel-body">
  241. <ul>
  242. <li><a href="#">创新企业党建思想政治工作</a><span class="time">2016-07-02</span></li>
  243. <li><a href="#">现代国有企业道德体系初构</a><span class="time">2016-06-18</span></li>
  244. <li><a href="#">国有企业文化问题根源及文化重塑任务分析</a><span class="time">2016-06-26</span></li>
  245. <li><a href="#">国有企业文化建设必须突出员工文化</a><span class="time">2016-04-20</span></li>
  246. <li><a href="#">加强企业公民建设 推进企业和谐发展</a><span class="time">2016-03-08</span></li>
  247. <li><a href="#">不断提升大庆精神 实现企业持续发展</a><span class="time">2016-02-22</span></li>
  248. <li><a href="#">科学发展作指导 人水和谐路更宽</a><span class="time">2016-02-15</span></li>
  249. <li><a href="#">科学发展作指导 人水和谐路更宽</a><span class="time">2016-02-15</span></li>
  250. </ul>
  251. </div>
  252. </div>
  253. </div>
  254. </div>
  255. </div>*@
  256. </div>
  257. <script>
  258. var index = 0; //定义初始下标
  259. var banner = document.getElementsByClassName("banner")[0];
  260. var itemList = document.getElementsByClassName("item");
  261. var pagenationList = document.querySelectorAll(".pagenation>div");
  262. var pagenation = document.querySelector(".pagenation");
  263. itemList[0].style.opacity = 1;
  264. pagenationList[0].style.background = "blue" //初始第一张图对应的小圆点的颜色为蓝色
  265. var up = document.getElementsByClassName("div1")[0];
  266. var next = document.getElementsByClassName("div2")[0];
  267. //下一张图片(封装方便下面自动播放定时器调用)
  268. function nextFn() {
  269. index = index >= itemList.length - 1 ? 0 : ++index; //判断点击到了最后一张图片再次点击返回到第一张图
  270. for (var i = 0; i < itemList.length; i++) {
  271. itemList[i].style.opacity = 0; //图片透明度为0图片隐藏
  272. pagenationList[i].style.background = "white " //图片没显现小圆点的颜色为白色
  273. }
  274. itemList[index].style.transition = "opacity 1s ease .2s"
  275. itemList[index].style.opacity = 1; //图片透明度为1图片显现
  276. pagenationList[index].style.background = "blue" //图片显现小圆点的颜色为蓝色
  277. }
  278. next.onclick = nextFn; //下一张(点击事件)点击切换下一张图片
  279. up.onclick = function () { //上一张(点击事件)点击切换上一张图片
  280. index = index <= 0 ? itemList.length - 1 : --index; //判断点击到了第一张图片再次点击返回到最后一张图
  281. for (var i = 0; i < itemList.length; i++) {
  282. itemList[i].style.opacity = 0;
  283. pagenationList[i].style.background = "white"
  284. }
  285. itemList[index].style.transition = "opacity 1s ease .2s" //增加过渡效果
  286. itemList[index].style.opacity = 1;
  287. pagenationList[index].style.background = "blue"
  288. }
  289. //设置定时器,自动向下播放图片
  290. var t1 = setInterval(nextFn, 7000)
  291. banner.onmouseover = function () {
  292. clearInterval(t1);
  293. }
  294. banner.onmouseout = function () {
  295. t1 = setInterval(nextFn, 7000)
  296. }
  297. // 事件委托
  298. pagenation.onclick = function (event) {
  299. event = window.event || event
  300. console.log(event);
  301. if (event.target.className == "pagenation") {
  302. console.log("点击的是父元素");
  303. } else {
  304. var id = event.target.id;
  305. var photoIndex = null;
  306. for (var i = 0; i < pagenationList.length; i++) {
  307. pagenationList[i].style.background = "white"
  308. if (id.indexOf(i) >= 0) {
  309. photoIndex = i;
  310. }
  311. }
  312. event.target.style.background = "blue"
  313. index = photoIndex; // 将小圆点对应的下标与图片下标对应
  314. for (var i = 0; i < itemList.length; i++) {
  315. itemList[i].style.opacity = 0;
  316. }
  317. itemList[index].style.transition = "opacity 1s ease .2s"
  318. itemList[photoIndex].style.opacity = 1;
  319. }
  320. }
  321. </script>
  322. <style>
  323. #copyrightcontent {
  324. height: 30px;
  325. line-height: 29px;
  326. overflow: hidden;
  327. position: absolute;
  328. top: 100%;
  329. margin-top: -30px;
  330. width: 100%;
  331. background-color: #fff;
  332. border: 1px solid #e6e6e6;
  333. padding-left: 10px;
  334. padding-right: 10px;
  335. }
  336. .dashboard-stats {
  337. float: left;
  338. width: 20%;
  339. }
  340. .dashboard-stats-item {
  341. position: relative;
  342. overflow: hidden;
  343. color: #fff;
  344. cursor: pointer;
  345. height: 105px;
  346. margin-right: 25px;
  347. margin-bottom: 10px;
  348. padding: 20px 20px;
  349. }
  350. .dashboard-stats-item .m-top-none {
  351. margin-top: 2px;
  352. }
  353. .dashboard-stats-item h2 {
  354. font-size: 35px;
  355. font-family: inherit;
  356. line-height: 1.1;
  357. font-weight: 500;
  358. }
  359. .dashboard-stats-item h5 {
  360. font-size: 14px;
  361. font-family: inherit;
  362. margin-top: 3px;
  363. line-height: 1.1;
  364. }
  365. .dashboard-stats-item .stat-icon {
  366. position: absolute;
  367. top: 10px;
  368. right: 10px;
  369. font-size: 30px;
  370. opacity: .3;
  371. }
  372. .dashboard-stats i.fa.stats-icon {
  373. width: 50px;
  374. padding: 20px;
  375. font-size: 50px;
  376. text-align: center;
  377. color: #fff;
  378. height: 50px;
  379. border-radius: 10px;
  380. }
  381. .panel-default {
  382. border: none;
  383. border-radius: 0px;
  384. margin-bottom: 0px;
  385. box-shadow: none;
  386. -webkit-box-shadow: none;
  387. }
  388. .panel-default > .panel-heading {
  389. color: #1281c1;
  390. background-color: #fff;
  391. border-color: #e6e6e6;
  392. padding: 10px 10px;
  393. }
  394. .panel-default > .panel-body {
  395. padding: 10px;
  396. padding-bottom: 0px;
  397. }
  398. .panel-default > .panel-body ul {
  399. overflow: hidden;
  400. padding: 0;
  401. margin: 0px;
  402. margin-top: -5px;
  403. }
  404. .panel-default > .panel-body ul li {
  405. line-height: 27px;
  406. list-style-type: none;
  407. white-space: nowrap;
  408. text-overflow: ellipsis;
  409. }
  410. .panel-default > .panel-body ul li .time {
  411. color: #a1a1a1;
  412. float: right;
  413. padding-right: 5px;
  414. }
  415. .banner {
  416. width: 95%;
  417. height: 500px;
  418. /*position: relative;*/
  419. /* border: 1px solid red; */
  420. /*margin: 100px auto;*/
  421. }
  422. .banner .wrap {
  423. width: 100%;
  424. }
  425. .banner .wrap .item {
  426. width: 100%;
  427. }
  428. .item img {
  429. width: 100%;
  430. height: 85%;
  431. vertical-align: top;
  432. position: absolute;
  433. }
  434. .div1 {
  435. position: absolute;
  436. left: 0;
  437. top: 50%;
  438. transform: translatey(-50%);
  439. cursor: pointer;
  440. width: 41px;
  441. height: 69px;
  442. font-size: 30px;
  443. line-height: 70px;
  444. text-align: center;
  445. color: #D6D8D4;
  446. background-color: rgba(0, 0, 0, 0.3);
  447. }
  448. .div2 {
  449. position: absolute;
  450. right: 0;
  451. top: 50%;
  452. transform: translatey(-50%);
  453. cursor: pointer;
  454. width: 41px;
  455. height: 69px;
  456. font-size: 30px;
  457. line-height: 70px;
  458. text-align: center;
  459. color: #D6D8D4;
  460. background-color: rgba(0, 0, 0, 0.3);
  461. }
  462. .pagenation {
  463. position: absolute;
  464. /* border: 1px solid red; */
  465. left: 50%;
  466. transform: translateX(-50%);
  467. display: flex;
  468. bottom: 40px;
  469. }
  470. .pagenation > div {
  471. width: 10px;
  472. height: 10px;
  473. border-radius: 50%;
  474. background-color: white;
  475. margin-right: 10px;
  476. cursor: pointer;
  477. }
  478. .pagenation > div:last-child {
  479. margin-right: 0;
  480. }
  481. </style>
  482. </body>
  483. </html>