-
Notifications
You must be signed in to change notification settings - Fork 11
/
news.php
109 lines (106 loc) · 4.8 KB
/
news.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0055)?do=meg -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?php
include "sql.php";
$p = 1;
if(!empty($_GET["p"])) $p = $_GET["p"];
?>
<title>卓越科技大學校園資訊系統</title>
<link href="./news_files/css.css" rel="stylesheet" type="text/css">
<script src="./news_files/jquery-1.9.1.min.js"></script>
<script src="./news_files/js.js"></script>
</head>
<body>
<div id="cover" style="display:none; ">
<div id="coverr">
<a style="position:absolute; right:3px; top:4px; cursor:pointer; z-index:9999;" onclick="cl('#cover')">X</a>
<div id="cvr" style="position:absolute; width:99%; height:100%; margin:auto; z-index:9898;"></div>
</div>
</div>
<iframe style="display:none;" name="back" id="back"></iframe>
<div id="main">
<a title="<?=$title_text?>" href="index.php"><div class="ti" style="background:url('<?=$title?>'); background-size:cover;"></div><!--標題--></a>
<div id="ms">
<div id="lf" style="float:left;">
<div id="menuput" class="dbor">
<!--主選單放此-->
<span class="t botli">主選單區</span>
<?=$menu?>
</div>
<div class="dbor" style="margin:3px; width:95%; height:20%; line-height:100px;">
<span class="t">進站總人數 :
<?=$total?> </span>
</div>
</div>
<div class="di" style="height:540px; border:#999 1px solid; width:53.2%; margin:2px 0px 0px 0px; float:left; position:relative; left:20px;">
<marquee scrolldelay="120" direction="left" style="position:absolute; width:100%; height:40px;"><?=$ad?>
</marquee>
<div style="height:32px; display:block;"></div>
<!--正中央-->
<div style="text-align:center;">
<ol class="ssaa" style="list-style-type:decimal;" start="<?=($p*5-4)?>">
<?php
$sql = page("news", $p, 5, 1);
$result = All($sql);
foreach($result as $row)
{
$part = mb_substr($row["text"], 0, 20, "utf8");
?>
<li class="sswww"><?=$part?><span class="all" style="display:none"><?=$row["text"]?>?</span></li>
<?php
}
echo pagelink("news", $p, 5, 1, "");
?>
</ol>
</div>
</div>
<div id="alt" style="position: absolute; width: 350px; min-height: 100px; word-break:break-all; text-align:justify; background-color: rgb(255, 255, 204); top: 50px; left: 400px; z-index: 99; display: none; padding: 5px; border: 3px double rgb(255, 153, 0); background-position: initial initial; background-repeat: initial initial;"></div>
<script>
$(".sswww").hover(
function ()
{
$("#alt").html(""+$(this).children(".all").html()+"").css({"top":$(this).offset().top-50})
$("#alt").show()
}
)
$(".sswww").mouseout(
function()
{
$("#alt").hide()
}
)
</script>
<div class="di di ad" style="height:540px; width:23%; padding:0px; margin-left:22px; float:left; ">
<!--右邊-->
<button style="width:100%; margin-left:auto; margin-right:auto; margin-top:2px; height:50px;" onclick="lo('<?=$btnh?>')"><?=$btn?></button>
<div style="width:89%; height:480px;" class="dbor">
<span class="t botli">校園映象區</span>
<?=$image?>
<script>
var nowpage=0,num=<?=$inum?>;
function pp(x)
{
var s,t;
if(x==1&&nowpage-1>=0)
{nowpage--;}
if(x==2&&(nowpage+1)<=num-3)
{nowpage++;}
$(".im").hide()
for(s=0;s<=2;s++)
{
t=s*1+nowpage*1;
$("#ssaa"+t).show()
}
}
pp(1)
</script>
</div>
</div>
</div>
<div style="clear:both;"></div>
<div style="width:1024px; left:0px; position:relative; background:#FC3; margin-top:4px; height:123px; display:block;">
<span class="t" style="line-height:123px;"><?=$bottom?></span>
</div>
</div>
</body></html>