<?php
class Content_DatetimeView extends netsControl {
	public function Content_DatetimeView(){
		$this->netsControl();
	}
	public function Control($pColumn){
		$tmpControl=$pColumn['stcotName'].'Txt'.$pColumn['NameExtend'];
		$tmpIntroduct='';
		if(strlen($pColumn['stcoctUiIntroduct'])>0 && $pColumn['stcoctUiIntroduct']!='&nbsp;'){
			$tmpIntroduct='<div id="'.$tmpControl.'_Messagebox" class="ControlIntroduct">'.$pColumn['stcoctUiIntroduct'].'</div>';
		}else{
			$tmpIntroduct='<div id="'.$tmpControl.'_Messagebox" class="DHidden">'.$pColumn['stcoctUiIntroduct'].'</div>';
		}
		$tmpViewType='日视图';
		$tmpYearType=date('Y');
		$tmpMonthType=date('m');
		$tmpDayType=date('d');
		$tmpHourType=date('h');
?>
<!-- #<?php echo ($tmpControl); ?> -->
<!--S.<?php echo ($tmpControl); ?>-->
<!-- ### -->
<table class="DatetimeView_1" cellpadding="0" cellspacing="0"><tr>
<td class="DatetimeView_2">请选择年月：</td>
<td id="<?php echo($tmpControl); ?>_ViewType" class="DatetimeView_3"
	onmouseover="<?php echo($tmpControl); ?>_JS.showDropdown('<?php echo($tmpControl); ?>','_ViewType',0);"
	onmouseout="<?php echo($tmpControl); ?>_JS.showDropdown('<?php echo($tmpControl); ?>','_ViewType',1);"
	><ul id="<?php echo($tmpControl); ?>_ViewTypeBox" class="DHidden"><?php $tmpAR0=array('年视图','月视图','日视图','小时视图',); $Coun0=0; foreach($tmpAR0 as $Row0){ ?><li class="DatetimeView_6"><a onclick="<?php echo($tmpControl); ?>_JS.chooseDropdown('<?php echo($tmpControl); ?>','_ViewType','<?php echo($Row0); ?>');" href="#Here" class="Link1 <?php if($Row0==$tmpViewType){ ?>FRed1 FStrong<?php }else{ ?>FBlack3<?php } ?>"><?php echo($Row0); ?></a></li><?php $Coun0++; } ?><li class="DClear"></li></ul><a href="#Here" class="FBlack1"><?php echo($tmpViewType); ?></a></td>
<td id="<?php echo($tmpControl); ?>_ViewYear" class="DatetimeView_3"
	onmouseover="<?php echo($tmpControl); ?>_JS.showDropdown('<?php echo($tmpControl); ?>','_ViewYear',0);"
	onmouseout="<?php echo($tmpControl); ?>_JS.showDropdown('<?php echo($tmpControl); ?>','_ViewYear',1);"
	><ul id="<?php echo($tmpControl); ?>_ViewYearBox" class="DHidden"><?php $tmpINT=date('Y')-50; $Coun0=0; while($Coun0<100){ ?><li class="DatetimeView_6"><a onclick="<?php echo($tmpControl); ?>_JS.chooseDropdown('<?php echo($tmpControl); ?>','_ViewYear','<?php echo($tmpINT+$Coun0); ?>');" href="#Here" class="Link1 <?php if(($tmpINT+$Coun0)==$tmpYearType){ ?>FRed1 FStrong<?php }else{ ?>FBlack3<?php } ?>"><?php echo($tmpINT+$Coun0); ?>年</a></li><?php $Coun0++; } ?><li class="DClear"></li></ul><a href="#Here" class="FBlack1"><?php echo($tmpYearType); ?>年</a></td>
<td id="<?php echo($tmpControl); ?>_ViewMonth" class="DatetimeView_3"
	onmouseover="<?php echo($tmpControl); ?>_JS.showDropdown('<?php echo($tmpControl); ?>','_ViewMonth',0);"
	onmouseout="<?php echo($tmpControl); ?>_JS.showDropdown('<?php echo($tmpControl); ?>','_ViewMonth',1);"
	><ul id="<?php echo($tmpControl); ?>_ViewMonthBox" class="DHidden"><?php $Coun0=0; while($Coun0<12){ ?><li class="DatetimeView_6"><a onclick="<?php echo($tmpControl); ?>_JS.chooseDropdown('<?php echo($tmpControl); ?>','_ViewMonth','<?php echo($Coun0+1); ?>');" href="#Here" class="Link1 <?php if(($Coun0+1)==$tmpMonthType){ ?>FRed1 FStrong<?php }else{ ?>FBlack3<?php } ?>"><?php echo($Coun0+1); ?>月</a></li><?php $Coun0++; } ?><li class="DClear"></li></ul><a href="#Here" class="FBlack1"><?php echo($tmpMonthType); ?>月</a></td>
<td id="<?php echo($tmpControl); ?>_ViewDay" class="DatetimeView_3"
	onmouseover="<?php echo($tmpControl); ?>_JS.showDropdown('<?php echo($tmpControl); ?>','_ViewDay',0);"
	onmouseout="<?php echo($tmpControl); ?>_JS.showDropdown('<?php echo($tmpControl); ?>','_ViewDay',1);"
	><ul id="<?php echo($tmpControl); ?>_ViewDayBox" class="DHidden"><?php $Coun0=0; while($Coun0<31){ ?><li class="DatetimeView_6"><a onclick="<?php echo($tmpControl); ?>_JS.chooseDropdown('<?php echo($tmpControl); ?>','_ViewDay','<?php echo($Coun0+1); ?>');" href="#Here" class="Link1 <?php if(($Coun0+1)==$tmpDayType){ ?>FRed1 FStrong<?php }else{ ?>FBlack3<?php } ?>"><?php echo($Coun0+1); ?>日</a></li><?php $Coun0++; } ?><li class="DClear"></li></ul><a href="#Here" class="FBlack1"><?php echo($tmpDayType); ?>日</a></td>
<td id="<?php echo($tmpControl); ?>_ViewHour" class="DHidden"
	onmouseover="<?php echo($tmpControl); ?>_JS.showDropdown('<?php echo($tmpControl); ?>','_ViewHour',0);"
	onmouseout="<?php echo($tmpControl); ?>_JS.showDropdown('<?php echo($tmpControl); ?>','_ViewHour',1);"
	><ul id="<?php echo($tmpControl); ?>_ViewHourBox" class="DHidden"><?php $Coun0=0; while($Coun0<24){ ?><li class="DatetimeView_6"><a onclick="<?php echo($tmpControl); ?>_JS.chooseDropdown('<?php echo($tmpControl); ?>','_ViewHour','<?php echo($Coun0); ?>');" href="#Here" class="Link1 <?php if(($Coun0)==$tmpHourType){ ?>FRed1 FStrong<?php }else{ ?>FBlack3<?php } ?>"><?php echo($Coun0); ?>时</a></li><?php $Coun0++; } ?><li class="DClear"></li></ul><a href="#Here" class="FBlack1"><?php echo($tmpHourType); ?>时</a></td>
<td class="DatetimeView_3"><a href="#Here" onclick="<?php echo($tmpControl); ?>_JS.showBox('<?php echo($tmpControl); ?>');" class="FBlack3">- 收起日期选择</a></td>
</tr></table>
<input id="<?php echo($tmpControl); ?>_ViewTypeValue" name="<?php echo($tmpControl); ?>_ViewTypeValue" value="<?php echo($tmpViewType); ?>" type="hidden" />
<input id="<?php echo($tmpControl); ?>_ViewYearValue" name="<?php echo($tmpControl); ?>_ViewYearValue" value="<?php echo($tmpYearType); ?>" type="hidden" />
<input id="<?php echo($tmpControl); ?>_ViewMonthValue" name="<?php echo($tmpControl); ?>_ViewMonthValue" value="<?php echo($tmpMonthType); ?>" type="hidden" />
<input id="<?php echo($tmpControl); ?>_ViewDayValue" name="<?php echo($tmpControl); ?>_ViewDayValue" value="<?php echo($tmpDayType); ?>" type="hidden" />
<input id="<?php echo($tmpControl); ?>_ViewHourValue" name="<?php echo($tmpControl); ?>_ViewHourValue" value="<?php echo($tmpHourType); ?>" type="hidden" />
<!-- ### -->
<div class="DatetimeView_10"><ul id="<?php echo($tmpControl); ?>_Box" class="DatetimeView_11">

<li class="DClear"></li></ul></div>

<script type="text/javascript">
var <?php echo($tmpControl); ?>_JS=new DatetimeView();
<?php echo($tmpControl); ?>_JS.setDayView('<?php echo($tmpControl); ?>');
</script>
<?php echo ($tmpIntroduct); ?>
<!--sendRequest--><!--E.<?php echo ($tmpControl); ?>-->
<?php
	}
}
?>