[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
simpeg
/
administrator
/
chat_person
/
[
Home
]
File: index.php
<?php require_once("../../lib/konek.php"); require_once("../../lib/konfigurasi_semua.php"); require_once("../../lib/cur.php"); require_once("../../lib/function_tanggal.php"); //konfigurasi nama file $thisForm = "chat_person.php"; $actionForm = "chat_person_e.php"; //konfigurasi tabel utama $tbHeader[0] = "Pilih"; $tbHeaderWidth[0] = "5%"; $tbContent[0] = "pgw_id"; $tbContentAlign[0] = "center"; $tbHeader[1] = "Nama"; $tbHeaderWidth[1] = "45%"; $tbContent[1] = "pgw_nama"; $tbContentAlign[1] = "left"; $tbHeader[2] = "Jabatan"; $tbHeaderWidth[2] = "25%"; $tbContent[2] = "jab_pgw_nama"; $tbContentAlign[2] = "left"; //edit if($_POST["btnEdit"]) { $pgwId = & $_POST["cbDelete"]; if(count($pgwId)>1 || count($pgwId)==0) { $hint = "Silahkan pilih salah satu item"; }else{ $_SESSION["id_pgw_tujuan"]=$pgwId[0]; header("location:main.php?id_pgw_tujuan=".$pgwId[0]); } } //query ke tabel form $sql = "select * from hrd_pgw a left join hrd_jabatan_pegawai b on a.id_jab_pgw = b.jab_pgw_id left join hrd_user_login c on a.pgw_id =c.id_pgw left join hrd_login_jabatan d on c.id_lj = d.lj_id where d.lj_nama <> 'non-Aktif'"; if($_POST["order_by"]) { $sql .= " order by ".$_POST["order_by"]." ".$_POST["sort"]; }else{ $sql .= " order by pgw_nama"; } $QdataForm = mysql_query($sql); //echo $sql; $dir_img = "../../img"; $dir_lib = "../../lib"; ?> <html> <head> <title>My Messenger</title> </head> <!--meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"--> <link rel="stylesheet" type="text/css" href="<?php echo $dir_lib;?>/lib-style.css"> <script language="JavaScript" type="text/javascript" src="<?php echo $dir_lib;?>/ew.js"></script> <script language="JavaScript" type="text/javascript" src="<?php echo $dir_lib;?>/func_curr.js"></script> <script language="JavaScript" type="text/javascript" src="<?php echo $dir_lib;?>/elements.js"></script> <!-- calendar stylesheet --> <link rel="stylesheet" type="text/css" media="all" href="<?php echo $dir_lib;?>/jscalendar/css/calendar-system.css" title="calendar-system" /> <!-- calendar script --> <script type="text/javascript" src="<?php echo $dir_lib;?>/jscalendar/calendar.js"></script> <script type="text/javascript" src="<?php echo $dir_lib;?>/jscalendar/lang/calendar-en.js"></script> <script type="text/javascript" src="<?php echo $dir_lib;?>/jscalendar/calendar-setup.js"></script> <!-- end --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" type="text/css" href="../lib/lib-style.css"> <script language="JavaScript" type="text/javascript" src="../lib/ew.js"></script> <body <?php if($disp_status=="background") {?>background="<?php echo $background;?>"<?php }else{ ?>bgcolor="<?php echo $bgcolor;?>"<?php } ?>> <form name="frmEdit" method="POST" action="<?php $thisForm;?>"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td align="left" bgcolor="#3cb878" height="28" width="28"> <img src="<?php echo $dir_img;?>/RocketDock.png" width="28" height="28" border="0"> </td> <td align="left" valign="middle" bgcolor="#3cb878" height="28"> <font face="Verdana, Arial, Helvetica, sans-serif" size="4" color="white"> <?php echo $header;?></font> </td> </tr> <tr> <td colspan="2"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr background="<?php echo $dir_img;?>/background.jpg" valign="middle" height="50"> <td height="50" width="10"> </td> <td height="50" width="200"> </td> <td height="50" width="52"> </td> <td> </td> <td height="50" width="48" align="center"> </td> <td height="50" width="5"> </td> <td height="50" width="48" align="center"> </td> <td height="50" width="5"> </td> <td height="50" width="48" align="center"> </td> <td height="50" width="5"> </td> <td height="50" width="50" align="center"> <input type="image" name="btnEdit" value="btnEdit" src="<?php echo $dir_img;?>/addedit.png" height="32" width="32"> </td> </tr> <tr bgcolor="silver" valign="middle"> <td width="10"> </td> <td width="200"> </td> <td width="52"> </td> <td> </td> <td width="48" align="center" onmouseover="this.style.backgroundColor='#FF6666'" onmouseout="this.style.backgroundColor='silver'"> </td> <td width="5"> </td> <td width="48" align="center" onmouseover="this.style.backgroundColor='#FF6666'" onmouseout="this.style.backgroundColor='silver'"> </td> <td width="5"> </td> <td width="48" align="center" onmouseover="this.style.backgroundColor='#FF6666'" onmouseout="this.style.backgroundColor='silver'"> </td> <td width="5"> </td> <td width="50" align="center" onmouseover="this.style.backgroundColor='#FF6666'" onmouseout="this.style.backgroundColor='silver'"> <?php echo $defFont;?>Chat</font> </td> </tr> </table> </td> </tr> <tr> <td colspan="2"> <table border="0" cellspacing="1" cellpadding="1" width="100%"> <tr background="<?php echo $dir_img;?>/bg_tr.png"> <td width="<?php echo $tbHeaderWidth[0];?>" align="center"> <input type="checkbox" onClick="EW_selectKey(this,'cbDelete[]');"> </td> <?php for($start=1, $end=count($tbHeader); $start<$end; $start++) {?> <td width="<?php echo $tbHeaderWidth[$start];?>" align="center"> <?php echo $defFont;?><b><?php echo $tbHeader[$start];?></b><?php echo $tFont;?> </td> <?php } ?> </tr> <?php while($dataForm=mysql_fetch_array($QdataForm)) { $sql2 = "select pgw_nama,chat_wkt,chat_ket from chat_person a left join hrd_pgw b on a.id_pgw = b.pgw_id where chat_tgl = '".$skr."' and ((id_pgw = ".$pgw_id." and id_pgw_tujuan = ".$dataForm["pgw_id"].") or (id_pgw_tujuan = ".$pgw_id." and id_pgw = ".$dataForm["pgw_id"].")) order by chat_id desc"; $rs2 = mysql_query($sql2); $cek=mysql_fetch_array($rs2); if($cek) { ?> <tr bgcolor="silver" onmouseover="this.style.backgroundColor='#FF6666'" onmouseout="this.style.backgroundColor='silver'"> <td align="<?php echo $tbContentAlign[0];?>"> <div><input type="checkbox" name="cbDelete[]" value="<?php echo $dataForm[$tbContent[0]];?>"></div> </td> <?php for($start=1, $end=count($tbHeader); $start<$end; $start++) {?> <td valign="top" align="<?php echo $tbContentAlign[$start];?>"> <b><?php echo $defFont;?><?php echo $dataForm[$tbContent[$start]];?> <?php echo $tFont;?></b> </td> <?php } ?> </tr> <?php }else{ ?> <tr bgcolor="silver" onmouseover="this.style.backgroundColor='#FF6666'" onmouseout="this.style.backgroundColor='silver'"> <td align="<?php echo $tbContentAlign[0];?>"> <div><input type="checkbox" name="cbDelete[]" value="<?php echo $dataForm[$tbContent[0]];?>"></div> </td> <?php for($start=1, $end=count($tbHeader); $start<$end; $start++) {?> <td valign="top" align="<?php echo $tbContentAlign[$start];?>"> <?php echo $defFont;?><?php echo $dataForm[$tbContent[$start]];?> <?php echo $tFont;?> </td> <?php } ?> </tr> <?php } ?> <?php } ?> </table> </td> </tr> </table> <i><?php echo $hint;?></i> </form> </body> </html>