-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Society acces, print function, and add allert
- Loading branch information
1 parent
f8ad54c
commit 8eaeffe
Showing
35 changed files
with
1,101 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,5 @@ public function detail($id_laporan){ | |
} | ||
|
||
|
||
|
||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
defined('BASEPATH') OR exit('No direct script access allowed'); | ||
|
||
class Masyarakat extends CI_Controller { | ||
|
||
function __construct(){ | ||
parent::__construct(); | ||
$this->load->model('M_masyarakat'); | ||
$this->load->helper('url'); | ||
} | ||
|
||
/** | ||
* Index Page for this controller. | ||
* | ||
* Maps to the following URL | ||
* http://example.com/index.php/welcome | ||
* - or - | ||
* http://example.com/index.php/welcome/index | ||
* - or - | ||
* Since this controller is set as the default controller in | ||
* config/routes.php, it's displayed at http://example.com/ | ||
* | ||
* So any other public methods not prefixed with an underscore will | ||
* map to /index.php/welcome/<method_name> | ||
* @see https://codeigniter.com/user_guide/general/urls.html | ||
*/ | ||
public function read($id) | ||
{ | ||
// var_dump($this->M_desa->get_laporan($id)); | ||
|
||
$this->data['laporan']=$this->M_masyarakat->get_laporan($id); | ||
$this->load->view('laporan/masyarakat',$this->data); | ||
|
||
|
||
|
||
} | ||
public function detail($id_laporan){ | ||
$this->data['laporan']=$this->M_masyarakat->get_detail($id_laporan); | ||
$this->load->view('detail',$this->data); | ||
|
||
} | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
defined('BASEPATH') OR exit('No direct script access allowed'); | ||
|
||
class Perangkat extends CI_Controller { | ||
|
||
function __construct(){ | ||
parent::__construct(); | ||
$this->load->model('M_perangkat'); | ||
$this->load->helper('url'); | ||
} | ||
|
||
/** | ||
* Index Page for this controller. | ||
* | ||
* Maps to the following URL | ||
* http://example.com/index.php/welcome | ||
* - or - | ||
* http://example.com/index.php/welcome/index | ||
* - or - | ||
* Since this controller is set as the default controller in | ||
* config/routes.php, it's displayed at http://example.com/ | ||
* | ||
* So any other public methods not prefixed with an underscore will | ||
* map to /index.php/welcome/<method_name> | ||
* @see https://codeigniter.com/user_guide/general/urls.html | ||
*/ | ||
public function read($id) | ||
{ | ||
// var_dump($this->M_desa->get_laporan($id)); | ||
|
||
$this->data['laporan']=$this->M_perangkat->get_laporan($id); | ||
$this->load->view('laporan/perangkat',$this->data); | ||
|
||
|
||
|
||
} | ||
public function detail($id_laporan){ | ||
$this->data['laporan']=$this->M_perangkat->get_detail($id_laporan); | ||
$this->load->view('detail',$this->data); | ||
|
||
} | ||
|
||
|
||
|
||
} |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
class M_masyarakat extends CI_Model{ | ||
|
||
|
||
function get_laporan($id){ | ||
return $this->db->get_where('tes', array('id_desa'=>$id))->result(); | ||
} | ||
function get_detail($id_laporan){ | ||
return $this->db->get_where('tes', array('id_lpaoran'=>$id_laporan))->row(); | ||
} | ||
|
||
|
||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
class M_perangkat extends CI_Model{ | ||
|
||
|
||
function get_laporan($id){ | ||
return $this->db->get_where('tes', array('id_desa'=>$id))->result(); | ||
} | ||
function get_detail($id_laporan){ | ||
return $this->db->get_where('tes', array('id_lpaoran'=>$id_laporan))->row(); | ||
} | ||
|
||
|
||
|
||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.