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


PHP Application_Model_DbTable_DbGlobal::getAllstudentRequest方法代码示例

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


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

示例1: FrmStudentRequest

 public function FrmStudentRequest($data = null)
 {
     $_degree = $this->_degree;
     $_khname = $this->_khname;
     $_enname = $this->_enname;
     $_phone = $this->_phone;
     $_batch = $this->_batch;
     $_year = $this->_year;
     $_session = $this->_session;
     $_dob = $this->_dob;
     $_pay_date = $this->_pay_date;
     $_remark = $this->_remark;
     $_reciept_no = new Zend_Dojo_Form_Element_TextBox('reciept_no');
     $_reciept_no->setAttribs(array('dojoType' => $this->t_num, 'class' => 'fullside', 'dojoType' => $this->t_num, 'required' => 'true', 'class' => 'fullside'));
     $_studid = new Zend_Dojo_Form_Element_TextBox('stu_id');
     $_studid->setAttribs(array('dojoType' => $this->text, 'class' => 'fullside'));
     $_pob = new Zend_Dojo_Form_Element_TextBox('pob');
     $_pob->setAttribs(array('dojoType' => $this->text, 'class' => 'fullside'));
     $_cur_add = new Zend_Dojo_Form_Element_TextBox('current_add');
     $_cur_add->setAttribs(array('dojoType' => $this->text, 'class' => 'fullside'));
     $_fee = new Zend_Dojo_Form_Element_NumberTextBox('payment_paid');
     $_fee->setAttribs(array('dojoType' => $this->t_num, 'required' => 'true', 'class' => 'fullside'));
     $_db = new Application_Model_DbTable_DbGlobal();
     $rows = $_db->getAllFecultyName();
     //$rows = $_db->getGlobalDb('SELECT en_name,dept_id FROM rms_dept WHERE is_active=1 AND en_name !="" ');
     $opt = array();
     if (!empty($rows)) {
         foreach ($rows as $row) {
             $opt[$row['dept_id']] = $row['en_name'];
         }
     }
     $_dept = new Zend_Dojo_Form_Element_FilteringSelect("dept");
     $_dept->setMultiOptions($opt);
     $_dept->setAttribs(array('dojoType' => $this->filter, 'required' => 'true', 'class' => 'fullside'));
     $rows = $_db->getAllstudentRequest();
     $re_opt = array();
     if (!empty($rows)) {
         foreach ($rows as $row) {
             $re_opt[$row['service_id']] = $row['title'];
         }
     }
     $_request = new Zend_Dojo_Form_Element_FilteringSelect("request_id");
     $_request->setMultiOptions($re_opt);
     $_request->setAttribs(array('dojoType' => $this->filter, 'required' => 'true', 'class' => 'fullside'));
     $_save = new Zend_Dojo_Form_Element_Button('$this->tr->translate("SAVE_PAYMENT")');
     $_save->setAttribs(array('dojoType' => 'dijit.form.Button'));
     $_save->setValue("save");
     $this->addElements(array($_reciept_no, $_pay_date, $_pob, $_khname, $_enname, $_studid, $_dob, $_degree, $_phone, $_dept, $_batch, $_year, $_session, $_fee, $_cur_add, $_remark, $_request, $_save));
     return $this;
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:50,代码来源:Frmrunadd.php

示例2: getAllServiceItemOption

 public function getAllServiceItemOption($type = null)
 {
     $_db = new Application_Model_DbTable_DbGlobal();
     $tr = Application_Form_FrmLanguages::getCurrentlanguage();
     $rows = $_db->getAllstudentRequest($type);
     array_unshift($rows, array('service_id' => '-1', "title" => $tr->translate("ADD")));
     array_unshift($rows, array('service_id' => '', "title" => ""));
     $options = '';
     if (!empty($rows)) {
         foreach ($rows as $value) {
             $options .= '<option value="' . $value['service_id'] . '" >' . htmlspecialchars($value['title'], ENT_QUOTES) . '</option>';
         }
     }
     return $options;
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:15,代码来源:GlobalClass.php


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