| 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/dcb/application/forms/ |
Upload File : |
<?php
class Application_Form_Complaintform extends Zend_Form
{
public function __construct($params = null)
{
// $subCatId = array(
// 1 => array(
// 1 => 'Customer Disputes',
// 2 => 'Documents Related',
// 3 => 'Insurance Policy',
// 4 => 'Misselling',
// 5 => 'Payments Related',
// 6 => 'Pradhan Mantri Awas Yojna'
// ),
// 2 => array(
// 1 => 'Discrepancy in Transaction',
// 2 => 'SMS Alerts'
// ),
// 3 => array(
// 1 => 'Card Hotlist',
// 2 => 'Card Not Working',
// 3 => 'Card PIN',
// 4 => 'Charges Related',
// 5 => 'Deliverables ',
// 6 => 'Discrepancy in Transaction',
// 7 => 'Misuse of Debit Card'
// ),
// 4 => array(
// 1 => 'Customer Disputes'
// ),
// 5 => array(
// 1 => 'Balance Enquirys',
// 2 => 'Cheque Book',
// 3 => 'Customer Disputes',
// 4 => 'Email Statement for Last 1 month',
// 5 => 'Mini Statement'
// ),
// 6 => array(
// 1 => 'Discrepancy in Transaction',
// 2 => 'Technical Issue'
// ),
// 7 => array(
// 1 => 'Technical Issue'
// ),
// 8 => array(
// 1 => 'Card Not Working',
// 2 => 'Card PIN',
// 3 => 'Charges Related',
// 4 => 'Customer Disputes ',
// 5 => 'Deliverables',
// 6 => 'Discrepancy in Transaction',
// 7 => 'Leads',
// 8 => 'Misuse of Card'
// ),
// 9 => array(
// 1 => 'Discrepancy in Transaction',
// 2 => 'Email Alerts',
// 3 => 'Misuse of Internet Banking',
// 4 => 'Online Request',
// 5 => 'Password Generation Issue',
// 6 => 'PIB Log In-Issues',
// 7 => 'Registration Not Done',
// 8 => 'Utility Bill Payment'
// ),
// 10 => array(
// 1 => 'Bajaj Allianz Card',
// 2 => 'Belstar',
// 3 => 'Cinqo',
// 4 => 'DCB Direct - GPR Card',
// 5 => 'DCB Meal Card (YAP)',
// 6 => 'Fullerton',
// 7 => 'IIFL',
// 8 => 'Jana Card',
// 9 => 'Madura',
// 10 => 'Midland Microfinance',
// 11 => 'Muthoot Finance - Ambassador',
// 12 => 'Muthoot Finance - Gold',
// 13 => 'Muthoot Forex - Royal Money',
// 14 => 'NiYo Card',
// 15 => 'Paysack',
// 16 => 'SKS',
// 17 => 'Slonkit Card',
// 18 => 'Stashfin',
// 19 => 'Thomas Cook'
// ),
// 11 => array(
// 1 => 'Email Alerts',
// 2 => 'SMS Alerts'
// ),
// 12 => array(
// 1 => 'Updation / Modification - Not Done'
// ),
// 13 => array(
// 1 => 'Transaction Details'
// ),
// 14 => array(
// 1 => 'Cheque Book',
// 2 => 'Courier Related Complaints',
// 3 => 'DCA',
// 4 => 'DKD Certificate / Passbook',
// 5 => 'Internet Banking Pin',
// 6 => 'Statement Of Account',
// 7 => 'Statement Of Account - Consolidated',
// 8 => 'TDS Certificate',
// 9 => 'Welcome Kit'
// ),
// 15 => array(
// 1 => 'Cancellation',
// 2 => 'Customer Disputes'
// ),
// 16 => array(
// 1 => 'Technical Issue',
// 2 => 'Transaction Related'
// ),
// 17 => array(
// 1 => 'Technical Issue'
// ),
// 18 => array(
// 1 => 'Misuse of Internet Banking',
// 2 => 'Online Request',
// 3 => 'Registration Not Done',
// 4 => 'Technical Issue',
// 5 => 'Utility Bill Payment'
// ),
// 19 => array(
// 1 => 'Collection',
// 2 => 'Payments'
// ),
// 20 => array(
// 1 => 'Documents Related',
// 2 => 'Insurance Policy',
// 3 => 'Misselling',
// 4 => 'Payments Related'
// ),
// 21 => array(
// 1 => 'Atal Pension Yojna',
// 2 => 'General Insurance (Other Than GPA)',
// 3 => 'GPA',
// 4 => 'Health Insurance',
// 5 => 'Life Insurance',
// 6 => 'PMJJBY',
// 7 => 'PMSBY'
// ),
// 22 => array(
// 1 => 'Bank Guarantee',
// 2 => 'Inward Remittance',
// 3 => 'Letter of Credit',
// 4 => 'Outward Remittance'
// ),
// 23 => array(
// 1 => 'Customer Disputes',
// 2 => 'Documents Related',
// 3 => 'Misselling',
// 4 => 'Payments Related'
// ),
// 24 => array(
// 1 => 'Customer Disputes ',
// 2 => 'Documents Related',
// 3 => 'Misselling',
// 4 => 'Payments Related'
// ),
// 25 => array(
// 1 => 'Application',
// 2 => 'Customer Disputes ',
// 3 => 'Deliverables',
// 4 => 'Technical Issue'
// ),
// 26 => array(
// 1 => 'Current Account',
// 2 => 'Savings Account'
// ),
// 27 => array(
// 1 => 'FCNR Deposit',
// 2 => 'FCNR Suraksha Deposit',
// 3 => 'Fixed Deposit',
// 4 => 'NRE Recurring Deposit',
// 5 => 'NRE Suraksha Deposit',
// 6 => 'NRE Term Deposit',
// 7 => 'NRO Recurring Deposit',
// 8 => 'NRO Suraksha Deposit',
// 9 => 'NRO Term Deposit',
// 10 => 'Recurring Deposit',
// 11 => 'Suraksha Deposit',
// 12 => 'TAX Saver Deposit',
// 13 => 'Zippi Deposit'
// ),
// 28 => array(
// 1 => 'Demat',
// 2 => 'Gold Bond',
// 3 => 'Mutual Fund'
// ),
// 29 => array(
// 1 => 'Technical Issue'
// )
// );
//
// $categoryArray = array(
// '' => 'Select',
// 1 => 'Mortgages',
// 2 => 'BharatQR',
// 3 => 'Debit Cards',
// 4 => 'EDC Machine',
// 5 => 'Missed Call Facility',
// 6 => 'Mobile Banking (Savings/TD/Current A/c)',
// 7 => 'Mobile Passbook',
// 8 => 'Payless Cards',
// 9 => 'Personal Internet banking',
// 10 => 'Prepaid Card',
// 11 => 'SMS & Email Alerts',
// 12 => 'Instruction',
// 13 => 'Clearing',
// 14 => 'Chequebook/PIN/advice related',
// 15 => 'ECS',
// 16 => 'DCB Remit Online',
// 17 => 'Travel Smart Axis Co-branded Card',
// 18 => 'Business Internet banking',
// 19 => 'Cash / Cheque Pick up services',
// // 20 => 'Drop',
// 21 => 'Insurance',
// 22 => 'Trade Finance',
// 23 => 'Gold Loan',
// 24 => 'Personal Loan',
// 25 => 'Smart Credit',
// 26 => 'Current A/c / Savings A/c',
// 27 => 'Deposits',
// 28 => 'Investments',
// 29 => 'Loans on the Go',
// );
$state = new Application_Model_State();
$lmsModel = new Application_Model_Lms();
$allstates = $state->getAllActiveStatesList();
$allcities = $state->getAllActiveCitiesList();
$this->setMethod("POST");
$this->setAction("lms/complaint-form");
$this->setName("add_complaint-form");
/************ User Type *****************/
$usertype = array();
//$usertype[""]="--Title--";
$usertype_arr = array(
'Mr' => 'Mr.',
'Mrs' => 'Mrs.',
'Ms' => 'Ms.'
);
$title = $this->createElement('select', 'title');
foreach ($usertype_arr as $key => $val) {
$usertype[$key] = $val;
}
$title->setRequired(true);
$title->setMultiOptions($usertype);
$title->setErrorMessages(array('Select title'));
$title->removeDecorator('label');
$title->removeDecorator('HtmlTag');
$title->class = "styled";
$title->style = "width:35px; border:none;";
$title->tabindex = "1";
/************ First Name *****************/
$fname = $this->createElement(
'text',
'fname',
array(
'value' => trim($params['fname']),
'class' => 'txtfield_fname fl',
'id' => 'fname',
'placeholder' => 'First name *',
'tabindex' => '2',
'required' => true,
'filters' => array('StringTrim'),
'validators' => array(array("Alpha", true, array("allowWhiteSpace" => false))),
)
)
->setErrorMessages(array('Enter first name'))
->removeDecorator('label')
->removeDecorator('HtmlTag')
->removeDecorator('DtDdWrapper');
/************ Last Name *****************/
$lname = $this->createElement(
'text',
'lname',
array(
'value' => trim($params['lname']),
'class' => 'txtfield',
'id' => 'lname',
'placeholder' => 'Last name *',
'tabindex' => '3',
'required' => true,
'filters' => array('StringTrim'),
'validators' => array(array("Alpha", true, array("allowWhiteSpace" => false))),
)
)
->setErrorMessages(array('Enter last name'))
->removeDecorator('label')
->removeDecorator('HtmlTag')
->removeDecorator('DtDdWrapper');
/************ Email *****************/
$email = $this->createElement(
'text',
'email',
array(
'value' => trim($params['email']),
'class' => 'txtfield',
'id' => 'email',
'placeholder' => 'Email ID *',
'tabindex' => '4',
'required' => true,
'filters' => array('StringTrim'),
'validators' => array('EmailAddress',)
)
)
->setErrorMessages(array('Enter valid email id'))
->removeDecorator('label')
->removeDecorator('HtmlTag')
->removeDecorator('DtDdWrapper');
/************ Address *****************/
$address = $this->createElement(
'textarea',
'address',
array(
'value' => trim($params['address']),
'class' => 'txtarea',
'id' => 'address',
'rows' => 5,
'cols' => 45,
'placeholder' => 'Address *',
'tabindex' => '5',
'required' => true,
'filters' => array('StringTrim'),
//'validators' => array(array("Alpha", true, array("allowWhiteSpace" => false))),
)
)
->setErrorMessages(array('Enter address'))
->removeDecorator('label')
->removeDecorator('HtmlTag')
->removeDecorator('DtDdWrapper');
/************ Country Code *****************/
$country = $this->createElement(
'text',
'country',
array(
'value' => trim($params['country']),
'class' => 'txtfield',
'id' => 'country',
'placeholder' => 'Country *',
'tabindex' => '6',
'required' => true,
'filters' => array('StringTrim'),
//'validators' => array('Digits'),
)
)
->setErrorMessages(array('Enter country'))
->removeDecorator('label')
->removeDecorator('HtmlTag')
->removeDecorator('DtDdWrapper');
/************ State List *****************/
$dataState = array();
$dataState[""] = "--Select State * --";
$statelist = $this->createElement('select', 'state_id');
foreach ($allstates as $data) {
$dataState[$data['id']] = ucwords(strtolower($data['state_name']));
}
$statelist->setRequired(true);
$statelist->setMultiOptions($dataState);
$statelist->setErrorMessages(array('Select state name'));
$statelist->removeDecorator('label');
$statelist->removeDecorator('HtmlTag');
$statelist->setAttrib('onchange', 'getCity(this.value)');
$statelist->class = "styled";
$statelist->style = "width:198px; border:none;";
$statelist->tabindex = "7";
/************ City List *****************/
$dataCity = array(" " => "--Select City --");
//$allcities = array();
$citylist = $this->createElement('select', 'city_id');
foreach ($allcities as $data) {
$dataCity[$data['id']] = $data['city_name'];
}
$citylist->setRequired(false);
$citylist->setMultiOptions($dataCity);
$citylist->setErrorMessages(array('Select city name'));
$citylist->removeDecorator('label');
$citylist->removeDecorator('HtmlTag');
$citylist->id = "city_list";
$citylist->class = "styled";
$citylist->style = "width:198px; border:none;";
$citylist->tabindex = "8";
/************ Country Code *****************/
$pin_code = $this->createElement(
'text',
'pin_code',
array(
'value' => trim($params['pin_code']),
'class' => 'txtfield',
'id' => 'pin_code',
'placeholder' => 'Pin code',
'maxlength' => '6',
'tabindex' => '9',
'required' => false,
'filters' => array('StringTrim'),
'validators' => array('Digits'),
)
)
->setAttrib('onkeypress', 'return isNumber(event);')
->setErrorMessages(array('Enter pin code'))
->removeDecorator('label')
->removeDecorator('HtmlTag')
->removeDecorator('DtDdWrapper');
/************ Country Code *****************/
$country_code = $this->createElement(
'text',
'country_code',
array(
'value' => trim($params['country_code']),
'class' => 'txtfield_sm mrgn_right',
'id' => 'country_code',
'placeholder' => 'Country code',
'maxlength' => '3',
'tabindex' => '10',
'required' => false,
'filters' => array('StringTrim'),
'validators' => array('Digits'),
)
)
->setAttrib('onkeypress', 'return isNumber(event);')
->setErrorMessages(array('Enter country code'))
->removeDecorator('label')
->removeDecorator('HtmlTag')
->removeDecorator('DtDdWrapper');
/************ Country Code *****************/
$area_code = $this->createElement(
'text',
'area_code',
array(
'value' => trim($params['area_code']),
'class' => 'txtfield_small mrgn_right',
'id' => 'country_code',
'placeholder' => 'Area code',
'maxlength' => '6',
'tabindex' => '11',
'required' => false,
'filters' => array('StringTrim'),
'validators' => array('Digits'),
)
)
->setAttrib('onkeypress', 'return isNumber(event);')
->setErrorMessages(array('Enter area code'))
->removeDecorator('label')
->removeDecorator('HtmlTag')
->removeDecorator('DtDdWrapper');
/************ Landline Number *****************/
$landline_no = $this->createElement(
'text',
'landline_no',
array(
'value' => trim($params['landline_no']),
'class' => 'txtfield_sm',
'id' => 'landline_no',
'placeholder' => 'Landline no. *',
'maxlength' => '8',
'tabindex' => '12',
'required' => false,
'filters' => array('StringTrim'),
'validators' => array('Digits'),
)
)
->setAttrib('onkeypress', 'return isNumber(event);')
->setErrorMessages(array('Enter landline number'))
->removeDecorator('label')
->removeDecorator('HtmlTag')
->removeDecorator('DtDdWrapper');
/************ Mobil Number *****************/
$mobile_no = $this->createElement(
'text',
'mobile_no',
array(
'value' => trim($params['mobile_no']),
'class' => 'txtfield_sm',
'id' => 'mobile_no',
'maxlength' => '10',
'tabindex' => '13',
'placeholder' => 'Mobile no. *',
'required' => false,
'filters' => array('StringTrim'),
'validators' => array('Digits'),
)
)
->setAttrib('onkeypress', 'return isNumber(event);')
->setErrorMessages(array('Enter mobile number'))
->removeDecorator('label')
->removeDecorator('HtmlTag')
->removeDecorator('DtDdWrapper');
/************ complaint type *****************/
$getAllComplaintCategory = $lmsModel->getComplaintCategory();
$complaint_type_arr = array('' => 'Select');
$complaint_type_list = $this->createElement('select', 'complaint_type');
$complaint_type_list->setRequired(true);
foreach ($getAllComplaintCategory as $data) {
$complaint_type_arr[$data['id']] = $data['name'];
}
$complaint_type_list->setMultiOptions($complaint_type_arr);
$complaint_type_list->setErrorMessages(array('Select complaint type'));
$complaint_type_list->removeDecorator('label');
$complaint_type_list->setAttrib('onchange', 'getSubCat(this.value);');
$complaint_type_list->removeDecorator('HtmlTag');
$complaint_type_list->class = "styled";
$complaint_type_list->style = "width:198px; border:none;";
$complaint_type_list->tabindex = "14";
$complaint_typeSubCat = array('' => 'Select');
$complaint_type_arr_sub = $complaint_typeSubCat;
$complaint_type_list_sub = $this->createElement('select', 'complaint_type_sub');
$complaint_type_list_sub->setRequired(false);
$getComplaintSubCategory = $lmsModel->getComplaintSubCategory();
foreach ($getComplaintSubCategory as $data) {
$complaint_type_arr_sub[$data['id']] = $data['name'];
}
$complaint_type_list_sub->setMultiOptions($complaint_type_arr_sub);
$complaint_type_list_sub->setErrorMessages(array('Select complaint Sub type'));
$complaint_type_list_sub->setAttrib('onchange', 'getSubCatCustomer(this.value);');
$complaint_type_list_sub->removeDecorator('label');
$complaint_type_list_sub->removeDecorator('HtmlTag');
$complaint_type_list_sub->class = "styled";
$complaint_type_list_sub->style = "width:198px; border:none;";
$complaint_type_list_sub->tabindex = "15";
$complaint_typeSubCat_cust = array('' => 'Select');
$complaint_type_arr_sub_cust = $complaint_typeSubCat_cust;
$complaint_type_list_sub_cust = $this->createElement('select', 'complaint_type_sub_cust');
$complaint_type_list_sub_cust->setRequired(false);
$getComplaintSubCategoryCust = $lmsModel->getGrievanceData();
foreach ($getComplaintSubCategoryCust as $data) {
$complaint_typeSubCat_cust[$data['id']] = $data['name'];
}
$complaint_type_list_sub_cust->setMultiOptions($complaint_typeSubCat_cust);
$complaint_type_list_sub_cust->setErrorMessages(array('Select complaint customer type'));
$complaint_type_list_sub_cust->removeDecorator('label');
$complaint_type_list_sub_cust->removeDecorator('HtmlTag');
$complaint_type_list_sub_cust->class = "styled";
$complaint_type_list_sub_cust->style = "width:198px; border:none;";
$complaint_type_list_sub_cust->tabindex = "16";
/************ Account Number *****************/
$account_no = $this->createElement(
'text',
'account_no',
array(
'value' => trim($params['account_no']),
'class' => 'txtfield',
'id' => 'account_no',
'maxlength' => '14',
'placeholder' => 'Account Number *',
'tabindex' => '15',
'required' => false,
'filters' => array('StringTrim'),
'validators' => array('Digits'),
)
)
->setAttrib('onkeypress', 'return isNumber(event);')
->setErrorMessages(array('Enter account number'))
->removeDecorator('label')
->removeDecorator('HtmlTag')
->removeDecorator('DtDdWrapper');
/************ complaint_detail *****************/
$complaint_detail = $this->createElement(
'textarea',
'complaint_detail',
array(
'value' => trim($params['complaint_detail']),
'class' => 'txtarea',
'id' => 'complaint_detail',
'rows' => 3,
'cols' => 15,
'placeholder' => 'complaint *',
'required' => true,
'filters' => array('StringTrim'),
'tabindex' => '17',
//'validators' => array(array("Alpha", true, array("allowWhiteSpace" => false))),
)
)
->setErrorMessages(array('Enter complaint detail'))
->removeDecorator('label')
->removeDecorator('HtmlTag')
->removeDecorator('DtDdWrapper');
/************ Captcha Code *****************/
$captcha = $this->createElement(
'text',
'captcha',
array(
'value' => trim($params['captcha']),
'class' => 'txtfield_fname',
'id' => 'captcha',
'placeholder' => 'Captcha code *',
'autocomplete' => 'off',
'tabindex' => '18',
'required' => true,
'filters' => array('StringTrim'),
//'validators' => array(array("Alnum", true, array("allowWhiteSpace" => false))),
)
)
->setErrorMessages(array('Enter captcha'))
->removeDecorator('label')
->removeDecorator('HtmlTag')
->removeDecorator('DtDdWrapper');
/************ Terms and Conditions *****************/
$terms_condition = $this->createElement(
'checkbox',
'terms_condition',
array(
'value' => trim($params['terms_condition']),
'id' => 'terms_condition',
'required' => false,
'filters' => array('StringTrim'),
'tabindex' => '19',
//'validators' => array(array('StringLength', false, array(3, 100))),
)
)
->setErrorMessages(array('Check authorize'))
->removeDecorator('label')
->removeDecorator('HtmlTag')
->removeDecorator('DtDdWrapper');
$this->addElements(array(
$title,
$fname,
$lname,
$email,
$address,
$country,
$statelist,
$citylist,
$pin_code,
$country_code,
$area_code,
$landline_no,
$mobile_no,
$complaint_type_list,
$complaint_type_list_sub,
$complaint_type_list_sub_cust,
$account_no,
$complaint_detail,
$captcha,
$terms_condition
));
}
}