Tugas WEB
Tugas WEB
Tugas WEB
Banner :
<kosong>
Content :
<a href="?load=pendaftar.php">Pendaftar</a><br>
<a href="?load=rekap.php">Rekapitulasi</a><br>
Index :
<?
include "init.php";
include "koneksi.php";
?>
<html>
<head>
<title><?=$title?></title>
</head>
<body>
<table width="800">
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
</body>
</html>
Info :
Init :
<?
$pembuat="team BackEnd";
?>
Koneksi :
<?
function OpenDb(){
$con = mysql_connect('localhost','root','');
else {
$sel=mysql_select_db('db_07232030');
?>
Main :
<?
$load=@$_GET['load'];
?>
Pendaftar :
<table>
<tr>
<td width="40"><strong>NO</strong></td>
<td width="180"><strong>NAMA</strong></td>
<td width="240"><strong>ALAMAT</strong></td>
<td width="140"><strong>KOTA</strong></td>
<td width="80"><strong>JENIS</strong></td>
</tr>
<?
$result=mysql_query($sql);
while($data=mysql_fetch_object(result)){
?>
<?
?>
<tr>
<td width="40"><?=$no?></td>
<td width="180"><?=$nama?></td>
<td width="240"><?=alamat?></td>
<td width="140"><?=kota?></td>
<td width="80"><?=$tlp?></td>
</tr>
</table>
<p> </p>
Rekap :
<h4>Rekapitulasi</h4>
<table>
<tr>
<td width="40"><strong>No</strong></td>
<td width="70"><strong>Tahun</strong></td>
<td width="100"><strong>Bulan</strong></td>
<td width="70"><strong>Jumlah</strong></td>
</tr>
<?
$th=date('Y');
//cari bulan
$bln="00$i"; $bln=substr($bln,strlen($bln)-2,2);
?>
<tr>
<td><?=$i?></td>
<td><?=$th?></td>
<td><?=$aBulan[$i]?></td>
<td> </td>
</tr>
</table>
Simpan :
<?
header('content-type: text/vnd.wap.wml');
?>
<wml>
<card>
<p>
<?
$nama =$_GET['nama'];
$alamat =$_GET['alamat'];
$kota =$_GET['kota'];
$telp =$_GET['telp'];
$email =$_GET['email'];
// validasi
or empty($telp) or empty($email)) {
<a href=\"index.php\">klik</a>";
else {
//simpan
mysql_connect('localhost','root','');
mysql_select_db('db_aan');
// cari no pendaftaran
$thn=date("Ym");
$data=mysql_fetch_object(mysql_query($sql));
$jml=$data->jml;
$jml++;
$nourut="0000$jml"; $nourut=substr($nourut,strlen($nourut)-4,4);
$nopen=$thn.$nourut;
//sql simpan
values ('$nopen','$nama','$alamat','$kota','$telp','$email')";
$simpan = mysql_query($sql);
if(!$simpan)
<a href=\"index.php\">Klik</a>";
else
<a href=\"index.php\">Klik</a>";
?>
</p>
</card>
</wml>
Style :
body {
td {
}
th {
.banner{
background-color: #CC9966;
font-size: 12px;
color: #003366;
.content{
background-color: #FFCC99;
Seminar
Di Backend :
Banner :
<h2>Seminar Hacking</h2>
Content :
<a href="?load=pemesan.php">Pemesan</a><br>
<a href="?load=rekap.php">Rekapitulasi</a><br>
Index :
<?
include "init.php";
include "koneksi.php";
?>
<html>
<head>
<title><?=$title?></title>
</head>
<body>
<table width="800">
<tr>
</tr>
<tr>
<td width="5"> </td>
</tr>
<tr>
</tr>
</table>
</body>
</html>
Info :
Init :
<?
$pembuat="team BackEnd";
?>
Koneksi :
<?
function OpenDb(){
$con = mysql_connect('localhost','root','');
else {
$sel=mysql_select_db('db_NIM');
?>
Main :
<?
$load=@$_GET['load'];
?>
Pemesan :
<table>
<tr>
<td width="37"><strong>NO</strong></td>
<td width="159"><strong>NAMA</strong></td>
<td width="212"><strong>ALAMAT</strong></td>
<td width="129"><strong>TELEPON</strong></td>
<td width="67"><strong>KATEGORI</strong></td>
<td width="99"><strong>JENIS</strong></td>
<td width="52"><strong>KOTA</strong></td>
<td width="52"><strong>ENTRI</strong></td>
</tr>
<tr>
<td width="37"> </td>
<td width="159"> </td>
<td width="212"> </td>
<td width="129"> </td>
<td width="67"> </td>
<td width="99"> </td>
<td width="52"> </td>
</tr>
</table>
<p>* Klik sudah bayar, jika valid melakukan pembayaran. </p>
<h2>Daftar Peserta</h2>
<table>
<tr>
<td width="37"><strong>NO</strong></td>
<td width="159"><strong>NAMA</strong></td>
<td width="212"><strong>ALAMAT</strong></td>
<td width="129"><strong>TELEPON</strong></td>
<td width="67"><strong>KATEGORI</strong></td>
<td width="99"><strong>JENIS</strong></td>
<td width="52"><strong>KOTA</strong></td>
</tr>
<tr>
<td width="37"> </td>
<td width="159"> </td>
<td width="212"> </td>
<td width="129"> </td>
<td width="67"> </td>
<td width="99"> </td>
<td width="52"> </td>
</tr>
</table>
<p> </p>
Rekap :
<h2>Rekapitulasi</h2>
<h4>Hari :</h4>
<tr>
<td width="9%"><strong>NO</strong></td>
<td width="36%"><strong>JENIS</strong></td>
<td width="37%"><strong>KATEGORI</strong></td>
<td width="18%"><strong>QTY</strong></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<p> </p>
Style :
body {
td {
th {
.banner{
background-color: #CC9966;
font-size: 12px;
color: #993300;
.content{
background-color: #FFEBD7;
.main{
color: #993300;
.info{
font-size: 10px;
}
Seminar :
Index :
<?
header('content-type: text/vnd.wap.wml');
?>
<wml>
<card id="a">
<p align="center">
<b>Seminar Hacking</b><br/>
Amik Almasoem<br/>
<br/>
<a href="#b">Next</a>
</p>
</card>
<card id="b">
<do type="accept">
<go href="simpan.php">
</go>
</do>
<p>
<b>Form Pendaftaran:</b><br/>
<?
include "koneksi.php";
if(OpenDb()) {
$result=mysql_query($sql);
while($data=mysql_fetch_object($result)) {
// baca
$id_kategori =$data->id_kategori;
$kategori =$data->id_kategori;
echo "</select>";
$result=mysql_query($sql);
while($data=mysql_fetch_object($result)) {
// baca
$id_jenis =$data->id_jenis;
$jenis =$data->id_jenis;
echo "</select>";
?>
</p>
</card>
</wml>
Koneksi :
<?
function OpenDb(){
$con = mysql_connect('localhost','root','');
else {
$sel=mysql_select_db('db_07232030');
}
?>
Rekap :
<?
header('content-type: text/vnd.wap.wml');
?>
<wml>
<card id="a">
<p>
Rekap Peserta:<br/>
<?
include "koneksi.php";
if(OpenDb()){
// baca data
$result=mysql_query($sql);
while($data=mysal_fetch_object($result)) {
// baca
$id_jenis =$data->id_jenis;
$jenis =$data->id_jenis;
$jml=$data->jml;
// tampilkan
echo "- $jenis : $jml<br/>";
} // OpenDb
?>
</p>
</card>
</wml>
Selesai :
<?
header('content-type: text/vnd.wap.wml');
?>
<wml>
<card id="a">
<p align="center">
Terimakasih.
</p>
</card>
</wml>
Simpan :
<?
header('content-type: text/vnd.wap.wml');
<wml>
<card id="a">
<p>
<?
include "koneksi.php";
if(OpenDb()){
$nama =$_GET['nama'];
$alamat =$_GET['alamat'];
$kota =$_GET['kota'];
$telp =$_GET['telp'];
$email =$_GET['email'];
$id_kategori=$_GET['id_kategori'];
$id_jenis =$_GET['id_jenis'];
else {
// simpan
$simpan = mysql_query($sql);
if(!$simpan) {
else {
} // OpenDb
?>
</p>
</card>
</wml>
Tiket KA
Backnd :
Banner :
<h2>PT.KAI Indonesia</h2>
Conten :
<a href="?load=pemesan.php">Pemesan</a><br>
<a href="?load=rekap.php">Rekapitulasi</a><br>
Index :
<?
include "init.php";
include "koneksi.php";
?>
<html>
<head>
<title><?=$title?></title>
</head>
<body>
<table width="800">
<tr>
</tr>
<tr>
<td width="5"> </td>
</tr>
<tr>
</tr>
</table>
</body>
</html>
Info :
Init :
<?
$pembuat="team BackEnd";
?>
Koneksi :
<?
function OpenDb(){
$con = mysql_connect('localhost','root','');
else {
$sel=mysql_select_db('db_NIM');
if(!$sel) return false;
?>
Main :
<?
$load=@$_GET['load'];
?>
Pemesan :
<h2>Daftar Pemesan</h2>
<table>
<tr>
<td width="37"><strong>NO</strong></td>
<td width="159"><strong>NAMA</strong></td>
<td width="212"><strong>ALAMAT</strong></td>
<td width="129"><strong>TELEPON</strong></td>
<td width="67"><strong>KERETA</strong></td>
<td width="99"><strong>TUJUAN</strong></td>
<td width="52"><strong>QTY</strong></td>
</tr>
<tr>
<td width="37"> </td>
<td width="159"> </td>
<td width="212"> </td>
<td width="129"> </td>
<td width="67"> </td>
<td width="99"> </td>
<td width="52"> </td>
</tr>
</table>
<p> </p>
Rekap :
<h2>Rekapitulasi</h2>
<h4>Hari :</h4>
<tr>
<td width="9%"><strong>NO</strong></td>
<td width="36%"><strong>TUJUAN</strong></td>
<td width="37%"><strong>KERETA</strong></td>
<td width="18%"><strong>QTY</strong></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<p> </p>
Style :
body {
td {
th {
.banner{
background-color: #CC9966;
font-size: 12px;
color: #993300;
.content{
background-color: #FFEBD7;
.main{
.info{
font-size: 10px;
TiketKa :
Index :
<?
header('content-type: text/vnd.wap.wml');
?>
<wml>
<card id="a">
<p align="center">
<b>Selamat Datang</b><br/>
<br/>
<a href="#b">Next</a>
</p>
</card>
<card id="b">
<do type="accept">
<go href="tujuan.php">
<postfield name="id_kota" value="$id_kota"/>
</go>
</do>
<p>
<b>Pemberangkatan:</b><br/>
<?
include "koneksi.php";
if (openDb()){
ORDER BY nama_kota";
$result=mysql_query($sql);
echo"<select name=\"id_kota\">";
while($data=mysql_fetch_array($result)){
$id_kota=$data['id_kota'];
$nama_kota=$data['nama_kota'];
$nama_kota</option>";
echo"</select>";
ORDER BY id_hari";
$result=mysql_query($sql);
echo"<select name=\"id_hari\">";
while($data=mysql_fetch_array($result)){
$id_hari=$data['id_hari'];
$nama_hari=$data['nama_hari'];
$nama_hari</option>";
echo"</select>";
?>
</p>
</card>
</wml>
Koneksi :
<?
function OpenDb(){
$con = mysql_connect('localhost','root','');
else {
$sel=mysql_select_db('db_07232030');
}
?>
Simpan :
<wml>
<card>
<?
include"koneksi.php";
//ambil data
$id_jadwal=$_GET['id_jadwal'];
$nama=$_GET['nama'];
$nama=$_GET['alamat'];
$nama=$_GET['telp'];
$nama=$_GET['qty'];
$nama=$_GET['tanggal'];
//simpan
</card>
</wml>
Tujuan :
<?
header('content-type: text/vnd.wap.wml');
?>
<do type="accept">
<go href="simpan.php">
</go>
</do>
<p>
<?
$id_kota=$_GET['id_kota'];
$id_hari=$_GET['id_hari'];
include "koneksi.php";
if(OpenDb(07232030)){
a.id_hari=$id_hari and
a.id_kereta=b.id_kereta
ORDER BY a.pukul";
$result = mysql_query($sql);
$id_jadwal =$data->id_jadwal;
$nama_kereta=$data->nama_kereta;
$pukul =$data->pukul;
$tarip =$data->tarip;
echo "</select>";
?>
Pemesan <br/>
<?
?>
</p>
</card>
</wml>
Amik :
<?
header('content-type:text/vnd.wap.wml');
?>
<wml>
<p align="center">
</p>
<p>
<b>Menu Pilihan</b><br/>
<? mysql_connect('localhost','root','');
mysql_select_db(db_07232030);
$result=mysql_query($sql);
while($data=mysql_fetch_object($result)){
?>
<?
}
?>
</p>
</card>
</wml>
Contoh 1 :
<?xml version="1.0" encoding="iso-8859-1"?>
<wml>
<card>
<p align="center">
Hallo word!
</p>
</card>
</wml>
Contoh 2 :
<?xml version="1.0" encoding="iso-8859-1"?>
<wml>
<p>
contoh-contoh masakan/kuliner indonesia:<br/>
</p>
</card>
<p>
Masakan ini adalah ciri khas jawa barat, tetapi umumnya dari indonesia
</p>
</card>
</wml>