本文整理汇总了PHP中Application_Model_DbTable_DbGlobal::getAllCOName方法的典型用法代码示例。如果您正苦于以下问题:PHP Application_Model_DbTable_DbGlobal::getAllCOName方法的具体用法?PHP Application_Model_DbTable_DbGlobal::getAllCOName怎么用?PHP Application_Model_DbTable_DbGlobal::getAllCOName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Application_Model_DbTable_DbGlobal
的用法示例。
在下文中一共展示了Application_Model_DbTable_DbGlobal::getAllCOName方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: FrmTeller
public function FrmTeller($data = null)
{
$db = new Application_Model_DbTable_DbGlobal();
$_groupid = new Zend_Dojo_Form_Element_FilteringSelect('group_id');
$_groupid->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'onchange' => 'popupCheckClient();'));
$bran_ = new Zend_Dojo_Form_Element_FilteringSelect('bran');
$bran_->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
$account_number = new Zend_Dojo_Form_Element_NumberTextBox('account_number');
$account_number->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside'));
// $rows = $db ->getClientByType(1);
// $options="";
// if(!empty($rows))foreach($rows AS $row){
// $options[$row['client_id']]=$row['name_en'].','.$row['province_en_name'].','.$row['district_name'].','.$row['commune_name'].','.$row['village_name'];
// }
// $_groupid->setMultiOptions($options);
$_coid = new Zend_Dojo_Form_Element_FilteringSelect('co_id');
$_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' => 'popupCheckCO();'));
$_coid->setMultiOptions($options);
$_priciple_amount = new Zend_Dojo_Form_Element_NumberTextBox('priciple_amount');
$_priciple_amount->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside'));
$_loan_fee = new Zend_Dojo_Form_Element_NumberTextBox('loan_fee');
$_loan_fee->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside'));
$_os_amount = new Zend_Dojo_Form_Element_NumberTextBox('os_amount');
$_os_amount->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside'));
$_rate = new Zend_Dojo_Form_Element_NumberTextBox('total_interest');
$_rate->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', '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'));
$_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'));
$_note = new Zend_Dojo_Form_Element_NumberTextBox('note');
$_note->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'required' => 'true'));
$cash_got = new Zend_Dojo_Form_Element_NumberTextBox('cash_got');
$cash_got->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside'));
$cash_return = new Zend_Dojo_Form_Element_NumberTextBox('cash_return');
$cash_return->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside'));
$_collect_date = new Zend_Dojo_Form_Element_DateTextBox('collect_date');
$_collect_date->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside', 'required' => 'true'));
$_date_paymented = new Zend_Dojo_Form_Element_DateTextBox('date_payment');
$_date_paymented->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside', 'required' => 'true'));
$invoice_number = new Zend_Dojo_Form_Element_ValidationTextBox('invoice_number');
$invoice_number->setAttribs(array('dojoType' => 'dijit.form.ValidationTextBox', 'class' => 'fullside', 'required' => 'true'));
$c_date = date('Y-d-m');
$_collect_date->setValue($c_date);
$this->addElements(array($invoice_number, $_date_paymented, $bran_, $account_number, $_groupid, $_coid, $_priciple_amount, $_loan_fee, $_os_amount, $_rate, $_penalize_amount, $_collect_date, $_total_payment, $cash_got, $cash_return, $_note));
return $this;
}
示例2: FrmSearchLoadSchedule
public function FrmSearchLoadSchedule($forms = null)
{
$request = Zend_Controller_Front::getInstance()->getRequest();
$tr = Application_Form_FrmLanguages::getCurrentlanguage();
$db = new Application_Model_DbTable_DbGlobal();
$_from_date = new Zend_Dojo_Form_Element_DateTextBox('from_date');
$_from_date->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'required' => 'true', 'class' => 'fullside'));
$_from_date->setValue($request->getParam("from_date"));
$_btn_search = new Zend_Dojo_Form_Element_SubmitButton('btn_search');
$_btn_search->setAttribs(array('dojoType' => 'dijit.form.Button', 'iconclass' => 'dijitIconSearch'));
$_to = new Zend_Dojo_Form_Element_DateTextBox('to_date');
$_to->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'required' => 'true', 'class' => 'fullside'));
$_to->setValue($request->getParam("to_date"));
$_client = new Zend_Dojo_Form_Element_FilteringSelect('client_id');
$_client->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
$rows = $db->getClientByType();
$options = array('' => "------Select------", -1 => "Add New");
if (!empty($rows)) {
foreach ($rows as $row) {
$options[$row['client_id']] = $row['name_en'];
}
}
$_client->setMultiOptions($options);
$_client->setValue($request->getParam("client_id"));
$_coid = new Zend_Dojo_Form_Element_FilteringSelect('co_id');
$rows = $db->getAllCOName();
$options = array(-1 => "------Select------");
if (!empty($rows)) {
foreach ($rows as $row) {
$options[$row['co_id']] = $row['co_khname'];
}
}
$_coid->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'onchange' => 'popupCheckCO();'));
$_coid->setMultiOptions($options);
$_coid->setValue($request->getParam("co_id"));
$_loan_type = new Zend_Dojo_Form_Element_FilteringSelect('loan_type');
$_loan_type->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
$options = array(-1 => 'ទាំងអស់', 1 => 'ឥណទានទោល', 2 => 'ឥណទានក្រុម');
$_loan_type->setMultiOptions($options);
$_client_no = new Zend_Dojo_Form_Element_TextBox('client_code');
$_client_no->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
$options = array(-1 => 'ជ្រើសរើសទាំងអស់', 1 => 'ឥណទានទោល', 2 => 'ឥណទានក្រុម');
$_loan_type->setMultiOptions($options);
$this->addElements(array($_btn_search, $_client, $_coid, $_client_no, $_loan_type, $_from_date, $_to));
return $this;
}
示例3: AdvanceSearch
public function AdvanceSearch($data=null){
$db = new Application_Model_DbTable_DbGlobal();
$request=Zend_Controller_Front::getInstance()->getRequest();
$_status= new Zend_Dojo_Form_Element_FilteringSelect('status');
$_status->setAttribs(array('dojoType'=>'dijit.form.FilteringSelect'));
$_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"));
$_title = new Zend_Dojo_Form_Element_TextBox('adv_search');
$_title->setAttribs(array('dojoType'=>'dijit.form.TextBox',
'onkeyup'=>'this.submit()',
'placeholder'=>$this->tr->translate("ADVANCE_SEARCH")
));
$_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',
));
$_group_code = new Zend_Dojo_Form_Element_FilteringSelect('group_code');
$_group_code->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
// 'class'=>'fullside',
'onchange'=>'getmemberIdGroup();'
));
$group_opt = $db ->getGroupCodeById(1,1,1);
$_group_code->setMultiOptions($group_opt);
$_group_code->setValue($request->getParam("group_code"));
$_customer_code = new Zend_Dojo_Form_Element_FilteringSelect('customer_code');
$_customer_code->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'onchange'=>'getmemberIdGroup();'
));
$group_opt = $db ->getGroupCodeById(1,0,1);//code,individual,option
$_customer_code->setMultiOptions($group_opt);
$_customer_code->setValue($request->getParam("customer_code"));
$_member = new Zend_Dojo_Form_Element_FilteringSelect('member');
$_member->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'onchange'=>'checkMember()'
));
$options = $db->getGroupCodeById(2,0,1);
$_member->setMultiOptions($options);
$_member->setValue($request->getParam("member"));
$_groupid = new Zend_Dojo_Form_Element_FilteringSelect('group_id');
$_groupid->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'onchange'=>'popupCheckClient();'
));
$options = $db ->getGroupCodeById(2,1,1);//show name,show group,show option
$_groupid->setMultiOptions($options);
$_groupid->setValue($request->getParam("group_id"));
$_coid = new Zend_Dojo_Form_Element_FilteringSelect('co_id');
$_coid->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'onchange'=>'popupCheckCO();'
));
$options = $db ->getAllCOName(1);
$_coid->setMultiOptions($options);
$_coid->setValue($request->getParam("co_id"));
$_currency_type = new Zend_Dojo_Form_Element_FilteringSelect('currency_type');
$_currency_type->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
));
$opt = array(-1=>"--Select Currency Type--",2=>"Dollar",1=>'Khmer',3=>"Bath");
$_currency_type->setMultiOptions($opt);
$_currency_type->setValue($request->getParam("currency_type"));
$_repayment_method = new Zend_Dojo_Form_Element_FilteringSelect('repayment_method');
$_repayment_method->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'required' =>'true',
'onchange'=>'chechPaymentMethod()'
));
$options = $db->getAllPaymentMethod(null,1);
$options[-1]="--Select Repayment Method--";
$_repayment_method->setMultiOptions($options);
$opt_method = $request->getParam("repayment_method");
if(empty($opt_method)){
$opt_method=-1;
}
$_repayment_method->setValue($opt_method);
$_zone = new Zend_Dojo_Form_Element_FilteringSelect('zone');
$_zone->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
//.........这里部分代码省略.........
示例4: 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');
//.........这里部分代码省略.........
示例5: FrmAddStaff
public function FrmAddStaff($_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_STAFF_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',
));
$_db = new Application_Model_DbTable_DbGlobal();
$rows=$_db->getAllCOName();
//print_r($rows);exit();
$opt_co = array(''=>$this->tr->translate("SELECT_CO_NAME"));
if(!empty($rows))foreach($rows AS $row) $opt_co[$row['co_id']]=$row['co_khname'];
$_co = new Zend_Dojo_Form_Element_FilteringSelect('co_khname');
$_co->setAttribs(array('dojoType'=>$this->filter,'class'=>'fullside',));
$_co->setMultiOptions($opt_co);
$_co->setValue($request->getParam('co_khname'));
$_startdate = new Zend_Dojo_Form_Element_DateTextBox('start_date');
$_startdate->setAttribs(array('dojoType'=>$this->date,
'class'=>'fullside',
'onchange'=>'CalculateDate();'));
$_date = $request->getParam("start_date");
$_salary = new Zend_Dojo_Form_Element_TextBox('salary');
$_salary->setAttribs(array('dojoType'=>$this->tnumber,'required'=>'true','class'=>'fullside',));
$_staff_id = new Zend_Dojo_Form_Element_TextBox('staff_id');
$_staff_id->setAttribs(array('dojoType'=>$this->tvalidate,'required'=>'true','class'=>'fullside',));
$_startdate = new Zend_Dojo_Form_Element_DateTextBox('start_date');
$_startdate->setAttribs(array('dojoType'=>$this->date,
'class'=>'fullside',
'onchange'=>'CalculateDate();'));
$_date = $request->getParam("start_date");
if(empty($_date)){
$_date = date('Y-m-01');
}
$_startdate->setValue($_date);
$_enddate = new Zend_Dojo_Form_Element_DateTextBox('end_date');
$_enddate->setAttribs(array('dojoType'=>$this->date,'required'=>'true','class'=>'fullside',
));
$_date = $request->getParam("end_date");
if(empty($_date)){
$_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();',
));
$_note = new Zend_Dojo_Form_Element_TextBox('note');
$_note->setAttribs(array('dojoType'=>'dijit.form.TextBox',
'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)){
$_co->setValue($_data['co_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']);
$_note->setValue($_data['note']);
}
$this->addElements(array($_salary,$_staff_id,$_btn_search,$_status_search,$_title,$_id,$_co,$_note,$_startdate,$_enddate,$_amount_day,$_status));
return $this;
}
示例6: frmaddSalary
public function frmaddSalary($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_INFO")
));
$_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'
));
$_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"));
$db = new Application_Model_DbTable_DbGlobal();
$staff_name = new Zend_Dojo_Form_Element_FilteringSelect('staff_name');
$rows = $db ->getAllCOName();
$options=array(''=>"------Select------",-1=>"Add New");
if(!empty($rows))foreach($rows AS $row) $options[$row['co_id']]=$row['co_khname'];
$staff_name->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'popupCheckStaff(1);'
));
$staff_name->setMultiOptions($options);
$db_Sex=new Application_Model_DbTable_DbGlobal();
$opt_Sex=$db_Sex->getVewOptoinTypeByType(8,1);
$Sex=new Zend_Dojo_Form_Element_FilteringSelect('sex');
$Sex->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'required'=>true,
'class'=>'fullside'
));
$Sex->setMultiOptions($opt_Sex);
$position_=new Zend_Dojo_Form_Element_FilteringSelect('position');
$position_->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
// 'dojoType'=>$this->filter,
'required'=>true,
'class'=>'fullside'
));
$db_position=new Application_Model_DbTable_DbGlobal();
$opt_position=$db_position->getAllStaffPosition(null,1);
$position_->setMultiOptions($opt_position);
$position_->setValue($request->getParam('position'));
$Basic_salary=new Zend_Dojo_Form_Element_NumberTextBox('basic_salary');
$Basic_salary->setAttribs(array(
'dojoType'=>'dijit.form.NumberTextBox',
'required'=>true,
'class'=>'fullside'
));
$Basic_salary->setValue(0);
$date_start=new Zend_Dojo_Form_Element_DateTextBox('date_start');
$date_start->setAttribs(array(
'dojoType'=>'dijit.form.DateTextBox',
'class'=>'fullside',
));
$date_start->setValue(date('Y-m-d'));
$date_get_salary=new Zend_Dojo_Form_Element_DateTextBox('date_get_salary');
$date_get_salary->setAttribs(array(
'dojoType'=>'dijit.form.DateTextBox',
'class'=>'fullside',
));
$date_get_salary->setValue(date('Y-m-d'));
$date_end_contract=new Zend_Dojo_Form_Element_DateTextBox('date_end_contract');
$date_end_contract->setAttribs(array(
'dojoType'=>'dijit.form.DateTextBox',
'class'=>'fullside',
));
$date_end_contract->setValue(date('Y-m-d'));
$status= new Zend_Dojo_Form_Element_FilteringSelect('status');
$status->setAttribs(array('dojoType'=>'dijit.form.FilteringSelect','class'=>'fullside',));
$status_opt = array(
1=>$this->tr->translate("ACTIVE"),
0=>$this->tr->translate("DACTIVE"));
$status->setMultiOptions($status_opt);
//.........这里部分代码省略.........
示例7: 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');
//.........这里部分代码省略.........
示例8: 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();
$employee = new Zend_Dojo_Form_Element_FilteringSelect('employee');
$rows = $db->getAllCOName();
$options = array('' => "---ស្វែងរកតាមរយៈឈ្មោះ---");
if (!empty($rows)) {
foreach ($rows as $row) {
$options[$row['co_id']] = $row['co_khname'];
}
}
$employee->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'onchange' => 'popupCheckCO();'));
$employee->setMultiOptions($options);
$employee->setValue($request->getParam('employee'));
$_btn_search = new Zend_Dojo_Form_Element_SubmitButton('btn_search');
$_btn_search->setAttribs(array('dojoType' => 'dijit.form.Button', 'iconclass' => 'dijitIconSearch', 'label' => 'Search'));
$branch_id = new Zend_Dojo_Form_Element_FilteringSelect('branch_id');
$branch_id->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'required' => 'true'));
$rows = $db->getAllBranchName();
$options_branch = array('' => "---ស្វែងរកតាមរយៈសាខា---");
if (!empty($rows)) {
foreach ($rows as $row) {
$options_branch[$row['br_id']] = $row['branch_namekh'];
}
}
$branch_id->setMultiOptions($options_branch);
$branch_id->setValue($request->getParam("branch_id"));
$approve_by = new Zend_Dojo_Form_Element_FilteringSelect('approve_by');
$rows = $db->getAllCOName();
$options_approve = array('' => "---ស្វែងរកអ្នកយល់ព្រម---");
if (!empty($rows)) {
foreach ($rows as $row) {
$options_approve[$row['co_id']] = $row['co_khname'];
}
}
$approve_by->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'onchange' => 'popupCheckCO();'));
$approve_by->setMultiOptions($options_approve);
$approve_by->setValue($request->getParam("approve_by"));
$opt_type = $db->getVewOptoinTypeByType(7, 1);
$type = new Zend_Dojo_Form_Element_FilteringSelect('type');
$type->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'required' => true, 'class' => 'fullside'));
$type->setMultiOptions($opt_type);
$type->setValue($request->getParam("type"));
// $from_date=new Zend_Dojo_Form_Element_DateTextBox('from_date');
// $from_date->setAttribs(array(
// 'dojoType'=>'dijit.form.DateTextBox',
// 'required'=>true,
// 'class'=>'fullside'
// ));
// $from_date->setValue(date('Y-m-d'));
// // $from_date->setValue($request->getParam("from_date"));
// $to_date=new Zend_Dojo_Form_Element_DateTextBox('to_date');
// $to_date->setAttribs(array(
// 'dojoType'=>'dijit.form.DateTextBox',
// 'required'=>true,
// 'class'=>'fullside'
// ));
// $to_date->setValue(date('Y-m-d'));
// // $to_date->setValue($request->getParam("to_date"));
$from_date = new Zend_Dojo_Form_Element_DateTextBox('start_date');
$from_date->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'required' => 'true', '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);
$position_ = new Zend_Dojo_Form_Element_FilteringSelect('position');
$position_->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'required' => true, 'class' => 'fullside'));
$opt_position = $db->getAllStaffPosition(null, 1);
$position_->setMultiOptions($opt_position);
$position_->setValue($request->getParam("position"));
$this->addElements(array($position_, $from_date, $to_date, $type, $employee, $_title, $_title, $_status, $_btn_search, $branch_id, $approve_by));
return $this;
}
示例9: FrmAddLoan
//.........这里部分代码省略.........
// 'class'=>'fullside',
// 'onchange'=>'showPopupclient();'
// ));
// $options = $db->getGroupCodeById(2,0,1);
// $_member->setMultiOptions($options);
$_members = new Zend_Dojo_Form_Element_TextBox('members');
$_members->setAttribs(array(
'dojoType'=>'dijit.form.textbox',
'class'=>'fullside',
//'onchange'=>'showPopupclient();'
));
// $options = $dbs->getClient(2);
$_groupid = new Zend_Dojo_Form_Element_FilteringSelect('group_id');
$_groupid->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'popupCheckClient();'
));
// $options = $db->getGroupCodeById(2,1,1);//show name,show group,show option
// $_groupid->setMultiOptions($options);
$_coid = new Zend_Dojo_Form_Element_FilteringSelect('co_id');
$_coid->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'popupCheckCO();'
));
$options = $db ->getAllCOName(1);
$_coid->setMultiOptions($options);
$_coids = new Zend_Dojo_Form_Element_FilteringSelect('co_ids');
$_coids->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'popupCheckCO();'
));
$optionss = $db ->getAllCOName(1);
$_coids->setMultiOptions($optionss);
$_currency_type = new Zend_Dojo_Form_Element_FilteringSelect('currency_type');
$_currency_type->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
));
// $opt = array(2=>"Dollar",1=>'Khmer',3=>"Bath");
$opt = $db->getVewOptoinTypeByType(15,1,3,1);
$_currency_type->setMultiOptions($opt);
$_currency_type->setValue(2);
$_loan_type = new Zend_Dojo_Form_Element_FilteringSelect('loan_type');
$_loan_type->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onChange'=>'loantype();'
));
$opt = $db->getVewOptoinTypeByType(24,1,null,1);
$opt[-1]="--- Add New---";
$_loan_type->setMultiOptions($opt);
$_loan_types = new Zend_Dojo_Form_Element_FilteringSelect('loan_types');
示例10: FrmAddLoan
public function FrmAddLoan($data=null){
$_isgroup = new Zend_Dojo_Form_Element_CheckBox('is_group');
$_isgroup->setAttribs(array(
'dojoType'=>'dijit.form.CheckBox',
'class'=>'fullside',
// 'onkeyup'=>'Calcuhundred()'
));
$_loan_code = new Zend_Dojo_Form_Element_TextBox('loan_code');
$_loan_code->setAttribs(array(
'dojoType'=>'dijit.form.TextBox',
'class'=>'fullside',
'readonly'=>true,
'style'=>'color:red; font-weight: bold;'
));
$db = new Application_Model_DbTable_DbGlobal();
$loan_number = $db->getLoanNumber();
$_loan_code->setValue($loan_number);
$_client_code = new Zend_Dojo_Form_Element_TextBox('client_code');
$_client_code->setAttribs(array(
'dojoType'=>'dijit.form.TextBox',
'class'=>'fullside',
));
$_group_code = new Zend_Dojo_Form_Element_FilteringSelect('group_code');
$_group_code->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'getmemberIdGroup();'
));
$group_opt = $db ->getGroupCodeById(1,1,1);
$_group_code->setMultiOptions($group_opt);
$dbs = new Loan_Model_DbTable_DbLoanss();
$_customer_code = new Zend_Dojo_Form_Element_FilteringSelect('customer_code');
$_customer_code->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'getClientInfo(1);'
));
$group_opt = $dbs ->getClientByTypes(1);//code,individual,option
$_customer_code->setMultiOptions($group_opt);
$_member = new Zend_Dojo_Form_Element_FilteringSelect('member');
$_member->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'getClientInfo(2)'
));
$options = $dbs->getClientByTypes(2);
$_member->setMultiOptions($options);
$db = new Application_Model_DbTable_DbGlobal();
$_groupid = new Zend_Dojo_Form_Element_FilteringSelect('group_id');
$_groupid->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'popupCheckClient();'
));
$options = $db ->getGroupCodeById(2,1,1);//show name,show group,show option
$_groupid->setMultiOptions($options);
$_coid = new Zend_Dojo_Form_Element_FilteringSelect('co_id');
$_coid->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'popupCheckCO();'
));
$options = $db ->getAllCOName(1);
$_coid->setMultiOptions($options);
$_currency_type = new Zend_Dojo_Form_Element_FilteringSelect('currency_type');
$_currency_type->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
));
$opt = array(2=>"Dollar",1=>'Khmer',3=>"Bath");
// $opt = $db->getVewOptoinTypeByType(15,1,3);
$_currency_type->setMultiOptions($opt);
$_zone = new Zend_Dojo_Form_Element_FilteringSelect('zone');
$_zone->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'popupCheckZone();'
));
$options = $db ->getZoneList(1);
$_zone->setMultiOptions($options);
$_loan_fee = new Zend_Dojo_Form_Element_NumberTextBox('loan_fee');
$_loan_fee->setAttribs(array(
'dojoType'=>'dijit.form.NumberTextBox',
'class'=>'fullside',
));
$_loan_fee->setValue(0);
//.........这里部分代码省略.........
示例11: FrmCallTeral
public function FrmCallTeral($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("SEARCH_COLLTERAL")
));
$_title->setValue($request->getParam("adv_search"));
$_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',
'class'=>'fullside',
'required' =>'true',
'Onchange'=>"filterClient();"
));
$rows = $db->getAllBranchName();
$options=array(''=>"------Select Branch------");
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 Staff------",-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',
'class'=>'fullside',
'onchange'=>'popupCheckCO();'
));
$co_name->setMultiOptions($options);
$co_name->setValue($request->getParam('co_name'));
$getter_name = new Zend_Dojo_Form_Element_ValidationTextBox('getter_name');
$getter_name->setAttribs(array(
'dojoType'=>'dijit.form.ValidationTextBox',
'class'=>'fullside',
'required'=>true
));
$giver_name = new Zend_Dojo_Form_Element_TextBox('giver_name');
$giver_name->setAttribs(array(
'dojoType'=>'dijit.form.TextBox',
'class'=>'fullside',
'required'=>true
));
$Date=new Zend_Dojo_Form_Element_DateTextBox('date');
$Date->setAttribs(array(
'dojoType'=>'dijit.form.DateTextBox',
'class'=>'fullside'
));
$_name=new Zend_Dojo_Form_Element_ValidationTextBox('name');
$_name->setAttribs(array(
'dojoType'=>'dijit.form.ValidationTextBox',
'class'=>'fullside'
));
$relattive=new Zend_Dojo_Form_Element_ValidationTextBox('names');
$relattive->setAttribs(array(
'dojoType'=>'dijit.form.ValidationTextBox',
'class'=>'fullside'
));
$guarantor=new Zend_Dojo_Form_Element_ValidationTextBox('owner');
$guarantor->setAttribs(array(
'dojoType'=>'dijit.form.ValidationTextBox',
'class'=>'fullside'
));
$relative_guarantor=new Zend_Dojo_Form_Element_ValidationTextBox('and_name');
$relative_guarantor->setAttribs(array(
'dojoType'=>'dijit.form.ValidationTextBox',
'class'=>'fullside'
));
$relative_guarantor_=new Zend_Dojo_Form_Element_ValidationTextBox('and_names');
$relative_guarantor_->setAttribs(array(
//.........这里部分代码省略.........
示例12: FrmTransfer
public function FrmTransfer($data=null){
$request=Zend_Controller_Front::getInstance()->getRequest();
$db = new Application_Model_DbTable_DbGlobal();
$db_co = new Loan_Model_DbTable_DbTransferCoClient();
$branch_name = new Zend_Dojo_Form_Element_FilteringSelect('branch_name');
$branch_name->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'required' =>'true'
));
$rows = $db->getAllBranchName();
$options=array(''=>"------Select Branch Name------");
if(!empty($rows))
foreach($rows AS $row){
$options[$row['br_id']]=$row['branch_namekh'];
}
$branch_name->setMultiOptions($options);
$branch_name->setValue($request->getParam('branch_name'));
$_date= new Zend_Dojo_Form_Element_DateTextBox('Date');
$_date->setAttribs(array(
'dojoType'=>'dijit.form.DateTextBox',
'class'=>'fullside',
));
$_date->setValue(date('Y-m-d'));
$co_code = new Zend_Dojo_Form_Element_FilteringSelect('co_code');
$co_code->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>"getClientInfo(1);"
));
$_member = new Zend_Dojo_Form_Element_FilteringSelect('member');
$_member->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'getClientInfo(1);'
));
$db = new Application_Model_DbTable_DbGlobal();
$options = $db->getGroupCodeById(2,0,1);
$_member->setMultiOptions($options);
$_customer_code = new Zend_Dojo_Form_Element_FilteringSelect('customer_code');
$_customer_code->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'getClientInfo(2);'
));
$group_opt = $db->getGroupCodeById(1,0,1);//code,individual,option
$_customer_code->setMultiOptions($group_opt);
$row_co = $db->getAllCOName();
$options_co =array(''=>"------Select From CO ------");
if (!empty($row_co))
foreach ($row_co AS $row_cos){
$options_co[$row_cos['co_id']] = $row_cos['co_firstname'];
}
$co_code->setMultiOptions($options_co);
$co_code->setValue($request->getParam('co_code'));
$formc_co = new Zend_Dojo_Form_Element_FilteringSelect('name_co');
$formc_co->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>"getClientInfo(2);"
));
$options = $db->getAllCOName(1);
$options['']='---Select To CO---';
$formc_co->setMultiOptions($options);
$formc_co->setValue($request->getParam('name_co'));
$name_client = new Zend_Dojo_Form_Element_FilteringSelect('name_client');
$name_client->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>"getClientInfo(3);"
));
$row_co = $db_co->getcoinfo();
$options_co =array(''=>"---Select Client Name---");
if (!empty($row_co))
foreach ($row_co AS $row_cos){
$options_co[$row_cos['member_id']] = $row_cos['client_name'];
}
$name_client->setMultiOptions($options_co);
$code_client = new Zend_Dojo_Form_Element_FilteringSelect('code_client');
$code_client->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>"getClientInfo(4);"
));
$row_number = $db_co->getcoinfo();
$options_numbers=array(''=>"---Select Client Code---");
//.........这里部分代码省略.........
示例13: AdvanceSearch
public function AdvanceSearch ($data=null){
$request=Zend_Controller_Front::getInstance()->getRequest();
$db = new Loan_Model_DbTable_DbGroupPayment();
$payment_type = new Zend_Dojo_Form_Element_FilteringSelect("paymnet_type");
$payment_type->setAttribs(array('class'=>'fullside','dojoType'=>'dijit.form.FilteringSelect'));
$options= array(''=>'ប្រភេទបង់ប្រាក់',1=>'បង់ធម្មតា',2=>'បង់មុន',3=>'បង់រំលោះប្រាក់ដើម');
$payment_type->setMultiOptions($options);
$payment_type->setValue($request->getParam("paymnet_type"));
$branch = new Zend_Dojo_Form_Element_FilteringSelect("branch_id");
$branch->setAttribs(array('class'=>'fullside','dojoType'=>'dijit.form.FilteringSelect'));
$opt_branch = array(-1=>'ជ្រើសរើស សាខា');
$dbs = new Application_Model_DbTable_DbGlobal();
$rows = $dbs->getAllBranchName();
if(!empty($rows))foreach($rows AS $row){
$opt_branch[$row['br_id']]=$row['branch_namekh'];
}
$branch->setMultiOptions($opt_branch);
$branch->setValue($request->getParam("branch_id"));
$advnceSearch = new Zend_Dojo_Form_Element_TextBox("advance_search");
$advnceSearch->setAttribs(array('class'=>'fullside'
,'dojoType'=>'dijit.form.TextBox'
,'placeholder'=>$this->tr->translate("ADVANCE_SEARCH")));
$client_name = new Zend_Dojo_Form_Element_FilteringSelect("client_name");
$opt_client = array(''=>'ជ្រើសរើស ឈ្មោះអតិថិជន');
$rows = $db->getIndividuleClient();
if(!empty($rows))foreach($rows AS $row){
$opt_client[$row['id']]=$row['name'];
}
$client_name->setMultiOptions($opt_client);
$client_name->setAttribs(array('class'=>'fullside','dojoType'=>'dijit.form.FilteringSelect'));
$g_client_name = new Zend_Dojo_Form_Element_FilteringSelect("g_client_name");
$opt_client = array(''=>'ជ្រើសរើស ឈ្មោះអតិថិជន');
$rows = $db->getAllClient();
if(!empty($rows))foreach($rows AS $row){
$opt_client[$row['id']]=$row['name'];
}
$g_client_name->setMultiOptions($opt_client);
$g_client_name->setAttribs(array('class'=>'fullside','dojoType'=>'dijit.form.FilteringSelect'));
$_coid = new Zend_Dojo_Form_Element_FilteringSelect('co_id');
$_coid->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'onchange'=>'popupCheckCO();',
'class'=>'fullside'
));
$options = $dbs->getAllCOName(1);
$_coid->setMultiOptions($options);
$_coid->setValue($request->getParam("co_id"));
$start_date = new Zend_Dojo_Form_Element_DateTextBox("start_date");
$start_date->setAttribs(array('class'=>'fullside','dojoType'=>'dijit.form.DateTextBox','placeholder'=>$this->tr->translate("ចាប់ពីថ្ងៃ")));
//$start_date->setValue($date);
$_date = $request->getParam("start_date");
if(empty($_date)){
$_date = date('Y-m-d');
}
$start_date->setValue($_date);
$date = date("y-m-d");
$end_date = new Zend_Dojo_Form_Element_DateTextBox("end_date");
$end_date->setAttribs(array('class'=>'fullside','dojoType'=>'dijit.form.DateTextBox','placeholder'=>$this->tr->translate("រហូតដល់ថ្ងៃ")));
//$end_date->setValue($date);
$_date = $request->getParam("end_date");
if(empty($_date)){
$_date = date('Y-m-d');
}
$end_date->setValue($_date);
$status = new Zend_Dojo_Form_Element_FilteringSelect("status");
$status->setAttribs(array('class'=>'fullside','dojoType'=>'dijit.form.FilteringSelect','placeholder'=>$this->tr->translate("ស្ថានការ")));
$opt_status = array(''=>'ជ្រើសរើស ស្ថានការ','1'=>'ដំណើការ','2'=>'មិនដំណើការ');
$status->setMultiOptions($opt_status);
$submit = new Zend_Dojo_Form_Element_SubmitButton("btn_submit");
$submit->setAttribs(array('dojoType'=>'dijit.form.Button',
'iconclass'=>'dijitIconSearch',
'label'=>'Search'));
$advnceSearch->setValue($request->getParam("advance_search"));
$client_name->setValue($request->getParam("client_name"));
//$start_date->setValue($request->getParam("start_date"));
//$end_date->setValue($request->getParam("end_date"));
$status->setValue($request->getParam("status"));
$_currency_type = new Zend_Dojo_Form_Element_FilteringSelect('currency_type');
$_currency_type->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
));
$opt = array(-1=>"--Select Currency Type--",2=>"Dollar",1=>'Khmer',3=>"Bath");
$_currency_type->setMultiOptions($opt);
$_currency_type->setValue($request->getParam("currency_type"));
if($data!=null){
$advnceSearch->setValue($request->getParam("advance_search"));
//.........这里部分代码省略.........
示例14: FrmAddLoan
public function FrmAddLoan($data = null)
{
$_isgroup = new Zend_Dojo_Form_Element_CheckBox('is_group');
$_isgroup->setAttribs(array('dojoType' => 'dijit.form.CheckBox', 'class' => 'fullside'));
$_loan_code = new Zend_Dojo_Form_Element_TextBox('loan_code');
$_loan_code->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside', 'readonly' => true, 'style' => 'color:red; font-weight: bold;'));
$db = new Application_Model_DbTable_DbGlobal();
$loan_number = $db->getLoanNumber();
$_loan_code->setValue($loan_number);
$_collect_term = new Zend_Dojo_Form_Element_FilteringSelect('collect_termtype');
$_collect_term->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'onchange' => 'changeGraicePeroid();'));
$term_opt = $db->getVewOptoinTypeByType(1, 1, 3);
$_collect_term->setMultiOptions($term_opt);
$_client_code = new Zend_Dojo_Form_Element_TextBox('client_code');
$_client_code->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
$_groupid = new Zend_Dojo_Form_Element_FilteringSelect('group_id');
$_groupid->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'onchange' => 'popupCheckClient();'));
$rows = $db->getClientByType(1);
$options = array('' => "------Select------", -1 => "Add New new group");
if (!empty($rows)) {
foreach ($rows as $row) {
$options[$row['client_id']] = $row['name_en'] . ',' . $row['province_en_name'] . ',' . $row['district_name'] . ',' . $row['commune_name'] . ',' . $row['village_name'];
}
}
$_groupid->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' => 'popupCheckCO();'));
$_coid->setMultiOptions($options);
$_member = new Zend_Dojo_Form_Element_FilteringSelect('member');
$_member->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
$rows = $db->getClientByType();
$options = array('' => "------Select------", -1 => "Add New");
if (!empty($rows)) {
foreach ($rows as $row) {
$options[$row['client_id']] = $row['name_en'];
}
}
$_member->setMultiOptions($options);
$_currency_type = new Zend_Dojo_Form_Element_FilteringSelect('currency_type');
$_currency_type->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
$opt = array(2 => "Dollar", 1 => 'Khmer', 3 => "Bath");
$_currency_type->setMultiOptions($opt);
$_zone = new Zend_Dojo_Form_Element_FilteringSelect('zone');
$_zone->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'onchange' => 'popupCheckZone();'));
$rows = $db->getZoneList();
$options = array('' => "------Select------", -1 => "Add New");
if (!empty($rows)) {
foreach ($rows as $row) {
$options[$row['zone_id']] = $row['zone_name'];
}
}
$_zone->setMultiOptions($options);
$_loan_fee = new Zend_Dojo_Form_Element_NumberTextBox('loan_fee');
$_loan_fee->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside'));
$_loan_fee->setValue(0);
$_time_collect = new Zend_Dojo_Form_Element_NumberTextBox('amount_collect');
$_time_collect->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'onkeyup' => 'getFirstPayment();'));
$_time_collect->setValue(1);
$_time_collect_pri = new Zend_Dojo_Form_Element_NumberTextBox('amount_collect_pricipal');
$_time_collect_pri->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'readonly' => true, 'required' => true));
$_time_collect_pri->setValue(2);
$_amount = new Zend_Dojo_Form_Element_NumberTextBox('total_amount');
$_amount->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'required' => 'true'));
$_level = new Zend_Dojo_Form_Element_NumberTextBox('level');
$_level->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'required' => 'true'));
$_level->setValue(1);
// $_rate = new Zend_Dojo_Form_Element_NumberTextBox('interest_rate');
// $_rate->setAttribs(array(
// 'data-dojo-Type'=>'dijit.form.NumberTextBox',
// 'data-dojo-props'=>"regExp:'[0-9]{1,2}',
// 'required':true,
// 'name':'batch',
// 'value':2.5,
// 'class':'fullside',
// 'invalidMessage':'អាចបញ្ជូលពី 1 ដល់ 99'"));
$_rate = new Zend_Dojo_Form_Element_ValidationTextBox("interest_rate");
$_rate->setAttribs(array('data-dojo-Type' => 'dijit.form.ValidationTextBox', 'data-dojo-props' => "\r\n\t\t\t\t'required':true,\r\n\t\t\t\t'name':'interest_rate',\r\n\t\t\t\t'value':2.5,\r\n\t\t\t\t'class':'fullside',\r\n\t\t\t\t'invalidMessage':'អាចបញ្ជូលពី 1 ដល់ 100'"));
// $value_interest = 2.5;
// $_rate->setValue($value_interest);
$_period = new Zend_Dojo_Form_Element_NumberTextBox('period');
$_period->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'required' => 'true', 'onkeyup' => 'calCulatePeriod();'));
$_period->setValue(12);
$_releasedate = new Zend_Dojo_Form_Element_DateTextBox('release_date');
$_releasedate->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside', 'required' => 'true', 'onchange' => 'checkReleaseDate();'));
$s_date = date('Y-m-d');
$_releasedate->setValue($s_date);
$_first_payment = new Zend_Dojo_Form_Element_DateTextBox('first_payment');
$_first_payment->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside', 'required' => 'true'));
//$_first_payment->setValue('2005-12-30');
$_dateline = new Zend_Dojo_Form_Element_DateTextBox('date_line');
$_dateline->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside', 'required' => 'true', 'readonly' => true));
$_graice_pariod = new Zend_Dojo_Form_Element_TextBox('graice_pariod');
$_graice_pariod->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside', 'required' => 'true'));
//.........这里部分代码省略.........
示例15: frmPermission
public function frmPermission($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("SEARCH_STAFF_PERMISTION")
));
$_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'
));
$_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"));
$employee = new Zend_Dojo_Form_Element_FilteringSelect('employee');
$rows = $db ->getAllCOName();
$options=array(''=>"------SELECT------",-1=>"Add New");
if(!empty($rows))foreach($rows AS $row) $options[$row['co_id']]=$row['co_khname'];
$employee->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'popupCheckCO();'
));
$employee->setMultiOptions($options);
$approve_by = new Zend_Dojo_Form_Element_FilteringSelect('approve_by');
$rows = $db ->getAllCOName();
$options=array(''=>"------SELECT------",-1=>"Add New");
if(!empty($rows))foreach($rows AS $row) $options[$row['co_id']]=$row['co_khname'];
$approve_by->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'popupCheckCO();'
));
$approve_by->setMultiOptions($options);
$request_date=new Zend_Dojo_Form_Element_DateTextBox('request_date');
$request_date->setAttribs(array(
'dojoType'=>'dijit.form.DateTextBox',
'required'=>true,
'class'=>'fullside'
));
$request_date->setValue(date('Y-m-d'));
$db_type=new Application_Model_DbTable_DbGlobal();
$opt_type=$db_type->getVewOptoinTypeByType(7,1);
$type=new Zend_Dojo_Form_Element_FilteringSelect('type');
$type->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'required'=>true,
'class'=>'fullside'
));
$type->setMultiOptions($opt_type);
$from_date=new Zend_Dojo_Form_Element_DateTextBox('from_date');
$from_date->setAttribs(array(
'dojoType'=>'dijit.form.DateTextBox',
'required'=>true,
'class'=>'fullside'
));
$fromdate=$request->getParam('from_date');
if(empty($fromdate)){
$fromdate=date('Y-m-d');
}
$from_date->setValue($fromdate);
$to_date=new Zend_Dojo_Form_Element_DateTextBox('to_date');
$to_date->setAttribs(array(
'dojoType'=>'dijit.form.DateTextBox',
'required'=>true,
'class'=>'fullside'
));
$todate=$request->getParam('to_date');
if(empty($todate)){
$todate=date('Y-m-d');
}
$to_date->setValue($todate);
$time=new Zend_Dojo_Form_Element_TextBox('time');
$time->setAttribs(array(
'dojotype'=>'dijit.form.TextBox',
'required'=>true,
'class'=>'fullside'
));
$time->setValue('00:00');
$all_day=new Zend_Dojo_Form_Element_CheckBox('all_day');
//.........这里部分代码省略.........