include "dbcon.inc";
?>
include "top.html";?>
$day=date('Y-m-d');
$sql=mysql_query("select * from popup where term1<='$day' and term2 >= '$day' order by num desc");
?>
$Y=date('Y');
$m=date('m');
$d=date('d');
$sql1=mysql_query("select * from schedule where year='$Y' and month='$m' and day='$d'");
if (mysql_num_rows($sql1)==0){
echo(" ¿À´ÃÀÇ Çà»ç ¾ø½À´Ï´Ù.
");
}else{
while ($s=mysql_fetch_array($sql1)){
$title = stripslashes($s[title]);
$ttitle1=$title;
$titleLen=20;
if (strLen($title) >= $titleLen){
$title=substr($title,0,$titleLen-3)."...";
}
echo("¡¤".$title." ");
}
}
?>
$sql2=mysql_query("select * from menu where year='$Y' and month='$m' and day='$d'");
if (mysql_num_rows($sql2)==0){
echo(" ¿À´ÃÀÇ ¸Þ´º ¾ø½À´Ï´Ù.
//±ÝÁÖÀÇ Ãßõµµ¼
$sql6=mysql_query("select * from book order by num desc limit 0, 3");
if (mysql_num_rows($sql6)==0){
echo("
Ãßõµµ¼°¡ ¾ø½À´Ï´Ù.
");
}else{
while ($bk=mysql_fetch_array($sql6)){
$title = stripslashes($bk[title]);
$ttitle1=$title;
$titleLen=30;
if (strLen($title) >= $titleLen){
$title=substr($title,0,$titleLen-3)."...";
}
?>
¢Æ =$title?>
}
}?>
//ÀÌ´ÞÀÇ Àι°
$sql7=mysql_query("select * from aperson order by num desc limit 0, 3");
if (mysql_num_rows($sql7)==0){
echo("
ÀÌ´ÞÀÇ Àι°ÀÌ ¾ø½À´Ï´Ù.
");
}else{
while ($per=mysql_fetch_array($sql7)){
$title = stripslashes($per[title]);
$ttitle1=$title;
$titleLen=30;
if (strLen($title) >= $titleLen){
$title=substr($title,0,$titleLen-3)."...";
}
?>
¢Æ =$title?>
}
}?>
$sql8=mysql_query("select c_kname,c_ename,hit from c_group where hit!='0' and c_ename like '$sinf[s_year]%' order by hit desc limit 0,3");
if (mysql_num_rows($sql8)==0){
echo("
$sql9=mysql_query("select c_kname,c_ename,hit from h_group where hit!='0' and c_position='1' order by hit desc limit 0,3");
if (mysql_num_rows($sql9)==0){
echo("