当前位置: 首页>>代码示例>>PHP>>正文


PHP Am_Controller::renderArrayAsInputHiddens方法代码示例

本文整理汇总了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;
    }
开发者ID:subashemphasize,项目名称:test_site,代码行数:19,代码来源:Abstract.php

示例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));
 }
开发者ID:subashemphasize,项目名称:test_site,代码行数:9,代码来源:Export.php

示例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";
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:6,代码来源:AdminUsersController.php

示例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;
    }
开发者ID:subashemphasize,项目名称:test_site,代码行数:21,代码来源:Abstract.php

示例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;
    }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:20,代码来源:Abstract.php


注:本文中的Am_Controller::renderArrayAsInputHiddens方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。