You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
3.4 KiB
PHP

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title> Pelanggan</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/css.css" />
<link rel="stylesheet" type="text/css" href="css/jqModal.css" />
<link rel="stylesheet" type="text/css" href="css/dialogcustom.css" />
<link rel="stylesheet" type="text/css" href="css/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="css/superfish.css" media="screen">
<script type="text/javascript" src="js/superfish.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jqModal.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript" src="js/jquery.visibility.js"></script>
<script type="text/javascript" src="js/pelanggan.js"></script>
</head>
<body>
<div id="content">
<div class="headermenu">
<p id="top">Cleopatra Minimarket</p>
</div>
<div class="c_content">
<?php include "./menu.php"; ?>
<fieldset>
<legend><strong>Pelanggan yg jenis pekerjaannya kosong</strong></legend>
<?php
echo "<style type='text/css'>";
echo "div#divprint{width:900px; border:0px solid #000; padding:20px 0; margin-bottom:25px;}";
echo "table.tbl {width:850px;border-width:0 0 1px 1px;border-spacing:0;border-collapse:collapse;font-size:9pt;text-align:center;}";
echo "table.tbl,table.tbl td {border-color:#000;border-style:solid;}";
echo "table.tbl td {margin:0;padding:2px;border-width:1px 1px 0 0;}";
echo "body {font-size:10pt;}";
echo "div.luar{text-align:left;margin-left:150px;}";
echo ".header{font-weight:bold;text-align:center;}";
echo ".isi{text-align:left;}";
echo ".warnaBarisStrip{font-weight : bold; background-color : #FFFF33;}";
echo ".warnaBarisKategori{font-weight : bold; background-color: #FFCC00;}";
echo ".master{text-align:left;}";
echo "</style>";
require_once 'db_login.inc.php';
$mysqli = new mysqli(HOST, USER, PASSWORD, DATABASE);
$stmt = $mysqli->query("SELECT p.`kd_customer`, p.`nama`, p.`alamat`, p.`kd_lokasi`, p.`telp` FROM pelanggan p where pekerjaan = '' or pekerjaan = '-' or pekerjaan is null");
if($stmt->num_rows > 0) {
print("<center><div id=\"divprint\" >");
print("<table border=\"1\" class=\"tbl\">");
print("<tr class=\"header\"><td>Kode Pelanggan</td><td>Nama</td><td>Alamat</td><td>Wilayah</td><td>Telp</td><tr/>");
while($a = $stmt->fetch_array(MYSQLI_ASSOC)) {
$kd_customer = $a['kd_customer'];
$nama = $a['nama'];
$alamat = $a['alamat'];
$wilayah = $a['wilayah'];
$telp = $a['telp'];
print("<tr><td><a href=\"editplg.php?kd=$kd_customer\">$kd_customer</td><td align=\"left\">$nama</td><td align=\"left\">$alamat</td><td>$wilayah</td><td>$telp</td></tr>");
}
print("</table><br/>");
print("</table></div></center>");
$stmt->close();
}
$mysqli->close();
?>
</fieldset>
</div>
<div class="footer">
<?php include 'footer.php'; ?>
</div>
</div>
</body>
</html>
?>