⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calenderxprange.php

📁 FP2 CRM code+Mysql DB
💻 PHP
字号:
<?php
	require_once("HTML/QuickForm/element.php");
	
	class HTML_QuickForm_calenderxprange extends HTML_QuickForm_element
	{
		var $_value = null;
	
		function  HTML_QuickForm_calenderxprange($elementName=null, $elementLabel=null,$attributes=null)
		{
			HTML_QuickForm_element::HTML_QuickForm_element($elementName,$elementLabel, $attributes);
			$this->_persistantFreeze = true;
			$this->_type = 'calenderxprange';
		} //end constructor
		
		function setName($name)
		{
			$this->updateAttributes(array('name'=>$name));
		} //end func setName
		
	//--------------------------------------	
		function getName()
		{
			return $this->getAttribute('name');
		} //end func getName
		
	//---------------------------------------------
		function setValue($value)
		{
			$this->_value = $value;
		}
	//---------------------------------------------------------------	
		function getValue()
		{
			return $this->_value;
		}
		
		function toHtml()
		{
			if ($this->_flagFrozen) 
			{
				return $this->getFrozenHtml();
			} 
			else
			{
				$name = $this->getName();
				$output = '
				
				<table width=600>
					<tr>
						<td>
					Start Date: <input class="plain" name="dc1" value="" size="12" onFocus="this.blur()" readonly><a href="javascript:void(0)" onClick="if(self.gfPop)gfPop.fStartPop(document.demoform.dc1,document.demoform.dc2);return false;" HIDEFOCUS><img class="PopcalTrigger" align="absmiddle" src="DateRange/calbtn.gif" width="34" height="22" border="0" alt=""></a>
						</td>
						<td>
					End Date: <input class="plain" name="dc2" value="" size="12" onFocus="this.blur()" readonly><a href="javascript:void(0)" onClick="if(self.gfPop)gfPop.fEndPop(document.demoform.dc1,document.demoform.dc2);return false;" HIDEFOCUS><img class="PopcalTrigger" align="absmiddle" src="DateRange/calbtn.gif" width="34" height="22" border="0" alt=""></a>
						</td>
					</tr>
					</table>
				';
				return $output;
			}
			
		} //end func toHtml
		
		function getFrozenHtml()
		{
			return $this->_value;
		}
		
	}?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -