Skip to content

Commit

Permalink
Society acces, print function, and add allert
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry95loyal committed Jul 3, 2019
1 parent f8ad54c commit 8eaeffe
Show file tree
Hide file tree
Showing 35 changed files with 1,101 additions and 239 deletions.
1 change: 1 addition & 0 deletions application/controllers/Desa.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ public function detail($id_laporan){
}



}
Empty file.
45 changes: 45 additions & 0 deletions application/controllers/Masyarakat.php
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);

}



}
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Pengumuman extends CI_Controller {
class opsidesamas extends CI_Controller {


/**
* Index Page for this controller.
Expand All @@ -18,8 +19,18 @@ class Pengumuman extends CI_Controller {
* map to /index.php/welcome/<method_name>
* @see https://codeigniter.com/user_guide/general/urls.html
*/
function __construct(){
parent::__construct();
$this->load->model('M_inputper');
$this->load->helper('url');

}


public function index()
{
$this->load->view('pengumuman');
$this->data['nama_desa']= $this->M_inputper->ambildesa();
$this->load->view('opsidesamas',$this->data);

}
}
45 changes: 45 additions & 0 deletions application/controllers/Perangkat.php
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.
36 changes: 0 additions & 36 deletions application/controllers/laporanpdf.php

This file was deleted.

15 changes: 0 additions & 15 deletions application/models/M_berita.php

This file was deleted.

3 changes: 3 additions & 0 deletions application/models/M_desa.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ function get_laporan($id){
function get_detail($id_laporan){
return $this->db->get_where('tes', array('id_lpaoran'=>$id_laporan))->row();
}



}

15 changes: 15 additions & 0 deletions application/models/M_masyarakat.php
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();
}



}

15 changes: 15 additions & 0 deletions application/models/M_perangkat.php
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();
}



}

71 changes: 0 additions & 71 deletions application/views/V_laporan.php

This file was deleted.

2 changes: 1 addition & 1 deletion application/views/inputper.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<div class="form-group row">
<label for="inputId_desa" class="col-sm-3 col-form-label"><strong>Level</strong></label>
<div class="col-sm-9">
<div class="col-sm-9">
<input type="text" class="form-control" id="level" placeholder="">
</select>

Expand Down

0 comments on commit 8eaeffe

Please sign in to comment.