Rabu, 14 Januari 2009
Jawaban UAS ADT
Jawaban UAS
1. Profil
perbaharuan pada profil blog
2. Tabel fisik
a. Tabel Admin
b. Tabel Bank
c. Tabel Image
d. Tabel Konsumen
e. Tabel Managerial
f. Tabel Penjualan
g. Tabel Transaksi
h. Tabel Valid_jual
i. Tabel Verifikasi
link database : Database
3. kode program dengan menggunakan bahasa pemrograman
4. Integrasikan tabel dan modul program dengan interface input/output yang dibuat.
1. Profil
perbaharuan pada profil blog
2. Tabel fisik
a. Tabel Admin
b. Tabel Bank
c. Tabel Image
d. Tabel Konsumen
e. Tabel Managerial
f. Tabel Penjualan
g. Tabel Transaksi
h. Tabel Valid_jual
i. Tabel Verifikasi
link database : Database
3. kode program dengan menggunakan bahasa pemrograman
4. Integrasikan tabel dan modul program dengan interface input/output yang dibuat.
link download perangkat lunak : E-comm product image
5. Kesimpulan
Minggu, 04 Januari 2009
Structured english and Decision Trees / Algoritma Sistem Informasi Product Image
1. Structured English Proses Login
Disini proses loogin menggunakan session, yaitu system akan melihat id user serta password user, selama dia valid dalam proses login maka dia akan bisa melanjutkan proses selanjutnya. Disini session dibedakan atas tiga user yaitu konsumen, admin serta managerial.
session_start();
include ("open-db.inc");
if ($rec=mysql_fetch_array(mysql_query("SELECT * FROM admin WHERE id_admin='$admin' AND pass = '$pass'"))) {
if (($rec['id_admin']==$admin)&&($rec['pass']==$pass))
{ $_SESSION['id']=session_id();
$_SESSION['userid']=$admin;
$_SESSION['nama']=$nama;
echo "Successfully,Logged in
Log OUT
Klik Disini
";
print "";
}
}
else
//login admin
if($rec=mysql_fetch_array(mysql_query("SELECT * FROM konsumen WHERE id_konsumen='$admin' AND pass = '$pass'")))
{
if(($rec['id_konsumen']==$admin)&&($rec['pass']==$pass))
{
$_SESSION['id']=session_id();
$_SESSION['pegawai']=$admin;
$_SESSION['nama']=$nama;
echo "Successfully,Logged in
Log OUT
Click here if your browser is not redirecting automatically or you don't want to wait.
";
print "";
}
}
else
//login admin
if($rec=mysql_fetch_array(mysql_query("SELECT * FROM managerial WHERE id_manager='$admin' AND pass = '$pass'")))
{
if(($rec['id_manager']==$admin)&&($rec['pass']==$pass))
{
$_SESSION['id']=session_id();
$_SESSION['pegawai']=$admin;
$_SESSION['nama']=$nama;
echo "Successfully,Logged in
Log OUT
Click here if your browser is not redirecting automatically or you don't want to wait.
";
print "";
}
}
else
{
include ("salah.php");
}
?>
2.Dession tree
Disini proses loogin menggunakan session, yaitu system akan melihat id user serta password user, selama dia valid dalam proses login maka dia akan bisa melanjutkan proses selanjutnya. Disini session dibedakan atas tiga user yaitu konsumen, admin serta managerial.
session_start();
include ("open-db.inc");
if ($rec=mysql_fetch_array(mysql_query("SELECT * FROM admin WHERE id_admin='$admin' AND pass = '$pass'"))) {
if (($rec['id_admin']==$admin)&&($rec['pass']==$pass))
{ $_SESSION['id']=session_id();
$_SESSION['userid']=$admin;
$_SESSION['nama']=$nama;
echo "
Log OUT
Klik Disini
print "";
}
}
else
//login admin
if($rec=mysql_fetch_array(mysql_query("SELECT * FROM konsumen WHERE id_konsumen='$admin' AND pass = '$pass'")))
{
if(($rec['id_konsumen']==$admin)&&($rec['pass']==$pass))
{
$_SESSION['id']=session_id();
$_SESSION['pegawai']=$admin;
$_SESSION['nama']=$nama;
echo "
Log OUT
Click here if your browser is not redirecting automatically or you don't want to wait.
print "";
}
}
else
//login admin
if($rec=mysql_fetch_array(mysql_query("SELECT * FROM managerial WHERE id_manager='$admin' AND pass = '$pass'")))
{
if(($rec['id_manager']==$admin)&&($rec['pass']==$pass))
{
$_SESSION['id']=session_id();
$_SESSION['pegawai']=$admin;
$_SESSION['nama']=$nama;
echo "
Log OUT
Click here if your browser is not redirecting automatically or you don't want to wait.
print "";
}
}
else
{
include ("salah.php");
}
?>
2.Dession tree
Langganan:
Postingan (Atom)