Beispiel #1
0
<?php

include_once 'header.php';
include_once 'sidebar_birojasa.php';
include '../lib/birojasa_dao.php';
include '../lib/birojasa.php';
$kd_member = $_SESSION['kduser'];
$daftar = new birojasa_dao();
$data = $daftar->daftar_asisten($kd_member);
?>
		<div id="contenttext">
			<div class="bodytext" style="padding:12px;" align="justify">
				<table border="2" align="left" class="table table-striped">
					<tr>
						<td>Nama Asisten</td>
						<td>Handphone</td>
						<td>Alamat</td>
						<td>Kota</td> 
						<td>Tempat Lahir</td>
						<td>Tanggal Lahir</td>
						<td>Aksi</td>
					</tr>
	
				<?php 
if ($data != NULL) {
    foreach ($data as $list) {
        ?>
				
				   <tr>	<td><?php 
        echo $list->nm_asisten;
        ?>
Beispiel #2
0
<?php

session_start();
/**
 * @author Gerhantara
 * @copyright 2012
 */
require_once '../config/koneksi.php';
require_once '../lib/birojasa.php';
require_once '../lib/birojasa_dao.php';
$birojasa_dao = new birojasa_dao();
$kd_asisten = $_GET['id'];
$kode = mysql_real_escape_string($kd_asisten);
$birojasa_dao->hapus_asisten($kode);
header('location:daftar_asisten.php');