|
<? if ( $DT_PICKER ) {
if ( $BODY != "" ) {
$DTP_DISABLE = 0;
}
else {
$DTP_DISABLE = 1;
}
$Base = gregoriantojd(12,30,1899);
if ( $_POST['In28'] == "" ) {
$Target = gregoriantojd( date('m'), date('d'), date('Y') );
}
else {
$DatePart = explode( "/", $_POST['In28'] );
if ( strlen( $DatePart[0] ) == 4 ) {
$Target = gregoriantojd($DatePart[1],$DatePart[2],$DatePart[0]);
}
else {
$Target = gregoriantojd($DatePart[0],$DatePart[1],$DatePart[2]);
}
}
$Value = $Target - $Base;
?>
<OBJECT
<?= $BODY ?>
NAME=In28
CLASSID='CLSID:20DD1B9E-87C4-11D1-8BE3-0000F8754DA1'
style='width:190px;height:22px;'
codebase="http://activex.microsoft.com/controls/vb6/MSCOMCT2.CAB"
>
<PARAM NAME="CurrentDate" VALUE="<?= $Value ?>">
<PARAM NAME="Format" VALUE="3">
<PARAM NAME="CustomFormat" VALUE="yyyy年MM月dd日">
<PARAM NAME="Enabled" VALUE="<?= $DTP_DISABLE ?>">
</OBJECT>
<? } else { ?>
<INPUT
<?= $READONLY ?>
type=text
name=In28
value="<?= $_POST['In28'] ?>"
maxlength="10"
onKeydown='nextField("sname");'
> <SPAN style='color:silver'>(In28)</SPAN>
<? } ?>
| |