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


PHP Core::PrintJson方法代码示例

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


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

示例1: danhsachchibo

 public function danhsachchibo()
 {
     $id = $_GET['px_id'];
     $model = Core::model('Thonto/Chibo');
     $row = $model->getThongtin('*', 'thonto_chibo', null, 'donvi_id=' . $id, 'id asc');
     Core::PrintJson($row);
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:7,代码来源:view.raw.php

示例2: getDulieuPhuluc4

 function getDulieuPhuluc4()
 {
     $model = Core::model('Thonto/Thongke');
     header('Content-type: application/json');
     Core::PrintJson($model->bc_mau4());
     die;
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:7,代码来源:thongke.php

示例3: gethosoquanly

 function gethosoquanly()
 {
     $px_id = (int) $_GET['px_id'];
     $model = Core::model('Thonto/Tochuc');
     $row = $model->getThongtin(array('hosochinh_id'), 'thonto_tochuc', null, array('donvi_id=' . $px_id), null);
     Core::PrintJson($row[0]->hosochinh_id);
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:7,代码来源:view.raw.php

示例4: deleteQuyhoachcanbo

 function deleteQuyhoachcanbo()
 {
     $arrQhcbDelete = JRequest::get('arrQhcbDelete');
     $model = Core::model('Hoso/Quyhoachcanbo');
     return Core::PrintJson($model->deleteQuyhoachcanbo($arrQhcbDelete));
     die;
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:7,代码来源:quyhoachcanbo.php

示例5: _dsach_giahanhdld

 public function _dsach_giahanhdld()
 {
     $model = Core::model('Thongke/Thongke');
     $donvi_id = $_POST['donvi_id'];
     $json = $model->getGiahanhdld($donvi_id, 'select id from bc_hinhthuc where is_hopdong = 1');
     Core::PrintJson($json);
     die;
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:8,代码来源:view.raw.php

示例6: ds_quyhoachcb

 function ds_quyhoachcb()
 {
     $donvi_id = JRequest::getVar('donvi_id');
     $model = Core::model('Hoso/Quyhoachcanbo');
     $rowQHCB = $model->ds_quyhoachcanbo($donvi_id);
     return Core::PrintJson($rowQHCB);
     die;
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:8,代码来源:view.raw.php

示例7: dsach_hdchuyenccvc

 public function dsach_hdchuyenccvc()
 {
     $model = Core::model('Thongke/Thongke');
     $donvi_id = $_POST['donvi_id'];
     $ketqua = array();
     $kq = $model->getDanhsach($donvi_id, 'select id from bc_hinhthuc where is_hopdong = 1', '3,2,25');
     Core::PrintJson($kq);
     die;
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:9,代码来源:view.raw.php

示例8: dsach_cctsbnn

 public function dsach_cctsbnn()
 {
     $model = Core::model('Thongke/Thongke');
     $donvi_id = $_POST['donvi_id'];
     $ketqua = array();
     $kq = $model->getDanhsach($donvi_id, Core::config('cbcc/bienche/tapsu'), '3,2,25');
     Core::PrintJson($kq);
     die;
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:9,代码来源:view.raw.php

示例9: luutaisan

 function luutaisan()
 {
     $values = array();
     parse_str($_POST['form_taisan'], $values);
     $kekhai_id = $_POST['kekhai_id'];
     $model = Core::model('Kekhaitaisan/Kekhaitaisan');
     Core::PrintJson($model->saveTaisan($kekhai_id, $values));
     die;
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:9,代码来源:kekhaitaisan.php

示例10: dsach_tuyendung

 public function dsach_tuyendung()
 {
     $model = Core::model('Thongke/Thongke');
     $donvi_id = $_POST['donvi_id'];
     $ketqua = array();
     $kq = $model->getThongtin('qtht.hosochinh_id as id, qtht.ngaysinh, qtht.hoten as e_name, qtht.congtac_chucvu, phong.name as congtac_phong, qtht.luong_ngaybatdau, qtht.luong_tenngach, qtht.luong_mangach, qtht.luong_bac, qtht.luong_heso', 'hosochinh_quatrinhhientai qtht', array('inner' => 'ins_dept dv on dv.id = qtht.congtac_donvi_id', 'inner ' => 'ins_dept phong on phong.id = qtht.congtac_phong_id'), 'dv.ins_loaihinh =1 and qtht.hoso_trangthai="00" and qtht.luong_hinhthuc_id = 9 and dv.id = ' . $donvi_id, null);
     Core::PrintJson($kq);
     die;
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:9,代码来源:view.raw.php

示例11: luusoluongkhongchuyentrach

 function luusoluongkhongchuyentrach()
 {
     $formData = $_POST;
     $values = array();
     parse_str($formData['frm_soluongkhongchuyentrach'], $values);
     $model = Core::model('Thonto/Tochuc');
     Core::PrintJson($model->luusoluongkhongchuyentrach($values));
     die;
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:9,代码来源:tochuc.php

示例12: getlamthemgio

 private function getlamthemgio()
 {
     $user_id = $_POST['user_id'];
     $lamthemgiobatdau = $_POST['lamthemgiobatdau'];
     $lamthemgioketthuc = $_POST['lamthemgioketthuc'];
     $model = JModelLegacy::getInstance('Tuan', 'BaocaotuanModel');
     $quatrinh = $model->getThongtin('DATE_FORMAT(ltg.timebatdau,"%Hh%i") as timebatdau, DATE_FORMAT(ltg.timeketthuc,"%Hh%i") as timeketthuc,ltg.thoigian,ltg.congvieclamthem as congvieclamthem, ltg.ngaylamthem, DATE_FORMAT(ltg.ngaylamthem,"%m") as thanglamthem, DATE_FORMAT(ltg.ngaylamthem,"%Y") as namlamthem, ltg.id', 'zxlamthemgio ltg', null, ' user_id = ' . $user_id . ' and (ngaylamthem<="' . $lamthemgioketthuc . '" and  ngaylamthem>="' . $lamthemgiobatdau . '")', 'ngaylamthem asc');
     Core::PrintJson($quatrinh);
     die;
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:10,代码来源:view.raw.php

示例13: doituong

 public function doituong()
 {
     $model = Core::model('Thongke/Bcdaotaoboiduong');
     $donvi_id = $_POST['donvi_id'];
     $tungay = $_POST['tungay_bcdaotaocc'];
     $denngay = $_POST['denngay_bcdaotaocc'];
     $target = $_POST['target'];
     $condition = $_POST['condition'];
     $json = $model->hienthiBaocao($donvi_id, $target, $condition, $tungay, $denngay);
     Core::PrintJson($json);
     die;
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:12,代码来源:view.raw.php

示例14: savebienche

 function savebienche()
 {
     $formData = JRequest::get('post');
     $values = array();
     parse_str($formData['form_solieubienche'], $values);
     $model = Core::model('Tochuc/Solieubienche');
     if ($model->removebienche($values['id_donvi'])) {
         if ($model->savebienche($values)) {
             Core::PrintJson(true);
         } else {
             Core::PrintJson(false);
         }
     } else {
         Core::PrintJson(false);
     }
     die;
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:17,代码来源:solieubienche.php

示例15: luutinhhinhhoatdong

 function luutinhhinhhoatdong()
 {
     $form_tinhhinhhoatdong = $_POST;
     $values = array();
     parse_str($form_tinhhinhhoatdong['form_tinhhinhhoatdong'], $values);
     $model = Core::model('Thonto/Tinhhinhhoatdong');
     $insert_id = $model->luutinhhinhhoatdong($values);
     if (isset($values['id']) && (int) $values['id'] > 0) {
         $model->xoaxulykiennghi($values['id']);
     }
     if (isset($values['kiennghi_id'])) {
         for ($i = 0; $i < count($values['kiennghi_id']); $i++) {
             $model->luuxulykiennghi($insert_id, $values['kiennghi_id'][$i], $values['soluongkiennghi'][$i], $values['dagiaiquyet_thonto'][$i], $values['dagiaiquyet_phuongxa'][$i], $values['dagiaiquyet_quanhuyentrolen'][$i]);
         }
         Core::PrintJson(true);
     } else {
         Core::PrintJson(true);
     }
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:19,代码来源:tinhhinhhoatdong.php


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