Lamp Iran

  • Uploaded by: Ridwan Nur
  • 0
  • 0
  • August 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Lamp Iran as PDF for free.

More details

  • Words: 1,502
  • Pages: 21
LAMPIRAN

Lampiran 1.1 simpan_kriteria.php
$_SESSION['attitude1']=number_format(1/$_SESSION['penampilan2'], 3); $_SESSION['attitude2']=1; $_SESSION['attitude3']=$_POST['nAttitudeGenre']; $_SESSION['attitude4']=$_POST['nAttitudeAlbum']; //$wawancara1=$wawancara1; $_SESSION['genre1']=number_format(1/$_SESSION['penampilan3'],3); $_SESSION['genre2']=number_format(1/$_SESSION['attitude3'],3); $_SESSION['genre3']=1; $_SESSION['genre4']=$_POST['nGenreAlbum']; $_SESSION['album1']=number_format(1/$_SESSION['penampilan4'],3); $_SESSION['album2']=number_format(1/$_SESSION['attitude4'],3); $_SESSION['album3']=number_format(1/$_SESSION['genre4'],3); $_SESSION['album4']=1; //simpan ke tabel kriteria utama $sqlPenampilan="Update tb_kriteria_utama set penampilan=".$_SESSION['penampilan1'].",attitude=".$_SESSION['pe nampilan2'].",genre=".$_SESSION['penampilan3'].",album=".$_SESSI ON['penampilan4']." where id_kriteria=1"; $resultPenampilan die(mysql_error());

=

mysql_query($sqlPenampilan)

or

$sqlAttitude="Update tb_kriteria_utama penampilan=".$_SESSION['attitude1'].", attitude=".$_SESSION['attitude2'].", genre=".$_SESSION['attitude3'].", album=".$_SESSION['attitude4']." where id_kriteria=2"; $resultAttitude die(mysql_error());

=

mysql_query($sqlAttitude)

set

or

$sqlGenre="Update tb_kriteria_utama set penampilan=".$_SESSION['genre1'].", attitude=".$_SESSION['genre2'].", genre=".$_SESSION['genre3'].", album=".$_SESSION['genre4']." where id_kriteria=3"; $resultGenre = mysql_query($sqlGenre) or die(mysql_error()); $sqlAlbum="Update tb_kriteria_utama set penampilan=".$_SESSION['album1'].", attitude=".$_SESSION['album2'].", genre=".$_SESSION['album3'].", album=".$_SESSION['album4']." where id_kriteria=4"; $resultAlbum = mysql_query($sqlAlbum) or die(mysql_error()); //ambil nilai $sqlNilai="Select * from tb_kriteria_utama order by id_kriteria Asc"; $resultNilai=mysql_query($sqlNilai) or die(mysql_error());

$_SESSION['totalPenampilan']=0; $_SESSION['totalAttitude']=0; $_SESSION['totalGenre']=0; $_SESSION['totalAlbum']=0;

$_SESSION['arPenampilan'][]=''; $_SESSION['arAttitude'][]=''; $_SESSION['arGenre'][]=''; $_SESSION['arAlbum'][]='';

while($rowsNilai=mysql_fetch_array($resultNilai)){ $_SESSION['totalPenampilan']+=$rowsNilai['penampilan']; $_SESSION['totalAttitude']+=$rowsNilai['attitude'];

$_SESSION['totalGenre']+=$rowsNilai['genre']; $_SESSION['totalAlbum']+=$rowsNilai['album'];

//masukan kriteria ijasah ke array $_SESSION['arPenampilan'][]=$rowsNilai['penampilan']; $_SESSION['arAttitude'][]=$rowsNilai['attitude']; $_SESSION['arGenre'][]=$rowsNilai['genre']; $_SESSION['arAlbum'][]=$rowsNilai['album']; } $_SESSION['NilaiPenampilan'][]=number_format(($_SESSION['a rPenampilan'][$i]/$_SESSION['totalPenampilan']),2); $_SESSION['NilaiAttitude'][]=number_format(($_SESSION['arA ttitude'][$i]/$_SESSION['totalAttitude']),2); $_SESSION['NilaiGenre'][]=number_format(($_SESSION['arGenr e'][$i]/$_SESSION['totalGenre']),2); $_SESSION['NilaiAlbum'][]=number_format(($_SESSION['arAlbu m'][$i]/$_SESSION['totalAlbum']),2); //jumlah nilai $_SESSION['jumlah'][0]=number_format(($_SESSION['NilaiPenampilan '][0]+$_SESSION['NilaiAttitude'][0]+$_SESSION['NilaiGenre'][0]+$ _SESSION['NilaiAlbum'][0]),2); $_SESSION['jumlah'][1]=number_format(($_SESSION['NilaiPenampilan '][1]+$_SESSION['NilaiAttitude'][1]+$_SESSION['NilaiGenre'][1]+$ _SESSION['NilaiAlbum'][1]),2); $_SESSION['jumlah'][2]=number_format(($_SESSION['NilaiPenampilan '][2]+$_SESSION['NilaiAttitude'][2]+$_SESSION['NilaiGenre'][2]+$ _SESSION['NilaiAlbum'][2]),2); $_SESSION['jumlah'][3]=number_format(($_SESSION['NilaiPenampilan '][3]+$_SESSION['NilaiAttitude'][3]+$_SESSION['NilaiGenre'][3]+$ _SESSION['NilaiAlbum'][3]),2);

$_SESSION['jumNilaiPenampilan']=number_format(($_SESSION['NilaiP enampilan'][0]+$_SESSION['NilaiAttitude'][0]+$_SESSION['NilaiGen re'][0]+$_SESSION['NilaiAlbum'][0]),2); $_SESSION['jumNilaiAttitude']=number_format(($_SESSION['NilaiPen ampilan'][1]+$_SESSION['NilaiAttitude'][1]+$_SESSION['NilaiGenre '][1]+$_SESSION['NilaiAlbum'][1]),2); $_SESSION['jumNilaiGenre']=number_format(($_SESSION['NilaiPenamp ilan'][2]+$_SESSION['NilaiAttitude'][2]+$_SESSION['NilaiGenre'][ 2]+$_SESSION['NilaiAlbum'][2]),2);

$_SESSION['jumNilaiAlbum']=number_format(($_SESSION['NilaiPenamp ilan'][3]+$_SESSION['NilaiAttitude'][3]+$_SESSION['NilaiGenre'][ 3]+$_SESSION['NilaiAlbum'][3]),2); //Hit Prioritas $_SESSION['prio'][0]=number_format(($_SESSION['jumNilaiPenampila n']/4),2); $_SESSION['prio'][1]=number_format(($_SESSION['jumNilaiAttitude' ]/4),2); $_SESSION['prio'][2]=number_format(($_SESSION['jumNilaiGenre']/4 ),2); $_SESSION['prio'][3]=number_format(($_SESSION['jumNilaiAlbum']/4 ),2); ///hit penjumlahan matrix tiap baris $_SESSION['hitMatrixPenampilan'][]=''; $_SESSION['hitMatrixAttitude'][]=''; $_SESSION['hitMatrixGenre'][]=''; $_SESSION['hitMatrixAlbum'][]=''; $_SESSION['matrixPenampilan']=array($_SESSION['penampilan1'],$_S ESSION['penampilan2'],$_SESSION['penampilan3'],$_SESSION['penamp ilan4']); $_SESSION['matrixAttitude']=array($_SESSION['attitude1'],$_SESSI ON['attitude2'], $_SESSION['attitude3'], $_SESSION['attitude4']); $_SESSION['matrixGenre']=array($_SESSION['genre1'], $_SESSION['genre2'], $_SESSION['genre3'], $_SESSION['genre4']); $_SESSION['matrixAlbum']=array($_SESSION['album1'], $_SESSION['album2'], $_SESSION['album3'], $_SESSION['album4']); for($i=1;$i<=4;$i++){ $_SESSION['hitMatrixPenampilan'][]= number_format(($_SESSION['matrixPenampilan'][$i]*$_SESSION['prio Penampilan']),2); $_SESSION['hitMatrixAttitude'][]=number_format(($_SESSION['matri xAttitude'][$i]*$_SESSION['prioAttitude']),2); $_SESSION['hitMatrixGenre'][]=number_format(($_SESSION['matrixGe nre'][$i]*$_SESSION['prioGenre']),2); $_SESSION['hitMatrixAlbum'][]=number_format(($_SESSION['matrixAl bum'][$i]*$_SESSION['prioAlbum']),2); } //jumlah nilai $_SESSION['jumlahM'][1]=number_format(($_SESSION['hitMatrixPenam pilan'][1]+$_SESSION['hitMatrixAttitude'][1]+$_SESSION['hitMatri xGenre'][1]+$_SESSION['hitMatrixAlbum'][1]),2);

$_SESSION['jumlahM'][2]=number_format(($_SESSION['hitMatrixPenam pilan'][2]+$_SESSION['hitMatrixAttitude'][2]+$_SESSION['hitMatri xGenre'][2]+$_SESSION['hitMatrixAlbum'][2]),2); $_SESSION['jumlahM'][3]=number_format(($_SESSION['hitMatrixPenam pilan'][3]+$_SESSION['hitMatrixAttitude'][3]+$_SESSION['hitMatri xGenre'][3]+$_SESSION['hitMatrixAlbum'][3]),2); $_SESSION['jumlahM'][4]=number_format(($_SESSION['hitMatrixPenam pilan'][4]+$_SESSION['hitMatrixAttitude'][4]+$_SESSION['hitMatri xGenre'][4]+$_SESSION['hitMatrixAlbum'][4]),2); //hitung rasio konsistensi kriteria $rasioPenampilan=number_format(($_SESSION['penampilan1']*$prioPe nampilan)+($_SESSION['penampilan2']*$prioAttitude)+($_SESSION['p enampilan3']*$prioGenre)+($_SESSION['penampilan4']*$prioAlbum),2 ); $rasioAttitude=number_format(($_SESSION['attitude1']*$prioPenamp ilan)+($_SESSION['attitude2']*$prioAttitude)+($_SESSION['attitud e3']*$prioGenre)+($_SESSION['attitude4']*$prioAlbum),2); $rasioGenre=number_format(($_SESSION['genre1']*$prioPenampilan)+ ($_SESSION['genre2']*$prioAttitude)+($_SESSION['genre3']*$prioGe nre)+($_SESSION['genre4']*$prioAlbum),2); $rasioAlbum=number_format(($_SESSION['album1']*$prioPenampilan)+ ($_SESSION['album2']*$prioAttitude)+($_SESSION['album3']*$prioGe nre)+($_SESSION['album4']*$prioAlbum),2); //dari perhitungan diatas diperoleh nilai-nilai sebagai berikut : $xJumlah=number_format(($rasioPenampilan/$prioPenampilan)+($rasi oAttitude/$prioAttitude)+($rasioGenre/$prioGenre)+($rasioAlbum/$ prioAlbum),2); $xMaks=number_format(($xJumlah/4),2); $CI=number_format(($xJumlah-4)/(4-1)); $CR=number_format(($CI/0.9),2); if($CR<=0.1){ header('location:../home.php?mod=kriteria&pg=tampil_kriter ia&status=0'); }else{ //simpan ke tabel rasio konsistensi kriteria $sqlPenampilan="Update tb_rasio_konsistensi_kriteria set jumlah='$jumMatrixPenampilan',prioritas='$prioPenampilan',hasil= '$rasioPenampilan' where id_konsistensi=1"; $resultPenampilan die(mysql_error());

=

mysql_query($sqlPenampilan)

or

$sqlAttitude="Update tb_rasio_konsistensi_kriteria jumlah='$jumMatrixAttitude',prioritas='$prioAttitude', hasil='$rasioAttitude' where id_konsistensi=2"; $resultAttitude die(mysql_error());

=

mysql_query($sqlAttitude)

set

or

$sqlGenre="Update tb_rasio_konsistensi_kriteria set jumlah='$jumMatrixGenre',prioritas='$prioGenre',hasil='$rasioGen re' where id_konsistensi=3"; $resultGenre = mysql_query($sqlGenre) or die(mysql_error()); $sqlAlbum="Update tb_rasio_konsistensi_kriteria jumlah='$jumMatrixAlbum',prioritas='$prioAlbum', hasil='$rasioAlbum' where id_konsistensi=4";

set

$resultAlbum = mysql_query($sqlAlbum) or die(mysql_error()); if($resultPenampilan) { header("location:../home.php?mod=kriteria&pg=tampil_kriter ia&status=0"); } else { header('location:../home.php?mod=kriteria&pg=tampil_kriter ia&status=1'); } } ?>

Lampiran 1.2 tampil_kriteria.php

Konfigurasi AHP

<em>







INPUT BOBOT NILAI
Kriteria 1 Nilai Kriteria 2
Penampilan <select id='nPenampilanAttitude' name='nPenampilanAttitude' class="required" > Attitude
Penampilan <select id='nPenampilanGenre' name='nPenampilanGenre' class="required" > Genre
Penampilan <select id='nPenampilanAlbum' name='nPenampilanAlbum' class="required " > Album
Attitude <select id='nAttitudeGenre' name='nAttitudeGenre' class="required " > Genre
Attitude <select id='nAttitudeAlbum' name='nAttitudeAlbum' class="required " >

Album
Genre <select id='nGenreAlbum' name='nGenreAlbum' class="required " > Album
   




Keterangan
No Intensitas Kepentingan Keterangan
1 1 Kedua elemen sama pentingnya
2 3 Elemen yang satu sedikit lebih penting daripada elemen yang lainnya
3 5 Elemen yang satu lebih penting daripada elemen lainnya
4 7 Satu elemen jelas lebih mutlak penting daripada elemen lainnya
5 9 Satu elemen mutlak penting dari pada elemen lainnya
6 2,4,6,8 Nilai-nilai antara dua nilai pertimbangan yang berdekatan
7 Kebalikan Jika aktifitas I mendapat satu angka dibandingkan dengan aktifitas j, maka j memiliki nilai kebalikannya
\n"; echo "window.alert('Data berhasil disimpan');"; echo ""; } elseif ($_GET['status']==1) { echo "<script language=\"Javascript\">\n"; echo "window.alert('Berhasil');"; echo ""; } elseif ($_GET['status']==2){ echo "<script language=\"Javascript\">\n"; echo "window.alert('Rasio konsistensi hasil perhitungan tidak dapat diterima.,silahkan coba lagi dengan angka yang berbeda.,');"; echo ""; } } ?>



Lampiran 1.3 tampil_kriteria.php

Form Subkriteria Genre

<em>




*

FROM

tb_subkriteria_genre

ORDER

$result=mysql_query($sql) or die(mysql_error()); //proses menampilkan data $totalHardrock=0; $totalHeavyMetal=0; $totalThrashMetal=0; $totalDeathMetal=0; $totalGrindcore=0; while($rows=mysql_fetch_array($result)){ $totalHardrock +=$rows['hardrock']; $totalHeavyMetal +=$rows['heavy_metal']; $totalThrashMetal +=$rows['thrash_metal']; $totalDeathMetal +=$rows['death_metal']; $totalGrindcore +=$rows['grindcore']; //$no++; ?>

BY

Matrik Perbandingan Berpasangan
Kriteria Hardrock Heavy Metal Thrash Metal Death Metal Grindcore Aksi
 
Jumlah Ubah< /td>




echo

align="center">


align="center">


align="center">


align="center">


align="center">
$rowsNilai['nama_subkriteria']; echo echo echo

$rowsNilai['hardrock']; $rowsNilai['heavy_metal'];

$rowsNilai['thrash_metal'];

echo echo

$rowsNilai['death_metal']; $rowsNilai['grindcore'];



echo



echo



Matrik Nilai Kriteria
Kriteria Hardrock Heavy Metal Thrash Metal Death Metal Grindcore Jumlah Prioritas Subprioritas


echo

align="center">


align="center">


align="center">
$rowsNilai['nama_subkriteria']; echo echo echo

$rowsNilai['hardrock']; $rowsNilai['heavy_metal'];

$rowsNilai['thrash_metal'];



align="center">
echo echo

$rowsNilai['death_metal']; $rowsNilai['grindcore'];

Matrik Penjumlahan Tiap Baris
Kriteria Hardrock Heavy Metal Thrash Metal Death Metal Grindcore Jumlah


echo

$rowsNilai['nama_subkriteria'];



align="center">
echo

$rowsNilai['prioritas'];

Rasio Konsistensi
Kriteria Jumlah Prioritas Hasil


Hasil Perhitungan
Keterangan Nilai
Jumlah
n(Jumlah kriteria) 5
Maks(Jumlah/n)
CI((Maks-n)/n)
CR(CI/IR)
\n"; echo "window.alert('Data berhasil disimpan');"; echo ""; } elseif ($_GET['status']==1) { echo "<script language=\"Javascript\">\n"; echo "window.alert('Data gagal disimpan');"; echo ""; } elseif ($_GET['status']==2){ echo "<script language=\"Javascript\">\n"; echo "window.alert('Admin sudah terdaftar, silahkan coba dengan nama yang berbeda');"; echo ""; } } ?>



Lampiran 1.4 koneksi.php
ini_set('display_errors',FALSE); $host="localhost"; $user="root"; $pass=""; $db="xxxx"; $koneksi=mysql_connect($host,$user,$pass); mysql_select_db($db,$koneksi); //$tanggal=date("d/m/Y"); if ($koneksi) { //echo "berhasil : )"; }else{ ?><script language="javascript">alert("Gagal Database MySql !!")

Koneksi

Lampiran 1.5 Profil Penulis DATA DIRI Nama

Ridwan Wimaswara Maulana Fajar

Tempat dan Malang, 10 Agustus 1995 Tanggal Lahir Jenis Kelamin

Laki – laki

Agama

Islam

Kewarganegaraan

Indonesia

Alamat

Jalan Halmahera No. 11 Kel. Mangkujayan, Kec. Ponorogo, Kab. Ponorogo

Email

[email protected]

No. Handphone

089-539-710-4738

Riwayat Pendidikan Nama Instansi

Tempat

Mulai

Selesai

Jurusan

SDN 1 Mangkujayan Ponorogo, Ponorogo Jawa Timur

2001

2006

-

SMPN 5 Ponorogo

Ponorogo, Jawa Timur

2007

2009

-

SMA Muhammadyah Ponorogo, 1 Ponorogo Jawa Timur

2010

2013

IPA

PKBI Universitas Malang, Negeri Malang Jawa Timur

2013

2014

DII Teknik Inforamatika

Politeknik Malang

2015

2018

DIV Teknik Informatika

Negeri Malang, Jawa Timur

Related Documents

Lamp Iran
August 2019 41
Lamp Iran
August 2019 39
Lamp Iran
August 2019 29
Lamp Iran
June 2020 17
Lamp Iran
November 2019 29
Lamp Iran
November 2019 24

More Documents from ""