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/tripsgateway/application/admin/forms/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/tripsgateway/application/admin/forms/Editdestinationpage.php
<?php
class Admin_Form_Editdestinationpage extends Zend_Form
{
	public function __construct($params = null)
	{    

            $crud = new Admin_Model_CRUD();
            $destinations = $crud->rv_select_all('tbl_regions',['title','sid','region_id'],['IsActive'=>1,'IsMarkForDel'=>0],['title'=>'ASC']);
           
//          echo "<pre>";print_r($test);die;

         /************ Traveller *****************/				
            $travel = array();
            $travel[""]="--Select Region--";
            $dataMenuarr = $travel;  
            $region_id = $this->createElement('select', 'region_id');
            foreach ($destinations as $key=>$val) {
                $dataMenuarr[$val['region_id']] = $val['title'];
            }
//            $region_id->setRequired(true);
            $region_id->setMultiOptions($dataMenuarr);
            $region_id->setErrorMessages(array('Please select region/state'));
            $region_id->removeDecorator('label');
            $region_id->removeDecorator('HtmlTag');
            $region_id->class = "input-xlarge";
            

            /************ Title  *****************/
            $title = $this->createElement('text','title',
                                array(
                                     'value' => trim($params['title']),
                                     'class' => 'input-xlarge',
                                        'id' => 'title',
                                    'required'=>true,
                                   'filters' => array('StringTrim'),
                                  'validators' => array(array("Alpha", true, array("allowWhiteSpace" => true))),
                             ))	 
                            ->setErrorMessages(array('Please enter title'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            
            
            /************ Activities  *****************/
//            $activities = $this->createElement('text','activities',
//                                array(
//                                     'value' => trim($params['activities']),
//                                     'class' => 'input-xlarge',
//                                        'id' => 'activities',
//                                    'required'=>true,
//                                    'filters' => array('StringTrim'),
//                                 
//                             ))	 
//                            ->setErrorMessages(array('Please enter page activities'))
//                            ->removeDecorator('label')
//                            ->removeDecorator('HtmlTag')
//                            ->removeDecorator('DtDdWrapper');
//            
//            /************ Tours  *****************/
//            $tours = $this->createElement('text','tours',
//                                array(
//                                     'value' => trim($params['tours']),
//                                     'class' => 'input-xlarge',
//                                        'id' => 'tours',
//                                    'required'=>true,
//                                    'filters' => array('StringTrim'),
//                                 
//                             ))	 
//                            ->setErrorMessages(array('Please enter tours'))
//                            ->removeDecorator('label')
//                            ->removeDecorator('HtmlTag')
//                            ->removeDecorator('DtDdWrapper');
            
            /************ Hotels  *****************/
            $startingPrice = $this->createElement('text','startingPrice',
                                array(
                                     'value' => trim($params['startingPrice']),
                                     'class' => 'input-xlarge',
                                        'id' => 'startingPrice',   
                             ))	 
                            ->setErrorMessages(array('Please enter starting price'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            
            /************ Countries  *****************/
            $countries = $this->createElement('text','countries',
                                array(
                                     'value' => trim($params['countries']),
                                     'class' => 'input-xlarge',
                                        'id' => 'countries',
                                    'required'=>true,
                                    'filters' => array('StringTrim'),
                                 
                             ))	 
                            ->setErrorMessages(array('Please enter countries'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');

            /************ Image *****************/				
            $image = $this->createElement('file','image',
                        array(
                              'required'     => false,
                              'MaxFileSize' => 2097152,
                              'autocomplete' => 'off',
                                     'class' => 'input-xlarge',
                                        'id' => 'image',
                                'validators' => array(
                                array('Count', false, 1),
                                array('Size', false, 2097152),
                                array('Extension', false, 'gif,jpg,png,jpeg'),
//                                array('ImageSize', false, 
//                                         array('minwidth' => 175,
//                                                'minheight' => 175,
//                                                'maxwidth' => 360,
//                                                'maxheight' => 360)),
                              )
                            ))
                            ->setErrorMessages(array('Please upload (gif, jpg and png) file'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            /************ Destination Image *****************/				
            $destinationImage = $this->createElement('file','destinationImage',
                        array(
                              'required'     => false,
                              'MaxFileSize' => 2097152,
                              'autocomplete' => 'off',
                                     'class' => 'input-xlarge',
                                        'id' => 'destinationImage',
                                'validators' => array(
                                array('Count', false, 1),
                                array('Size', false, 2097152),
                                array('Extension', false, 'gif,jpg,png,jpeg'),
//                                array('ImageSize', false, 
//                                         array('minwidth' => 175,
//                                                'minheight' => 175,
//                                                'maxwidth' => 360,
//                                                'maxheight' => 360)),
                              )
                            ))
                            ->setErrorMessages(array('Please upload (gif, jpg and png) file'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');

            /************ Banner Image *****************/				
            $banner_image = $this->createElement('file','banner_image',
                        array(
                              'required'     => false,
                              'MaxFileSize' => 2097152,
                              'autocomplete' => 'off',
                                     'class' => 'input-xlarge',
                                        'id' => 'banner_image',
                                'validators' => array(
                                array('Count', false, 1),
                                array('Size', false, 2097152),
                                array('Extension', false, 'gif,jpg,png,jpeg'),
//                                array('ImageSize', false, 
//                                          array('minwidth' => 1200,
//                                                'minheight' => 400,
//                                                'maxwidth' => 2500,
//                                                'maxheight' => 1000)),
                              )
                            ))
                            ->setErrorMessages(array('Please upload (gif, jpg and png) file'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            
            
             /************  Description *****************/				
            $DestDescription = $this->createElement('textarea','DestDescription',
                        array(
                              'required'     => false,
                              'autocomplete' => 'off',
                                     'class' => 'textarea-xlarge',
                                        'id' => 'DestDescription',
                               'autocomplete'=>'off',
//                                  'readonly' => 'readonly',
                                  'rows' => '10',
                                   'filters' => array('StringTrim'),
                            ))
                            ->setErrorMessages(array('Please enter description'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            
            /************ Status  *****************/
            $dataStatus = array();
            //$dataStatus[""]="--Select Status--";
            $dataMenuarr = array('1'=>'Activate','0'=>'Deactivate');    
            $status = $this->createElement('select', 'status');
                        foreach ($dataMenuarr as $key=>$val) {
                            $dataStatus[$key] = $val;
                        }
            $status->setRequired(true);
            $status->setMultiOptions($dataStatus);
            $status->setErrorMessages(array('Please select status'));
            $status->removeDecorator('label');
            $status->removeDecorator('HtmlTag');
            $status->class = "input-xlarge";
            
            /************ Featured  *****************/
            $dataFeatured = array();
            //$dataFeatured[""]="--Select--";
            $dataMenuarr = array('0'=>'No','1'=>'Yes');    
            $feature = $this->createElement('select', 'feature');
                        foreach ($dataMenuarr as $key=>$val) {
                            $dataFeatured[$key] = $val;
                        }
//            $feature->setRequired(true);
            $feature->setMultiOptions($dataFeatured);
            $feature->setErrorMessages(array('Please select feature'));
            $feature->removeDecorator('label');
            $feature->removeDecorator('HtmlTag');
            $feature->class = "input-xlarge";
            
            
            /************ Meta Title *****************/
                        $packageListTitle = $this->createElement('textarea','packageListTitle',
                                array(
                                     'value' => trim($params['packageListTitle']),
                                     'class' => 'textarea-xlarge',
                                        'id' => 'packageListTitle',
//                                    'required'=>true,
                                    'rows' => '3',
                                    'filters' => array('StringTrim'),
                                 
                             ))	 
                            ->setErrorMessages(array('Please enter Title'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            /************ Keyword *****************/
                        $packageListKeyword = $this->createElement('textarea','packageListKeyword',
                                array(
                                     'value' => trim($params['packageListKeyword']),
                                     'class' => 'textarea-xlarge',
                                        'id' => 'packageListKeyword',
//                                    'required'=>true,
                                    'rows' => '3',
                                    'filters' => array('StringTrim'),
                                 
                             ))	 
                            ->setErrorMessages(array('Please enter keyword'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            /************ Description *****************/
                        $packageListDescription = $this->createElement('textarea','packageListDescription',
                                array(
                                     'value' => trim($params['packageListDescription']),
                                     'class' => 'textarea-xlarge',
                                        'id' => 'packageListDescription',
//                                    'required'=>true,
                                    'rows' => '3',
                                    'filters' => array('StringTrim'),
                                 
                             ))	 
                            ->setErrorMessages(array('Please enter description'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
                        
                         /************ Meta Title *****************/
                        $destinationTitle = $this->createElement('textarea','destinationTitle',
                                array(
                                     'value' => trim($params['destinationTitle']),
                                     'class' => 'textarea-xlarge',
                                        'id' => 'destinationTitle',
//                                    'required'=>true,
                                    'rows' => '3',
                                    'filters' => array('StringTrim'),
                                 
                             ))	 
                            ->setErrorMessages(array('Please enter destination title'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            /************ Keyword *****************/
                        $destinationKeyword = $this->createElement('textarea','destinationKeyword',
                                array(
                                     'value' => trim($params['destinationKeyword']),
                                     'class' => 'textarea-xlarge',
                                        'id' => 'destinationKeyword',
//                                    'required'=>true,
                                    'rows' => '3',
                                    'filters' => array('StringTrim'),
                                 
                             ))	 
                            ->setErrorMessages(array('Please enter destination keyword'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            /************ Description *****************/
                        $destinationDescription = $this->createElement('textarea','destinationDescription',
                                array(
                                     'value' => trim($params['destinationDescription']),
                                     'class' => 'textarea-xlarge',
                                        'id' => 'destinationDescription',
//                                    'required'=>true,
                                    'rows' => '3',
                                    'filters' => array('StringTrim'),
                                 
                             ))	 
                            ->setErrorMessages(array('Please enter destination description'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            

            
            $this->addElements(array(
            $region_id,
            $title,
//            $activities,
//            $tours,
            $startingPrice,
            $image,
            $destinationImage,
            $banner_image,
            $countries,
            $DestDescription,
            $status,
            $feature,
                $packageListTitle,
                $packageListKeyword,
                $packageListDescription,
                $destinationTitle,
                $destinationKeyword,
                $destinationDescription,
               
                
            )); 
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit