วันจันทร์ที่ 18 มกราคม พ.ศ. 2553

ส่งงานค่ะ

$thai_month_arr=array(
"0"=>"",
"1"=>"มกราคม",
"2"=>"กุมภาพันธ์",
"3"=>"มีนาคม",
"4"=>"เมษายน",
"5"=>"พฤษภาคม",
"6"=>"มิถุนายน",
"7"=>"กรกฎาคม",
"8"=>"สิงหาคม",
"9"=>"กันยายน",
"10"=>"ตุลาคม",
"11"=>"พฤศจิกายน",
"12"=>"ธันวาคม"
);
//$now_month="2008-11-01";
$now_month=date("Y-m-01");
$mk_time=strtotime($now_month);
$day_no=date("t",$mk_time);
$wan_no=date("w",$mk_time);
$box_day=$day_no+$wan_no;
$rows_week=ceil($box_day/7);
$total_box=$rows_week*7;
function get_day($no_day,$wan_no,$day_no){
$wan_tee=$no_day-$wan_no;
if($wan_tee<=0){
$wan_tee="__";
return $wan_tee;
}else{
if($wan_tee<=$day_no){
return str_pad($wan_tee,2,"0",STR_PAD_LEFT);
}else{
return "__";
}
}
}
?>

   


  อา   จ    อ    พ   พฤ   ศ    ส  


"; }?>

n"; }?>





ตัวอย่าง
พฤศจิกายน 2551
อา จ อ พ พฤ ศ ส
__ __ __ __ __ __ 01
02 03 04 05 06 07 08
09 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 __ __ __ __ __ __

ไม่มีความคิดเห็น:

แสดงความคิดเห็น