Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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;
 }