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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/ptcfinance/application/modules/admin/forms/Relation.php
<?php

class Admin_Form_Relation extends Zend_Form {

    public function __construct($params = null) {
        $this->setMethod("POST");
        $this->setAction("admin/investor/addrelation");
        $this->setName("investor");

        $id = $this->createElement('hidden', 'id', array(
                    'value' => '',
                    'class' => 'input-xlarge',
                    'id' => 'level',
                    'required' => false,
                    'filters' => array('StringTrim'),
                        //'validators' => array(array('StringLength', false, array(3, 100))),
                ))
                ->setErrorMessages(array('Please enter level name'))
                ->removeDecorator('label')
                ->removeDecorator('HtmlTag')
                ->removeDecorator('DtDdWrapper');

         /*         * ********** Investor Type **************** */
        $dataType1 = array();
        $dataType1[""] = "--Select Investor Relation Type--";
        $dataTypeArr1 = array(
            'codes-policies' => 'About: Code And Policies',
            'grievances-redressal-mechanism' => 'About: Grievances Redressal Mechanism',
            'agm'=>'Investor: AGM',
            'annual-reports' => 'Investor: Annual Reports',
//            'bonds'=>'Bonds',
            'corporate-governance' => 'Investor: Corporate Governance',            
            'equity'=>'Investor: Equity',
            'financial-results' => 'Investor: Financial Results', 
            'financial-highlights'=>'Investor: Financial Highlights ',
            'postal-ballot-result' => 'Investor: Postal Ballot Result', 
            'shareholding-pattern'=>'Investor: Shareholding Pattern',
            'debt-financing'=>'Product & Services: Debt Financing',
            'equity-investments'=>'Product & Services: Equity Investment');
        $investortype = $this->createElement('select', 'investorRelationType', array('id' => 'investorrelationId'));
        foreach ($dataTypeArr1 as $key => $val) {
            $dataType1[$key] = $val;
        }
        $investortype->setRequired(true);
        $investortype->setMultiOptions($dataType1);
        $investortype->setErrorMessages(array('Please select Investor relation type'));
        $investortype->removeDecorator('label');
        $investortype->removeDecorator('HtmlTag');
        $investortype->class = "input-xlarge";
        
        /*         * ********** Type **************** */
        $dataType = array();
        $dataType[""] = "--Select Type--";
        $dataTypeArr = array('AGM'=>'AGM',
                                 'CODE-POLICY'=>'Codes & Policies',
                                 'FRY'=>'Financial Result Year');
        $type = $this->createElement('select', 'type', array('id' => 'investorrelationTypeId'));
        foreach ($dataTypeArr as $key => $val) {
            $dataType[$key] = $val;
        }
//        $type->setRequired(true);
        $type->setMultiOptions($dataType);
        $type->setErrorMessages(array('Please select type'));
        $type->removeDecorator('label');
        $type->removeDecorator('HtmlTag');
        $type->class = "input-xlarge";

        /*         * ********** Title  **************** */
        $title = $this->createElement('text', 'title', array(
                    'value' => trim($params['title']),
                    'class' => 'input-xlarge',
                    'id' => 'fyr_id',
//                    'required' => true,
                    'filters' => array('StringTrim'),
                        //'validators' => array(array('StringLength', false, array(3, 100))),
                ))
                ->setErrorMessages(array('Please enter title'))
                ->removeDecorator('label')
                ->removeDecorator('HtmlTag')
                ->removeDecorator('DtDdWrapper');


        /*         * ********** Sub Title  **************** */
        $subTitle = $this->createElement('text', 'subTitle', array(
                    'value' => trim($params['subTitle']),
                    'class' => 'input-xlarge',
                    'id' => 'subTitleid',
                    'required' => false,
                    'filters' => array('StringTrim'),
                        //'validators' => array(array('StringLength', false, array(3, 100))),
                ))
                ->setErrorMessages(array('Please enter Sub title'))
                ->removeDecorator('label')
                ->removeDecorator('HtmlTag')
                ->removeDecorator('DtDdWrapper');

        /*         * ********** File Q **************** */
        $fileq = $this->createElement('file', 'Q', array(
                    'required' => false,
                    'MaxFileSize' => 10485760,
                    'autocomplete' => 'off',
                    'class' => 'input-xlarge',
                    'id' => 'fileq',
                    'validators' => array(
                        array('Count', false, 1),
                        array('Size', false, 10485760),
                        array('Extension', false, 'pdf'),
                    )
                ))
                ->setErrorMessages(array('Please choose file'))
                ->removeDecorator('label')
                ->removeDecorator('HtmlTag')
                ->removeDecorator('DtDdWrapper');

        /*         * ********** File Q1 **************** */
        $fileq1 = $this->createElement('file', 'Q1', array(
                    'required' => false,
                    'MaxFileSize' => 10485760,
                    'autocomplete' => 'off',
                    'class' => 'input-xlarge',
                    'id' => 'fileq',
                    'validators' => array(
                        array('Count', false, 1),
                        array('Size', false, 10485760),
                        array('Extension', false, 'pdf'),
                    )
                ))
                ->setErrorMessages(array('Please choose file'))
                ->removeDecorator('label')
                ->removeDecorator('HtmlTag')
                ->removeDecorator('DtDdWrapper');

        /*         * ********** File Q2 **************** */
        $fileq2 = $this->createElement('file', 'Q2', array(
                    'required' => false,
                    'MaxFileSize' => 10485760,
                    'autocomplete' => 'off',
                    'class' => 'input-xlarge',
                    'id' => 'fileq',
                    'validators' => array(
                        array('Count', false, 1),
                        array('Size', false, 10485760),
                        array('Extension', false, 'pdf'),
                    )
                ))
                ->setErrorMessages(array('Please choose file'))
                ->removeDecorator('label')
                ->removeDecorator('HtmlTag')
                ->removeDecorator('DtDdWrapper');

        /*         * ********** File Q3 **************** */
        $fileq3 = $this->createElement('file', 'Q3', array(
                    'required' => false,
                    'MaxFileSize' => 10485760,
                    'autocomplete' => 'off',
                    'class' => 'input-xlarge',
                    'id' => 'fileq',
                    'validators' => array(
                        array('Count', false, 1),
                        array('Size', false, 10485760),
                        array('Extension', false, 'pdf'),
                    )
                ))
                ->setErrorMessages(array('Please choose file'))
                ->removeDecorator('label')
                ->removeDecorator('HtmlTag')
                ->removeDecorator('DtDdWrapper');

        /*         * ********** File Q4 **************** */
        $fileq4 = $this->createElement('file', 'Q4', array(
                    'required' => false,
                    'MaxFileSize' => 10485760,
                    'autocomplete' => 'off',
                    'class' => 'input-xlarge',
                    'id' => 'fileq',
                    'validators' => array(
                        array('Count', false, 1),
                        array('Size', false, 10485760),
                        array('Extension', false, 'pdf'),
                    )
                ))
                ->setErrorMessages(array('Please choose file'))
                ->removeDecorator('label')
                ->removeDecorator('HtmlTag')
                ->removeDecorator('DtDdWrapper');
        
        /************ orderOfAppearance  *****************/
        $orderOfAppearance = $this->createElement('text','orderOfAppearance',
                            array(
                                 'value' => trim($params['orderOfAppearance']),
                                 'class' => 'input-xlarge',
                                    'id' => 'orderOfAppearance',
                                'required'=>true,
                                'filters' => array('StringTrim'),
                                //'validators' => array(array('StringLength', false, array(3, 100))),
                         ))	 
                        ->setErrorMessages(array('Please enter order'))
                        ->removeDecorator('label')
                        ->removeDecorator('HtmlTag')
                        ->removeDecorator('DtDdWrapper');


        $this->addElements(array(
            $id,$investortype,
            $type,
            $title,$subTitle, $fileq, $fileq1, $fileq2, $fileq3, $fileq4,$orderOfAppearance
        ));
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit