Ejemplo n.º 1
0
 public function add()
 {
     $this->load->language('card/card');
     $this->document->setTitle($this->language->get('heading_title'));
     $this->load->model('card/card');
     if ($this->request->server['REQUEST_METHOD'] == 'POST' && $this->validateForm()) {
         $this->model_card_card->addCard($this->request->post);
         $this->session->data['success'] = $this->language->get('text_success');
         $url = '';
         if (isset($this->request->get['filter_name'])) {
             $url .= '&filter_name=' . urlencode(html_entity_decode($this->request->get['filter_name'], ENT_QUOTES, 'UTF-8'));
         }
         if (isset($this->request->get['filter_price'])) {
             $url .= '&filter_price=' . $this->request->get['filter_price'];
         }
         if (isset($this->request->get['filter_quantity'])) {
             $url .= '&filter_quantity=' . $this->request->get['filter_quantity'];
         }
         if (isset($this->request->get['filter_status'])) {
             $url .= '&filter_status=' . $this->request->get['filter_status'];
         }
         if (isset($this->request->get['sort'])) {
             $url .= '&sort=' . $this->request->get['sort'];
         }
         if (isset($this->request->get['order'])) {
             $url .= '&order=' . $this->request->get['order'];
         }
         if (isset($this->request->get['page'])) {
             $url .= '&page=' . $this->request->get['page'];
         }
         $this->response > re - direct($this->url->link('card/card', 'token=' . $this->session->data['token'] . $url, 'SSL'));
     }
     $this->getForm();
 }
Ejemplo n.º 2
0
function list_verify()
{
    if (logged_in() != TRUE) {
        //echo 'You are not logged in';
        direct('login.php', 0);
        //echo 'hih';
    }
}
Ejemplo n.º 3
0
 function detail($id = '')
 {
     if ($this->session->userdata('logged_in')) {
         $q = $this->divisi_model->get_by_id($id);
         $data = array("title" => $q->title, "tag" => $q->tag, "summary" => $q->summary, "body" => $q->body, "status" => $q->status, "created_date" => $q->created_date, "modified_date" => $q->modified_date);
         $this->parser->parse('admin/content/divisi/detail_divisi', $data);
     } else {
         direct('admin/login', 'refresh');
     }
 }
Ejemplo n.º 4
0
 function aksi()
 {
     if (post('login-alumni')) {
         $this->db->join('jurusan', 'jurusan.id_jurusan=siswa.id_jurusan');
         $user = explode(".", post('user'));
         if (isset($user[1])) {
             $row = $this->db->get_where('siswa', array('salt' => $user[0], 'user' => $user[1], 'pass' => sha1(post('pass'))))->row_array();
         } else {
             $row = false;
         }
         if ($row) {
             if ($row['status'] == 'active') {
                 $data = array('id_user' => $row['id_siswa'], 'login' => true, 'role' => 'alumni', 'jurusan' => $row['warna_jurusan']);
                 $this->session->set_userdata($data);
                 direct("front/profil_alumni");
             } else {
                 $this->all->setMsg('error', 'Username tidak aktif');
             }
         } else {
             $this->all->setMsg('error', 'Username Dan Password Salah');
         }
     }
     if (post('login-perusahaan')) {
         $row = $this->db->get_where('perusahaan', array('user' => post('user'), 'pass' => sha1(post('pass'))))->row_array();
         if ($row) {
             if ($row['status'] == 'active') {
                 $data = array('id_user' => $row['id_perusahaan'], 'login' => true, 'role' => 'perusahaan');
                 $this->session->set_userdata($data);
                 direct("front/detail_perusahaan");
             } else {
                 $this->all->setMsg('error', 'Username tidak aktif');
             }
         } else {
             $this->all->setMsg('error', 'Username Dan Password Salah');
         }
     }
 }
Ejemplo n.º 5
0
</div>

</div>
</div>

<script>
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
bkLib.onDomLoaded(function() {
	new nicEditor({maxHeight : 200}).panelInstance('pesan');
});
</script>

<?php 
if (isset($_POST['tambah']) and $_POST['tambah'] == "pesan") {
    $nama = $_POST['nama'];
    $email = $_POST['email'];
    $isi = $_POST['pesan'];
    if (empty($isi)) {
        $pesan = "(Tanpa Komentar)";
    } else {
        $pesan = $isi;
    }
    $tgl = new datenow();
    $waktu = $tgl->hariini . ", " . $tgl->tgl . " " . $tgl->bulanini . " " . $tgl->thn . " | " . $tgl->jam;
    $waktu = mysql_real_escape_string($waktu);
    $tambah = mysql_query("insert into keluhan values('default','{$nama}','{$email}','{$pesan}','{$waktu}')");
    echo "<script>alert('Pesan berhasil dikirim. Terima kasih atas kejujuran Anda!')</script>";
    direct("?page=contact");
}
Ejemplo n.º 6
0
<input type="hidden" name="tambah" value="jurnal" />
</form>
</div>
</div>
</div>

<script type="text/javascript">
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
bkLib.onDomLoaded(function(){
	new nicEditor({buttonList : ['link','unlink',]}).panelInstance('uraian');
});
</script>

<?php 
        if (isset($_POST['tambah']) and $_POST['tambah'] == "jurnal") {
            $kegiatan = $_POST['kegiatan'];
            $tgl = $_POST['tgl'];
            $uraian = $_POST['uraian'];
            $tambah = mysql_query("insert into jurnal_harian values('default','{$nis}','{$tgl}','{$kegiatan}','{$uraian}')");
            if ($tambah) {
                direct("?page=add_jurnal&notif=added");
            }
        }
    } else {
        echo "<br /><center>ERROR 404<br />Page Not Found!</center>";
    }
} else {
    lokasi("login");
}
Ejemplo n.º 7
0
<table width="100%" border="0" style="font-size: 12px; margin-top: 3px; margin-bottom: 15px;">
  <tr>
    <td width="75%" align="left">
	<?php 
if ($rows > $limit) {
    ?>
	Halaman: <?php 
    $query->printNav();
    ?>
	<?php 
}
?>
	</td>
	<td width="25%" align="right">Jumlah: <b><?php 
echo $rows;
?>
</b> data</td>
  </tr>
</table>
</div>
</div>
</div>

<?php 
$menu = isset($_GET['menu']) ? $_GET['menu'] : '';
$id = isset($_GET['id']) ? $_GET['id'] : '';
if ($menu == "hapus") {
    $hapus = mysql_query("delete from kelas where id_kelas='{$id}'");
    echo "<script>alert('Data berhasil dihapus')</script>";
    direct("?page=data_kelas");
}
Ejemplo n.º 8
0
                direct("?page=setting_profil&notif=success");
            } else {
                if ($table == "du_di") {
                    $nama_dudi = $_POST['nama_dudi'];
                    $alamat = $_POST['alamat'];
                    $email = $_POST['email'];
                    $tentang = $_POST['tentang'];
                    $primary = "id_dudi";
                    $key = $data['id_dudi'];
                    $ubah = mysql_query("update {$table} set nama_dudi='{$nama_dudi}', alamat='{$alamat}', email='{$email}', tentang='{$tentang}' where {$primary}='{$key}'") or die(mysql_error());
                    direct("?page=setting_profil&notif=success");
                } else {
                    if ($table == "siswa") {
                        $nama = $_POST['nama'];
                        $jenisklm = $_POST['jenisklm'];
                        $tmp_lahir = $_POST['tmp_lahir'];
                        $tgl_lahir = $_POST['tgl_lahir'];
                        $email = $_POST['email'];
                        $no_telp = $_POST['no_telp'];
                        $primary = "nis";
                        $key = $data['nis'];
                        $ubah = mysql_query("update {$table} set nama='{$nama}', id_jenisklm='{$jenisklm}', tmp_lahir='{$tmp_lahir}', tgl_lahir='{$tgl_lahir}', no_telpon='{$no_telp}', email='{$email}' where {$primary}='{$key}'") or die(mysql_error());
                        direct("?page=setting_profil&notif=success");
                    }
                }
            }
        }
    }
} else {
    lokasi("login");
}
Ejemplo n.º 9
0
  <tr>
    <td width="75%" align="left">
	<?php 
if ($rows > $limit) {
    ?>
	Halaman: <?php 
    $query->printNav();
    ?>
	<?php 
}
?>
	</td>
	<td width="25%" align="right">Jumlah: <b><?php 
echo $rows;
?>
</b> guru</td>
  </tr>
</table>
</div>

</div>
</div>

<?php 
$menu = isset($_GET['menu']) ? $_GET['menu'] : '';
$id = isset($_GET['id']) ? $_GET['id'] : '';
if ($menu == "hapus") {
    $hapus = mysql_query("delete from guru where id_guru='{$id}'");
    echo "<script>alert('Data berhasil dihapus')</script>";
    direct("?page=data_guru");
}
Ejemplo n.º 10
0
<?php 
        } else {
            ?>

Tidak ditemukan data dengan keyword <i><b>"<?php 
            echo $key;
            ?>
"</b></i>. Silahkan ulangi pencarian dengan keyword yang lain!
<div style="margin-top: 5px;">
<button class="button-style" type="submit" name="back" onclick="history.back()">Kembali</button>
</div>

<?php 
        }
        ?>

</div>

</div>
</div>

<?php 
        $menu = isset($_GET['menu']) ? $_GET['menu'] : '';
        $id = isset($_GET['id']) ? $_GET['id'] : '';
        if ($menu == "hapus") {
            $hapus = mysql_query("delete from monitoring where id_monitoring='{$id}'");
            echo "<script>alert('Data berhasil dihapus')</script>";
            direct("?page=data_monitoring");
        }
    }
}
Ejemplo n.º 11
0
			document.getElementById("docview").innerHTML = xmlhttp.responseText;
	}
	
	xmlhttp.open("POST","view_img.php",true);
	
	xmlhttp.send();
	
}

var page = -1;

function send(inc) 
{
	<?php 
if (logged_in() == FALSE) {
    direct('login.php', 0);
}
?>
;
	page = inc(page);
	var docname = <?php 
echo json_encode($_POST['docname']);
?>
;
	xmlhttp.open("POST","view_img.php",true);
	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	xmlhttp.send("pagenum="+page+"&docname="+docname);
	
}

load();
Ejemplo n.º 12
0
        $jumlah = $rows;
    } else {
        if ($level == 'admin') {
            $jumlah = $rows - 1;
        }
    }
}
?>
</table>
<table width="100%" border="0" style="font-size: 12px; margin-top: 3px; margin-bottom: 15px;">
  <tr>
    <td width="75%" align="left">
	</td>
	<td width="25%" align="right">Jumlah: <b><?php 
echo $jumlah;
?>
</b> user</td>
  </tr>
</table>
</div>
</div>
</div>

<?php 
$menu = isset($_GET['menu']) ? $_GET['menu'] : '';
$id = isset($_GET['id']) ? $_GET['id'] : '';
if ($menu == "hapus") {
    $hapus = mysql_query("delete from user where username='******'");
    echo "<script>alert('Data berhasil dihapus')</script>";
    direct("?page=data_user");
}
Ejemplo n.º 13
0
if (isset($_SESSION['auth'][$instance->segments['actor']])) {
    ?>
            <ul class="nav">
              <li><a href="<?php 
    href('auth/logout');
    ?>
">logout</a></li>
            </ul>
<?php 
}
?>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>
    <div class="container-fluid">
<?php 
template($instance->segments['action'], $vars);
?>
    </div> <!-- /container -->
    <script src="<?php 
direct('twitter/bootstrap/js/bootstrap.min.js');
?>
"></script>
    <script src="<?php 
direct('crud/crud.js');
?>
"></script>
  </body>
</html>
Ejemplo n.º 14
0
<input type="hidden" name="edit" value="penempatan" />
</form>
</div>
</div>
</div>

<script type="text/javascript">
var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2");
var spryselect3 = new Spry.Widget.ValidationSelect("spryselect3");
var spryselect4 = new Spry.Widget.ValidationSelect("spryselect4");
</script>

<?php 
        if (isset($_POST['edit']) and $_POST['edit'] == "penempatan") {
            $no_id = $data['no_id'];
            $nis = $_POST['nis'];
            $id_pembimbing = $_POST['id_pembimbing'];
            $id_dudi = $_POST['id_dudi'];
            $id_periode = $_POST['id_periode'];
            $ubah = mysql_query("update penempatan set nis='{$nis}', id_pembimbing='{$id_pembimbing}', id_dudi='{$id_dudi}', id_periode='{$id_periode}' where no_id='{$no_id}'");
            if ($ubah) {
                direct("?page=edit_penempatan&id={$no_id}&notif=edited");
            }
        }
    } else {
        echo "<br /><center>ERROR 404<br />Page Not Found!</center>";
    }
} else {
    lokasi("login");
}
Ejemplo n.º 15
0
</table>

<?php 
} else {
    ?>

Tidak ditemukan data dengan keyword <i><b>"<?php 
    echo $key;
    ?>
"</b></i>. Silahkan ulangi pencarian dengan keyword yang lain!
<div style="margin-top: 5px;">
<button class="button-style" type="submit" name="back" onclick="history.back()">Kembali</button>
</div>

<?php 
}
?>

</div>

</div>
</div>

<?php 
$menu = isset($_GET['menu']) ? $_GET['menu'] : '';
$id = isset($_GET['id']) ? $_GET['id'] : '';
if ($menu == "hapus") {
    $hapus = mysql_query("delete from jurusan where id_jurusan='{$id}'");
    echo "<script>alert('Data berhasil dihapus')</script>";
    direct("?page=data_jurusan");
}
Ejemplo n.º 16
0
<table width="100%" border="0" style="font-size: 12px; margin-top: 3px; margin-bottom: 15px;">
  <tr>
    <td width="75%" align="left">
	<?php 
if ($rows > $limit) {
    ?>
	Halaman: <?php 
    $query->printNav();
    ?>
	<?php 
}
?>
	</td>
	<td width="25%" align="right">Jumlah: <b><?php 
echo $rows;
?>
</b> data</td>
  </tr>
</table>
</div>
</div>
</div>

<?php 
$menu = isset($_GET['menu']) ? $_GET['menu'] : '';
$id = isset($_GET['id']) ? $_GET['id'] : '';
if ($menu == "hapus") {
    $hapus = mysql_query("delete from periode where id_periode='{$id}'");
    echo "<script>alert('Data berhasil dihapus')</script>";
    direct("?page=data_periode");
}
Ejemplo n.º 17
0
</div>
</div>

<script type="text/javascript">
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
bkLib.onDomLoaded(function(){
	new nicEditor({buttonList : ['link','unlink',]}).panelInstance('kritik_saran');
});
</script>

<?php 
        if (isset($_POST['edit']) and $_POST['edit'] == "monitoring") {
            $id_monitoring = $data['id_monitoring'];
            $tgl = $_POST['tgl'];
            $id_dudi = $_POST['id_dudi'];
            $kegiatan = $_POST['kegiatan'];
            $kritik_saran = $_POST['kritik_saran'];
            $ubah = mysql_query("update monitoring set tgl='{$tgl}', id_dudi='{$id_dudi}', jns_keg='{$kegiatan}', kritik_saran='{$kritik_saran}' where id_monitoring='{$id_monitoring}'");
            if ($ubah) {
                direct("?page=edit_monitoring&id={$id_monitoring}&notif=edited");
            }
        }
    } else {
        echo "<br /><center>ERROR 404<br />Page Not Found!</center>";
    }
} else {
    lokasi("login");
}
Ejemplo n.º 18
0
================================================== -->
<header class="jumbotron subhead" id="overview">
  <div class="container">
    <h1>Demonstration</h1>
    <p class="lead">Try enhanced CRUD</p>
  </div>
</header>

  <div class="container">

    <div class="row">
      <div class="span12">

        <section>
          <div class="page-header">
            <h1>ER Diagram</h1>
            <p class="lead">The association is automaticaly created.</p>
          </div>
          <img src="<?php 
direct('crud/img/er_diagram.png');
?>
" />
        </section>

      </div>
    </div>

  </div>

<?php 
$controller->load->view('footer');
Ejemplo n.º 19
0
<?php 
        } else {
            ?>

Tidak ditemukan data dengan keyword <i><b>"<?php 
            echo $key;
            ?>
"</b></i>. Silahkan ulangi pencarian dengan keyword yang lain!
<div style="margin-top: 5px;">
<button class="button-style" type="submit" name="back" onclick="history.back()">Kembali</button>
</div>

<?php 
        }
        ?>

</div>

</div>
</div>

<?php 
        $menu = isset($_GET['menu']) ? $_GET['menu'] : '';
        $id = isset($_GET['id']) ? $_GET['id'] : '';
        if ($menu == "hapus") {
            $hapus = mysql_query("delete from absensi where no_id='{$id}'");
            echo "<script>alert('Data berhasil dihapus')</script>";
            direct("?page=data_absensi");
        }
    }
}
Ejemplo n.º 20
0
    } elseif (isset($_POST['update_book'])) {
        $list = new BookList(get_pathname());
        $list->saveList();
        echo '<div class="login-card">';
        echo "<center>List has been updated.</center>";
        echo '</div>';
        direct('admin.php', 3);
    } else {
        echo '<div class="login-card">';
        echo "<form method='post' action=''>\n\t\t<input type='submit' name='create' value='Create User' class='login login-submit' />\n\t\t<br/>\n\t\t<input type='submit' name='update_book' value='Update List' class='login login-submit' />\n\t\t<br/>\n\t\t<input type='submit' name='log_out' value='Logout' class='login login-submit' />\n\t\t</form>";
        echo '</div>';
    }
} else {
    if (isset($_POST['sub'])) {
        verify_admin();
        direct('admin.php', 0);
    } else {
        echo '<div class="login-card">';
        echo '<h1>Admin Panel</h1>';
        echo '<form action="" method="post" accept-charset="utf-8">
		<input type="text" name="username"  id="username" placeholder="Username"> <br/>
		<input type="text" name="password"  placeholder="Password">
		<p><input type="submit" name="sub" value="Login" class="login login-submit"></p>
		</form>';
        echo '</div>';
    }
}
?>
<script src='inc/jquery.min.js'></script>
<script src='inc/jquery-ui.min.js'></script>
</body>
Ejemplo n.º 21
0
var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7");
var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
bkLib.onDomLoaded(function(){
	new nicEditor({buttonList : ['link','unlink',]}).panelInstance('tentang');
});
</script>

<?php 
        if (isset($_POST['edit']) and $_POST['edit'] == "guru") {
            $id_guru = $data['id_guru'];
            $nip = $_POST['nip'];
            $nama = $_POST['nama'];
            $jenisklm = $_POST['jenkel'];
            $tmp_lahir = $_POST['tmp_lahir'];
            $tgl_lahir = $_POST['tgl_lahir'];
            $alamat = $_POST['alamat'];
            $no_telp = $_POST['no_telp'];
            $username = $_POST['username'];
            $password = $_POST['password'];
            $email = $_POST['email'];
            $ubah = mysql_query("update guru set nip='{$nip}', nama='{$nama}', id_jenisklm='{$jenisklm}', tmp_lahir='{$tmp_lahir}', tgl_lahir='{$tgl_lahir}', alamat='{$alamat}', no_telpon='{$no_telp}', username='******', password='******', email='{$email}' where id_guru='{$id_guru}'");
            if ($ubah) {
                direct("?page=edit_guru&id={$id_guru}&notif=edited");
            }
        }
    } else {
        echo "<br /><center>ERROR 404<br />Page Not Found!</center>";
    }
} else {
    lokasi("login");
}
Ejemplo n.º 22
0
    ?>

Tidak ditemukan data dengan keyword <i><b>"<?php 
    echo $key;
    ?>
"</b></i>. Silahkan ulangi pencarian dengan keyword yang lain!
<div style="margin-top: 5px;">
<button class="button-style" type="submit" name="back" onclick="history.back()">Kembali</button>
</div>

<?php 
}
?>

</div>

</div>
</div>

<?php 
if (isset($_POST['hapus']) and $_POST['hapus'] == "Hapus") {
    $jumlah = $_POST['jumlah'];
    for ($jum = 0; $jum <= $jumlah - 1; $jum++) {
        if (isset($_POST['id' . $jum])) {
            $id = $_POST['id' . $jum];
            $hapus = mysql_query("delete from post_data where id_post='{$id}'");
            echo "<script>alert('Data berhasil dihapus')</script>";
            direct("?page=data_post");
        }
    }
}
Ejemplo n.º 23
0
</div>
</div>

<script type="text/javascript">
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5");
var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6");
</script>

<?php 
        if (isset($_POST['edit']) and $_POST['edit'] == "periode") {
            $id_pr = $data['id_periode'];
            $nama = $_POST['nama_pr'];
            $tgl_on = $_POST['tgl_on'];
            $tgl_off = $_POST['tgl_off'];
            $angkatan = $_POST['thn1'] . "/" . $_POST['thn2'];
            $jml_kls = $_POST['jml_kls'];
            $ubah = mysql_query("update periode set nama_periode='{$nama}', tgl_berangkat='{$tgl_on}', tgl_kembali='{$tgl_off}', thn_angkatan='{$angkatan}', jml_kelas='{$jml_kls}' where id_periode='{$id_pr}'");
            if ($ubah) {
                direct("?page=edit_periode&id={$id_pr}&notif=edited");
            }
        }
    } else {
        echo "<br /><center>ERROR 404<br />Page Not Found!</center>";
    }
} else {
    lokasi("login");
}
Ejemplo n.º 24
0
  <tr>
    <td width="75%" align="left">
	<?php 
if ($rows > $limit) {
    ?>
	Halaman: <?php 
    $query->printNav();
    ?>
	<?php 
}
?>
	</td>
	<td width="25%" align="right">Jumlah: <b><?php 
echo $rows;
?>
</b> siswa</td>
  </tr>
</table>
</div>

</div>
</div>

<?php 
$menu = isset($_GET['menu']) ? $_GET['menu'] : '';
$id = isset($_GET['id']) ? $_GET['id'] : '';
if ($menu == "hapus") {
    $hapus = mysql_query("delete from siswa where nis='{$id}'");
    echo "<script>alert('Data berhasil dihapus')</script>";
    direct("?page=data_siswa");
}
Ejemplo n.º 25
0
</table>
<input type="hidden" name="tambah" value="pembimbing" />
</form>
</div>
</div>
</div>

<script type="text/javascript">
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
</script>

<?php 
        if (isset($_POST['tambah']) and $_POST['tambah'] == "pembimbing") {
            $id_pembimbing = $_POST['id_pembimbing'];
            $id_guru = $_POST['id_guru'];
            $tambah = mysql_query("insert into pembimbing values('{$id_pembimbing}','{$id_guru}')");
            if ($tambah) {
                direct("?page=add_pembimbing&notif=added");
            } else {
                direct("?page=add_pembimbing&notif=failed");
            }
        }
    } else {
        echo "<br /><center>ERROR 404<br />Page Not Found!</center>";
    }
} else {
    lokasi("login");
}
?>
i
Ejemplo n.º 26
0
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
bkLib.onDomLoaded(function(){
	new nicEditor({buttonList : ['link','unlink',]}).panelInstance('tentang');
});
</script>

<?php 
        if (isset($_POST['edit']) and $_POST['edit'] == "perusahaan") {
            $id_dudi = $data['id_dudi'];
            $nama = $_POST['nama'];
            $alamat = $_POST['alamat'];
            $jurusan = $_POST['jurusan'];
            $username = $_POST['username'];
            $password = $_POST['password'];
            $email = $_POST['email'];
            $tentang = $_POST['tentang'];
            $ubah = mysql_query("update du_di set nama_dudi='{$nama}', alamat='{$alamat}', id_jurusan='{$jurusan}', username='******', password='******', email='{$email}', tentang='{$tentang}' where id_dudi='{$id_dudi}'");
            if ($ubah) {
                direct("?page=edit_dudi&id={$id_dudi}&notif=edited");
            }
        }
    } else {
        echo "<br /><center>ERROR 404<br />Page Not Found!</center>";
    }
} else {
    lokasi("login");
}
Ejemplo n.º 27
0
 function detail($id = '')
 {
     if ($this->session->userdata('logged_in')) {
         $q = $this->news_model->get_by_id($id);
         $image = $this->get_news_image($id);
         $img = "<div class='col-lg-4 col-md-6 col-xs-6 thumb'>";
         $img .= "<a target='_blank' class='thumbnail' href='" . base_url() . $image . "'>";
         $img .= "<img class='img-responsive' src='" . base_url() . $image . "'>";
         $img .= "</a></div>";
         $data = array("nama_lengkap" => $q->nama_lengkap, "title_news" => $q->title_news, "tag" => $q->tag, "category" => $q->title_category, "status" => $q->status, "body" => $q->body, "summary" => $q->summary, "image" => $img, "created_date" => $q->created_date, "modified_date" => $q->modified_date);
         $this->parser->parse('admin/content/news/detail_news', $data);
     } else {
         direct('admin/login', 'refresh');
     }
 }
Ejemplo n.º 28
0
  <tr>
    <td width="75%" align="left">
	<?php 
if ($rows > $limit) {
    ?>
	Halaman: <?php 
    $query->printNav();
    ?>
	<?php 
}
?>
	</td>
	<td width="25%" align="right">Jumlah: <b><?php 
echo $rows;
?>
</b> data</td>
  </tr>
</table>
</div>

</div>
</div>

<?php 
$menu = isset($_GET['menu']) ? $_GET['menu'] : '';
$id = isset($_GET['id']) ? $_GET['id'] : '';
if ($menu == "hapus") {
    $hapus = mysql_query("delete from penempatan where no_id='{$id}'");
    echo "<script>alert('Data berhasil dihapus')</script>";
    direct("?page=data_penempatan");
}
Ejemplo n.º 29
0
  <tr>
    <td width="75%" align="left">
	<?php 
if ($rows > $limit) {
    ?>
	Halaman: <?php 
    $query->printNav();
    ?>
	<?php 
}
?>
	</td>
	<td width="25%" align="right">Jumlah: <b><?php 
echo $rows;
?>
</b> kategori</td>
  </tr>
</table>
</div>

</div>
</div>

<?php 
$menu = isset($_GET['menu']) ? $_GET['menu'] : '';
$id = isset($_GET['id']) ? $_GET['id'] : '';
if ($menu == "hapus") {
    $hapus = mysql_query("delete from post_kategori where id_kategori='{$id}'");
    echo "<script>alert('Data berhasil dihapus')</script>";
    direct("?page=data_kategori");
}
Ejemplo n.º 30
0
 function detail($id = '')
 {
     if ($this->session->userdata('logged_in')) {
         $q = $this->category_article_model->get_by_id($id);
         $data = array("title" => $q->title, "body" => $q->body, "created_date" => $q->created_date, "modified_date" => $q->modified_date);
         $this->parser->parse('admin/category/article/detail_category_article', $data);
     } else {
         direct('admin/login', 'refresh');
     }
 }