📄 calendarxp.php
字号:
<?php
require_once("HTML/QuickForm/element.php");
class HTML_QuickForm_calendarxp extends HTML_QuickForm_element
{
var $_value = null;
function HTML_QuickForm_calendarxp($elementName=null, $elementLabel=null,$attributes=null)
{
HTML_QuickForm_element::HTML_QuickForm_element($elementName,$elementLabel, $attributes);
$this->_persistantFreeze = true;
$this->_type = 'calendarxp';
} //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 = '
<input name="'.$name.'" value="'.$this->_value.'" size="11" class="textbox">
<a href="javascript:void(0)"
onClick="if(self.gfPop)gfPop.fPopCalendar(document.frm.'.$name.');
return false;" HIDEFOCUS>
<img
class="PopcalTrigger"
align="absmiddle"
src="'.APP_WEB_ROOT.'/calendarxp/popcalender/calbtn.gif"
width="34"
height="22"
border="0"
alt="image Not Found">
</a>
';
return $output;
}
} //end func toHtml
function getFrozenHtml()
{
return $this->_value.' <img
class="PopcalTrigger"
align="absmiddle"
src="calendarxp/popcalender/calbtn.gif"
width="34"
height="22"
border="0"
alt="image Not Found">';
} //end func getFrozenHtml
}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -