"; include ($annpath."conf/defconf.inc.php"); if (!isset($annpath) && isset($nuke_dir)) { include("$nuke_dir/mainfile.php"); include("$nuke_dir/header.php"); include ($annpath."conf/config.inc.php"); } include ($annpath."inc/init.inc.php"); include ($annpath."inc/backgroup.inc.php"); include ($annpath."inc/realip.inc.php"); $nowtime = date("Y-m-d H:i:s"); $nowdate = explode(" ",$nowtime); $nowdate1 = explode("-",$nowdate[0]); $nowdate2 = explode(":",$nowdate[1]); $nownew = mktime($nowdate2[0], $nowdate2[1], $nowdate2[2], $nowdate1[1], $nowdate1[2], $nowdate1[0]) - 86400 * $new_day; $mytime = date("Y-m-d H:i:s", (time() - $ezshowday * 86400)); $titleline1 = "#FFFFC8"; /* 主頁光棒的顏色 */ $titleline2 = "#FFFFC8"; /* 主頁光棒的顏色 */ $titlerow1 = "#FFFFFF"; /* 主頁公告表單單數列顏色 */ $titlerow2 = "#FFFFFF"; /* 主頁公告表單偶數列顏色 */ $type1 = "#000080"; /* 普通 */ $type2 = "red"; /* 重要 */ $type3 = "red"; /* 急件 */ $mypartid = $_GET['mypartid']; if ($ez_typefirst == "yes") $typetmp = "titletb.type desc,"; if (!empty($mypartid)) { $partidtmp = substr($mypartid, 0, 8); $partidtmp = "and partid='$partidtmp'"; } $link = "select * from titletb where (overtime > '$nowtime' and posttime > '$mytime' ". $partidtmp .") order by ".$typetmp." posttime desc"; $sql_act = "number"; include ($annpath."inc/sql.inc.php"); $mybg = bg($titletable); $mybg1 = bg($titlerow); if ($usenuke != 1) $tmpss = "[按我進入 完整功能/管理模式]"; echo " "; //echo ""; echo "
 標  題 ".$tmpss."
單位日期
"; echo ""; $ii = 0; //for ($i = 0; $i < $number; $i++) for ($i = 0; $i < 12; $i++) { $sql_act = "row"; include ($annpath."inc/sql.inc.php"); $tid = $row[tid]; $partname = $row[partname]; $subject = stripslashes($row[subject]); $posttime = $row[posttime]; $type = $row[type]; $mylocal = $row[local]; $mydate = explode(" ",$posttime); $mydate1 = explode("-",$mydate[0]); $mydate2 = explode(":",$mydate[1]); include ("inc/type.inc.php"); $localstr = "[".$ctype."]"; $issee = "ok"; if ($mylocal == "yes") { $localstr = "*" . $localstr; $issee = "no"; $islocal = strtok($local, " "); if ($out_see == "yes") $issee = "ok"; while ($islocal && $issee == "no") { $tmp_end = substr($islocal, -1); $tmp_ip = explode(".", $islocal); if (strstr($tmp_ip[3], "-")) { $tmp_ipc = explode("-", $tmp_ip[3]); $tmp_ipk = $tmp_ip[0].".".$tmp_ip[1].".".$tmp_ip[2]."."; if (eregi("^" . $tmp_ipk, $myip)) { $tmp_ipf = explode(".", $myip); if ($tmp_ipc[0] <= $tmp_ipf[3] && $tmp_ipc[1] >= $tmp_ipf[3]) $issee = "ok"; } } else if (strstr($tmp_end, ".")) { if (eregi("^" . $islocal, $myip)) $issee = "ok"; } else { if (strstr($islocal, $myip)) $issee = "ok"; } $islocal = strtok(" "); } } if ($ii % 2) { $titleline = $titleline2; $mybg = bg($titlerow2); } else { $titleline = $titleline1; $mybg = bg($titlerow1); } if (($type * 10) % 10 == 1 && $issee == "ok") $ii++; $new = ""; $mynew = mktime($mydate2[0], $mydate2[1], $mydate2[2], $mydate1[1], $mydate1[2], $mydate1[0]); $mydate1[0] = $mydate1[0] - 1911; if ($mynew >= $nownew) $new = " "; $tmpa = "$myhost/show.php?mytid=$tid&mypartid=$mypartid&noday=$noday&nopart=$nopart&show=$show&myday=$myday&noyear=$noyear&nomonth=$nomonth&myyear=$myyear&mymonth=$mymonth&usenuke=$usenuke"; if ($usenuke == 1) $tmpb = ""; else $tmpb = ""; $tmpc = " "; if ($groupisc == "yes") $gs = "center"; else $gs = "left"; if ($hitsisc == "yes") $gt = "center"; else $gt = "right"; if (($type * 10) % 10 == 1 && $issee == "ok") { $ezhave = 1; //echo "".$tmpb."".$tmpc.""; echo "".$tmpb."".$tmpc.""; } } if ($ezhave != 1) echo ""; echo "
更多公告
" .$mydate1[1]."/".$mydate1[2]. "".$partname."" .$tmpb.$localstr.$subject.$tmpc.$new. "
" .$mydate1[1]."/".$mydate1[2]. "" .$tmpb.$localstr.$subject.$tmpc.$new. "
目前沒有重點公告 [按我看詳細公告]
"; #include ($annpath."inc/ann.inc.php"); ?>