当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Form_Element_Hidden::setAttribs方法代码示例

本文整理汇总了PHP中Zend_Form_Element_Hidden::setAttribs方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Form_Element_Hidden::setAttribs方法的具体用法?PHP Zend_Form_Element_Hidden::setAttribs怎么用?PHP Zend_Form_Element_Hidden::setAttribs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_Form_Element_Hidden的用法示例。


在下文中一共展示了Zend_Form_Element_Hidden::setAttribs方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addProServiceCategory

 public function addProServiceCategory($data = null)
 {
     $_title = new Zend_Dojo_Form_Element_ValidationTextBox('servicetype_title');
     $_title->setAttribs(array('dojoType' => $this->tvalidate, 'class' => 'fullside', 'required' => 'true'));
     $_tem_desc = new Zend_Dojo_Form_Element_TextBox('item_desc');
     $_tem_desc->setAttribs(array('dojoType' => $this->text, 'required' => 'true', 'class' => 'fullside'));
     $_status = new Zend_Dojo_Form_Element_FilteringSelect('sertype_status');
     $_status->setAttribs(array('dojoType' => $this->filter, 'class' => 'fullside'));
     $_status_opt = array(1 => $this->tr->translate("ACTIVE"), 0 => $this->tr->translate("DACTIVE"));
     $_status->setMultiOptions($_status_opt);
     $_type = new Zend_Dojo_Form_Element_FilteringSelect('ser_type');
     $_status_type = array(1 => $this->tr->translate("SERVICE"), 2 => $this->tr->translate("PROGRAM"));
     $_type->setMultiOptions($_status_type);
     $_type->setAttribs(array('dojoType' => $this->filter, 'class' => 'fullside'));
     $_id = new Zend_Form_Element_Hidden('id');
     $_id->setAttribs(array('dojoType' => $this->text));
     if ($data != null) {
         $_id->setValue($data['id']);
         $_title->setValue($data['title']);
         $_tem_desc->setValue($data['item_desc']);
         $_status->setValue($data['status']);
         $_type->setValue($data['type']);
     }
     $this->addElements(array($_title, $_tem_desc, $_status, $_type, $_id));
     return $this;
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:26,代码来源:FrmPopupGlobal.php

示例2: FrmChangeCollteral

 public function FrmChangeCollteral($data = null)
 {
     $db = new Application_Model_DbTable_DbGlobal();
     $request = Zend_Controller_Front::getInstance()->getRequest();
     $_title = new Zend_Dojo_Form_Element_TextBox('adv_search');
     $_title->setAttribs(array('dojoType' => $this->tvalidate, 'onkeyup' => 'this.submit()', 'placeholder' => $this->tr->translate("ADVANCE_SEARCH")));
     $_title->setValue($request->getParam("adv_search"));
     $_client_code = new Zend_Dojo_Form_Element_FilteringSelect('client_code');
     $_client_code->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'onchange' => 'getOwnerInfo();'));
     $group_opt = $db->getGroupCodeById(1, 0, 1);
     //code,individual,option
     $_client_code->setMultiOptions($group_opt);
     $_client_code->setValue($request->getParam('client_code'));
     $_status_search = new Zend_Dojo_Form_Element_FilteringSelect('status_search');
     $_status_search->setAttribs(array('dojoType' => $this->filter));
     $_status_opt = array(-1 => $this->tr->translate("ALL"), 1 => $this->tr->translate("ACTIVE"), 0 => $this->tr->translate("DACTIVE"));
     $_status_search->setMultiOptions($_status_opt);
     $_status_search->setValue($request->getParam("status_search"));
     $_btn_search = new Zend_Dojo_Form_Element_SubmitButton('btn_search');
     $_btn_search->setAttribs(array('dojoType' => 'dijit.form.Button', 'iconclass' => 'dijitIconSearch'));
     $_branch_id = new Zend_Dojo_Form_Element_FilteringSelect('branch_id');
     $_branch_id->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'required' => 'true', 'onchange' => 'filterClient();'));
     $rows = $db->getAllBranchName();
     $options = array('' => "---Select Branch Name---");
     if (!empty($rows)) {
         foreach ($rows as $row) {
             $options[$row['br_id']] = $row['branch_namekh'];
         }
     }
     $_branch_id->setMultiOptions($options);
     $_branch_id->setValue($request->getParam('branch_id'));
     $db = new Application_Model_DbTable_DbGlobal();
     $co_name = new Zend_Dojo_Form_Element_FilteringSelect('co_name');
     $rows = $db->getAllCOName();
     $options = array('' => "------Select------", -1 => "Add New");
     if (!empty($rows)) {
         foreach ($rows as $row) {
             $options[$row['co_id']] = $row['co_khname'];
         }
     }
     $co_name->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'onchange' => 'popupCheckCO();'));
     $Date = new Zend_Dojo_Form_Element_DateTextBox('date');
     $Date->setAttribs(array('dojoType' => 'dijit.form.DateTextBox'));
     $number_code = new Zend_Dojo_Form_Element_NumberTextBox('number_code');
     $number_code->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'required' => true));
     $contract_code = new Zend_Dojo_Form_Element_NumberTextBox('contract_code');
     $contract_code->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'required' => true));
     $_code = new Zend_Dojo_Form_Element_NumberTextBox('code');
     $_code->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'required' => true));
     $clint_name = new Zend_Dojo_Form_Element_FilteringSelect('client_name');
     $clint_name->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'onchange' => 'checkClientCode()'));
     $options = $db->getGroupCodeById(2, 0, 1);
     $clint_name->setMultiOptions($options);
     $owner = new Zend_Dojo_Form_Element_ValidationTextBox('owner');
     $owner->setAttribs(array('dojoType' => 'dijit.form.ValidationTextBox'));
     $db = new Application_Model_DbTable_DbGlobal();
     $collteral_type = new Zend_Dojo_Form_Element_FilteringSelect('collteral_type');
     $collteral_type->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect'));
     $opt = $db->getCollteralType(1);
     $opt = array('' => '------Select------', 1 => 'ផ្ទាល់ខ្លួន', 2 => 'អ្នកធានាជំនួស');
     $collteral_type->setMultiOptions($opt);
     $collteral_type->setValue($request->getParam('collteral_type'));
     $note = new Zend_Dojo_Form_Element_TextBox('note');
     $note->setAttribs(array('dojoType' => 'dijit.form.TextBox'));
     $_note = new Zend_Dojo_Form_Element_TextBox('_note');
     $_note->setAttribs(array('dojoType' => 'dijit.form.TextBox'));
     $_note->setValue('return back to client');
     $Date = new Zend_Dojo_Form_Element_DateTextBox('date');
     $Date->setAttribs(array('dojoType' => 'dijit.form.DateTextBox'));
     $Date->setValue(date('Y-m-d'));
     $stutas = new Zend_Dojo_Form_Element_FilteringSelect('Stutas');
     $stutas->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect'));
     $options = array(1 => "ប្រើប្រាស់", 0 => "មិនប្រើប្រាស់");
     $stutas->setMultiOptions($options);
     $cod_cal = new Zend_Dojo_Form_Element_TextBox('cod_cal');
     $cod_cal->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'readOnly' => 'readOnly', 'style' => 'color:red'));
     $code = Group_Model_DbTable_DbCallteral::getCallteralCode();
     $cod_cal->setValue($code);
     $db = new Application_Model_DbTable_DbGlobal();
     $from = new Zend_Dojo_Form_Element_FilteringSelect('from');
     $from->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'required' => true));
     $from->setValue($request->getParam('from'));
     $opt = $db->getCollteralType(1);
     $from->setMultiOptions($opt);
     $to = new Zend_Dojo_Form_Element_FilteringSelect('to');
     $to->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'required' => true));
     $opt = $db->getCollteralType(1);
     $to->setMultiOptions($opt);
     $to->setValue($request->getParam('to'));
     $receiver_name = new Zend_Dojo_Form_Element_ValidationTextBox('receiver_name');
     $receiver_name->setAttribs(array('dojoType' => 'dijit.form.ValidationTextBox', 'required' => true));
     $giver_name = new Zend_Dojo_Form_Element_ValidationTextBox('giver_name');
     $giver_name->setAttribs(array('dojoType' => 'dijit.form.ValidationTextBox', 'required' => true));
     $owner_name = new Zend_Dojo_Form_Element_TextBox('owner_name');
     $owner_name->setAttribs(array('dojoType' => 'dijit.form.TextBox'));
     $collteral_id = new Zend_Form_Element_Hidden('collteral_id');
     $collteral_id->setAttribs(array('dojoType' => 'dijit.form.TextBox'));
     $changecollteral_id = new Zend_Form_Element_Text('changecollteral_id');
     $changecollteral_id->setAttribs(array('dojoType' => 'dijit.form.TextBox'));
     $from_date = new Zend_Dojo_Form_Element_DateTextBox('start_date');
//.........这里部分代码省略.........
开发者ID:samlanh,项目名称:lynacr,代码行数:101,代码来源:Frmchangecollteral.php

示例3: quickPayment

	public function quickPayment(){
		$db = new Application_Model_DbTable_DbGlobal();
		
		$branch_id = new Zend_Dojo_Form_Element_FilteringSelect("branch_id");
		$branch_id->setAttribs(array(
				'dojoType'=>'dijit.form.FilteringSelect',
				'class'=>'fullside',
				'required' =>'true',
				'OnChange'	=> 'filterCo();'
		));
		
		$rows = $db->getAllBranchName();
		$options=array(''=>'------Select------');
		if(!empty($rows))foreach($rows AS $row){
			$options[$row['br_id']]=$row['branch_namekh'];
		}
		$branch_id->setMultiOptions($options);
		
		$_coid = new Zend_Dojo_Form_Element_FilteringSelect('co_id');
		$rows = $db ->getAllCOName();
		$options=array(''=>"------Select------",-1=>"Add New");
		if(!empty($rows))foreach($rows AS $row) $options[$row['co_id']]=$row['co_khname'];
		$_coid->setAttribs(array(
				'dojoType'=>'dijit.form.FilteringSelect',
				'class'=>'fullside',
				//'onchange'=>'getLoan();'
		));
		$_coid->setMultiOptions($options);
		
		$_cocode = new Zend_Dojo_Form_Element_FilteringSelect('co_code');
		$rows = $db ->getAllCOName();
		$options=array(''=>"------Select------",-1=>"Add New");
		if(!empty($rows))foreach($rows AS $row) $options[$row['co_id']]=$row['co_code'];
		$_cocode->setAttribs(array(
				'dojoType'=>'dijit.form.FilteringSelect',
				'class'=>'fullside',
				'onchange'=>'getLoan();'
		));
		$_cocode->setMultiOptions($options);
		
		
		$_priciple_amount = new Zend_Dojo_Form_Element_NumberTextBox('priciple_amount');
		$_priciple_amount->setAttribs(array(
				'dojoType'=>'dijit.form.NumberTextBox',
				'class'=>'fullside',
				'readOnly'=>'readOnly'
		));
		
		$_loan_fee = new Zend_Dojo_Form_Element_NumberTextBox('loan_fee');
		$_loan_fee->setAttribs(array(
				'dojoType'=>'dijit.form.NumberTextBox',
				'class'=>'fullside',
				'readOnly'=>'readOnly'
		));
		
		$_os_amount = new Zend_Dojo_Form_Element_NumberTextBox('os_amount');
		$_os_amount->setAttribs(array(
				'dojoType'=>'dijit.form.NumberTextBox',
				'class'=>'fullside',
				'readOnly'=>'readOnly',
				'required'=>true,
		));
		
		$_rate = new Zend_Dojo_Form_Element_NumberTextBox('total_interest');
		$_rate->setAttribs(array(
				'dojoType'=>'dijit.form.NumberTextBox',
				'class'=>'fullside',
				'required' =>'true',
				'style'=>'color:red;',
				'readOnly'=>'readOnly',
				'required'=>true,
		));
		// 		$value_interest = 2.5;
		// 		$_rate->setValue($value_interest);
		
		$_penalize_amount = new Zend_Dojo_Form_Element_NumberTextBox('penalize_amount');
		$_penalize_amount->setAttribs(array(
				'dojoType'=>'dijit.form.NumberTextBox',
				'class'=>'fullside',
				'required'=>true,
				'readOnly'=>'readOnly'
		));
		$_penalize_amount->setValue(0);
		
		$_total_payment = new Zend_Dojo_Form_Element_NumberTextBox('total_payment');
		$_total_payment->setAttribs(array(
				'dojoType'=>'dijit.form.NumberTextBox',
				'class'=>'fullside',
				'required' =>'true',
				'style'=>'color:red;',
				'required'=>true,
				'readOnly'=>'readOnly'
		));
		
		$_hide_total_payment = new Zend_Form_Element_Hidden('hide_total_payment');
		$_hide_total_payment->setAttribs(array(
				'dojoType'=>'dijit.form.TextBox',
		));
		
		$_note = new Zend_Dojo_Form_Element_TextBox('note');
//.........这里部分代码省略.........
开发者ID:sarankh80,项目名称:lnms,代码行数:101,代码来源:FrmIlPayment.php


注:本文中的Zend_Form_Element_Hidden::setAttribs方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。