diff --git a/application/controllers/Jadwal.php b/application/controllers/Jadwal.php
index 974e02b..d07aedd 100644
--- a/application/controllers/Jadwal.php
+++ b/application/controllers/Jadwal.php
@@ -38,7 +38,6 @@ private function _cek_login()
$this->load->view('template/header',$d_header);
$this->load->view('template/leftside');
$this->load->view('jadwal/index');
- $this->load->view('template/footer_js');
$this->load->view('jadwal/ajax_scripts');
$this->load->view('template/footer');
}
diff --git a/application/models/M_jadwal.php b/application/models/M_jadwal.php
index 7be52d6..65a8377 100644
--- a/application/models/M_jadwal.php
+++ b/application/models/M_jadwal.php
@@ -18,7 +18,7 @@ class M_jadwal extends CI_Model {
Public function addEvent()
{
- $sql = "INSERT INTO tb_jadwal (title,tb_jadwal.start,tb_jadwal.end, description, color) VALUES (?,?,?,?,?)";
+ $sql = "INSERT INTO tb_jadwal (title,tb_jadwal.start,tb_jadwal.end,description, color) VALUES (?,?,?,?,?)";
$this->db->query($sql, array($_POST['title'], $_POST['start'],$_POST['end'], $_POST['description'], $_POST['color']));
return ($this->db->affected_rows()!=1)?false:true;
}
diff --git a/application/models/M_jadwal_last_good.php b/application/models/M_jadwal_last_good.php
new file mode 100644
index 0000000..8014dac
--- /dev/null
+++ b/application/models/M_jadwal_last_good.php
@@ -0,0 +1,73 @@
+db->query($sql, array($_GET['start'], $_GET['end']))->result();
+
+ }
+
+ Public function getEventsAllDay()
+ {
+
+ $sql = "SELECT * FROM tb_jadwal WHERE tb_jadwal.start ORDER BY tb_jadwal.start ASC";
+ return $this->db->query($sql)->result();
+
+ }
+
+/*Create new events */
+
+ Public function addEvent()
+ {
+
+ $sql = "INSERT INTO tb_jadwal (title,tb_jadwal.start,tb_jadwal.end, description, color) VALUES (?,?,?,?,?)";
+ $this->db->query($sql, array($_POST['title'], $_POST['start'],$_POST['end'], $_POST['description'], $_POST['color']));
+ return ($this->db->affected_rows()!=1)?false:true;
+ }
+
+ /*Update event */
+
+ Public function updateEvent()
+ {
+
+ $sql = "UPDATE tb_jadwal SET title = ?, description = ?, color = ? WHERE id = ?";
+ $this->db->query($sql, array($_POST['title'],$_POST['description'], $_POST['color'], $_POST['id']));
+ return ($this->db->affected_rows()!=1)?false:true;
+ }
+
+
+ /*Delete event */
+
+ Public function deleteEvent()
+ {
+
+ $sql = "DELETE FROM tb_jadwal WHERE id = ?";
+ $this->db->query($sql, array($_GET['id']));
+ return ($this->db->affected_rows()!=1)?false:true;
+ }
+
+ /*Update event */
+
+ Public function dragUpdateEvent()
+ {
+ //$date=date('Y-m-d h:i:s',strtotime($_POST['date']));
+
+ $sql = "UPDATE tb_jadwal SET tb_jadwal.start = ? ,tb_jadwal.end = ? WHERE id = ?";
+ $this->db->query($sql, array($_POST['start'],$_POST['end'], $_POST['id']));
+ return ($this->db->affected_rows()!=1)?false:true;
+
+
+ }
+
+
+
+
+
+
+}
diff --git a/application/views/dashboard/index.php b/application/views/dashboard/index.php
index 385bb31..5ec3399 100755
--- a/application/views/dashboard/index.php
+++ b/application/views/dashboard/index.php
@@ -3,7 +3,7 @@
diff --git a/application/views/identifikasi/index.php b/application/views/identifikasi/index.php
index 58049bf..b622761 100644
--- a/application/views/identifikasi/index.php
+++ b/application/views/identifikasi/index.php
@@ -2,7 +2,7 @@