Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function BuscarOTPorId(){
- if('<?=$this->uri->segment(3);?>'){
- $.ajax({
- type: "POST",
- url: "<?= base_url()?>AgregarOTController/BuscarOTPorId/"+'<?=$this->uri->segment(3);?>',
- data: "",
- success: function(objView){
- }
- });
- }
- }
- public function BuscarOTPorId(){
- $id_ot =$this->uri->segment('3');
- $getOT =$this->MainModel->BuscarOTPorId($id_ot);
- $data = array();
- $toJson = array(
- 'success' => 'true',
- 'ViewSet' => array(),
- 'getOT'=>$getOT
- );
- $toJson['ViewSet']['header'] = $this->load->view('Header/header', $data, true);
- $toJson['ViewSet']['leftpanel'] = $this->load->view('leftpanel/leftpanel', $data, true);
- $toJson['ViewSet']['create'] = $this->load->view('OT/AgregarOT2', $data, true);
- $this->output
- ->set_content_type('application/json')
- ->set_output(json_encode($toJson));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement