本文整理匯總了PHP中FormHelper::textbox方法的典型用法代碼示例。如果您正苦於以下問題:PHP FormHelper::textbox方法的具體用法?PHP FormHelper::textbox怎麽用?PHP FormHelper::textbox使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FormHelper
的用法示例。
在下文中一共展示了FormHelper::textbox方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: render
public function render()
{
$sResult = FormHelper::textbox($this->getAlias(), htmlentities($this->getValue(), ENT_QUOTES, "utf-8"), \ArrayHelper::merge(array('class' => 'TextboxField', 'id' => 'field_' . $this->getAlias()), $this->getHtmlOptions()));
$sResult .= '<script type="text/javascript">
$(document).ready(function() {
$(\'#field_' . $this->getAlias() . '\').datetimepicker();
});
</script>';
echo $sResult;
}
示例2: render
public function render()
{
$sResult = FormHelper::textbox('', $this->getValue(), array('class' => 'TextboxField', 'id' => 'field_' . $this->getAlias()));
$sResult .= '<script>$(document).ready(
function()
{
$(\'#field_' . $this->getAlias() . '\').autoSuggest("http://mysite.com/path/to/script", {minChars: 2, matchCase: true, startText: "Введите текст", preFill: \'' . $this->getValue() . '\', asHtmlName: \'' . $this->getAlias() . '\'});
}
);</script>';
echo $sResult;
}
示例3: render
public function render()
{
$sResult = FormHelper::textbox($this->getAlias(), $this->getValue(), array('class' => 'TextboxField', 'id' => 'field_' . $this->getAlias()));
if ($this->getAuto()) {
$sResult .= '<script>$(document).ready(
function()
{
$(\'#field_' . $this->getAutoFieldAlias() . '\').translit({alias_box: "field_' . $this->getAlias() . '"});
}
);</script>';
}
echo $sResult;
}
示例4: render
public function render()
{
echo FormHelper::textbox($this->getAlias(), htmlentities($this->getValue(), ENT_QUOTES, "utf-8"), \ArrayHelper::merge(array('class' => 'TextboxField', 'id' => 'field_' . $this->getAlias()), $this->getHtmlOptions()));
}
示例5:
}
?>
<form action="<?php
echo Toolkit::i()->getRequest()->getUrl();
?>
" method="post" enctype="multipart/form-data" class="form-horizontal">
<div class="form-group">
<label class="col-sm-2 control-label" for="login_field"><?php
echo $this->getModel()->fieldTitle('Login');
?>
</label>
<div class="col-sm-10">
<?php
echo FormHelper::textbox('Login', $this->getModel()->Login);
?>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="password_field"><?php
echo $this->getModel()->fieldTitle('Password');
?>
</label>
<div class="col-sm-10">
<?php
echo FormHelper::password('Password');
?>
</div>
</div>