|
# 日付
$CUR_DATE = sprintf( "%02d%02d%02d", $_POST['Nen'], $_POST['Mm'], $i );
$OPTION = "onClick='parent.document.all.item(";
$OPTION .= Dd("TargetDate");
$OPTION .= ").value=";
$OPTION .= Dd( $CUR_DATE );
$OPTION .= "'";
$LINK = Alink( "#", $i, $OPTION );
switch( $CUR_DAY ) {
# 日曜
case 0:
$CAL .= Td( $i, "class=DAY_SUN" );
break;
# 土曜
case 6:
$CAL .= Td( $LINK, "class=DAY_SAT" );
break;
# 通常
default:
$CAL .= Td( $LINK, "class=DAY_NORMAL" );
break;
}
| |