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


PHP Zend_Dojo_Form_Element_FilteringSelect::setValue方法代码示例

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


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

示例1: FrmGeneraljurnal

 public function FrmGeneraljurnal($data = null)
 {
     $Brance = new Zend_Dojo_Form_Element_FilteringSelect('branch_id');
     $Brance->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'required' => true, 'onchange' => 'getJurnalcode();'));
     $db = new Application_Model_DbTable_DbGlobal();
     $rows = $db->getAllBranchName();
     $options = '';
     if (!empty($rows)) {
         foreach ($rows as $row) {
             $options[$row['br_id']] = $row['branch_namekh'];
         }
     }
     $rows = $db->getAllBranchName();
     $options = array('' => '---Select Branch---');
     if (!empty($rows)) {
         foreach ($rows as $row) {
             $options[$row['br_id']] = $row['branch_namekh'];
         }
     }
     $Brance->setMultiOptions($options);
     $_currency_type = new Zend_Dojo_Form_Element_FilteringSelect('currency_type');
     $_currency_type->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
     $opt = $db->getVewOptoinTypeByType(15, 1, 3, 1);
     $_currency_type->setMultiOptions($opt);
     $_currency_type->setValue(2);
     $parent = new Zend_Dojo_Form_Element_FilteringSelect('parent');
     $parent->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'required' => true, 'onchange' => 'getAllAccountNameByParents();'));
     $db = new Accounting_Model_DbTable_DbChartaccount();
     $option = $db->getAllchartaccount(3, 1);
     $parent->setMultiOptions($option);
     $Add_Date = new Zend_Dojo_Form_Element_DateTextBox('add_date');
     $Add_Date->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside', 'required' => true));
     $Add_Date->setValue(date('Y-m-d'));
     $Account_Number = new Zend_Dojo_Form_Element_TextBox('journal_code');
     $Account_Number->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside', 'readOnly' => 'readOnly', 'required' => 'true'));
     $invoice = new Zend_Dojo_Form_Element_TextBox('invoice');
     $invoice->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $Note = new Zend_Dojo_Form_Element_TextBox('note');
     $Note->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $Debit = new Zend_Dojo_Form_Element_NumberTextBox('debit');
     $Debit->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'required' => 1, 'readonly' => 'readonly'));
     // 		$Debit->setValue(0);
     $Credit = new Zend_Dojo_Form_Element_NumberTextBox('credit');
     $Credit->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'required' => 1, 'readonly' => 'readonly'));
     $id = new Zend_Form_Element_Hidden('id');
     if ($data != null) {
         $id->setValue($data['id']);
         $Brance->setValue($data['branch_id']);
         $Account_Number->setValue($data['journal_code']);
         $invoice->setValue($data['receipt_number']);
         $_currency_type->setValue($data['currency_id']);
         $Note->setValue($data['note']);
         $Add_Date->setValue($data['date']);
         $Debit->setValue($data['debit']);
         $Credit->setValue($data['credit']);
     }
     // 		$Credit->setValue(0);
     $this->addElements(array($id, $invoice, $_currency_type, $parent, $Add_Date, $Account_Number, $Note, $Debit, $Credit, $Brance));
     return $this;
 }
开发者ID:samlanh,项目名称:lnms,代码行数:60,代码来源:FrmGeneraljurnal.php

示例2: partnerinformation

 public function partnerinformation($data = null)
 {
     $_db = new Application_Model_DbTable_DbGlobal();
     $id = new Zend_Form_Element_Hidden('id');
     /* Form Elements & Other Definitions Here ... */
     $request = Zend_Controller_Front::getInstance()->getRequest();
     /* Form Elements & Other Definitions Here ... */
     $accourn_number = new Zend_Dojo_Form_Element_TextBox('accourn_number');
     $accourn_number->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'readOnly' => true));
     $name_partner = new Zend_Dojo_Form_Element_FilteringSelect('name_partner');
     $name_partner->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'Onchange' => 'getPartner()', 'Required' => true));
     $db = new Application_Model_DbTable_DbGlobal();
     $opt = $db->getAllPartner(null, 1);
     $name_partner->setMultiOptions($opt);
     $name_partner->setValue($request->getParam('name_partner'));
     $moneyinaccount = new Zend_Dojo_Form_Element_TextBox('moneyinaccount');
     $moneyinaccount->setAttribs(array('dojoType' => 'dijit.form.TextBox'));
     $account = new Zend_Dojo_Form_Element_NumberTextBox('account');
     $account->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox'));
     $box1 = new Zend_Dojo_Form_Element_NumberTextBox('box1');
     $box1->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox'));
     $box2 = new Zend_Dojo_Form_Element_NumberTextBox('box2');
     $box2->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox'));
     $box3 = new Zend_Dojo_Form_Element_DateTextBox('box3');
     $box3->setAttribs(array('dojoType' => 'dijit.form.DateTextBox'));
     $box4 = new Zend_Dojo_Form_Element_NumberTextBox('box4');
     $box4->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox'));
     $usa = new Zend_Dojo_Form_Element_NumberTextBox('usa');
     $usa->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'readOnly' => true));
     $bathe = new Zend_Dojo_Form_Element_NumberTextBox('bathe');
     $bathe->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'readOnly' => true));
     $reil = new Zend_Dojo_Form_Element_NumberTextBox('reil');
     $reil->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'readOnly' => true));
     $creat_date = new Zend_Dojo_Form_Element_DateTextBox('creat_date');
     $creat_date->setAttribs(array('dojoType' => 'dijit.form.DateTextBox'));
     $creat_date->setValue(date('Y-m-d'));
     $db_Deposite = new Partner_Model_DbTable_DbDeposite();
     $invoices_num = $db_Deposite->getAutonumber();
     $num_invoice = new Zend_Dojo_Form_Element_TextBox('num_invoice');
     $num_invoice->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'readOnly' => true, 'style' => 'color:red'));
     $num_invoice->setValue($invoices_num);
     $id = new Zend_Form_Element_Hidden('id');
     if ($data != null) {
         $name_partner->setValue($data['partner_id']);
         $accourn_number->setValue($data['account_no']);
         $creat_date->setValue($data['date']);
         $moneyinaccount->setValue($data['note']);
         $num_invoice->setValue($data['invoice']);
         $id->setValue($data['id']);
         $usa->setValue($data['cash_dollar']);
         $reil->setValue($data['cash_riel']);
         $bathe->setValue($data['cash_bath']);
     }
     $this->addElements(array($accourn_number, $name_partner, $moneyinaccount, $account, $box1, $box2, $box3, $box4, $bathe, $usa, $creat_date, $reil, $id, $num_invoice));
     return $this;
 }
开发者ID:samlanh,项目名称:currencyms,代码行数:56,代码来源:FrmDeposite.php

示例3: FrmAddSchool

 public function FrmAddSchool($data = null)
 {
     $_classname = new Zend_Dojo_Form_Element_TextBox('schoolname');
     $_classname->setAttribs(array('dojoType' => $this->tvalidate, 'required' => 'true', 'class' => 'fullside'));
     $_province = new Zend_Dojo_Form_Element_FilteringSelect('province');
     $_province->setAttribs(array('dojoType' => $this->filter, 'class' => 'fullside'));
     $_db = new Application_Model_DbTable_DbGlobal();
     $rows_school = $_db->getGlobalDb("SELECT province_id,province_en_name FROM rms_province ");
     $opt_school = "";
     if (!empty($rows_school)) {
         foreach ($rows_school as $row) {
             $opt_school[$row['province_id']] = $row['province_en_name'];
         }
     }
     $_province->setMultiOptions($opt_school);
     $_status = new Zend_Dojo_Form_Element_FilteringSelect('status');
     $_status->setAttribs(array('dojoType' => $this->filter, 'class' => 'fullside'));
     $_status_opt = array(1 => $this->tr->translate("ACTIVE"), 2 => $this->tr->translate("DACTIVE"));
     $_status->setMultiOptions($_status_opt);
     $_submit = new Zend_Dojo_Form_Element_SubmitButton('submit');
     $_submit->setLabel("save");
     $id = new Zend_Form_Element_Hidden('id');
     if (!empty($data)) {
         $_classname->setValue($data['school_name']);
         $_status->setValue($data['status']);
         $_province->setValue($data['province_id']);
         $id->setValue($data['id']);
     }
     $this->addElements(array($_classname, $_status, $_submit, $_province, $id));
     return $this;
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:31,代码来源:FrmAddSchool.php

示例4: FrmCategory

 public function FrmCategory($data = null)
 {
     $db = new Product_Model_DbTable_DbCategory();
     $row = $db->getCategory();
     $name = new Zend_Dojo_Form_Element_TextBox('name');
     $name->setAttribs(array('dojoType' => $this->text, 'class' => 'fullside'));
     $parent = new Zend_Dojo_Form_Element_FilteringSelect('parent');
     $parent->setAttribs(array('dojoType' => $this->filter, 'class' => 'fullside'));
     $opt_parent = array('0' => $this->tr->translate("SELECT"));
     if ($row) {
         foreach ($row as $rs) {
             $opt_parent[$rs["id"]] = $rs["name"];
         }
     }
     $parent->setMultiOptions($opt_parent);
     $opt_statu = array(1 => $this->tr->translate("Active"), 0 => $this->tr->translate("Deactve"));
     $status = new Zend_Dojo_Form_Element_FilteringSelect('status');
     $status->setAttribs(array('dojoType' => $this->filter, 'class' => 'fullside'));
     $status->setMultiOptions($opt_statu);
     $this->addElements(array($name, $parent, $status));
     if ($data) {
         $parent->setValue($data["parent_id"]);
         $name->setValue($data["name"]);
         $status->setValue($data["status"]);
     }
     return $this;
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:27,代码来源:FrmCategory.php

示例5: 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

示例6: FrmAddHoliday

 public function FrmAddHoliday($_data = null)
 {
     $_holiday_name = new Zend_Dojo_Form_Element_TextBox('holiday_name');
     $_holiday_name->setAttribs(array('dojoType' => $this->tvalidate, 'required' => 'true', 'class' => 'fullside'));
     $_startdate = new Zend_Dojo_Form_Element_DateTextBox('start_date');
     $_startdate->setAttribs(array('dojoType' => $this->date, 'required' => 'true', 'class' => 'fullside', 'onchange' => 'CalculateDate();'));
     $date = date("Y-m-d");
     $_startdate->setValue($date);
     $_enddate = new Zend_Dojo_Form_Element_DateTextBox('end_date');
     $_enddate->setAttribs(array('dojoType' => $this->date, 'required' => 'true', 'class' => 'fullside'));
     $_date = date("Y-m-d");
     $_enddate->setValue($_date);
     $_amount_day = new Zend_Dojo_Form_Element_NumberTextBox('amount_day');
     $_amount_day->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'required' => 'true', 'class' => 'fullside', 'onkeyup' => 'CalculateDate();'));
     $_status = new Zend_Dojo_Form_Element_FilteringSelect('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);
     $_id = new Zend_Form_Element_Hidden('id');
     if (!empty($_data)) {
         $_holiday_name->setValue($_data['holiday_name']);
         $_startdate->setValue($_data['start_date']);
         $_amount_day->setValue($_data['amount_day']);
         $_enddate->setValue($_data['end_date']);
         $_status->setValue($_data['status']);
         $_id->setValue($_data['id']);
     }
     $this->addElements(array($_id, $_holiday_name, $_startdate, $_enddate, $_amount_day, $_status));
     return $this;
 }
开发者ID:samlanh,项目名称:currencyms,代码行数:30,代码来源:FrmHoliday.php

示例7: Frmcallecterall

 public function Frmcallecterall($data = null)
 {
     $name_en = new Zend_Dojo_Form_Element_TextBox('title_en');
     $name_en->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside', 'required' => true));
     $name_kh = new Zend_Dojo_Form_Element_TextBox('title_kh');
     $name_kh->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside', 'required' => true));
     $key_code = new Zend_Dojo_Form_Element_NumberTextBox('key_code');
     $key_code->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'required' => true));
     $_display = new Zend_Dojo_Form_Element_FilteringSelect('display_by');
     $_display->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
     $_display_opt = array(1 => $this->tr->translate("NAME_KHMER"), 2 => $this->tr->translate("NAME_ENGLISH"));
     $_display->setMultiOptions($_display_opt);
     $_arr = array(1 => $this->tr->translate("ACTIVE"), 0 => $this->tr->translate("DACTIVE"));
     $_status = new Zend_Dojo_Form_Element_FilteringSelect("status");
     $_status->setMultiOptions($_arr);
     $_status->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'required' => 'true', 'missingMessage' => 'Invalid Module!', 'class' => 'fullside'));
     $date_call = new Zend_Dojo_Form_Element_DateTextBox('date');
     $date_call->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside', 'required' => true));
     $date_call->setValue(date('Y-m-d'));
     $_id = new Zend_Form_Element_Hidden('id');
     if ($data != null) {
         $name_en->setValue($data['title_en']);
         $name_kh->setValue($data['title_kh']);
         $_display->setValue($data['displayby']);
         $_status->setValue($data['status']);
         $date_call->setValue($data['date']);
         //$key_code->setValue($data['key_code']);
         $_id->setValue($data['id']);
     }
     $this->addElements(array($name_en, $name_kh, $key_code, $_id, $_display, $_status, $date_call));
     return $this;
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:32,代码来源:Frmcallecteralltype.php

示例8: frmSender

 public function frmSender($data)
 {
     $sender = new Zend_Dojo_Form_Element_ValidationTextBox('sender_name');
     $sender->setAttribs(array("required" => true, "class" => "fullside", "dojoType" => "dijit.form.ValidationTextBox"));
     $sender_tel = new Zend_Dojo_Form_Element_NumberTextBox('tel');
     $sender_tel->setAttribs(array("class" => "fullside", "dojoType" => "dijit.form.ValidationTextBox"));
     $email = new Zend_Dojo_Form_Element_TextBox('email');
     $email->setAttribs(array("class" => "fullside", "dojoType" => "dijit.form.TextBox"));
     $address = new Zend_Dojo_Form_Element_TextBox('address');
     $address->setAttribs(array("class" => "fullside", "dojoType" => "dijit.form.TextBox"));
     $status = new Zend_Dojo_Form_Element_FilteringSelect('status');
     $status->setAttribs(array("class" => "fullside", "dojoType" => "dijit.form.FilteringSelect", "required" => true));
     $_opt = array(1 => "ប្រើប្រាស់", 0 => "មិនប្រើប្រាស់");
     $status->setMultiOptions($_opt);
     $sender_id = new Zend_Form_Element_Hidden('id');
     if (!empty($data)) {
         $sender_id->setValue($data['sender_id']);
         $sender->setValue($data['sender_name']);
         $sender_tel->setValue($data['tel']);
         $email->setValue($data['email']);
         $address->setValue($data['address']);
         $status->setValue($data['status']);
         //print_r($data);
     }
     $this->addElements(array($sender, $sender_tel, $email, $address, $sender_id, $status));
     return $this;
 }
开发者ID:samlanh,项目名称:currencyms,代码行数:27,代码来源:FrmSender.php

示例9: AdvanceSearch

 public function AdvanceSearch($data = null, $type = null)
 {
     $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"));
     $_status = new Zend_Dojo_Form_Element_FilteringSelect('status');
     $_status->setAttribs(array('dojoType' => $this->filter));
     $_status_opt = array(-1 => $this->tr->translate("ALL"), 1 => $this->tr->translate("ACTIVE"), 0 => $this->tr->translate("DACTIVE"));
     $_status->setMultiOptions($_status_opt);
     $_status->setValue($request->getParam("status"));
     $db = new Application_Model_DbTable_DbGlobal();
     $_btn_search = new Zend_Dojo_Form_Element_SubmitButton('btn_search');
     $_btn_search->setAttribs(array('dojoType' => 'dijit.form.Button', 'iconclass' => 'dijitIconSearch', 'label' => 'Search'));
     $from_date = new Zend_Dojo_Form_Element_DateTextBox('start_date');
     $from_date->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside', 'onchange' => 'CalculateDate();'));
     $_date = $request->getParam("start_date");
     if (empty($_date)) {
         $_date = date('Y-m-d');
     }
     $from_date->setValue($_date);
     $to_date = new Zend_Dojo_Form_Element_DateTextBox('end_date');
     $to_date->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'required' => 'true', 'class' => 'fullside'));
     $_date = $request->getParam("end_date");
     if (empty($_date)) {
         $_date = date("Y-m-d");
     }
     $to_date->setValue($_date);
     $this->addElements(array($from_date, $to_date, $type, $_title, $_title, $_status, $_btn_search));
     return $this;
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:31,代码来源:FrmAdvanceSearch.php

示例10: FrmAddZone

 public function FrmAddZone($_data = null)
 {
     $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("SEARCH_ZONE_INFO")));
     $_title->setValue($request->getParam("adv_search"));
     $_status_search = new Zend_Dojo_Form_Element_FilteringSelect('search_status');
     $_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("search_status"));
     $_btn_search = new Zend_Dojo_Form_Element_SubmitButton('btn_search');
     $_btn_search->setAttribs(array('dojoType' => 'dijit.form.Button', 'iconclass' => 'dijitIconSearch'));
     $_zone = new Zend_Dojo_Form_Element_TextBox('zone_name');
     $_zone->setAttribs(array('dojoType' => $this->tvalidate, 'required' => 'true', 'class' => 'fullside'));
     // 		$_stu= new Zend_Dojo_Form_Element_TextBox('zone_student');
     // 		$_stu->setAttribs(array('dojoType'=>$this->tvalidate,'required'=>'true','class'=>'fullside',));
     $_zone_number = new Zend_Dojo_Form_Element_TextBox('zone_number');
     $_zone_number->setAttribs(array('dojoType' => $this->tvalidate, 'required' => 'true', 'class' => 'fullside'));
     $_status = new Zend_Dojo_Form_Element_FilteringSelect('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);
     $_id = new Zend_Form_Element_Hidden('id');
     if (!empty($_data)) {
         $_id->setValue($_data['zone_id']);
         $_zone->setValue($_data['zone_name']);
         $_zone_number->setValue($_data['zone_num']);
         $_status->setValue($_data['status']);
     }
     $this->addElements(array($_btn_search, $_status_search, $_title, $_id, $_zone, $_status, $_id, $_zone_number));
     return $this;
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:33,代码来源:FrmZone.php

示例11: addSendMoney

 public function addSendMoney($data = null)
 {
     /* Form Elements & Other Definitions Here ... */
     $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("Keepping  INFO")));
     $_title->setValue($request->getParam("adv_search"));
     $sendname = new Zend_Dojo_Form_Element_FilteringSelect('send_name');
     $sendname->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect'));
     $db = new Keeping_Model_DbTable_DbKeeping();
     $opt = $db->getNameKeeping(null, 1);
     $sendname->setMultiOptions($opt);
     //     	$opt=array(1=>"បន្ថែមឈ្មោះអ្នកផ្ញើរ",2=>"B",3=>"C",);
     //         $sendname->setMultiOptions($opt);
     $typemoney = new Zend_Dojo_Form_Element_FilteringSelect('type_money');
     $typemoney->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect'));
     $opt = array(1 => "dollar", 2 => "riel", 3 => "bart");
     $typemoney->setMultiOptions($opt);
     $pay_term = new Zend_Dojo_Form_Element_FilteringSelect('pay_term');
     $pay_term->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'onchange' => "calExpiredDate();"));
     $db = new Keeping_Model_DbTable_DbKeeping();
     $opt = $db->getNameView(null, 1);
     $pay_term->setMultiOptions($opt);
     //         $opt=array(1=>"ថ្ងៃ",2=>"សប្ថាហ៍",3=>"ខែ",);
     //         $pay_term->setMultiOptions($opt);
     $money_inacc = new Zend_Dojo_Form_Element_ValidationTextBox('money_inacc');
     $money_inacc->setAttribs(array('dojoType' => 'dijit.form.ValidationTextBox', 'required' => true));
     $date = new Zend_Dojo_Form_Element_DateTextBox('date');
     $date->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'onchange' => 'calExpiredDate();'));
     $date->setValue(date('Y-m-d'));
     $commission = new Zend_Dojo_Form_Element_ValidationTextBox('commission');
     $commission->setAttribs(array('dojoType' => 'dijit.form.ValidationTextBox', 'required' => true));
     $amount_month = new Zend_Dojo_Form_Element_ValidationTextBox('amount_month');
     $amount_month->setAttribs(array('dojoType' => 'dijit.form.ValidationTextBox', 'required' => true, 'onkeyup' => "calExpiredDate();"));
     $total_amount = new Zend_Dojo_Form_Element_ValidationTextBox('total_amount');
     $total_amount->setAttribs(array('dojoType' => 'dijit.form.ValidationTextBox', 'required' => true));
     $epx_date = new Zend_Dojo_Form_Element_DateTextBox('epx_date');
     $epx_date->setAttribs(array('dojoType' => 'dijit.form.DateTextBox'));
     $epx_date->setValue(date('Y-m-d'));
     $recieve_amount = new Zend_Dojo_Form_Element_ValidationTextBox('recieve_amount');
     $recieve_amount->setAttribs(array('dojoType' => 'dijit.form.ValidationTextBox', 'required' => true));
     $report = new Zend_Dojo_Form_Element_NumberTextBox('report');
     $report->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'required' => true));
     $report->setValue(0);
     $lbltotal_return = new Zend_Dojo_Form_Element_ValidationTextBox('lbltotal_return');
     $lbltotal_return->setAttribs(array('dojoType' => 'dijit.form.ValidationTextBox', 'required' => true));
     $id = new Zend_Form_Element_Hidden("id");
     if ($data != null) {
         $sendname->setValue($data['client_id']);
         $pay_term->setValue($data['payment_term']);
         $date->setValue($data['date_keeping']);
         $amount_month->setValue($data['amount_keeping']);
         $epx_date->setValue($data['exp_date']);
         $report->setValue($data['invoice_number']);
         $id->setValue($data['id']);
     }
     $this->addElements(array($sendname, $typemoney, $pay_term, $money_inacc, $date, $commission, $amount_month, $total_amount, $epx_date, $recieve_amount, $report, $lbltotal_return, $id));
     return $this;
 }
开发者ID:samlanh,项目名称:currencyms,代码行数:59,代码来源:FrmSendMoney.php

示例12: Frmchengcallecterall

 public function Frmchengcallecterall()
 {
     $db = new Application_Model_DbTable_DbGlobal();
     $request = Zend_Controller_Front::getInstance()->getRequest();
     $branch = new Zend_Dojo_Form_Element_FilteringSelect('branch');
     $branch->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'required' => true));
     $rows = $db->getAllBranchName();
     $options = '';
     if (!empty($rows)) {
         foreach ($rows as $row) {
             $options[$row['br_id']] = $row['branch_namekh'];
         }
     }
     $branch->setMultiOptions($options);
     $db = new Application_Model_DbTable_DbGlobal();
     $owner = new Zend_Dojo_Form_Element_FilteringSelect('owner');
     $owner->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'onchange' => "popupCheckStaff();"));
     $options = $db->getGroupCodeById(2, 0, 1);
     $owner->setMultiOptions($options);
     $db = new Application_Model_DbTable_DbGlobal();
     $owner_code = new Zend_Dojo_Form_Element_FilteringSelect('owner_code');
     $group_opt = $db->getGroupCodeById(1, 0, 1);
     //code,individual,option
     $owner_code->setMultiOptions($group_opt);
     $owner_code->setValue($request->getParam('client_code'));
     $from = new Zend_Dojo_Form_Element_FilteringSelect('from');
     $from->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', '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', 'class' => 'fullside', 'required' => true));
     $opt = $db->getCollteralType(1);
     $to->setMultiOptions($opt);
     $owners = new Zend_Dojo_Form_Element_TextBox('owners');
     $owners->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside', 'required' => true));
     $_personal = new Zend_Dojo_Form_Element_FilteringSelect('personal');
     $_personal->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
     $opt = array(1 => 'ផ្ទាល់ខ្លួន', 2 => 'អ្នកធានាជំនួស');
     $_personal->setMultiOptions($opt);
     $_personal->setValue(1);
     $numbernote = new Zend_Dojo_Form_Element_NumberTextBox('numbernote');
     $numbernote->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'required' => true));
     $date = new Zend_Dojo_Form_Element_DateTextBox('date');
     $date->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside', 'required' => true));
     $date->setValue(date('Y-m-d'));
     $note = new Zend_Dojo_Form_Element_TextBox('note');
     $note->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside', 'required' => true));
     $status = new Zend_Dojo_Form_Element_FilteringSelect('status');
     $status->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'required' => true));
     $options = array(1 => "ប្រើប្រាស់", 2 => "មិនប្រើប្រាស់");
     $status->setMultiOptions($options);
     $detial = new Zend_Dojo_Form_Element_TextBox('detial');
     $detial->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside', 'required' => true));
     $this->addElements(array($branch, $owner, $from, $to, $date, $note, $status, $owners, $owner_code, $detial, $_personal, $numbernote));
     return $this;
 }
开发者ID:samlanh,项目名称:lnms,代码行数:57,代码来源:Frmchengcallecterall.php

示例13: FrmAddExpense

 public function FrmAddExpense($data = null)
 {
     $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("SEARCH SALARY EXPENSE")));
     $_title->setValue($request->getParam("adv_search"));
     $_btn_search = new Zend_Dojo_Form_Element_SubmitButton('btn_search');
     $_btn_search->setAttribs(array('dojoType' => 'dijit.form.Button', 'iconclass' => 'dijitIconSearch'));
     $account_name = new Zend_Dojo_Form_Element_ValidationTextBox('account_name');
     $account_name->setAttribs(array('dojoType' => 'dijit.form.ValidationTextBox', 'class' => 'fullside', 'required' => true));
     $for_date = new Zend_Dojo_Form_Element_FilteringSelect('for_date');
     $for_date->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
     $dg = new Application_Model_DbTable_DbGlobal();
     $opt_month = $dg->getAllMonths();
     $for_date->setMultiOptions($opt_month);
     $for_date->setValue(date('m'));
     // $for_date->setValue($request->getParam('for_date'));
     $for_date_search = new Zend_Dojo_Form_Element_FilteringSelect('for_date_search');
     $for_date_search->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
     $dg = new Application_Model_DbTable_DbGlobal();
     $opt_month = $dg->getAllMonths();
     $for_date_search->setMultiOptions($opt_month);
     $for_date_search->setValue($request->getParam('for_date_search'));
     $_Date = new Zend_Dojo_Form_Element_DateTextBox('Date');
     $_Date->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'required' => true, 'class' => 'fullside'));
     $_Date->setValue(date('Y-m-d'));
     $_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"));
     $_stutas = new Zend_Dojo_Form_Element_FilteringSelect('Stutas');
     $_stutas->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
     $options = array(1 => "ប្រើប្រាស់", 2 => "មិនប្រើប្រាស់");
     $_stutas->setMultiOptions($options);
     $currency_type = new Zend_Dojo_Form_Element_FilteringSelect('currency_type');
     $currency_type->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
     $options = array(1 => "រៀល", 2 => "ដុល្លារ", 3 => "បាត");
     $currency_type->setMultiOptions($options);
     $_Description = new Zend_Dojo_Form_Element_Textarea('Description');
     $_Description->setAttribs(array('dojoType' => 'dijit.form.SimpleTextarea', 'class' => 'fullside', 'style' => 'width:98%'));
     $total_amount = new Zend_Dojo_Form_Element_NumberTextBox('total_amount');
     $total_amount->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'required' => true));
     $id = new Zend_Form_Element_Hidden("id");
     if ($data != null) {
         $account_name->setValue($data['account_name']);
         $total_amount->setValue($data['total_amount']);
         $currency_type->setValue($data['currency_type']);
         $for_date->setValue($data['fordate']);
         $_Description->setValue($data['disc']);
         $_Date->setValue($data['date']);
         $_stutas->setValue($data['status']);
         $id->setValue($data['id']);
     }
     $this->addElements(array($account_name, $_Date, $_stutas, $_Description, $total_amount, $_title, $_btn_search, $_status_search, $for_date_search, $currency_type, $for_date, $id));
     return $this;
 }
开发者ID:samlanh,项目名称:currencyms,代码行数:57,代码来源:Frmexpense.php

示例14: FrmAddCO

 public function FrmAddCO($_data = null)
 {
     $_co_id = new Zend_Dojo_Form_Element_TextBox('co_id');
     $_co_id->setAttribs(array('dojoType' => $this->tvalidate, 'required' => 'true', 'class' => 'fullside'));
     $_name_kh = new Zend_Dojo_Form_Element_TextBox('name_kh');
     $_name_kh->setAttribs(array('dojoType' => $this->tvalidate, 'required' => 'true', 'class' => 'fullside'));
     $_enname = new Zend_Dojo_Form_Element_TextBox('first_name');
     $_enname->setAttribs(array('dojoType' => $this->tvalidate, 'required' => 'true', 'class' => 'fullside'));
     $_lname = new Zend_Dojo_Form_Element_TextBox('last_name');
     $_lname->setAttribs(array('dojoType' => $this->text, 'class' => 'fullside'));
     $_sex = new Zend_Dojo_Form_Element_FilteringSelect('co_sex');
     $_sex->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
     $opt = array(1 => "Male", 2 => "Femail");
     $_sex->setMultiOptions($opt);
     $_tel = new Zend_Dojo_Form_Element_TextBox('tel');
     $_tel->setAttribs(array('dojoType' => $this->tvalidate, 'required' => 'true', 'class' => 'fullside'));
     $_email = new Zend_Dojo_Form_Element_TextBox('email');
     $_email->setAttribs(array('dojoType' => $this->text, 'class' => 'fullside'));
     $_national_id = new Zend_Dojo_Form_Element_TextBox('national_id');
     $_national_id->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside'));
     $_address = new Zend_Dojo_Form_Element_TextBox('address');
     $_address->setAttribs(array('dojoType' => $this->text, 'class' => 'fullside'));
     $_pob = new Zend_Dojo_Form_Element_TextBox('pob');
     $_pob->setAttribs(array('dojoType' => $this->text, 'class' => 'fullside'));
     $_status = new Zend_Dojo_Form_Element_FilteringSelect('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);
     $_display = new Zend_Dojo_Form_Element_FilteringSelect('display');
     $_display->setAttribs(array('dojoType' => $this->filter, 'class' => 'fullside'));
     $_display_opt = array(1 => $this->tr->translate("NAME_KHMER"), 2 => $this->tr->translate("NAME_ENGLISH"));
     $_display->setMultiOptions($_display_opt);
     $_degree = new Zend_Dojo_Form_Element_FilteringSelect('degree');
     $_degree->setAttribs(array('dojoType' => $this->filter, 'class' => 'fullside'));
     $db = new Application_Model_DbTable_DbGlobal();
     $degree_opt = $db->getAllDegree();
     $_id = new Zend_Form_Element_Hidden('id');
     if (!empty($_data)) {
         $_co_id->setValue($_data['co_code']);
         $_name_kh->setValue($_data['co_khname']);
         $_enname->setValue($_data['co_firstname']);
         $_lname->setValue($_data['co_lastname']);
         $_display->setValue($_data['displayby']);
         $_national_id->setValue($_data['national_id']);
         $_pob->setValue($_data['pob']);
         $_degree->setValue($_data['degree']);
         $_tel->setValue($_data['tel']);
         $_email->setValue($_data['email']);
         $_address->setValue($_data['address']);
         $_status->setValue($_data['status']);
         $_id->setValue($_data['co_id']);
     }
     $this->addElements(array($_id, $_co_id, $_name_kh, $_degree, $_national_id, $_display, $_enname, $_lname, $_sex, $_tel, $_email, $_pob, $_address, $_status));
     return $this;
 }
开发者ID:samlanh,项目名称:currencyms,代码行数:55,代码来源:FrmCO.php

示例15: FrmBooking

 public function FrmBooking()
 {
     $advance_search = new Zend_Dojo_Form_Element_DateTextBox("adv_search");
     $advance_search->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $db = new Report_Model_DbTable_booking();
     $row_book_no = $db->getBookNo();
     $request = Zend_Controller_Front::getInstance()->getRequest();
     $c_date = date("Y-m-d");
     $opt_book_no = array('-1' => $this->tr->translate("Select Booking Number"));
     foreach ($row_book_no as $rs) {
         $opt_book_no[$rs["booking_no"]] = $rs["booking_no"];
     }
     $book_no = new Zend_Dojo_Form_Element_FilteringSelect("book_no");
     $book_no->setMultiOptions($opt_book_no);
     $book_no->setAttribs(array('dojoType' => "dijit.form.FilteringSelect", 'class' => 'fullside'));
     $book_no->setValue($request->getParam("book_no"));
     $this->addElement($book_no);
     $opt_customer = array('-1' => $this->tr->translate("Select Customer"));
     foreach ($db->getCustomerNo() as $rs) {
         $opt_customer[$rs["id"]] = $rs["customer"];
     }
     $customer = new Zend_Dojo_Form_Element_FilteringSelect("customer");
     $customer->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'placeholder' => $this->tr->translate("CUSTOMER_NAME")));
     $customer->setMultiOptions($opt_customer);
     $customer->setValue($request->getParam("customer"));
     $date_book = new Zend_Dojo_Form_Element_DateTextBox("date_book");
     $date_book->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside'));
     if ($request->getParam("date_book") == "") {
         $date_book->setValue($c_date);
     } else {
         $date_book->setValue($request->getParam("date_book"));
     }
     $pickup_date = new Zend_Dojo_Form_Element_DateTextBox("pickup_date");
     $pickup_date->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside'));
     if ($request->getParam("pickup_date") == "") {
         $pickup_date->setValue($c_date);
     } else {
         $pickup_date->setValue($request->getParam("pickup_date"));
     }
     $return_date = new Zend_Dojo_Form_Element_DateTextBox("return_date");
     $return_date->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside'));
     if ($request->getParam("return_date") == "") {
         $return_date->setValue($c_date);
     } else {
         $return_date->setValue($request->getParam("return_date"));
     }
     $opt_status = array('-1' => "Select Status", '1' => "Active", '0' => "Deactive");
     $status = new Zend_Dojo_Form_Element_FilteringSelect("status");
     $status->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
     $status->setMultiOptions($opt_status);
     $status->setValue($request->getParam("status"));
     $this->addElements(array($advance_search, $book_no, $customer, $pickup_date, $return_date, $date_book, $status));
     return $this;
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:54,代码来源:FrmBooking.php


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