@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux adweb87 2.6.32-754.el6.x86_64 #1 SMP Tue Jun 19 21:26:04 UTC 2018 x86_64
Current Path :
/
home
/
sanchung
/
public_html
/
cal
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/cal/schedule.php
<div id='sDetail' style='position:absolute; border:2 solid #EEEEEE; visibility:hidden; cursor:hand' onclick="this.style.visibility='hidden'"></div> <script src="/cal/ajax.js"></script> <script> function detail(num){ window.open('/cal/schedule_d.php?num='+num, 'SP','width=500,height=300,scrollbars=yes'); } </script> <? if(!$year) $year = date("Y"); if(!$month) $month = date("m"); if(strlen($month) == 1) $month = "0".$month; if($month == 1){ $pyear = $year - 1; $pmonth = 12; $nyear = $year; $nmonth = $month + 1; } else if($month == 12){ $pyear = $year; $pmonth = $month - 1; $nyear = $year + 1; $nmonth = 1; } else { $pyear = $year; $pmonth = $month - 1; $nyear = $year; $nmonth = $month + 1; } echo" <!-- <ul> <li>¡Ø ÀÏÁ¤µî·Ï : ³¯Â¥¸¦ Ŭ¸¯ÇÏ½Ã¸é µî·Ï ÇÒ ¼ö ÀÖ½À´Ï´Ù</li> <li>¡Ø ÀÏÁ¤¼öÁ¤/»èÁ¦ : µî·ÏµÈ ÀÏÁ¤À» Ŭ¸¯ÇÏ½Ã¸é ¼öÁ¤/»èÁ¦ ÇÒ ¼ö ÀÖ½À´Ï´Ù</li> </ul> <div style='margin:8px 0px; text-align:center;'> <a href='?amode=$amode&year=$pyear&month=$pmonth'><b>[ÀÌÀü´Þ]</b></a> <b style='font-size:16px'>$year. $month</b> <a href='?amode=$amode&year=$nyear&month=$nmonth'><b>[´ÙÀ½´Þ]</b></a> </div> --> "; ?> <br /> <table width="98%" border="0" cellpadding="0" cellspacing="0" align="center" class="padd-bot1"> <form name=form_cal method=get action="<?=$PHP_SELF?>"> <tr> <td width="10%"> <? echo " <select name='year' id='year'>"; for($k=2010 ; $k<=date("Y")+1; $k++){ echo"<option value='$k' "; if($k == $year) echo"selected"; echo">$k</option>"; } echo" </select>³â "; ?> </td> <td width="10%"> <? echo " <select name='month' id='month'> <option value='01' "; if($month == "01") echo"selected"; echo">01</option> <option value='02' "; if($month == "02") echo"selected"; echo">02</option> <option value='03' "; if($month == "03") echo"selected"; echo">03</option> <option value='04' "; if($month == "04") echo"selected"; echo">04</option> <option value='05' "; if($month == "05") echo"selected"; echo">05</option> <option value='06' "; if($month == "06") echo"selected"; echo">06</option> <option value='07' "; if($month == "07") echo"selected"; echo">07</option> <option value='08' "; if($month == "08") echo"selected"; echo">08</option> <option value='09' "; if($month == "09") echo"selected"; echo">09</option> <option value='10' "; if($month == "10") echo"selected"; echo">10</option> <option value='11' "; if($month == "11") echo"selected"; echo">11</option> <option value='12' "; if($month == "12") echo"selected"; echo">12</option> </select>¿ù "; ?> </td> <td width="5%"><input type=image src="/img/sub/btn_ok1.gif"></td> <td width="78%" class="padd-lf2"><img src="/img/sub/sub3_2_img.gif"></td> </tr> </form> </table> <table width="98%" border="0" cellpadding="0" cellspacing="0" id="ca_tb_sty1" align="center"> <tr> <td><img src="/img/sub/sun.gif"></td> <td><img src="/img/sub/mon.gif"></td> <td><img src="/img/sub/tue.gif"></td> <td><img src="/img/sub/wed.gif"></td> <td><img src="/img/sub/thu.gif"></td> <td><img src="/img/sub/fri.gif"></td> <td class="lin-r"><img src="/img/sub/sat.gif"></td> </tr> </table> <table width="98%" border="0" cellpadding="0" cellspacing="0" id="ca_tb_sty2" align="center"> <tr valign=top> <? $month_total = $lib->gettotalday($year, $month); $start_day = mktime(0, 0, 0, $month, 1, $year); $syoil = date("w", $start_day); $vday = 1; for($kk=0; $kk<7; $kk++){ if($kk < $syoil) echo"<td> </td>"; else { $data = ctdMake($year, $month, $vday); echo "<td "; if(($kk%6) == 0 && $kk != 0) echo " class=\"lin-r\" "; echo " style='padding:0 0 0 5px;'>$data</td>"; $vday++; } } echo" </tr>"; $trnum = ceil(($month_total - $vday + 1) / 7); for($j=0; $j<$trnum; $j++){ echo "<tr valign='top' "; echo ">"; for($kk=0; $kk<7; $kk++){ if($vday > $month_total){ echo"<td "; if(($kk%6) == 0 && $kk != 0) echo " class=\"lin-r\" "; echo "> </td>"; }else { $data = ctdMake($year, $month, $vday); echo "<td "; if(($kk%6) == 0 && $kk != 0) echo " class=\"lin-r\" "; echo " style='padding:0 0 0 5px;'>$data</td>"; } $vday++; } echo" </tr>"; } echo" </table>"; ?> <? function ctdMake($year, $month, $vday){ global $mysql, $lib; $day = ($vday < 10) ? "0".$vday : $vday; $sdate = $year.$month.$day; // $tdcolor = ($sdate == date("Ymd")) ? "bgcolor='#6699CC'" : ""; // $fcolor = ($sdate == date("Ymd")) ? "style='color:#FFFFFF'" : "style='color:$color'"; //$res = $mysql->res("adw_schedule", "*", "where sdate='$sdate' order by time asc", 1); $res = $mysql->res("adw_schedule", "*", "where sdate='$sdate'", 0); $cnt = $mysql->cnt($res); $html = " <dl> <dt><!-- <a href='?amode=schedule_form&year=$year&month=$month&day=$day' $fcolor> -->$day</a></dt> <dd>"; if($cnt) $html .= "<ul>"; while($row = $mysql->farray($res)){ $html .= " <li><!-- <a href='?amode=schedule_modify&year=$year&month=$month&day=$day&num=$row[num]' $fcolor> --><a href='#none' onclick='detail($row[num])'>-".$lib->string_cut($row[subject], 10)."</a></li>"; } if($cnt) $html .= "</ul>"; $html .= " </dd> </dl>"; return $html; } ?>