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/States.php
<?php
/* 
 *  Form City Places to Eat
 *  
 * @name		City
 * @author		Ranvir Singh
 * @created		19 Sep 2016
 * @updated		21 Sep 2016
 */

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

	// get country list array
	$objCountry = new Travel_Model_TblCountry();
	$allmenues  = $objCountry->getCountryList();
        $objGeneral = new Travel_Model_GeneralFunction();
	
	/************ Country List *****************/
		$dataMenu = array();
		$dataMenu[""]="--Select--";
		$countrylist = $this->createElement('select', 'countryId');
		foreach ($allmenues as $data) {
			$dataMenu[$data['ContId']] = $data['Title'];
		}
		$countrylist->setRequired(true);
		$countrylist->setMultiOptions($dataMenu);
		$countrylist->setErrorMessages(array('Please select country'));
		$countrylist->removeDecorator('label');
		$countrylist->removeDecorator('HtmlTag');
		//$countrylist->setAttrib('onchange', 'getSubMenu(this.value)');
		$countrylist->class = "demo-default select-country";
				
    
                
    /************ Region List *****************/
		
    // get region list array
    $regionMenues  = $objGeneral->getRecordListingWhere('TB_Master_Geo_Region',array('RegId','Title'), array('IsMarkForDel'=>0),'Title');

    $dataMenu = array();
    $dataMenu[""]="--Select--";
    $regionList = $this->createElement('select', 'regionList');
    foreach ($regionMenues as $data) {
            $dataMenu[$data['RegId']] = $data['Title'];
    }
    $regionList->setRequired(true);
    $regionList->setMultiOptions($dataMenu);
    $regionList->setErrorMessages(array('Please select region'));
    $regionList->removeDecorator('label');
    $regionList->removeDecorator('HtmlTag');
    //$regionList->setAttrib('onchange', 'getSubMenu(this.value)');
    $regionList->class = "demo-default select-country";	


	 /************ Title  *****************/
    $Title = $this->createElement('text','Title',
                        array(
                             'value' => trim($params['Title']),
                             'class' => 'form-control',
                            'required'=>true,
                            'filters' => array('StringTrim'),
                            'maxlength' => 50,
                            //'validators' => array(array('StringLength', false, array(3, 100))),
                     ))	 
                    ->setErrorMessages(array('Please enter State'))
                    ->removeDecorator('label')
                    ->removeDecorator('HtmlTag')
                    ->removeDecorator('DtDdWrapper');
					
	 /************ Code  *****************/
    $Code = $this->createElement('text','Code',
                        array(
                             'value' => trim($params['Code']),
                             'class' => 'form-control',
                             'required'=>false,
                             'filters' => array('StringTrim'),
                            'maxlength' => 10,
                             //'validators' => array(array('StringLength', false, array(3, 100))),
                     ))	 
                    ->removeDecorator('label')
                    ->removeDecorator('HtmlTag')
                    ->removeDecorator('DtDdWrapper');	

	$this->addElements(array(  
            $countrylist,
            $Title,
            $Code,
            $regionList,
        ));     
    }
    
}


Youez - 2016 - github.com/yon3zu
LinuXploit