RANCANG BANGUN SISTEM INFORMASI EKSEKUTIF PENJUALAN PADA PT. PENERBITAN PELANGI INDONESIA

1 RANCANG BANGUN SISTEM INFORMASI EKSEKUTIF PENJUALAN PADA PT. PENERBITAN PELANGI INDONESIA Skripsi Sebagai Salah Satu Syarat untuk Memperoleh Gelar S...
Author:  Susanto Agusalim

120 downloads 302 Views 5MB Size

Recommend Documents



include "dbkonfig.php";



?>









Jumlah

























;



});



$('#lokasi,#kategori,#tgl,#agenda,#jam,#bulan,#tahun,#can cel,#ok').uniform();



$("#tgl").datepicker({arrows:true, dateFormat:'dd/mm/yy' });

Kategori
<select name="kategori" id="kategori" onchange="ajax_loadContent('divbuku','ceknamabuku.php ?kategori='+this.value);"> Periode <select name="bulan" id="bulan">

Nama Buku







<select name="namabuku" id="namabuku">




lxvii



$('#ok').click(function(){

formObj.submit();

tutup3();

ajax_loadContent('divkanan','input_agenda.php?')





include "dbkonfig.php";

<script>

?> var formObj = new htmlkirim.form({ formRef:'my_form',action:'input_dataforecasting_submit.p hp',responseEl:'bagiansubmit' });



window.stop();



Master_tambahjadwal.php







<script>



function tutup3() {

parent.wins.window("w2").close(); }

lxviii

$('#ok').click(function(){ formObj.submit(); tutup3();



ajax_loadContent('divkanan','input_datapenjualan .php?');

}); $('#deskripsi,#kategori,#jumlah,#namabuku,#keterangan,#b ulan,#tahun,#cancel,#ok').uniform();




include "dbkonfig.php";
Tanggal Jam
Agenda
Lokasi


?>


<script>



var formObj = new htmlkirim.form({ formRef:'my_form',action:'input_agendasubmit.php',respon seEl:'bagiansubmit' });



window.stop();



Master_tambahpenjualan.php <script>

function tutup3() {

parent.wins.window("w2").close(); }

lxix



?>









Kategori <select name="kategori" id="kategori" onchange="ajax_loadContent('divbuku','ceknamabuku.php ?kategori='+this.value);">
Nama Buku







<select name="namabuku" id="namabuku">






$dat=mysql_query("SELECT * from databuku where kategori='TK'");



while ($cek=mysql_fetch_array($dat)){ echo "

}


Jumlah





<script> var formObj = new htmlkirim.form({ formRef:'my_form',action:'input_datapenjualan_submit.php ',responseEl:'bagiansubmit' });

Periode

window.stop();



Master_tambahstok.php <select name="bulan" id="bulan">





<script>



function tutup3() {

lxx

parent.wins.window("w2").close(); Nama Buku

}



$('#ok').click(function(){

<select name="namabuku" id="namabuku"> formObj.submit();
tutup3();

while ($cek=mysql_fetch_array($dat)){

ajax_loadContent('divkanan','input_datastok.php? ');

echo "




<script>



lxxiii

<script type="text/javascript" charset="utf-8"> $(function(){

mygrid = new dhtmlXGridObject('gridbuku');

$("#tambah,#edit,#hapus").uniform();

mygrid.setImagePath("./libmod/imgs/");

}); mygrid.setHeader("No, Tanggal,Jam,Agenda,Lokasi"); mygrid.setInitWidths("70,100,150,150,auto");

var wins;

mygrid.setColTypes("dyn,ro,ro,ro,ro");

var w2; function tambah(models){

mygrid.setColSorting("str,str,str,str,str"); mygrid.setEditable(false);

wins = new dhtmlXWindows();

mygrid.setSkin("dhx_skyblue");

wins.attachViewportTo("divatasku");

mygrid.init();

wins.enableAutoViewport(true);

mygrid.loadXML("grid_agenda.php"); wins.setImagePath("./libmod/win/imgs/"); w2 = wins.createWindow("w2", 0, 0,

400, 300);



if (models=="new"){

Input_agendasubmit.php

w2.setText("Tambah Data Customer");


session_start();

}else{

include "dbkonfig.php";

idx=mygrid.getSelectedId(); w2.setText("Edit Data Customer");

$lokasi=$_POST['lokasi']; $tgl=$_POST['tgl'];

w2.attachURL('master_editcustomer.php?id='+id $jam=$_POST['jam'];

x, true);

$agenda=$_POST['agenda'];

}

mysql_query("INSERT INTO jadwal (tgl,jam,agenda,lokasi) VALUES ('$tgl','$jam','$agenda','$lokasi')");

w2.button("minmax1").hide();

Input_customer.php

w2.centerOnScreen();



w2.allowMove();

w2.button("park").hide();

}

lxxiv

$('#hapus').click(function(){



id=mygrid.getSelectedId(); if(r==true){



if (id!='' || id!=null){



jConfirm('Anda yakin akan menghapus data tersebut?', 'Delete data', function(r) {

INPUT DATA CUSTOMER


ajax_loadContent('divhapus','hapus_customer.ph p?id='+id);



ajax_loadContent('divkanan','input_customer.php



?');



}











$telepon=$_POST['telepon']; $fax=$_POST['fax'];



}

});




});





lxxv



$email=$_POST['email'];



mysql_query("UPDATE datacust SET nama_cust='$nama',alamat='$alamat',telpon='$telepon',fax ='$fax',email='$email' WHERE id_cust=$id");

<script>

Input_customersubmit.php
mygrid = new dhtmlXGridObject('gridbuku');

session_start();

mygrid.setImagePath("./libmod/imgs/");

include "dbkonfig.php"; $nama=$_POST['nama'];

mygrid.setHeader("No, Nama,Alamat,Telepon,Fax,Email");

$alamat=$_POST['alamat']; $telepon=$_POST['telepon'];

mygrid.setInitWidths("70,150,150,100,100,auto");

$fax=$_POST['fax'];

mygrid.setColTypes("dyn,ro,ro,ro,ro,ro");

$email=$_POST['email'];

mygrid.setColSorting("str,str,str,str,str,str");

mygrid.setSkin("dhx_skyblue");

mysql_query("INSERT INTO datacust (nama_cust,alamat,telpon,fax,email) values ('$nama','$alamat','$telepon','$fax','$email')");

mygrid.init();

Input_databuku.php

mygrid.loadXML("grid_customer.php");



mygrid.setEditable(false);

<script type="text/javascript" charset="utf-8"> $(function(){
$("#tambah,#updet,#hapus").uniform();

Input_customer_editsubmit.php $("#tgl").datepicker({arrows:true, dateFormat:'dd/mm/yy' });


});

session_start(); include "dbkonfig.php"; $id=$_POST['id'];

var wins;

$nama=$_POST['nama'];

var w2; function tambah(models){

$alamat=$_POST['alamat'];

lxxvi

wins = new dhtmlXWindows(); if(r==true){ wins.attachViewportTo("divatasku"); wins.enableAutoViewport(true);

ajax_loadContent('divhapus','hapus_databuku.ph p?id='+id);

wins.setImagePath("./libmod/win/imgs/"); ajax_loadContent('divkanan','input_databuku.php

w2 = wins.createWindow("w2", 0, 0,

?');

400, 250); if (models=="new"){

}

w2.setText("Tambah Data Buku");

w2.attachURL('master_tambahbuku.php', true);

});

}else{ }

idx=mygrid.getSelectedId(); w2.setText("Edit Data Buku");

});

w2.attachURL('master_editbuku.php?id='+idx, true);

} w2.button("minmax1").hide(); w2.button("park").hide();


w2.centerOnScreen();

require_once"./dbkonfig.php";

w2.allowMove();

?>

}



$('#hapus').click(function(){

id=mygrid.getSelectedId();



mygrid = new dhtmlXGridObject('gridbuku');



mygrid.setImagePath("./libmod/imgs/");



if (id!='' || id!=null){



jConfirm('Anda yakin akan menghapus data tersebut?', 'Delete data', function(r) {

INPUT DATA BUKU


lxxvii



mygrid.setHeader("No, ID Buku,Kategori,Nama Buku,Detail");



mygrid.setInitWidths("70,70,100,150,auto");

mygrid.init();

mygrid.loadXML("grid_databuku.php");







Input_databuku_editsubmit.php






$namabuku=$_POST['nama']; $deskripsi=$_POST['deskripsi'];



mygrid.setColTypes("dyn,ro,ro,ro,ro"); mygrid.setColSorting("str,str,str,str,str");



mygrid.setEditable(false); mygrid.setSkin("dhx_skyblue");






$kategori=$_POST['kategori'];



$id=$_POST['id'];



mysql_query("UPDATE databuku SET kategori='$kategori',namabuku='$namabuku',detail='$deskr ipsi' WHERE id=$id");

<script>

input_databuku_submit.php
lxxviii

session_start(); w2.attachURL('master_tambahforecasting.php', include "dbkonfig.php";

true);

$kategori=$_POST['kategori'];

}else{

$namabuku=$_POST['nama'];

idx=mygrid.getSelectedId();

$deskripsi=$_POST['deskripsi'];

w2.setText("Edit Data Forecasting");

mysql_query("INSERT INTO databuku (kategori,namabuku,detail) VALUES ('$kategori','$namabuku','$deskripsi')");

w2.attachURL('master_editforecasting.php?id='+ idx, true);

Input_dataforecasting.php

}



w2.button("minmax1").hide(); w2.button("park").hide();

<script type="text/javascript" charset="utf-8">

w2.centerOnScreen();

$(function(){

w2.allowMove();

$("#tambah,#updet,#hapus").uniform();

}

$("#tgl").datepicker({arrows:true, dateFormat:'dd/mm/yy' });

$('#hapus').click(function(){

});

id=mygrid.getSelectedId();

if (id!='' || id!=null){

var wins; var w2;

jConfirm('Anda yakin akan menghapus data tersebut?', 'Delete data', function(r) {

function tambah(models){ wins = new dhtmlXWindows(); wins.attachViewportTo("divatasku");

if(r==true){

wins.enableAutoViewport(true);

ajax_loadContent('divhapus','hapus_dataforecasti ng.php?id='+id);

wins.setImagePath("./libmod/win/imgs/"); w2 = wins.createWindow("w2", 0, 0, 500, 250);

ajax_loadContent('divkanan','input_dataforecasti if (models=="new"){

ng.php?');

w2.setText("Tambah Data Forecasting");

}

lxxix

});

}




});










?>














<script>

INPUT DATA FORECASTING BUKU
mygrid = new dhtmlXGridObject('gridbuku'); mygrid.setImagePath("./libmod/imgs/");



mygrid.setHeader("No, ID Buku,Nama Buku,Kategori,Jumlah,Periode");



mygrid.setInitWidths("70,70,150,100,100,auto"); mygrid.setColTypes("dyn,ro,ro,ro,ro,ro");

if(r==true){


mygrid.setColSorting("str,str,str,str,str,str");

lxxx

mygrid.setEditable(false);

include "dbkonfig.php";

mygrid.setSkin("dhx_skyblue");

$kategori=$_POST['kategori'];

mygrid.init();

$namabuku=$_POST['namabuku'];

mygrid.loadXML("grid_dataforecasting.php");

$jumlah=$_POST['jumlah']; $bulan=$_POST['bulan'];



$tahun=$_POST['tahun'];



$period=$tahun.$bulan;

Input_dataforecasting_editsubmit.php

$ids=explode("#",$namabuku);


$idbuku=$ids[0];

session_start();

$namabuku=$ids[1];

include "dbkonfig.php";

mysql_query("INSERT INTO forecasting (kategori,idbuku,jmlh,periode) VALUES ('$kategori','$idbuku',$jumlah,$period)");

$id=$_POST['id'];

Input_datapenjualan.php

$kategori=$_POST['kategori'];



$namabuku=$_POST['namabuku'];

<script type="text/javascript" charset="utf-8"> $jumlah=$_POST['jumlah']; $(function(){

$bulan=$_POST['bulan'];

$("#tambah,#updet,#hapus").uniform(); $tahun=$_POST['tahun']; $("#tgl").datepicker({arrows:true, dateFormat:'dd/mm/yy' });

$period=$tahun.$bulan; $ids=explode("#",$namabuku);

});

$idbuku=$ids[0]; $namabuku=$ids[1];

var wins;

mysql_query("UPDATE forecasting SET kategori='$kategori',idbuku='$idbuku',jmlh=$jumlah,period e=$period WHERE id=$id");

var w2; function tambah(models){ wins = new dhtmlXWindows();

Input_dataforecasting_submit.php

wins.attachViewportTo("divatasku");


wins.enableAutoViewport(true);

session_start(); wins.setImagePath("./libmod/win/imgs/");

lxxxi

w2 = wins.createWindow("w2", 0, 0, 500, 250);

ajax_loadContent('divkanan','input_datapenjualan .php?'); if (models=="new"){ w2.setText("Tambah Data Penjualan");

}

w2.attachURL('master_tambahpenjualan.php', true); }); }else{ idx=mygrid.getSelectedId();

}

w2.setText("Edit Data Penjualan"); }); w2.attachURL('master_editpenjualan.php?id='+id x, true);

} w2.button("minmax1").hide(); w2.button("park").hide();


w2.allowMove();

?> }


$('#hapus').click(function(){

id=mygrid.getSelectedId(); if (id!='' || id!=null){



ajax_loadContent('divhapus','hapus_datapenjuala n.php?id='+id);



jConfirm('Anda yakin akan menghapus data tersebut?', 'Delete data', function(r) {

INPUT DATA PENJUALAN BUKU


if(r==true){


lxxxii



mygrid.setHeader("No, ID Buku,Nama Buku,Kategori,Jumlah,Periode");



mygrid.setInitWidths("70,70,150,100,100,auto");



mygrid.init();

mygrid.loadXML("grid_datapenjualan.php");





Input_datapenjualan_editsubmit.php






$namabuku=$_POST['namabuku']; $jumlah=$_POST['jumlah'];



mygrid.setColTypes("dyn,ro,ro,ro,ro,ro"); mygrid.setColSorting("str,str,str,str,str,str");



mygrid.setEditable(false); mygrid.setSkin("dhx_skyblue");






$id=$_POST['id']; $kategori=$_POST['kategori'];



$bulan=$_POST['bulan'];



$tahun=$_POST['tahun']; $period=$tahun.$bulan;

<script>

$ids=explode("#",$namabuku); $idbuku=$ids[0];

mygrid = new dhtmlXGridObject('gridbuku');

$namabuku=$ids[1];

mygrid.setImagePath("./libmod/imgs/");

mysql_query("UPDATE penjualanbuku SET kategori='$kategori',idbuku='$idbuku',jmlh=$jumlah,period e=$period WHERE id=$id");

lxxxiii

wins = new dhtmlXWindows();

Input_datapenjualan_submit.php

wins.attachViewportTo("divatasku");


wins.enableAutoViewport(true);

session_start();

wins.setImagePath("./libmod/win/imgs/");

include "dbkonfig.php";

w2 = wins.createWindow("w2", 0, 0, 500, 250);

$kategori=$_POST['kategori']; $namabuku=$_POST['namabuku'];

if (models=="new"){

$jumlah=$_POST['jumlah'];

w2.setText("Tambah Data Stok");

$bulan=$_POST['bulan']; w2.attachURL('master_tambahstok.php', true); $tahun=$_POST['tahun']; }else{ $period=$tahun.$bulan; idx=mygrid.getSelectedId(); $ids=explode("#",$namabuku); w2.setText("Edit Data Stok"); $idbuku=$ids[0]; w2.attachURL('master_editstok.php?id='+idx,

$namabuku=$ids[1]; true); mysql_query("INSERT INTO penjualanbuku (kategori,idbuku,jmlh,periode) VALUES ('$kategori','$idbuku',$jumlah,$period)");

} w2.button("minmax1").hide();

Input_datastok.php

w2.button("park").hide();



w2.centerOnScreen(); w2.allowMove();

<script type="text/javascript" charset="utf-8"> }

$(function(){

$('#hapus').click(function(){

$("#tambah,#updet,#hapus").uniform(); $("#tgl").datepicker({arrows:true, dateFormat:'dd/mm/yy' });

id=mygrid.getSelectedId();

});

if (id!='' || id!=null){

var wins;

jConfirm('Anda yakin akan menghapus data tersebut?', 'Delete data', function(r) {

var w2; function tambah(models){

lxxxiv



ajax_loadContent('divhapus','hapus_datastok.php ?id='+id);

ajax_loadContent('divkanan','input_datastok.php?



');



}








document.Kalkulator.mz1.value = document.Kalkulator.fh.value;



fuzzy2; document.Kalkulator.mz3.value =



fuzzy3;



document.Kalkulator.mz4.value = fuzzy4;

(0.1 * parseFloat(document.Kalkulator.fc.value) * parseInt(fuzzy1) + 0.1 * parseFloat(document.Kalkulator.z1.value) * parseFloat(fuzzy2)+ 0.1 * parseFloat(document.Kalkulator.z0.value) * parseInt(fuzzy3)+ 0.1 * parseFloat(document.Kalkulator.z9.value) * parseInt(fuzzy4))/





document.Kalkulator.z.value = fuzzyall;

}







Grid_agenda.php






if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml +xml")) {



header("Content-type: application/xhtml+xml"); } else {



header("Content-type: text/xml"); }



echo("\n");



include "dbkonfig.php";

$nomor=1;



echo ""; $kueri="SELECT id_jadwal,tgl,jam,agenda,lokasi FROM jadwal";



$kuerikan=mysql_query($kueri);

xc

$kueri="SELECT nama_cust,alamat,telpon,fax,email,id_cust FROM datacust";

while ($dapat=mysql_fetch_row($kuerikan)){ echo ""; echo "$nomor";

$kuerikan=mysql_query($kueri);

echo "$dapat[1]"; echo "$dapat[2]";

while ($dapat=mysql_fetch_row($kuerikan)){

echo "$dapat[3]";

echo "";

echo "$dapat[4]";

echo "$nomor";

echo "
";

echo "$dapat[0]"; echo "$dapat[1]";

$nomor++;

echo "$dapat[2]";

}echo "";

echo "$dapat[3]";

?>

echo "$dapat[4]";

Grid_customer.php

echo "
"; $nomor++;


}echo "";

error_reporting(E_ALL ^ E_NOTICE);

?>

Grid_databuku.php

if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml +xml")) {


header("Content-type: application/xhtml+xml"); } else {

error_reporting(E_ALL ^ E_NOTICE);

header("Content-type: text/xml"); if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml +xml")) {

} echo("\n");

header("Content-type: application/xhtml+xml"); } else { header("Content-type: text/xml");

include "dbkonfig.php"; } echo("
1'?>\n");

echo "";

xci

case "03" : $namabln="Maret";break; include "dbkonfig.php"; case "04" : echo "";

$namabln="April";break;

$kueri="SELECT id,kategori,namabuku,detail from databuku";

$namabln="Mei";break;

case "05" :

$kuerikan=mysql_query($kueri);

case "06" : $namabln="Juni";break;

$nomor=1; case "07" :

while ($dapat=mysql_fetch_row($kuerikan)){

$namabln="Juli";break;

echo "";

case "08" : $namabln="Agustus";break;

echo "$nomor";

case "09" :

echo "$dapat[0]";

$namabln="September";break;

echo "$dapat[1]";

case "10" : $namabln="Oktober";break;

echo "$dapat[2]";

case "11" :

echo "$dapat[3]";

$namabln="November";break;

echo "
";

case "12" : $namabln="Desember";break;

$nomor++; }echo "
";

}

?>

$semua=$namabln." ".$thn;

Grid_dataforecasting.php

return $semua; }


if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml +xml")) {

function balikperiode($periode){

header("Content-type: application/xhtml+xml"); } else {

$bln=substr($periode,strlen($periode)2,strlen($periode));

header("Content-type: text/xml");

$thn=substr($periode,0,4); }

switch($bln){

echo("
case "01" :

1'?>\n");

$namabln="Januari";break;

include "dbkonfig.php";

case "02" : $namabln="Pebruari";break;

xcii

case "02" :

echo ""; $namabln="Pebruari";break; $kueri="SELECT z.id,z.kategori,z.idbuku,(SELECT namabuku from databuku m where m.id=z.idbuku) as namabuku,z.jmlh,z.periode from forecasting z";

case "03" : $namabln="Maret";break; case "04" :

$kuerikan=mysql_query($kueri); $namabln="April";break; $nomor=1;

case "05" : while ($dapat=mysql_fetch_row($kuerikan)){

$namabln="Mei";break;

echo "";

case "06" : $namabln="Juni";break;

echo "$nomor";

case "07" : echo "$dapat[2]";

$namabln="Juli";break;

echo "$dapat[3]";

case "08" : $namabln="Agustus";break;

echo "$dapat[1]";

case "09" :

echo "$dapat[4]";

$namabln="September";break;

echo "".balikperiode($dapat[5])."";

case "10" : $namabln="Oktober";break;

echo "
";

case "11" : $namabln="November";break;

$nomor++;

case "12" :

}echo "
";

$namabln="Desember";break;

?>

}

Grid_datapenjualan.php

$semua=$namabln." ".$thn;


return $semua; error_reporting(E_ALL ^ E_NOTICE);

}

function balikperiode($periode){

if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml +xml")) {

$bln=substr($periode,strlen($periode)2,strlen($periode));

header("Content-type: application/xhtml+xml"); } else {

$thn=substr($periode,0,4); switch($bln){

header("Content-type: text/xml");

case "01" :

}

$namabln="Januari";break;

echo("\n");

xciii

$thn=substr($periode,0,4); switch($bln){

include "dbkonfig.php";

case "01" : $namabln="Januari";break; case "02" : echo "";

$namabln="Pebruari";break; case "03" : $namabln="Maret";break;

$kueri="SELECT z.id,z.kategori,z.idbuku,(SELECT namabuku from databuku m where m.id=z.idbuku) as namabuku,z.jmlh,z.periode from penjualanbuku z";

case "04" : $namabln="April";break;

$kuerikan=mysql_query($kueri);

case "05" : $namabln="Mei";break;

$nomor=1;

case "06" : while ($dapat=mysql_fetch_row($kuerikan)){

$namabln="Juni";break;

echo "";

case "07" : $namabln="Juli";break;

echo "$nomor";

case "08" :

echo "$dapat[2]";

$namabln="Agustus";break;

echo "$dapat[3]";

case "09" : $namabln="September";break;

echo "$dapat[1]";

case "10" :

echo "$dapat[4]";

$namabln="Oktober";break;

echo "".balikperiode($dapat[5])."";

case "11" : $namabln="November";break;

echo "
";

case "12" : $namabln="Desember";break;

$nomor++; }echo "
";

}

?>

$semua=$namabln." ".$thn;

Grid_datastokbuku.php

return $semua; }


if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml +xml")) {

function balikperiode($periode){

header("Content-type: application/xhtml+xml"); } else {

$bln=substr($periode,strlen($periode)2,strlen($periode));

xciv



header("Content-type: text/xml"); }


echo("
session_start();

1'?>\n"); include "dbkonfig.php";

include "dbkonfig.php";

$kategori=$_GET['kategori']; ?> echo ""; <select name="namabuku" id="namabuku">
$dat=mysql_query("SELECT * from databuku where kategori='$kategori'"); while ($cek=mysql_fetch_array($dat)){

$kuerikan=mysql_query($kueri);

echo "
";

if($('#passwdlama').val()==''){

?>

alert('Maaf, password lama belum diisi!');

Ceknamabuku.php

} else if($('#passwdbaru').val()==''){ <script> $('#namabuku').uniform();

xcv

alert('Maaf, Password baru belum

<style type="text/css">

diisi!'); .tulis { } else if($('#passwdbaru2').val()==''){ color : #000000; alert('Maaf, Password baru konfirmasi belum diisi!');

margin-left : 12px;

} else if($('#passwdbaru').val() != $('#passwdbaru2').val()) {

left:20px; font-size : 11px;

alert('Maaf, Password Baru tidak sama dengan Password Baru (konfirmasi)!');

font-family : Tahoma,Verdana,Arial; }

} else { userid=$('#userid').val();



passwdlama=$('#passwdlama').val();



GANTI PASSWORD


ajax_loadContent('divcek','changepasscari.php?us erid='+userid+'&passwd='+passwdlama);



}



});



}

});




});



?>














<script>

INPUT DATA STOCK BUKU


lxxxv

mysql_query("UPDATE stock SET kategori='$kategori',idbuku='$idbuku',jmlh=$jumlah,period e=$period WHERE id=$id");

mygrid = new dhtmlXGridObject('gridbuku'); mygrid.setImagePath("./libmod/imgs/");

Input_datastok_submit.php mygrid.setHeader("No, ID Buku,Nama Buku,Kategori,Jumlah,Periode");


mygrid.setInitWidths("70,70,150,100,100,auto");

include "dbkonfig.php";

mygrid.setColTypes("dyn,ro,ro,ro,ro,ro");

$kategori=$_POST['kategori'];

mygrid.setColSorting("str,str,str,str,str,str");

$namabuku=$_POST['namabuku'];

mygrid.setEditable(false);

$jumlah=$_POST['jumlah'];

mygrid.setSkin("dhx_skyblue");

$bulan=$_POST['bulan'];

mygrid.init();

$tahun=$_POST['tahun'];

mygrid.loadXML("grid_datastokbuku.php");

$period=$tahun.$bulan; $ids=explode("#",$namabuku);



$idbuku=$ids[0];



$namabuku=$ids[1];

Input_datastok_editsubmit.php

mysql_query("INSERT INTO stock (kategori,idbuku,jmlh,periode) VALUES ('$kategori','$idbuku',$jumlah,$period)");


Input_usermgt.php

include "dbkonfig.php"; $id=$_POST['id'];


$kategori=$_POST['kategori'];

session_start();

$namabuku=$_POST['namabuku'];

include "dbkonfig.php";

$jumlah=$_POST['jumlah'];

$kat=$_POST['kategori'];

$bulan=$_POST['bulan'];

$nama=$_POST['nama'];

$tahun=$_POST['tahun'];

$pass=$_POST['pass'];

$period=$tahun.$bulan; $ids=explode("#",$namabuku);

mysql_query("INSERT INTO userwww (classtype,pengakses,katakunci) VALUES ($kat,'$nama','$pass')");

$idbuku=$ids[0];

Fuzzy.php

$namabuku=$ids[1];



lxxxvi

parseInt(document.Kalkulator.ff.value)) <script> ; document.Kalkulator.fh.value = function calc_perkiraan()

fuzzy1;

{ var fuzzy2 = document.Kalkulator.ff.value = parseInt(document.Kalkulator.fa.value)-(0.1 * parseFloat(document.Kalkulator.z1.value) * parseInt(document.Kalkulator.fa.value) parseInt(document.Kalkulator.ae.value))

parseInt(document.Kalkulator.fb.value);

; document.Kalkulator.nilaiz2.value =

document.Kalkulator.ae.value =

fuzzy2;

parseInt(document.Kalkulator.fa.value) var fuzzy3 = parseInt(document.Kalkulator.fb.value); parseInt(document.Kalkulator.fb.value)+(0.1 * parseFloat(document.Kalkulator.z0.value) * document.Kalkulator.ac.value = parseInt(document.Kalkulator.ac.value)) parseInt(document.Kalkulator.fa.value) -

; document.Kalkulator.nilaiz3.value =

parseInt(document.Kalkulator.fb.value);

fuzzy3;

document.Kalkulator.ad.value =

var fuzzy4 =

parseInt(document.Kalkulator.fa.value) -

parseInt(document.Kalkulator.fb.value)+(0.1 * parseFloat(document.Kalkulator.z9.value) *

parseInt(document.Kalkulator.fb.value); parseInt(document.Kalkulator.ad.value)) ;

var fuzzy1 =

document.Kalkulator.nilaiz4.value = fuzzy4;

parseInt(document.Kalkulator.fa.value)-(0.1 * parseFloat(document.Kalkulator.fc.value) *

lxxxvii

 


document.Kalkulator.mz2.value = Perkiraan Penjualan dengan Metode Fuzzy Logic
a. Penjualan terbesar var fuzzyall = Unit
b. Penjualan terkecil

(0.1 * parseFloat(document.Kalkulator.fc.value) + 0.1 * parseFloat(document.Kalkulator.z1.value) + 0.1 * parseFloat(document.Kalkulator.z0.value) + 0.1 * parseFloat(document.Kalkulator.z9.value));

Unit
c. Penyesuaian (z1) %
f. penjualan terbesar - penjualan terkecil




Unit

lxxxviii





Unit















Unit

Unit

j. <strong>NILAI Z4







lxxxix







f. penjualan terbesar - penjualan terkecil

h. <strong>NILAI Z1
Unit
j. <strong>NILAI Z3
c. Penyesuaian (z2)
%
c. Penyesuaian (z4)
%
f. penjualan terbesar - penjualan terkecil

f. penjualan terbesar - penjualan terkecil

j. <strong>NILAI Z2
c. Penyesuaian (z3) %
INPUT DATA PERKIRAAN
UNIT <strong>Nilai z1
<strong>Nilai z2
<strong>Nilai z3
<strong>Nilai z4
PERKIRAAN PENJUALAN BULAN DEPAN
function cekpassword() { formObj.submit();



ajax_loadContent('divisi','changepass.php');

Change Password »   

userid=$('#userid').val(); alert('Ganti password '+userid+' berhasil!');



}

  session_start(); include "fungsi.php"; ?>

xcvi



   


 



UserID " readonly />

<script> var formObj = new htmlkirim.form({ formRef:'my_form',action:'changepassedit.php',responseEl:' bagiansubmit' });



//

window.stop();

  Password Lama

Changepasscari.php






include_once("dbkonfig.php");



include_once("fungsi.php");

 

$userid=$_GET['userid'];

Password Baru

$passwd=$_GET['passwd'];



$sqlselect = mysql_query("SELECT * FROM userwww WHERE pengakses='$userid' AND katakunci='$passwd'");



$num = mysql_num_rows($sqlselect);



if ($num==0){

 

echo "<script>alert('Maaf Password lama yang anda masukkan salah!');";

Password Baru Konfirmasi

}else{



echo "<script>cekpassword();"; }

mysql_close($dbasebuka);   ?>

Changepassedit.php






xcvii



include "dbkonfig.php"; include_once("fungsi.php"); $userid = $_POST['userid'];



$passwdlama = $_POST['passwdlama'];



$passwdbaru = $_POST['passwdbaru'];



$passwdbaru2 = $_POST['passwdbaru2'];

<script>

$sql_insert = "UPDATE userwww SET katakunci='$passwdbaru' WHERE pengakses='$userid'";

mygrid1 = new dhtmlXGridObject('gridbox1'); mygrid1.setImagePath("./libmod/imgs/");

mysql_query($sql_insert);?>

detail_forecasting_sd.php

mygrid1.setHeader("No.,Kategori,Periode, Nama Buku,Jumlah");


mygrid1.setInitWidths("40,50,80,100,100");

$idbuku=$_GET['idbuku'];

mygrid1.setColTypes("dyn,ro,ro,ro,ro");

?>

mygrid1.setColSorting("int,str,str,str,str");



mygrid1.setEditable(false); mygrid1.enableKeyboardSupport(true);



mygrid1.setEditable(false);



mygrid1.enableKeyboardSupport(true);



mygrid1.setSkin("dhx_skyblue");



mygrid1.init();



mygrid1.loadXML("grid_detail_forecasting_sd_tbl.php?id ="+idbuku);

<script> idbuku="";

detail_forecasting_sma.php var chart2 = new FusionCharts("./chart/FCF_Column3D.swf", "ChartId", "600", "350");


chart2.setDataURL("grid_detail_forecasting_sd.php?id="+i dbuku);

?>

chart2.render("chartdivs");


mygrid1.setEditable(false);



mygrid1.enableKeyboardSupport(true);

<script>

xcviii

idbuku="";

detail_forecasting_smp.php

var chart2 = new FusionCharts("./chart/FCF_Column3D.swf", "ChartId", "600", "350");



chart2.setDataURL("grid_detail_forecasting_sma.php?id=" +idbuku);



chart2.render("chartdivs");

















<script> idbuku=""; var chart2 = new FusionCharts("./chart/FCF_Column3D.swf", "ChartId", "600", "350");



chart2.setDataURL("grid_detail_forecasting_smp.php?id=" +idbuku);

<script> mygrid1 = new dhtmlXGridObject('gridbox1');

chart2.render("chartdivs");

mygrid1.setImagePath("./libmod/imgs/");



mygrid1.setHeader("No.,Kategori,Periode, Nama Buku,Jumlah");



mygrid1.setInitWidths("40,50,80,100,100");


mygrid1.setColTypes("dyn,ro,ro,ro,ro"); mygrid1.setColSorting("int,str,str,str,str");

<script>

mygrid1.setSkin("dhx_skyblue");

mygrid1 = new dhtmlXGridObject('gridbox1');

mygrid1.init();

mygrid1.setImagePath("./libmod/imgs/");

mygrid1.loadXML("grid_detail_forecasting_sma_tbl.php?i d="+idbuku);

mygrid1.setHeader("No.,Kategori,Periode, Nama Buku,Jumlah");

xcix



mygrid1.setInitWidths("40,50,80,100,100"); mygrid1.setColTypes("dyn,ro,ro,ro,ro"); mygrid1.setColSorting("int,str,str,str,str");

<script>

mygrid1.setSkin("dhx_skyblue");

mygrid1 = new dhtmlXGridObject('gridbox1');

mygrid1.init();

mygrid1.setImagePath("./libmod/imgs/");

mygrid1.loadXML("grid_detail_forecasting_smp_tbl.php?i d="+idbuku);

mygrid1.setHeader("No.,Kategori,Periode, Nama Buku,Jumlah");

detail_forecasting_tk.php

mygrid1.setInitWidths("40,50,80,100,100");


mygrid1.setColTypes("dyn,ro,ro,ro,ro");

$idbuku=$_GET['idbuku'];

mygrid1.setColSorting("int,str,str,str,str");

?>

mygrid1.setEditable(false);



mygrid1.enableKeyboardSupport(true);



mygrid1.setHeader("No.,Kategori,Periode, Nama Buku,Jumlah");

mygrid1.setEditable(false); mygrid1.enableKeyboardSupport(true);


mygrid1.setSkin("dhx_skyblue");



mygrid1.init(); mygrid1.loadXML("grid_detail_forecasting_tk_tbl.php?id= "+idbuku);

<script> idbuku=""; var chart2 = new FusionCharts("./chart/FCF_Column3D.swf", "ChartId", "600", "350");

detail_penjualan_sd.php
chart2.setDataURL("grid_detail_forecasting_tk.php?id="+i dbuku);

$idbuku=$_GET['idbuku']; ?>

chart2.render("chartdivs");

mygrid1.setHeader("No.,Kategori,Periode, Nama Buku,Jumlah");



mygrid1.setEditable(false);



mygrid1.enableKeyboardSupport(true);



c

mygrid1.loadXML("grid_detail_penjualan_sd_tbl.php?id=" +idbuku);

<script>

detail_penjualan_sma.php

idbuku="";


var chart2 = new FusionCharts("./chart/FCF_Column3D.swf", "ChartId", "600", "350");

$idbuku=$_GET['idbuku']; ?>

chart2.setDataURL("grid_detail_penjualan_sd.php?id="+id buku);



chart2.render("chartdivs");
<script>


idbuku=""; var chart2 = new FusionCharts("./chart/FCF_Column3D.swf", "ChartId", "600", "350");



chart2.setDataURL("grid_detail_penjualan_sma.php?id="+ idbuku);

<script>

chart2.render("chartdivs");

mygrid1 = new dhtmlXGridObject('gridbox1');



mygrid1.setImagePath("./libmod/imgs/");


mygrid1.setInitWidths("40,50,80,100,100");



mygrid1.setColTypes("dyn,ro,ro,ro,ro"); mygrid1.setColSorting("int,str,str,str,str");

<script>

mygrid1.setSkin("dhx_skyblue");

mygrid1 = new dhtmlXGridObject('gridbox1');

mygrid1.init();

mygrid1.setImagePath("./libmod/imgs/");

ci

mygrid1.setInitWidths("40,50,80,100,100");


mygrid1.setColTypes("dyn,ro,ro,ro,ro"); mygrid1.setColSorting("int,str,str,str,str");

<script> mygrid1.setSkin("dhx_skyblue"); mygrid1 = new dhtmlXGridObject('gridbox1'); mygrid1.init(); mygrid1.setImagePath("./libmod/imgs/"); mygrid1.loadXML("grid_detail_penjualan_sma_tbl.php?id ="+idbuku);

mygrid1.setHeader("No.,Kategori,Periode, Nama Buku,Jumlah");

detail_penjualan_smp.php mygrid1.setInitWidths("40,50,80,100,100");
mygrid1.setColTypes("dyn,ro,ro,ro,ro");

$idbuku=$_GET['idbuku'];

mygrid1.setColSorting("int,str,str,str,str");

?>

mygrid1.setEditable(false);



mygrid1.enableKeyboardSupport(true);



mygrid1.setHeader("No.,Kategori,Periode, Nama Buku,Jumlah");

mygrid1.setEditable(false); mygrid1.enableKeyboardSupport(true);


mygrid1.setSkin("dhx_skyblue");



mygrid1.init();



mygrid1.loadXML("grid_detail_penjualan_smp_tbl.php?id ="+idbuku);

<script> idbuku=""; var chart2 = new FusionCharts("./chart/FCF_Column3D.swf", "ChartId", "600", "350");

detail_penjualan_tk.php
chart2.setDataURL("grid_detail_penjualan_smp.php?id="+ idbuku);

$idbuku=$_GET['idbuku'];

chart2.render("chartdivs");

?>





cii



mygrid1.setHeader("No.,Kategori,Periode, Nama Buku,Jumlah");



mygrid1.setEditable(false);



mygrid1.enableKeyboardSupport(true);



mygrid1.setSkin("dhx_skyblue");



mygrid1.init(); mygrid1.loadXML("grid_detail_penjualan_tk_tbl.php?id=" +idbuku);

<script>

detail_stock_sd.php

idbuku="";


var chart2 = new FusionCharts("./chart/FCF_Column3D.swf", "ChartId", "600", "350");

$idbuku=$_GET['idbuku']; ?>

chart2.setDataURL("grid_detail_penjualan_tk.php?id="+id buku);



chart2.render("chartdivs");
<script>


idbuku=""; var chart2 = new FusionCharts("./chart/FCF_Column3D.swf", "ChartId", "600", "350");



chart2.setDataURL("grid_detail_stock_sd.php?id="+idbuk u);

<script>

chart2.render("chartdivs");

mygrid1 = new dhtmlXGridObject('gridbox1');



mygrid1.setImagePath("./libmod/imgs/");


mygrid1.setInitWidths("40,50,80,100,100");



mygrid1.setColTypes("dyn,ro,ro,ro,ro"); mygrid1.setColSorting("int,str,str,str,str");

<script>

ciii

mygrid1 = new dhtmlXGridObject('gridbox1');

chart2.render("chartdivs");

mygrid1.setImagePath("./libmod/imgs/");

mygrid1.setInitWidths("40,50,80,100,100");


mygrid1.setColTypes("dyn,ro,ro,ro,ro"); mygrid1.setColSorting("int,str,str,str,str");

<script> mygrid1.setSkin("dhx_skyblue"); mygrid1 = new dhtmlXGridObject('gridbox1'); mygrid1.init(); mygrid1.setImagePath("./libmod/imgs/"); mygrid1.loadXML("grid_detail_stock_sd_tbl.php?id="+idb uku);

mygrid1.setHeader("No.,Kategori,Periode, Nama Buku,Jumlah");

detail_stock_sma.php mygrid1.setInitWidths("40,50,80,100,100");
mygrid1.setColTypes("dyn,ro,ro,ro,ro");

$idbuku=$_GET['idbuku'];

mygrid1.setColSorting("int,str,str,str,str");

?>

mygrid1.setEditable(false);



mygrid1.enableKeyboardSupport(true);



mygrid1.setSkin("dhx_skyblue");



mygrid1.init();



mygrid1.loadXML("grid_detail_stock_sma_tbl.php?id="+i dbuku);

<script> idbuku=""; var chart2 = new FusionCharts("./chart/FCF_Column3D.swf", "ChartId", "600", "350");

detail_stock_smp.php
chart2.setDataURL("grid_detail_stock_sma.php?id="+idbu ku);

$idbuku=$_GET['idbuku']; ?>

civ



mygrid1.enableKeyboardSupport(true);



mygrid1.setHeader("No.,Kategori,Periode, Nama Buku,Jumlah");



mygrid1.setEditable(false);



cv



mygrid1.setSkin("dhx_skyblue");



mygrid1.init();



mygrid1.loadXML("grid_detail_stock_smp_tbl.php?id="+i dbuku);

<script>

detail_stock_tk.php

idbuku="";


var chart2 = new FusionCharts("./chart/FCF_Column3D.swf", "ChartId", "600", "350");

$idbuku=$_GET['idbuku']; ?>

chart2.setDataURL("grid_detail_stock_smp.php?id="+idbu ku);



chart2.render("chartdivs");
<script>


idbuku=""; var chart2 = new FusionCharts("./chart/FCF_Column3D.swf", "ChartId", "600", "350");



chart2.setDataURL("grid_detail_stock_tk.php?id="+idbuku );

<script>

chart2.render("chartdivs");

mygrid1 = new dhtmlXGridObject('gridbox1');



mygrid1.setImagePath("./libmod/imgs/");


mygrid1.setInitWidths("40,50,80,100,100");



mygrid1.setColTypes("dyn,ro,ro,ro,ro"); mygrid1.setColSorting("int,str,str,str,str");

<script> mygrid1 = new dhtmlXGridObject('gridbox1'); mygrid1.setImagePath("./libmod/imgs/"); mygrid1.setHeader("No.,Kategori,Periode, Nama Buku,Jumlah"); mygrid1.setInitWidths("40,50,80,100,100"); mygrid1.setColTypes("dyn,ro,ro,ro,ro"); mygrid1.setColSorting("int,str,str,str,str"); mygrid1.setEditable(false); mygrid1.enableKeyboardSupport(true);

mygrid1.setSkin("dhx_skyblue"); mygrid1.init(); mygrid1.loadXML("grid_detail_stock_tk_tbl.php?id="+idb uku);



cvi

LAMPIRAN SURAT-SURAT

cvii