A-24
Universitas Kristen Maranatha
echo Data sudah diubah; }
echo br ; q = SELECT username FROM admin WHERE username =
_GET[username]; h = mysql_queryq;
while row=mysql_fetch_rowh {
username = row[0]; }
? a href=tabel_pemilih.php?username=?php echo username;?Klik
disini untuk
mengeceka body
html
20. Halaman Lihat Calon
?php session_start;
if isset_SESSION[username] {dieaccess denied.; };
? html
head titleLihat Calontitle
link href=cssindex.css type=textcss rel=stylesheet head
body style = font-family : Arial, Verdana, sans-serif; color: black; div class=wrapper
img src=imagelogomarnat.gif alt=logom width=130 height=130 align=right
img src=imagelogocomeng.jpg alt=logo width=150 height=150 align=left
h1Admin Areah1 h2Website Pemilihan Calon Ketua HIMAh2
h3Computer Engineeringh3 headermarquee bgcolor=blue Fakultas Teknik Jurusan
Sistem Komputer Universitas Kristen Maranathamarqueeheader br
div style=text-align : right; margin-right: 20pxa href=logout.php Log out adiv
hr br
div style = font-size : 24; font-family: Arial; text-align : center ; color: black;buProfil Calonubdiv
br br
?php include koneksi.php;
A-25
Universitas Kristen Maranatha
Bagian untuk membaca data sql = SELECT usercalon, realname, foto, promosi, tahun FROM calon ORDER by tahun
DESC LIMIT 3; hasil = mysql_querysql, id_mysql;
while baris = mysql_fetch_rowhasil {
usercalon = baris[0]; nama = baris[1];
foto = baris[2]; promosi = baris[3];
tahun =baris[4]; echo br ;
echohr ; echo div style = padding: 15px 0px 15px 15px; margin: auto 30px auto 30px; font-family
: Calibri; font-size : 18px; background-color: silver; border-radius : 10px; border : 1px solid black height:auto; width: 725px;;
echo img src= wwwimage.foto. width=270 height=300; echo div style = margin: 20px 20px 20px 20px; padding: 10px 10px 10px 5px;
height:auto; width: 650px; border: 10px;; echo pre;
echo bNama nbspnbsp: bnama; echo br ;
echo br ; echo pre;
echo div style = width: 90px;; echo bPromosi nbspnbsp:br bpromosi;
echo div; echo pre;
echo br ; echo br ;
echo div; echo div;
echo tahun; }
echo br ; echo hr ;
mysql_closeid_mysql; ?
br center
?php
include koneksi.php; q = SELECT username FROM admin WHERE username =
_GET[username]; h = mysql_queryq;
while row=mysql_fetch_rowh {
username = row[0]; }
A-26
Universitas Kristen Maranatha
? a href=admin.php?username=?php echo username;?Backa
center br
footer copy; 1027014 Angga Indrajayafooter div
body html
21. Halaman Polling