| 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/modules/subscription/forms/ |
Upload File : |
<?php
class Subscription_Form_Subscriptionedit extends Zend_Form {
public function init() {
$PlanArr = array(""=>"Select");
$model = new Subscription_Model_Subscription();
$getFrequencyPlan = $model->getFrequencyPlan("TB_Master_Subscription_Plan");
foreach($getFrequencyPlan as $val){
$PlanArr[$val['SubsPlanSysId']] = $val['Title'];
}
$inquiry_name = $this->createElement('select', 'planName');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default select-country')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($PlanArr);
$this->addElement($inquiry_name);
$subTypearr=array('1'=>'Standard','2'=>'Custom');
$inquiry_name = $this->createElement('radio', 'subscriptionType');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default')
->setAttrib('style', 'margin-right:4px')
->setSeparator('<span style="padding-right:10px"></span>')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($subTypearr);
$this->addElement($inquiry_name);
$PlanTypeArr = array(""=>"Select");
$getFrequencyPlanType = $model->getFrequencyPlan("TB_Master_Subscription_Frequency");
foreach($getFrequencyPlanType as $val){
$PlanTypeArr[$val['SubsFreqSysId']] = $val['Title'];
}
$inquiry_name = $this->createElement('select', 'planType');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default select-country')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($PlanTypeArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('hidden', 'SubsTemplateItemSysId');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('hidden', 'monthlyOption');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'fixedMonthlyRental');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'setUpFee');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'freshProposals');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'modificaton');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'freeSMS');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'freeEmail');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$YesNoArr = array(""=>"Select","1"=>"Yes","0"=>"NO");
$inquiry_name = $this->createElement('text', 'autoFollowUps');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('select', 'hotelInventory');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default select-country')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoArr);
$this->addElement($inquiry_name);
$YesNoRadionArr=array('1'=>'Yes','0'=>'No');
$inquiry_name = $this->createElement('radio', 'invoice');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default')
->setAttrib('style', 'margin-right:4px')
->setSeparator('<span style="padding-right:10px"></span>')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoRadionArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('radio', 'marketing');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default')
->setAttrib('style', 'margin-right:4px')
->setSeparator('<span style="padding-right:10px"></span>')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoRadionArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('radio', 'fullfillment');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default')
->setAttrib('style', 'margin-right:4px')
->setSeparator('<span style="padding-right:10px"></span>')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoRadionArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('radio', 'offer');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default')
->setAttrib('style', 'margin-right:4px')
->setSeparator('<span style="padding-right:10px"></span>')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoRadionArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('radio', 'marketoffer');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default')
->setAttrib('style', 'margin-right:4px')
->setSeparator('<span style="padding-right:10px"></span>')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoRadionArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('select', 'sourcing');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default select-country')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('radio', 'B2B');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default')
->setAttrib('style', 'margin-right:4px')
->setSeparator('<span style="padding-right:10px"></span>')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoRadionArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('radio', 'B2C');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default')
->setAttrib('style', 'margin-right:4px')
->setSeparator('<span style="padding-right:10px"></span>')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoRadionArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('radio', 'website');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default')
->setAttrib('style', 'margin-right:4px')
->setSeparator('<span style="padding-right:10px"></span>')
->setAttrib('onclick','checkwebsite(this.value)')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoRadionArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'smsaddon');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'emailaddon');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'autoFollowupsemail');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'extraProposal');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'extraResendModification');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'freshProposalsExtraCost');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'freeSMSExtraCost');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'freeEmailExtraCost');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'autoFollowUpsExtraCost');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'marketingEmailExtraCost');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('radio', 'hotelCotracting');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default')
->setAttrib('style', 'margin-right:4px')
->setSeparator('<span style="padding-right:10px"></span>')
->setAttrib('onclick','checkhotelcontract(this.value)')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoRadionArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'noOfHotels');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('select', 'webOnlyPackage');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default select-country')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('select', 'webWithFixDep');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default select-country')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('select', 'webWithActSight');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default select-country')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('select', 'webWithPackage');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default select-country')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('select', 'webSelfPackage');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default select-country')
->setAttrib('onchange', 'checkselfPackage(this.value)')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'webSelfNoOfPack');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('select', 'webflight');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default select-country')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('select', 'webhotel');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default select-country')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoArr);
$this->addElement($inquiry_name);
// $inquiry_name = $this->createElement('select', 'monthlyOption');
// $inquiry_name->removeDecorator('label')
// ->setAttrib('class', 'demo-default select-country')
// ->removeDecorator('HtmlTag');
// $inquiry_name->addMultiOptions($YesNoArr);
// $this->addElement($inquiry_name);
$inquiry_name = $this->createElement('select', 'quarterlyOption');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default select-country')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('select', 'halfYrOption');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default select-country')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('select', 'anualOption');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default select-country')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('select', 'payperuseOption');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'demo-default select-country')
->removeDecorator('HtmlTag');
$inquiry_name->addMultiOptions($YesNoArr);
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'monthlySetupFee');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'monthlyPerMonthFee');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'quarterlySetupFee');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'quarterlyPerMonthFee');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'halfYrSetupFee');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'halfYrPerMonthFee');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'anualSetupFee');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'anualPerMonthFee');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'monthlyInvoice');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'marketingEmail');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$noof_pack = $this->createElement('text', 'noOfPackages');
$noof_pack->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($noof_pack);
$noof_pack = $this->createElement('text', 'noOfPackagesExtraCost');
$noof_pack->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($noof_pack);
$inquiry_name = $this->createElement('text', 'payperuseSetupFee');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'payperusePerMonthFee');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
$inquiry_name = $this->createElement('text', 'razorpaySubscriptionPlanId');
$inquiry_name->removeDecorator('label')
->setAttrib('class', 'form-control whbg')
->removeDecorator('HtmlTag');
$this->addElement($inquiry_name);
}
}