include "left.html";?> |
 |
 |
|
 |
 |
$sql=mysql_query("select * from c_info where c_no='$c_no'");
$cm=mysql_fetch_array($sql);
if ($cm[c_mdesign]!=""){
$c_mdesign = stripslashes($cm[c_mdesign]);
$c_mdesign = ereg_replace(">",">",$c_mdesign);
$c_mdesign = ereg_replace("<","<",$c_mdesign);
// $c_mdesign = ereg_replace(chr(13)," ",$c_mdesign);
echo($c_mdesign);
}else{
?>
}?>
|
=$cm[c_precepts]?> |
|
|
 |
=substr($cm[c_ename],4,1)?>Çгâ =substr($cm[c_ename],5,2)?>¹Ý Çб޼Ұ³ ¹× =$cm[admin]?>¼±»ý´Ô Àλ縻 |
|
 |
$c_info=ereg_replace(chr(13)," ",$cm[c_info]);
$c_info=stripslashes($c_info);
echo($c_info);
?>
|
 |
|
}?>
|
|
include "../dbcon.inc";
$sql3=mysql_query("select * from tell order by num desc limit 0, 4");
?>
 |
|
while ($g=mysql_fetch_array($sql3)){
$title = stripslashes($g[title]);
$ttitle1=$title;
$titleLen=40;
if (strLen($title) >= $titleLen){
$title=substr($title,0,$titleLen-3)."...";
}
?>
=$title?> |
[=$g[writeday]?>] |
|
}
include "cdbcon.inc";
?>
|
function get_totaldays($year,$month) {
$date = 1;
while(checkdate($month,$date,$year)) {
$date++;
}
$date--;
return $date;
}
$_ctime = time();
if(!$year)$year = date("Y",$_ctime);
if(!$month)$month = date("n",$_ctime);
$next_year = $year;
$prev_year = $year;
$next_month = $month + 1;
$prev_month = $month - 1;
if($month == 12){
$next_year = $year + 1;
$next_month = 1;
}else if($month == 1){
$prev_year = $year - 1;
$prev_month = 12;
}
$date = 1;
while(checkdate($month,$date,$year)) {
$date++;
}
$date--;
$total_days = $date;
//----------------------------------- ÇØ´ç¿¬¿ùÀÇ ´Þ·ÂÀ» Ãâ·ÂÇÑ´Ù.
$first_day = date('w', mktime(0,0,0,$month,1,$year));
?>
$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){
?>
* ¿À´ÃÀÇÀÏÁ¤ *
|
µî·ÏµÈ ÀÏÁ¤ÀÌ ¾ø½À´Ï´Ù. |
|
}else{?>
}?>
ÀÏ |
¿ù |
È |
¼ö |
¸ñ |
±Ý |
Åä |
|
$col = 0;
for($i = 0; $i < $first_day; $i++) {
echo(" | \n");
$col++;
}
for($j = 1; $j <= $total_days; $j++) {
$bgc="#FCB3B3";
if($col == 6){$bgc="#FCB3B3";}
if($col == 0){$bgc="#FCB3B3";}
if (date('Y')==$year&&date('m')==$month&&date('d')==$j){
$bgc="#FFFEDC";
//$img=" ";
}
echo(" $img$j | \n");
$col++;
if($col == 7) {
echo(" \n");
if($j != $total_days) {
echo("\n");
}
$col = 0;
}
}
while($col > 0 && $col < 7) {
echo(" | \n");
$col++;
}
?>
|
|
$sql=mysql_query("select * from tell order by num desc limit 0, 4");?>
 |
|
while($res=mysql_fetch_array($sql)){
$title=stripslashes($res[title]);
$ttitle1=$title;
$ttitle1=ereg_replace("\"","'",$ttitle1);
$titleLen=38;
if (strLen($title) >= $titleLen){
$title=substr($title,0,$titleLen-3)."...";
}
?>
=$title?> |
[=$res[writeday]?>] |
|
}?>
|
|
|
 |
|
|