Minggu, 22 Maret 2009
tugas anyaar
ni scripnya :
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head><body background="prakata_data/bg1.jpg">
<font size="5"><center>DAFTAR SISWA</center><br>
</font>
<table align="center" border="1"><tbody><tr><td width="150"><b><center>Nama Siswa</center></b></td>
<td width="150"><b><center>Nomor Induk</center></b></td>
<td width="150"><b><center>Kelas</center></b></td>
<td width="150"><b><center>Edit</center></b></td>
</tr><tr> <td>Anggraeni Dewi</td>
<td>9742</td>
<td>XI IPA 4</td>
<td><a href="http://localhost/sis/ubahsiswa.php?id=9742">ubah</a>
<a href="http://localhost/sis/hapussiswa.php?id=9742">hapus</a></td>
</tr><tr> <td>Dian Iftitah</td>
<td>9787</td>
<td>XI IPA 4</td>
<td><a href="http://localhost/sis/ubahsiswa.php?id=9787">ubah</a>
<a href="http://localhost/sis/hapussiswa.php?id=9787">hapus</a></td>
</tr><tr> <td>Dita Novita</td>
<td>9797</td>
<td>XI IPA 4</td>
<td><a href="http://localhost/sis/ubahsiswa.php?id=9797">ubah</a>
<a href="http://localhost/sis/hapussiswa.php?id=9797">hapus</a></td>
</tr><tr> <td>galuh Angga D</td>
<td>9826</td>
<td>XI IPA 4</td>
<td><a href="http://localhost/sis/ubahsiswa.php?id=9826">ubah</a>
<a href="http://localhost/sis/hapussiswa.php?id=9826">hapus</a></td>
</tr><tr> <td>sindy fiqih m</td>
<td>9964</td>
<td>XI IPA 4</td>
<td><a href="http://localhost/sis/ubahsiswa.php?id=9964">ubah</a>
<a href="http://localhost/sis/hapussiswa.php?id=9964">hapus</a></td>
</tr><tr> <td>Ulifia yuanita P</td>
<td>9980</td>
<td>XI IPA 4</td>
<td><a href="http://localhost/sis/ubahsiswa.php?id=9980">ubah</a>
<a href="http://localhost/sis/hapussiswa.php?id=9980">hapus</a></td>
</tr><tr> <td>Viki Dita</td>
<td>9984</td>
<td>XI IPA 4</td>
<td><a href="http://localhost/sis/ubahsiswa.php?id=9984">ubah</a>
<a href="http://localhost/sis/hapussiswa.php?id=9984">hapus</a></td>
</tr><tr> <td>Winy Firdasari</td>
<td>9994</td>
<td>XI IPA 4</td>
<td><a href="http://localhost/sis/ubahsiswa.php?id=9994">ubah</a>
<a href="http://localhost/sis/hapussiswa.php?id=9994">hapus</a></td>
</tr></tbody></table></body></html>
Rabu, 04 Maret 2009
tugas baru
ni scripnya ;
<html>
<body background="bg1.jpg">
<br>
<font size="5" ><center>DAFTAR SISWA</center><br />
</font>
<?php
$conn = mysql_connect("localhost","root","");
if (!$conn) {
echo "Could not connect to db";
exit(1);
}
$db = mysql_select_db("latihan",$conn);
$sqlText = "select * from siswa order by induk";
$result = mysql_query($sqlText);
echo "<table border=1 align=center >";
echo "<tr><td width=150><b><center>Nama Siswa</center></b></td>
<td width=150><b><center>Nomor Induk</center></b></td></b>
<td width=150><b><center>Kelas</center></b></td></b></tr>";
while($row=mysql_fetch_object($result))
{
echo "<tr><td>$row->nama</td><td align=center>$row->induk</td><td align=center>$row->kelas</td></tr>";
}
echo "</table>";
?>
</body>
</html>
Selasa, 03 Maret 2009
tugas...
SELAMAT DATANG
<HTML>
<HEAD>
<TITLE>Program Sistem Informasi Sekolah</TITLE>
</HEAD>
<FRAMESET ROWS="180,*" border=1>
<FRAME SRC="judul.html" SCROLLING=NO NORESIZE>
<FRAMESET COLS="200,*">
<FRAME SRC="menu.html" NORESIZE>
<FRAME SRC="prakata.html" NAME="FRAME-3">
</FRAMESET>
</FRAMESET>
</HTML>
PROFILE
<html>
<body background=bg2.jpg>
<br>
<font face="Courier New">
<h1>Profile Sekolah</h1>
<P>
SMA NEGERI KEPANJEN
Menuju Sekolah Bertaraf Internasional
</P>
</font>
</body>
</html>
ENTRI DATA SISWA
<html>
<body background="bg2.jpg">
<font size=16>Entry Data Siswa</font>
<br />
<hr>
Ketik data-data siswa dibawah ini :<br />
<br />
<br />
<form id="form1? name="form1? method="post" action="isisiswa.php">
<table>
<tr><td>Nama Siswa</td><td><input type="text" name="nama" id="nama" /></td></tr>
<tr><td>Nomor Induk</td><td><input type="text" name="induk" id="induk" /></td></tr>
<tr><td>Kelas</td><td><input type="text" name="kelas" id="kelas" /></td></tr>
</table>
<br />
<br />
<hr>
<input type="submit" name="Submit" id="Submit" value="Kirim" />
</form>
</body>
</html>
LIHAT DATA SISWA
MENGISI BUKU TAMU
<html>
<head>
<title>Data Siswa</title>
</head>
<body background="bg2.jpg">
<font size=16>Buku Tamu</font>
<br />
<hr>
Ketik Nama dan Pesan Anda pada text box berikut :<br />
<br />
<br />
<form id="form1? name="form1? method="post" action="isi.php">
Nama
<input type="text" name="nama" id="nama" />
<br />
<br />
Pesan
<textarea name="pesan" id="pesan" cols="45? rows="5?></textarea>
<br />
<br />
<hr>
<input type="submit" name="Submit" id="Submit" value="Kirim" />
</form>
</body>
</html>
LIHAT BUKU TAMU
<HTML>
<HEAD>
<TITLE>Program Sistem Informasi Sekolah</TITLE>
</HEAD>
<FRAMESET ROWS="180,*" border=1>
<FRAME SRC="judul.html" SCROLLING=NO NORESIZE>
<FRAMESET COLS="200,*">
<FRAME SRC="menu.html" NORESIZE>
<FRAME SRC="prakata.html" NAME="FRAME-3">
</FRAMESET>
</FRAMESET>
</HTML>
PROFILE
<html>
<body background=bg2.jpg>
<br>
<font face="Courier New">
<h1>Profile Sekolah</h1>
<P>
SMA NEGERI KEPANJEN
Menuju Sekolah Bertaraf Internasional
</P>
</font>
</body>
</html>
ENTRI DATA SISWA
<html>
<body background="bg2.jpg">
<font size=16>Entry Data Siswa</font>
<br />
<hr>
Ketik data-data siswa dibawah ini :<br />
<br />
<br />
<form id="form1? name="form1? method="post" action="isisiswa.php">
<table>
<tr><td>Nama Siswa</td><td><input type="text" name="nama" id="nama" /></td></tr>
<tr><td>Nomor Induk</td><td><input type="text" name="induk" id="induk" /></td></tr>
<tr><td>Kelas</td><td><input type="text" name="kelas" id="kelas" /></td></tr>
</table>
<br />
<br />
<hr>
<input type="submit" name="Submit" id="Submit" value="Kirim" />
</form>
</body>
</html>
LIHAT DATA SISWA
MENGISI BUKU TAMU
<html>
<head>
<title>Data Siswa</title>
</head>
<body background="bg2.jpg">
<font size=16>Buku Tamu</font>
<br />
<hr>
Ketik Nama dan Pesan Anda pada text box berikut :<br />
<br />
<br />
<form id="form1? name="form1? method="post" action="isi.php">
Nama
<input type="text" name="nama" id="nama" />
<br />
<br />
Pesan
<textarea name="pesan" id="pesan" cols="45? rows="5?></textarea>
<br />
<br />
<hr>
<input type="submit" name="Submit" id="Submit" value="Kirim" />
</form>
</body>
</html>
LIHAT BUKU TAMU
Langganan:
Postingan (Atom)