本文整理汇总了PHP中Am_Controller::renderArrayAsInputHiddens方法的典型用法代码示例。如果您正苦于以下问题:PHP Am_Controller::renderArrayAsInputHiddens方法的具体用法?PHP Am_Controller::renderArrayAsInputHiddens怎么用?PHP Am_Controller::renderArrayAsInputHiddens使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Am_Controller
的用法示例。
在下文中一共展示了Am_Controller::renderArrayAsInputHiddens方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderFilter
public function renderFilter()
{
$action = htmlentities($this->grid->getCompleteRequest()->getBaseUrl() . $this->grid->getCompleteRequest()->getPathInfo(), ENT_QUOTES, 'UTF-8');
$title = $this->getTitle();
$vars = $this->getAllButFilterVars();
$hiddenInputs = Am_Controller::renderArrayAsInputHiddens($vars);
$inputs = $this->renderInputs();
$button = $this->renderButton();
return <<<CUT
<div class="filter-wrap">
<form class="filter" method="get" action="{$action}">
<span class="filter-title">{$title}</span>
{$hiddenInputs}
{$inputs}
{$button}
</form>
</div>
CUT;
}
示例2: initForm
protected function initForm($form)
{
$form->setDataSources(array($this->grid->getCompleteRequest()));
$vars = array();
foreach ($this->grid->getVariablesList() as $k) {
$vars[$this->grid->getId() . '_' . $k] = $this->grid->getRequest()->get($k, "");
}
$form->addHtml('hidden')->setHtml(Am_Controller::renderArrayAsInputHiddens($vars));
}
示例3: renderStatic
public function renderStatic(&$out, Am_Grid_Editable $grid)
{
$hidden = Am_Controller::renderArrayAsInputHiddens($grid->getFilter()->getAllButFilterVars());
$out .= "<!-- start of advanced search box -->\n" . $grid->getDataSource()->renderForm($hidden) . "\n";
"<!-- end of advanced search box -->\n";
}
示例4: renderConfirmationForm
public function renderConfirmationForm($btn = null, $page = null, $addHtml = null)
{
if (empty($btn)) {
$btn = ___("Yes, continue");
}
$vars = $this->grid->getCompleteRequest()->toArray();
$vars[$this->grid->getId() . '_confirm'] = 'yes';
if ($page !== null) {
$vars[$this->grid->getId() . '_group_page'] = (int) $page;
}
$hidden = Am_Controller::renderArrayAsInputHiddens($vars);
$btn = $this->grid->escape($btn);
$url_yes = $this->grid->makeUrl(null);
return <<<CUT
<form method="post" action="{$url_yes}" style="margin: 10px; display: inline;">
{$hidden}
{$addHtml}
<input type="submit" value="{$btn}" />
</form>
CUT;
}
示例5: renderContinueForm
public function renderContinueForm($btn = null, $context = null)
{
if (empty($btn)) {
$btn = ___("Yes, continue");
}
$vars = $this->grid->getCompleteRequest()->toArray();
$vars[$this->grid->getId() . '_confirm'] = 'yes';
if ($context !== null) {
$vars[$this->grid->getId() . '_group_context'] = $context;
}
$hidden = Am_Controller::renderArrayAsInputHiddens($vars);
$btn = $this->grid->escape($btn);
$url_yes = $this->grid->makeUrl(null);
return <<<CUT
<form method="post" action="{$url_yes}" style="display: inline;">
{$hidden}
<input type="submit" value="{$btn}" id='group-action-continue' />
</form>
CUT;
}