本文整理汇总了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;
}
示例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;
}