private function _readQuaTrinh() { $quatrinh_id = JRequest::getInt('id', 0); // $model = JModelLegacy::getInstance('Tochuc','TochucModel'); $model = Core::model('Tochuc/Tochuc'); $mapperFile = Core::model('Core/Attachment'); $row = $model->getOneQuaTrinhById($quatrinh_id); $dept = Core::read('ins_dept', array('id = ' => $row['dept_id'])); $row['vanban'] = TochucHelper::getVanBanById($row['vanban_id']); $row['file'] = $mapperFile->getRowByObjectIdAndTypeId($row['vanban_id'], 1); $row['hieuluc_ngay'] = TochucHelper::strDateMySqltoVN($row['hieuluc_ngay']); $row['dept_name'] = $dept['name']; $this->_printJson($row); }
</div> <div class="row-fluid"> <div class="control-group span6"> <label class="control-label" for="quyetdinh_ngay">Ngày quyết định </label> <span class="required">*</span> <div class="controls"> <input type="text" id="quyetdinh_ngay" name="quyetdinh_ngay" class="input-small input-mask-date" value="<?php echo $this->item->quyetdinh_ngay; ?> "> </div> </div> <div class="control-group span6"> <label class="control-label" for="hieuluc_ngay">Hiệu lực ngày </label> <div class="controls"> <input type="text" id="hieuluc_ngay" name="hieuluc_ngay" class="input-small input-mask-date validNgayHL" value="<?php echo TochucHelper::strDateMySqltoVN($this->item->hieuluc_ngay); ?> "> </div> </div> </div> <div class="row-fluid"> <div class="control-group"> <label class="control-label" for="ghichu">Ghi chú</label> <div class="controls"> <textarea name="ghichu" id="ghichu" cols="30" rows="5" class="mce_editable"><?php echo $this->item->ghichu; ?> </textarea> </div>