<?php cek_err(); cek_suc(); echo "\r\n\t<script>\r\n\t\tdocument.title = 'Lihat Video | DISPLAY PRD'\r\n\t</script>\r\n\t<script>\r\n\t\t\$(document).ready(function(){\r\n\t\t\t\$('.menu10').addClass('sidebar-dash-aktif');\r\n\t\t\t\$('#table').DataTable();\r\n\t\t});\r\n\t</script>\r\n\t\t<div class='title-admin'>\r\n\t\t\t<div style='padding:20px; height:142px; background:rgba(0,0,0,0.4)'>\r\n\t\t\t\t<div style='font-size:70px; margin-right:15px; margin-top:10px;' class='f-putih f-symbol'>i</div>\r\n\t\t\t\t\t<div class='f-putih f24 f-segoe' style='padding:15px; margin-top:50px;'>Lihat Video<br><div style='margin-top:7px;' class='f-segoe f-putih f16'><i>Data untuk melihat daftar Video...</i></div></div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<div class='title-dash'>\r\n\t\t\t<div class='f14'><a href='#' class='link-biru'>DISPLAY PRD</a> <span class='f-none f-symbol1'>×</span> Data</div>\r\n\t\t</div>\r\n\r\n\t\t\t\t<div class='overlay wrapper-load-hapus'>\r\n\t\t\t\t\t<div class='wrapper-auto bg-putih' style='width:340px; margin-top:100px'>\r\n\t\t\t\t\t\t<div class='bg-abu-muda pd15 f-abu m0'><div class='f-symbol1 mr10'>¡</div><span class='f-segoe'>KONFIRMASI PENGHAPUSAN</span><div class='f-right f-symbol1 mr10 pointer' onclick='close_del_conf()'>Î</div></div>\r\n\t\t\t\t\t\t<div class='pd15'>\r\n\t\t\t\t\t\t\t<p class='f-segoe' align='center'>Anda yakin akan menghapus data<br>- <span class='l-nama'></span> -</p>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<form method='POST' id='form_input' action='aksi_hapus_video'>\r\n\t\t\t\t\t\t\t<input type='hidden' name='id' class='l-id' value=''>\r\n\t\t\t\t\t\t\t<input type='submit' name='kirim' value='YA' class='btn-login'>\r\n\t\t\t\t\t\t</form>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\r\n\t\t<div class='wrapper-tengah'>\r\n\t\t\t<div class='wrapper-form' style='width:900px;'>\r\n\t\t\t\t<div class='title-form'><span class='f-symbol mr10'>i</span>DATA FOTO</div>\r\n\t\t\t\t<div class='pd15'>\r\n\t\t\t\t\t<table id='table' class='f-segoe' border='1' style='border:solid 1px rgba(0,0,0,0.3); border-collapse:collapse;'>\r\n\t\t\t\t\t\t<thead class='f12'>\r\n\t\t\t\t\t\t\t<tr class='title-field'>\r\n\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 56px;'>NO</th>\r\n\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 600px;'>JUDUL</th>\r\n\t\t\t\t\t\t\t\t<th width='10px'>AKSI</th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody>"; $no = 1; $q = msq($kon, "SELECT * from t_video order by id_video desc"); echo "\r\n\t\t\t\t\t\t\t<script>\r\n\t\t\t\t\t\t\t\tfunction del_conf(data)\r\n\t\t\t\t\t\t\t\t{\t\r\n\t\t\t\t\t\t\t\t\t\$.ajax({\r\n\t\t\t\t\t\t\t\t\t\turl:'aksi_ambil_data_hapus_video',\r\n\t\t\t\t\t\t\t\t\t\ttype:'POST',\r\n\t\t\t\t\t\t\t\t\t\tdata:'id='+data,\r\n\t\t\t\t\t\t\t\t\t\tdataType:'json',\r\n\t\t\t\t\t\t\t\t\t\tsuccess:function(d){\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.wrapper-load-hapus').fadeIn();\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.l-nama').html(d['nama']);\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.l-id').val(d['id']);\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tfunction close_del_conf()\r\n\t\t\t\t\t\t\t\t{\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\$('.wrapper-load-hapus').fadeOut();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t</script>\r\n\t\t\t\t\t\t\t"; while ($d = mfa($q)) { echo "\r\n\t\t\t\t\t\t\t<tr style='background:rgba(255,255,255,0.4); font-size:12px;'>\r\n\t\t\t\t\t\t\t\t<td align='center'>{$no}</td>\t\r\n\t\t\t\t\t\t\t\t<td>{$d['judul']}</td>\r\n\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t<div class='wrapper-auto' style='width:115px;'>\r\n\t\t\t\t\t\t\t\t\t\t<div class='t-center pointer link-hapus f-symbol1' onclick='del_conf({$d['id_video']})' style='margin-right:10px; background:red; padding:5px; border-radius:3px; position:relative; color:white;'>Í<span class='f-segoe' style='margin-left:5px;'>Hapus</span></div>\r\n\t\t\t\t\t\t\t\t\t\t<a href='{$_SESSION['level']}/edit_video_{$d['id_video']}' class='t-center pointer link-hapus f-symbol1' style='position:relative; background:blue; padding:5px; border-radius:3px; color:white;'>?<span class='f-segoe' style='margin-left:5px;'>Edit</span></a>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t</tr>"; $no++; } echo "\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\t\t\r\n\t\t\t</div>\t\t\r\n\t\t</div>\t\t\r\n\t\t\r\n\t"; unset($_SESSION['suc']); unset($_SESSION['err']); ?>
height: 500, play: { active: true, auto: true, interval: 4000, swap: true, } }); }); </script> <div style='position:relative; margin-top:10px; z-index:1;'> <div class='left-ribbon' style='position:relative !important; left:0; float:left;'></div> <div class='bg-left-ribbon f-left' style='width:300px;'> <div class='f-sambung f-putih' style='padding:2px 5px; font-size:35px;'>Info</div> </div> <div class='left-ribbon rotate-180'style='margin-top:-20px; margin-left:38px; position:relative !important; float:left;'></div> <div class='cb'></div> </div> <div style='background:white; position:relative; border:solid 1px #ccc; width:93%; margin-top:-50px; margin-left:40px; height:auto; padding-top:40px; padding-left:10px; padding-right:15px; padding-bottom:15px'> <a href='display_awal'><div class='close-gal' style='z-index:1;background:url(_asset/_images/ribbon-kembali.png)no-repeat; width:130px; height:61px; background-size:130px; position:absolute; top:5; right:-10;'></div></a> <div class="container" style='margin-top:10px;'> <div id="slides"> <?php $q_info = msq($kon, "select * from t_info order by id_info desc"); while ($d_info = mfa($q_info)) { echo "<img src='_asset/_images/_info/{$d_info['foto']}'>"; } ?> </div> </div> </div>
<?php cek_err(); cek_suc(); $q_user = msq($kon, "select * from t_admin where username='******'username']}'"); $d_user = mfa($q_user); echo "\r\n\t<script>\r\n\t\tdocument.title = 'Edit Password | DISPLAY PRD'\r\n\t</script>\r\n\t\r\n\t\t<div class='title-admin'>\r\n\t\t\t<div style='padding:20px; height:142px; background:rgba(0,0,0,0.4)'>\r\n\t\t\t\t<div style='font-size:70px; margin-right:15px; margin-top:10px;' class='f-putih f-symbol'>?</div>\r\n\t\t\t\t\t<div class='f-putih f24 f-segoe' style='padding:15px; margin-top:50px;'>Edit Password<br><div style='margin-top:7px;' class='f-segoe f-putih f16'><i>Form untuk mengedit password...</i></div></div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<div class='title-dash'>\r\n\t\t\t<div class='f14'><a href='#' class='link-biru'>SCHOOL FRENZY</a> <span class='f-none f-symbol1'>×</span> Form</div>\r\n\t\t</div>\r\n\t\t\t\t\t\t\r\n\t\t<div class='wrapper-tengah'>\r\n\t\t\t<div class='wrapper-form' style='width:500px;'>\r\n\t\t\t\t<div class='title-form'><span class='f-symbol mr10'>?</span>EDIT PASSWORD</div>\t\t\r\n\t\t\t\t<div class='pd15'>\r\n\t\t\t\t\t<form method='POST' action='aksi_edit_password' enctype='multipart/form-data'>\r\n\t\t\t\t\t\t<div class='form-grup'>\r\n\t\t\t\t\t\t\t<div class='label-form'>USERNAME</div>\r\n\t\t\t\t\t\t\t<input type='text' class='form transi-3' name='username' required readonly value='{$d_user['username']}'>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class='form-grup'>\r\n\t\t\t\t\t\t\t<div class='label-form'>PASSWORD BARU</div>\r\n\t\t\t\t\t\t\t<input type='password' class='form transi-3' name='password' required>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class='form-grup'>\r\n\t\t\t\t\t\t\t<div class='label-form'>ULANGI PASSWORD BARU</div>\r\n\t\t\t\t\t\t\t<input type='password' class='form transi-3' name='password_ulangi' required>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<button class='bkirim transi-3' value='kirim' name='kirim'><span class='f-symbol1 f-none' style='margin-right:20px;'>?</span>EDIT PASSWORD</button>\r\n\t\t\t\t\t</form>\r\n\t\t\t\t</div>\t\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t\t\r\n\t"; unset($_SESSION['suc']); unset($_SESSION['err']);
<?php cek_err(); cek_suc(); echo "\r\n\t<script>\r\n\t\tdocument.title = 'Lihat Mesin | DISPLAY PRD'\r\n\t</script>\r\n\t<script>\r\n\t\t\$(document).ready(function(){\r\n\t\t\t\$('.menu7').addClass('sidebar-dash-aktif');\r\n\t\t\t\$('#table').DataTable();\r\n\t\t});\r\n\t</script>\r\n\t\t<div class='title-admin'>\r\n\t\t\t<div style='padding:20px; height:142px; background:rgba(0,0,0,0.4)'>\r\n\t\t\t\t<div style='font-size:70px; margin-right:15px; margin-top:10px;' class='f-putih f-symbol'>i</div>\r\n\t\t\t\t\t<div class='f-putih f24 f-segoe' style='padding:15px; margin-top:50px;'>Lihat Mesin<br><div style='margin-top:7px;' class='f-segoe f-putih f16'><i>Data untuk melihat daftar mesin di PRD DEPT...</i></div></div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<div class='title-dash'>\r\n\t\t\t<div class='f14'><a href='#' class='link-biru'>DISPLAY PRD</a> <span class='f-none f-symbol1'>×</span> Data</div>\r\n\t\t</div>\r\n\r\n\t\t\t\t<div class='overlay wrapper-load-hapus'>\r\n\t\t\t\t\t<div class='wrapper-auto bg-putih' style='width:340px; margin-top:100px'>\r\n\t\t\t\t\t\t<div class='bg-abu-muda pd15 f-abu m0'><div class='f-symbol1 mr10'>¡</div><span class='f-segoe'>KONFIRMASI PENGHAPUSAN</span><div class='f-right f-symbol1 mr10 pointer' onclick='close_del_conf()'>Î</div></div>\r\n\t\t\t\t\t\t<div class='pd15'>\r\n\t\t\t\t\t\t\t<p class='f-segoe' align='center'>Anda yakin akan menghapus data<br>- <span class='l-nama'></span> -</p>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<form method='POST' id='form_input' action='aksi_hapus_mesin'>\r\n\t\t\t\t\t\t\t<input type='hidden' name='id' class='l-id' value=''>\r\n\t\t\t\t\t\t\t<input type='submit' name='kirim' value='YA' class='btn-login'>\r\n\t\t\t\t\t\t</form>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\r\n\t\t<div class='wrapper-tengah'>\r\n\t\t\t<div class='wrapper-form' style='width:900px;'>\r\n\t\t\t\t<div class='title-form'><span class='f-symbol mr10'>i</span>DATA MESIN</div>\r\n\t\t\t\t<div class='pd15'>\r\n\t\t\t\t\t<table id='table' class='f-segoe' border='1' style='border:solid 1px rgba(0,0,0,0.3); border-collapse:collapse;'>\r\n\t\t\t\t\t\t<thead class='f12'>\r\n\t\t\t\t\t\t\t<tr class='title-field'>\r\n\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 56px;'>NO</th>\r\n\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 306px;'>NAMA MESIN</th>\r\n\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 306px;'>BAGIAN</th>\r\n\t\t\t\t\t\t\t\t<th width='50px'>AKSI</th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody>"; $no = 1; $q = msq($kon, "SELECT *, m.nama as nama_mesin, b.nama as nama_bagian from t_mesin m inner join t_bagian b on m.id_bagian=b.id_bagian order by nama_mesin asc"); echo "\r\n\t\t\t\t\t\t\t<script>\r\n\t\t\t\t\t\t\t\tfunction del_conf(data)\r\n\t\t\t\t\t\t\t\t{\t\r\n\t\t\t\t\t\t\t\t\t\$.ajax({\r\n\t\t\t\t\t\t\t\t\t\turl:'aksi_ambil_data_hapus_mesin',\r\n\t\t\t\t\t\t\t\t\t\ttype:'POST',\r\n\t\t\t\t\t\t\t\t\t\tdata:'id='+data,\r\n\t\t\t\t\t\t\t\t\t\tdataType:'json',\r\n\t\t\t\t\t\t\t\t\t\tsuccess:function(d){\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.wrapper-load-hapus').fadeIn();\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.l-nama').html(d['nama']);\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.l-id').val(d['id']);\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tfunction close_del_conf()\r\n\t\t\t\t\t\t\t\t{\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\$('.wrapper-load-hapus').fadeOut();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t</script>\r\n\t\t\t\t\t\t\t"; while ($d = mfa($q)) { echo "\r\n\t\t\t\t\t\t\t<tr style='background:rgba(255,255,255,0.4); font-size:12px;'>\r\n\t\t\t\t\t\t\t\t<td align='center'>{$no}</td>\t\r\n\t\t\t\t\t\t\t\t<td>{$d['nama_mesin']}</td>\r\n\t\t\t\t\t\t\t\t<td>{$d['nama_bagian']}</td>\r\n\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t<div class='wrapper-auto' style='width:115px;'>\r\n\t\t\t\t\t\t\t\t\t\t<div class='t-center pointer link-hapus f-symbol1' onclick='del_conf({$d['id_mesin']})' style='margin-right:10px; background:red; padding:5px; border-radius:3px; position:relative; color:white;'>Í<span class='f-segoe' style='margin-left:5px;'>Hapus</span></div>\r\n\t\t\t\t\t\t\t\t\t\t<a href='{$_SESSION['level']}/edit_mesin_{$d['id_mesin']}' class='t-center pointer link-hapus f-symbol1' style='position:relative; background:blue; padding:5px; border-radius:3px; color:white;'>?<span class='f-segoe' style='margin-left:5px;'>Edit</span></a>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>"; $no++; } echo "\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\t\t\r\n\t\t\t</div>\t\t\r\n\t\t</div>\t\t\r\n\t\t\r\n\t"; unset($_SESSION['suc']); unset($_SESSION['err']); ?>
<?if ($ss_prmev[ro]=="M") { // bouton ajouter en modif ?> <a href="#" onclick="javascript:popup('popup_fichpext.php?TE=A');" title="Ajouter une personne"><img src="../images/ajout_pers.gif" border="0" width="70" height="11"></a> <a href="#" onclick="javascript:popup('popup_fichste.php?TE=A');" title="Ajouter une structure"><img src="../images/ajout_struct.gif" border="0" width="70" height="11"></a> <? } if ($nbrows>=$NbLigFHB) { // affiche flèche vers le bas ?><a href="#bas"><img src="../../../intranet/partage/IMAGES/bas.gif" border="0" title="vers le bas et la barre de navigation"></a> <? } ?> <br><br></td></tr> <? CNPYAL("PERS_EXT","PEX_COSOCIE"); // instancie nvel objet $CIL[NomChamp] CNPYAL("PERS_EXT","PEX_FONCTION"); // instancie nvel objet $CIL[NomChamp] $req=msq("SELECT $select FROM $from $where $orderb $limitc"); if ($debug) echo ("requete: SELECT $select FROM $from $where $orderb $limitc<br>\n"); $nolig=0; while ($tbValChp=mysql_fetch_array($req)) { $nolig++; // booleen affichage des infos liste rouge ou pas $booldlr=($ss_InfoUser[COPROFIL]!=$COPROANO || $tbValChp[PEX_REDLIST]=="N"); echo "<tr><td><b>".($nolig + $FirstPers)." .</b>"; if ($ss_prmev[ro]=="M") echo "<a href=\"#\" onclick=\"javascript:popup('del_pext.php?NUPERS=$tbValChp[PEX_NUPERS]');\" title=\"Supprimer cette personne\"><IMG SRC=\"../images/del.gif\" BORDER=\"0\"></a>"; echo "</td>"; echo "<td align=\"left\">"; $bulle="Cliquez pour ".($ss_prmev[ro]=="M" ? "modifier" : "visualiser")." les infos détaillées sur cette personne"; $adpop="popup_fichpext.php"; echo ($booldlr ? "<a href=\"#\" onclick=\"javascript:popup('$adpop?NUPERS=$tbValChp[PEX_NUPERS]');\" title=\"$bulle\">":"")."<span class=\"chapitrered12px\">$tbValChp[PEX_LMTITREPER] $tbValChp[PEX_LLPRENOMPERS] $tbValChp[PEX_LLNOMPERS]</span>".($booldlr ? "</a>":"")."\n"; if ($ss_InfoUser[COPROFIL]=="SADMIN") echo "<span class=\"legendes9px\"> (".$tbValChp[PEX_NUPERS].")</span>";
$set= substr($set,0,-2); // enlève la dernière virgule et esp en trop à la fin $key="SOC_NUSOCIE='$SOC_NUSOCIE'"; $where=" where ".$key; if ($modif==1) // Si on vient d'une édition { $strqaj="UPDATE $NM_TABLE SET $set $where"; } else if ($modif==-1) // // Si on vient d'une suppression { $strqaj="DELETE FROM $NM_TABLE $where"; } else // Si on vient de nv enregistrement { // Ajout dans la table Mysql $strqaj="INSERT INTO $NM_TABLE SET $set"; } msq($strqaj); echo "requete sql ajout/modif infos société: <BR> $strqaj <BR><BR>"; ?> <script language="javascript"> self.close(); </script> </body> </html>
<?php cek_err(); cek_suc(); echo "\r\n\t<script>\r\n\t\tdocument.title = 'Tambah Mesin | DISPLAY PRD'\r\n\t</script>\r\n\t<script>\r\n\t\t\$(document).ready(function(){\r\n\t\t\t\$('.menu7').addClass('sidebar-dash-aktif');\r\n\t\t});\r\n\t</script>\r\n\t\t<div class='title-admin'>\r\n\t\t\t<div style='padding:20px; height:142px; background:rgba(0,0,0,0.4)'>\r\n\t\t\t\t<div style='font-size:70px; margin-right:15px; margin-top:10px;' class='f-putih f-symbol'>?</div>\r\n\t\t\t\t\t<div class='f-putih f24 f-segoe' style='padding:15px; margin-top:50px;'>Tambah Mesin<br><div style='margin-top:7px;' class='f-segoe f-putih f16'><i>Form untuk menambahkan mesin...</i></div></div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<div class='title-dash'>\r\n\t\t\t<div class='f14'><a href='#' class='link-biru'>DISPLAY PRD</a> <span class='f-none f-symbol1'>×</span> Form</div>\r\n\t\t</div>\r\n\t\t\r\n\t\t<div class='wrapper-tengah'>\r\n\t\t\t<div class='wrapper-form' style='width:500px;'>\r\n\t\t\t<div class='title-form'><span class='f-symbol mr10'>?</span>TAMBAH MESIN</div>\r\n\t\t\t\t<div class='pd15'>\r\n\t\t\t\t\t<form method='POST' action='aksi_tambah_mesin' id='form_input'>\r\n\t\t\t\t\t\t<div class='form-grup'>\r\n\t\t\t\t\t\t\t<div class='label-form'>NAMA MESIN</div>\r\n\t\t\t\t\t\t\t<input type='text' class='form transi-3' name='nama_mesin' autocomplete='off'>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class='form-grup'>\r\n\t\t\t\t\t\t\t<div class='label-form'>NAMA BAGIAN</div>\r\n\t\t\t\t\t\t\t<select class='form transi-3' name='id_bagian'>\r\n\t\t\t\t\t\t\t\t"; $q_bag = msq($kon, "SELECT * FROM t_bagian ORDER BY nama ASC"); while ($d_bag = mfa($q_bag)) { echo "<option value='{$d_bag['id_bagian']}'>{$d_bag['nama']}</option>"; } echo "\t\t\t\t\t\r\n\t\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<button class='bkirim transi-3' value='kirim' name='kirim'><span class='f-symbol1 f-none' style='margin-right:20px;'>?</span>TAMBAH MESIN</button>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t</form>\r\n\t\t\t\t</div>\t\t\r\n\t\t\t</div>\t\t\r\n\t\t</div>\t\t\r\n\t\t\r\n\t"; unset($_SESSION['suc']); unset($_SESSION['err']);
if ($CIL[PER_TOPMAIL]->ValChp=="O" && $CIL[PER_MAILPERS]->ValChp!="") EchoLig("PER_MAILPERS"); } else { // en modif, affiche le mail et son activation éditable seulement pour les externes // seule l'admin de mail peut le changer pour les internes // ceci est réalisé sur une autre page // $FTE=($ss_prmev[typers]=="E" ? $TypEdit : "C"); $FTE="C"; // pour les externes, c'est maintenant fait ailleurs EchoLig("PER_TOPMAIL",$FTE); EchoLig("PER_MAILPERS",$FTE); EchoLig("PER_EXPEXT",$FTE); EchoLig("PER_LCIDPERS",$FTE); if ($FTE=="C") { // en modif interne echo "<tr><td colspan=\"2\" class=\"legendered9px\">"; echo "<U>N.B.:</U> Seul le(s) administrateur(s) de mail <b>"; $rqrm=msq("select PER_LLPRENOMPERS,PER_LLNOMPERS,PER_MAILPERS from PERSONNE LEFT JOIN ENV_POSSEDE ON PER_NUPERS=POS_NUPERS WHERE POS_COPROFIL='ML_ADM' OR POS_COPROFIL='SADMIN'"); while ($rwrm=mysql_fetch_array($rqrm)) { echo "<a href=\"mailto:".$rwrm[PER_MAILPERS]."?subject=Activation/modification de mail\">".$rwrm[PER_LLPRENOMPERS]." ".$rwrm[PER_LLNOMPERS]."</A>, "; } echo "</b>sont habilités à gérer les adresses mails internes ainsi que l'identifiant et l'exportation des coordonnées. Contactez-les pour ce faire.</td></tr>"; } } //liste rouge qu'en édition if ($TypEdit!="C") EchoLig("PER_REDLIST"); // affichage unité de rattachement et unité géographique if ($TypEditRP!="C") { // LD en edition EchoLig("DRH_NUUNITE",$TypEditRP); EchoLig("DRH_NUGEOPOS",$TypEditRP); EchoLig("DRH_NURESADM",$TypEditRP);
} echo "\r\n\t\t\t\t\t\t\t\t\t<tr style='font-size:12px; background:{$bg};'>\r\n\t\t\t\t\t\t\t\t\t\t<td align='center'><input type='checkbox' name='nik[]' value='{$d['nik']}'></td>\t\r\n\t\t\t\t\t\t\t\t\t\t<td>{$d['nik']}</td>\r\n\t\t\t\t\t\t\t\t\t\t<td>{$d['nama_karyawan']}</td>\r\n\t\t\t\t\t\t\t\t\t\t<td>{$tgs}</\ttd>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t<div class='psn'></div>\r\n\t\t\t\t\t\t\t\t\t</tr>"; $no++; } echo "\r\n\t\t\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t"; } $q_mes = msq($kon, "SELECT\r\n\t\t\t\t\t\t\t\t\t\tDISTINCT\r\n\t\t\t\t\t\t\t\t\t\tm.*\r\n\t\t\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\t\t\tt_mesin m\r\n\t\t\t\t\t\t\t\t\tleft join t_karyawan k\r\n\t\t\t\t\t\t\t\t\ton m.id_mesin=k.id_mesin\r\n\t\t\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\t\t\tk.id_mesin is not null\r\n\t\t\t\t\t\t\t\t\t\tAND\r\n\t\t\t\t\t\t\t\t\t\tm.id_mesin NOT IN (\r\n\t\t\t\t\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\t\t\t\t\tid_mesin_pack\r\n\t\t\t\t\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\t\t\t\t\tt_mesin_detail\r\n\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\tAND m.id_mesin NOT IN (\r\n\t\t\t\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\t\t\t\tid_mesin_fill\r\n\t\t\t\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\t\t\t\tt_mesin_detail\r\n\t\t\t\t\t\t\t\t\t)"); while ($d_mes = mfa($q_mes)) { echo "\r\n\t\t\t\t\t<div style='width:100%; border:solid 1px #ccc; margin-bottom:10px;'>\r\n\t\t\t\t\t\t<div style='background:#eee; border-bottom: solid 1px #ccc; padding:15px;' class='tbl-mesin mesin-{$d_mes['id_mesin']} pointer' onclick='show_mesin({$d_mes['id_mesin']})'>{$d_mes['nama']}<div class='f-right f-symbol1'>></div></div>\r\n\t\t\t\t\t\t\t<div class='wrap-mesin-{$d_mes['id_mesin']}' style='display:none;'>\r\n\t\t\t\t\t\t\t<div class='form-grup' style='margin:10px;'>\r\n\t\t\t\t\t\t\t\t<div class='label-form'>NAMA SHIFT</div>\r\n\t\t\t\t\t\t\t\t<select class='form transi-3' name='id_shift_{$d_mes['id_mesin']}'>\r\n\t\t\t\t\t\t\t\t\t<option>PILIH SHIFT</option>"; $q_shift = msq($kon, "SELECT * FROM t_shift ORDER BY nama ASC"); while ($d_shift = mfa($q_shift)) { echo "<option value='{$d_shift['id_shift']}'>{$d_shift['nama']} ( {$d_shift['wkt_mulai']} - {$d_shift['wkt_akhir']} )</option>"; } echo "\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div style='height:200px; overflow-y:scroll;' class='ov-scr'>\r\n\t\t\t\t\t\t\t<table class='table' width='96%'' class='f-segoe hover stripe' border='1' style='margin-left:10px !important; margin:10px !important; border:solid 1px rgba(0,0,0,0.3); border-collapse:collapse;'>\r\n\t\t\t\t\t\t\t\t<thead class='f12'>\r\n\t\t\t\t\t\t\t\t\t<tr class='title-field'>\r\n\t\t\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 56px;'>PILIH</th>\r\n\t\t\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 56px;'>NIK</th>\r\n\t\t\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 56px;'>NAMA</th>\r\n\t\t\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 156px;'>TUGAS</th>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t\t\t<tbody>"; $no = 1; $q = msq($kon, "SELECT *, t.tugas AS nama_tugas, k.nama AS nama_karyawan, b.nama AS nama_bagian,m.nama AS nama_mesin FROM t_karyawan k\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tINNER JOIN t_bagian b ON k.id_bagian=b.id_bagian\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tINNER JOIN t_mesin m ON m.id_mesin=k.id_mesin\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tINNER JOIN t_tugas t ON k.tugas=t.id_tugas\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE k.id_mesin={$d_mes['id_mesin']} order by m.id_mesin"); echo "\r\n\t\t\t\t\t\t\t\t\t<script>\r\n\t\t\t\t\t\t\t\t\t\tfunction del_conf(data)\r\n\t\t\t\t\t\t\t\t\t\t{\t\r\n\t\t\t\t\t\t\t\t\t\t\t\$.ajax({\r\n\t\t\t\t\t\t\t\t\t\t\t\turl:'aksi_ambil_data_hapus',\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype:'POST',\r\n\t\t\t\t\t\t\t\t\t\t\t\tdata:'nik='+data,\r\n\t\t\t\t\t\t\t\t\t\t\t\tdataType:'json',\r\n\t\t\t\t\t\t\t\t\t\t\t\tsuccess:function(d){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\$('.wrapper-load-hapus').fadeIn();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\$('.l-nama').html(d['nama']);\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\$('.l-id').val(d['id']);\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tfunction close_del_conf()\r\n\t\t\t\t\t\t\t\t\t\t{\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.wrapper-load-hapus').fadeOut();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t// function cek_penyelia(nik)\r\n\t\t\t\t\t\t\t\t\t\t// {\r\n\t\t\t\t\t\t\t\t\t\t// \tif(\$('#id_nik_'+nik).is(':checked'))\r\n\t\t\t\t\t\t\t\t\t\t// \t{\r\n\t\t\t\t\t\t\t\t\t\t// \t\t\$.ajax({\r\n\t\t\t\t\t\t\t\t\t\t// \t\t\turl:'aksi_cek_penyelia',\r\n\t\t\t\t\t\t\t\t\t\t// \t\t\ttype:'POST',\r\n\t\t\t\t\t\t\t\t\t\t// \t\t\tdata:'nik='+nik,\r\n\t\t\t\t\t\t\t\t\t\t// \t\t\tdataType: 'json',\r\n\t\t\t\t\t\t\t\t\t\t// \t\t\tsuccess: function(d){\r\n\t\t\t\t\t\t\t\t\t\t// \t\t\t\tif(d['hasil']=='1')\r\n\t\t\t\t\t\t\t\t\t\t// \t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t// \t\t\t\t\t\$('#in_id').val(nik);\r\n\t\t\t\t\t\t\t\t\t\t// \t\t\t\t\t\$('.wrapper-cek-penyelia').fadeIn();\r\n\t\t\t\t\t\t\t\t\t\t// \t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t// \t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t// \t\t});\r\n\t\t\t\t\t\t\t\t\t\t// \t}\r\n\t\t\t\t\t\t\t\t\t\t// \treturn false;\r\n\t\t\t\t\t\t\t\t\t\t// }\r\n\t\t\t\t\t\t\t\t\t</script>\r\n\t\t\t\t\t\t\t\t\t"; while ($d = mfa($q)) { if ($d['id_bagian'] == '3') { $bg = '#ddd'; } else { $bg = ''; } if ($d['tugas'] == 'Operator') { $tgs = $d['tugas'] . " " . $d['nama_bagian']; } else { $tgs = $d['tugas']; } echo "\r\n\t\t\t\t\t\t\t\t\t<tr style='font-size:12px; background:{$bg};'>\r\n\t\t\t\t\t\t\t\t\t\t<td align='center'><input type='checkbox' name='nik[]' value='{$d['nik']}'></td>\t\r\n\t\t\t\t\t\t\t\t\t\t<td>{$d['nik']}</td>\r\n\t\t\t\t\t\t\t\t\t\t<td>{$d['nama_karyawan']}</td>\r\n\t\t\t\t\t\t\t\t\t\t<td>{$tgs}</\ttd>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t<div class='psn'></div>\r\n\t\t\t\t\t\t\t\t\t</tr>"; $no++; }
<?php cek_err(); cek_suc(); echo "\r\n\t<script>\r\n\t\tdocument.title = 'Lihat JPM | DISPLAY PRD'\r\n\t</script>\r\n\t<script>\r\n\t\t\$(document).ready(function(){\r\n\t\t\t\$('.menu2').addClass('sidebar-dash-aktif');\r\n\t\t\t\$('#table').DataTable();\r\n\t\t});\r\n\t</script>\r\n\t\t<div class='title-admin'>\r\n\t\t\t<div style='padding:20px; height:142px; background:rgba(0,0,0,0.4)'>\r\n\t\t\t\t<div style='font-size:70px; margin-right:15px; margin-top:10px;' class='f-putih f-symbol'>i</div>\r\n\t\t\t\t\t<div class='f-putih f24 f-segoe' style='padding:15px; margin-top:50px;'>Lihat jpm<br><div style='margin-top:7px;' class='f-segoe f-putih f16'><i>Form untuk melihat daftar jpm di PRD DEPT...</i></div></div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<div class='title-dash'>\r\n\t\t\t<div class='f14'><a href='#' class='link-biru'>DISPLAY PRD</a> <span class='f-none f-symbol1'>×</span> Form</div>\r\n\t\t</div>\r\n\t\t\r\n\r\n\t\t\t\t<div class='overlay wrapper-load-hapus'>\r\n\t\t\t\t\t<div class='wrapper-auto bg-putih' style='width:340px; margin-top:100px'>\r\n\t\t\t\t\t\t<div class='bg-abu-muda pd15 f-abu m0'><div class='f-symbol1 mr10'>¡</div><span class='f-segoe'>KONFIRMASI PENGHAPUSAN</span><div class='f-right f-symbol1 mr10 pointer' onclick='close_del_conf()'>Î</div></div>\r\n\t\t\t\t\t\t<div class='pd15'>\r\n\t\t\t\t\t\t\t<p class='f-segoe' align='center'>Anda yakin akan menghapus data<br>- <span class='l-nama'></span> -</p>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<form method='POST' id='form_input' action='aksi_hapus_jpm'>\r\n\t\t\t\t\t\t\t<input type='hidden' name='id' class='l-id' value=''>\r\n\t\t\t\t\t\t\t<input type='submit' name='kirim' value='YA' class='btn-login'>\r\n\t\t\t\t\t\t</form>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\r\n\t\t<div class='wrapper-tengah'>\r\n\t\t\t<div class='wrapper-form' style='width:900px;'>\r\n\t\t\t\t<div class='title-form'><span class='f-symbol mr10'>i</span>DATA JPM</div>\r\n\t\t\t\t<div class='pd15'>\r\n\t\t\t\t\t<table id='table' class='f-segoe' border='1' style='border:solid 1px rgba(0,0,0,0.3); border-collapse:collapse;'>\r\n\t\t\t\t\t\t<thead class='f12'>\r\n\t\t\t\t\t\t\t<tr class='title-field'>\r\n\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 56px;'>NO</th>\r\n\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 56px;'>TANGGAL MULAI</th>\r\n\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 56px;'>TANGGAL AKHIR</th>\r\n\t\t\t\t\t\t\t\t<th width='50px'>AKSI</th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody>"; $no = 1; $q = msq($kon, "SELECT * FROM t_jpm order by id_jpm desc"); echo "\r\n\t\t\t\t\t\t\t<script>\r\n\t\t\t\t\t\t\t\tfunction del_conf(data)\r\n\t\t\t\t\t\t\t\t{\t\r\n\t\t\t\t\t\t\t\t\t\$.ajax({\r\n\t\t\t\t\t\t\t\t\t\turl:'aksi_ambil_data_hapus_jpm',\r\n\t\t\t\t\t\t\t\t\t\ttype:'POST',\r\n\t\t\t\t\t\t\t\t\t\tdata:'id='+data,\r\n\t\t\t\t\t\t\t\t\t\tdataType:'json',\r\n\t\t\t\t\t\t\t\t\t\tsuccess:function(d){\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.wrapper-load-hapus').fadeIn();\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.l-nama').html(d['nama']);\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.l-id').val(d['id']);\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tfunction close_del_conf()\r\n\t\t\t\t\t\t\t\t{\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\$('.wrapper-load-hapus').fadeOut();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t</script>\r\n\t\t\t\t\t\t\t"; while ($d = mfa($q)) { echo "\r\n\t\t\t\t\t\t\t<tr style='background:rgba(255,255,255,0.4); font-size:12px;'>\r\n\t\t\t\t\t\t\t\t<td align='center'>{$no}</td>\r\n\t\t\t\t\t\t\t\t<td>{$d['tgl_mulai']}</td>\r\n\t\t\t\t\t\t\t\t<td>{$d['tgl_akhir']}</td>\r\n\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t<div class='wrapper-auto' style='width:115px;'>\r\n\t\t\t\t\t\t\t\t\t\t<div class='t-center pointer link-hapus f-symbol1' onclick='del_conf({$d['id_jpm']})' style='margin-right:10px; background:red; padding:5px; border-radius:3px; position:relative; color:white;'>Í<span class='f-segoe' style='margin-left:5px;'>Hapus</span></div>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t</tr>"; $no++; } echo "\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\t\t\r\n\t\t\t</div>\t\t\r\n\t\t</div>\t\t\r\n\t\t\r\n\t"; unset($_SESSION['suc']); unset($_SESSION['err']); ?>
$('.left-wrapper').css({ "margin-left":"-20%" }); $('#t-menu').text('Tampilkan Menu'); a=0; } }); }); </script> <div class='show-menu animated bounceInLeft' style='background:#48cb86; padding:15px; color:white; float:left; position:absolute; left:10; top:10; cursor:pointer;'><div class='f-symbol' style=''>C</div> <span id='t-menu'>Tampilkan Menu</span></div> <?php $ip = mfa(msq($kon, "select ip_xl from t_web")); ?> <div class='animated slideInUp'> <div style='position:relative; margin-top:10px;'> <div class='left-ribbon' style='position:relative !important; left:0; float:left;'></div> <div class='bg-left-ribbon f-left' style='width:300px;'> <div class='f-sambung f-putih' style='padding:2px 5px; font-size:35px;'>XL 800</div> </div> <div class='left-ribbon rotate-180'style='margin-top:-20px; margin-left:38px; position:relative !important; float:left;''></div> <div class='cb'></div> </div> <div style='background:white; width:990px; margin-top:-50px; margin-left:40px; height:450px;'> <div style='margin:10px; width:990px; height:400px; overflow:hidden;'> <object style='margin-left:-265px;' type='text/html' data='<?php echo "http://" . $ip['ip_xl'];
"width":"80%" }); }); </script> <script src="_asset/_js/sliderengine/amazingslider.js"></script> <script src="_asset/_js/sliderengine/initslider-1.js"></script> <div style='position:relative; margin-top:10px; z-index:1;'> <div class='left-ribbon' style='position:relative !important; left:0; float:left;'></div> <div class='bg-left-ribbon f-left' style='width:300px;'> <div class='f-sambung f-putih' style='padding:2px 5px; font-size:35px;'>Galeri Foto</div> </div> <div class='left-ribbon rotate-180'style='margin-top:-20px; margin-left:38px; position:relative !important; float:left;''></div> <div class='cb'></div> </div> <div style='background:white; position:relative; width:950px; margin-top:-50px; margin-left:40px; height:auto; padding-top:40px; padding-left:15px; padding-right:15px; padding-bottom:15px'> <a href='display_awal'><div class='close-gal' style='z-index:1;background:url(_asset/_images/ribbon-kembali.png)no-repeat; width:130px; height:61px; background-size:130px; position:absolute; top:5; right:-10;'></div></a> <div style="margin:30px auto;max-width:950px;"> <div id="amazingslider-1" style="display:block;position:relative;margin:16px auto 32px;"> <ul class="amazingslider-slides" style="display:none;"> <?php $q = msq($kon, "select * from t_foto order by id_foto desc"); while ($d = mfa($q)) { echo "<li><img src='_asset/_images/_foto/{$d['foto']}' alt='{$d['judul']}' /></li>"; } ?> </ul> </div> </div> </div>
function modpages($uid) { $rsp = msq("select uid from pages where pid={$uid}"); while ($resp = mysql_fetch_row($rsp)) { $this->uidttc++; msq("update pages set doktype=1 where uid=" . $resp[0]); msq("INSERT INTO `tt_content` VALUES (" . $this->uidttc . ", " . $resp[0] . ", 1139397467, 1139397467, 0, 256, 'list', 'Règlementation', '', '', '', 0, 8, '', 0, 0, '', 0, 0, 0, '', 0x33323137, 0, 0, 0, '', 0, 0, 0, '', '', '', 0, 0, 0, 0, '0', '', 0, 0, 0, 0, '0', 'vm19_hn_reglementation_pi1', 0, 0, 0, 0, '', 1, 0, 0, 0, 0, '0', '', 0, 0, 0, 0, 0, 0, 0, '', 0, 0, '', '', 0, 0x613a32313a7b733a353a224354797065223b4e3b733a31363a227379735f6c616e67756167655f756964223b4e3b733a363a22636f6c506f73223b4e3b733a31313a2273706163654265666f7265223b4e3b733a31303a2273706163654166746572223b4e3b733a31333a2273656374696f6e5f6672616d65223b4e3b733a31323a2273656374696f6e496e646578223b4e3b733a393a226c696e6b546f546f70223b4e3b733a363a22686561646572223b4e3b733a31353a226865616465725f706f736974696f6e223b4e3b733a31333a226865616465725f6c61796f7574223b4e3b733a31313a226865616465725f6c696e6b223b4e3b733a343a2264617465223b4e3b733a393a226c6973745f74797065223b4e3b733a31303a2273656c6563745f6b6579223b4e3b733a353a227061676573223b4e3b733a393a22726563757273697665223b4e3b733a363a2268696464656e223b4e3b733a393a22737461727474696d65223b4e3b733a373a22656e6474696d65223b4e3b733a383a2266655f67726f7570223b4e3b7d, '')"); $this->modpages($resp[0]); } return ''; }
<? require("../html/infos.php"); InitPage(true); // initialise en envoyant les balises de début <HTML> etc ... // Moulinette qui rajoute des , en début et fin de champs pseudo set $TABLE="CORPS"; $CHP_SET="COR_LLCORPS"; $CHP_CLE="COR_COCORPS"; $rpmoul=msq("select * from $TABLE"); while ($rw=mysql_fetch_array($rpmoul)) { $rw[$CHP_SET]=addslashes(ucfirst($rw[$CHP_SET])); msq("update $TABLE set $CHP_SET='$rw[$CHP_SET]' where $CHP_CLE='$rw[$CHP_CLE]'"); echo $rw[$CHP_SET]."<BR>"; } ?> </body> </html>
<?php cek_err(); cek_suc(); echo "\r\n\t<script>\r\n\t\tdocument.title = 'Lihat Berita Berjalan | DISPLAY PRD'\r\n\t</script>\r\n\t<script>\r\n\t\t\$(document).ready(function(){\r\n\t\t\t\$('.menu4').addClass('sidebar-dash-aktif');\r\n\t\t\t\$('#table').DataTable();\r\n\t\t});\r\n\t</script>\r\n\t\t<div class='title-admin'>\r\n\t\t\t<div style='padding:20px; height:142px; background:rgba(0,0,0,0.4)'>\r\n\t\t\t\t<div style='font-size:70px; margin-right:15px; margin-top:10px;' class='f-putih f-symbol'>i</div>\r\n\t\t\t\t\t<div class='f-putih f24 f-segoe' style='padding:15px; margin-top:50px;'>Lihat Berita Berjalan<br><div style='margin-top:7px;' class='f-segoe f-putih f16'><i>Data untuk melihat daftar berita berjalan...</i></div></div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<div class='title-dash'>\r\n\t\t\t<div class='f14'><a href='#' class='link-biru'>DISPLAY PRD</a> <span class='f-none f-symbol1'>×</span> Data</div>\r\n\t\t</div>\r\n\r\n\t\t\t\t<div class='overlay wrapper-load-hapus'>\r\n\t\t\t\t\t<div class='wrapper-auto bg-putih' style='width:340px; margin-top:100px'>\r\n\t\t\t\t\t\t<div class='bg-abu-muda pd15 f-abu m0'><div class='f-symbol1 mr10'>¡</div><span class='f-segoe'>KONFIRMASI PENGHAPUSAN</span><div class='f-right f-symbol1 mr10 pointer' onclick='close_del_conf()'>Î</div></div>\r\n\t\t\t\t\t\t<div class='pd15'>\r\n\t\t\t\t\t\t\t<p class='f-segoe' align='center'>Anda yakin akan menghapus data<br>- <span class='l-nama'></span> -</p>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<form method='POST' id='form_input' action='aksi_hapus_beritaBerjalan'>\r\n\t\t\t\t\t\t\t<input type='hidden' name='id' class='l-id' value=''>\r\n\t\t\t\t\t\t\t<input type='submit' name='kirim' value='YA' class='btn-login'>\r\n\t\t\t\t\t\t</form>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\r\n\t\t<div class='wrapper-tengah'>\r\n\t\t\t<div class='wrapper-form' style='width:900px;'>\r\n\t\t\t\t<div class='title-form'><span class='f-symbol mr10'>i</span>DATA BERITA</div>\r\n\t\t\t\t<div class='pd15'>\r\n\t\t\t\t\t<table id='table' class='f-segoe' border='1' style='border:solid 1px rgba(0,0,0,0.3); border-collapse:collapse;'>\r\n\t\t\t\t\t\t<thead class='f12'>\r\n\t\t\t\t\t\t\t<tr class='title-field'>\r\n\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 56px;'>NO</th>\r\n\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 300px;'>JUDUL</th>\r\n\t\t\t\t\t\t\t\t<th width='10px'>AKSI</th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody>"; $no = 1; $q = msq($kon, "SELECT * from t_teks_berjalan order by id_teks desc"); echo "\r\n\t\t\t\t\t\t\t<script>\r\n\t\t\t\t\t\t\t\tfunction del_conf(data)\r\n\t\t\t\t\t\t\t\t{\t\r\n\t\t\t\t\t\t\t\t\t\$.ajax({\r\n\t\t\t\t\t\t\t\t\t\turl:'aksi_ambil_data_hapus_beritaBerjalan',\r\n\t\t\t\t\t\t\t\t\t\ttype:'POST',\r\n\t\t\t\t\t\t\t\t\t\tdata:'id='+data,\r\n\t\t\t\t\t\t\t\t\t\tdataType:'json',\r\n\t\t\t\t\t\t\t\t\t\tsuccess:function(d){\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.wrapper-load-hapus').fadeIn();\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.l-nama').html(d['nama']);\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.l-id').val(d['id']);\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tfunction close_del_conf()\r\n\t\t\t\t\t\t\t\t{\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\$('.wrapper-load-hapus').fadeOut();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t</script>\r\n\t\t\t\t\t\t\t"; while ($d = mfa($q)) { echo "\r\n\t\t\t\t\t\t\t<tr style='background:rgba(255,255,255,0.4); font-size:12px;'>\r\n\t\t\t\t\t\t\t\t<td align='center'>{$no}</td>\t\r\n\t\t\t\t\t\t\t\t<td>{$d['teks']}</td>\r\n\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t<div class='wrapper-auto' style='width:115px;'>\r\n\t\t\t\t\t\t\t\t\t\t<div class='t-center pointer link-hapus f-symbol1' onclick='del_conf({$d['id_teks']})' style='margin-right:10px; background:red; padding:5px; border-radius:3px; position:relative; color:white;'>Í<span class='f-segoe' style='margin-left:5px;'>Hapus</span></div>\r\n\t\t\t\t\t\t\t\t\t\t<a href='{$_SESSION['level']}/edit_beritaBerjalan_{$d['id_teks']}' class='t-center pointer link-hapus f-symbol1' style='position:relative; background:blue; padding:5px; border-radius:3px; color:white;'>?<span class='f-segoe' style='margin-left:5px;'>Edit</span></a>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t</tr>"; $no++; } echo "\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\t\t\r\n\t\t\t</div>\t\t\r\n\t\t</div>\t\t\r\n\t\t\r\n\t"; unset($_SESSION['suc']); unset($_SESSION['err']); ?>
<? require("infos.php"); InitPage(true); // initialise en envoyant les balises de début <HTML> etc ... // Moulinette qui rajoute des , en début et fin de champs pseudo set $TABLE="UNITE_FONCTION"; $CHP_SET="UFO_LLUNITE"; $CHP_CLE="UFO_NUUNITE"; $rpmoul=msq("select * from $TABLE"); while ($rw=mysql_fetch_array($rpmoul)) { if (strstr($rw[$CHP_SET],"Haras d")) { $rw[$CHP_SET]=str_replace( "Haras d", "Haras national d", $rw[$CHP_SET]); $rw[$CHP_SET]=addslashes($rw[$CHP_SET]); $reqU="update $TABLE set $CHP_SET='$rw[$CHP_SET]' where $CHP_CLE='$rw[$CHP_CLE]'"; echo $reqU."<BR>\n"; msq($reqU); } } ?> </body> </html>
function EnvMailWN($test = false) { global $WhereComm, $headef, $indent, $Mg, $idT, $UrlRoot, $cvlibtc, $tbFormnames, $IdGAMail, $admail_expe; if ($test) { echo "<H1>Mode test !! </H1>"; echo "En mode test, on visualise les mails envoyes, mais la table n'est pas mise a jour <BR><BR>"; } echo "-----------------------------------------------------------------------<br>\n"; echo "Envois des mails d'alerte du " . date("d/m/Y", time()) . "<br>\n"; echo "liste des adresses envoyees: <br>\n"; $rep = msq("SELECT * from tx_fabformmail_abonne where 1 {$WhereComm}"); while ($rwm = mysql_fetch_array($rep)) { unset($tabposP); $nbal = 0; $nbmail = 0; $typcp = ""; $corpsAl = ""; $rwm[lastsentdate] = $rwm[lastsentdate] > 0 ? $rwm[lastsentdate] : 0; if ($rwm[typefrequence] == 28) { $rwm[typefrequence] = 30.4375; } // nbre de jours moyens dans un mois=365.25/12 $WET = " AND " . ($rwm[typeetat] == 0 ? "crdate" : "tstamp") . " >" . $rwm[lastsentdate]; if (time() >= $rwm[lastsentdate] + $rwm[typefrequence] * 24 * 3600) { // il est temps d'envoyer $tabid = explode(',', $rwm[uidpages]); foreach ($tabid as $idp) { $repWN = msq("SELECT * from tx_vm19watsniou WHERE 1 {$WhereComm} AND typcontent IN ('" . str_replace(",", "','", $rwm[typeextension]) . "') AND tabidarbo LIKE '%,{$idp},%' {$WET} ORDER BY tabidarbo,typcontent DESC, tstamp"); if (mysql_num_rows($repWN) > 0) { // YA des news dans la rub s�ectionn� while ($rwWN = mysql_fetch_array($repWN)) { $tabposC = unserialize($rwWN[tabstrarbo]); $p = 0; foreach ($tabposC as $idp => $page) { $idp = substr($idp, 2); if ($page != $tabposP[$p]) { $corpsAl .= '<a class="Tit' . ($p + 1) . '" href="' . $UrlRoot . $idp . '">' . $page . '</a>'; $typcp = ""; } $tabposP[$p] = $page; $p++; } //$tabposP=$tabposC; $corpsAl .= '<div style="margin-left:' . ($Mg + $idT + ($p - 1) * $indent) . 'px">'; if ($rwWN[typcontent] != $typcp) { $corpsAl .= '<span class="typcont">' . $cvlibtc[$rwWN[typcontent]] . '</span>'; } $typcp = $rwWN['typcontent']; if ($typcp != "vm19_hnlinks") { $href = $UrlRoot . $rwWN['pid']; $title = $rwWN['title']; } else { $tabisa = explode("|", $rwWN['title']); $href = strstr($tabisa[1], "http://") ? $tabisa[1] : "http://" . $tabisa[1]; $title = $tabisa[0]; } $corpsAl .= '<a class="titre" href="' . $href . '">' . $title . '</a>, ' . ($rwWN['tstamp'] == $rwWN['crdate'] ? " créé le " : " modifié le ") . ' ' . date("d/m/Y", $rwWN['tstamp']); $corpsAl .= "</DIV>\n"; $nbal++; } // fin boucle sur les news de la rubrique } //// fin si pas de news ds la rub } // fin boucle sur les rubriques de l'abonn� if ($nbal > 0) { // s'il y a des alarmes $nbmail++; $head = $headef . 'Vous recevrez votre prochaine alerte le ' . date("d/m/Y", time() + $rwm[typefrequence] * 24 * 3600) . "<br>"; $head .= '<FORM action="' . $UrlRoot . $rwm[pid] . '" name="fname' . $nbmail . '" method="POST"> <INPUT type="hidden" name="' . $tbFormnames['chpemail'] . '" value="' . $rwm['email'] . '">' . "\n"; //$head.='<br/>Pour gérer votre abonnement, enregistré pour l\'adresse <b>'.$rwm[email].'</b>, cliquez <a class="titre" href="javascript:document.fname'.$nbmail.'.submit()">-> ICI <- </a><br><br>'; $head .= '<br/>Pour gérer votre abonnement, enregistré pour l\'adresse <b>' . $rwm[email] . '</b>, cliquez <a class="titre" href="' . $IdGAMail . '">-> ICI <- </a><br><br>'; $head .= 'Bonne lecture ! <br><br>'; $foot = '<br/><br/>Vous recevrez votre prochaine alerte le ' . date("d/m/Y", time() + $rwm[typefrequence] * 24 * 3600) . "<br>"; $foot .= '<br/>Pour gérer votre abonnement, enregistré pour l\'adresse <b>' . $rwm[email] . '</b>, cliquez <a class="titre" href="' . $IdGAMail . '">-> ICI <- </a><br><br>'; if ($test) { echo $head . $corpsAl . $foot; echo "<hr>"; } else { echo $rwm[email] . " <br>\n"; mail_html($rwm[email], "Alerte mail du portail internet des Haras nationaux", $head . $corpsAl . $foot, $admail_expe); msq("UPDATE tx_fabformmail_abonne SET lastsentdate=" . time() . " WHERE uid=" . $rwm[uid]); } } // } // fin si temps est tel qu'il faut envoyer un mail } // fin boucle sur abonn� echo "Fin des envois du " . date("d/m/Y", time()) . "<br>\n"; }
if ($CIL[UFO_LLADRES2]->ValChp!="" || $TypEdit!="C") { echo "<BR>"; $CIL[GEO_LLADRES2]->EchoEditAll();} echo "<BR>"; $CIL[GEO_COPOSTAL]->EchoEditAll(); echo " "; $CIL[GEO_LLCOMMU]->EchoEditAll(); echo "</td></tr>\n"; // fin adresse EchoLig("GEO_COPAYS"); if ($TypEdit!="N") { $wh1="where (DRH_LLACTIVITE LIKE '".str_replace(":","' OR DRH_LLACTIVITE LIKE '",vdc(Ctbicepa(),1))."') "; $wh2="AND DRH_NUGEOPOS=".$NUUNITE; echo "<tr><td>effectif</td><td>"; $rqsqlcnt="select COUNT(*) from INFOS_DRH ".$wh1.$wh2; if ($debug) echo "requête SQL de comptage: "; $rescnt=msq($rqsqlcnt); $rwcnt=mysql_fetch_row($rescnt); echo $rwcnt[0]; echo "</td></tr>"; } EchoLig("GEO_PLANACC"); ?> <tr><td colspan="2" align="center"> <a name="bas"> <br> <a href="javascript:this.close();"><img src="../../intranet/partage/IMAGES/bout_fermer.gif" border="0" width="70" height="11" alt="Fermer cette fenêtre"></a> <? // boutons valider et annuler que quand read only false if ($TypEdit!="C") { ?> <A HREF="javascript:ConfReset()" title="RAZ du formulaire"><IMG src="../../intranet/partage/IMAGES/annuler.gif" border="0"></a> <INPUT TYPE="image" src="../../intranet/partage/IMAGES/valider.gif" border="0" onmouseover="self.status='Valider';return true">
<?php cek_err(); cek_suc(); $id = anti($_GET['id']); $q = msq($kon, "SELECT * FROM t_bagian WHERE id_bagian='{$id}'"); $d = mfa($q); $j = mnr($q); if ($j == 0) { referer(); } echo "\r\n\t<script>\r\n\t\t\$(document).ready(function(){\r\n\t\t\t\$('.menu6').addClass('sidebar-dash-aktif');\r\n\t\t});\r\n\t</script>\r\n\t<script>\r\n\t\tdocument.title = 'Edit Bagian Kerja | DISPLAY PRD'\r\n\t</script>\r\n\t\t<div class='title-admin'>\r\n\t\t\t<div style='padding:20px; height:142px; background:rgba(0,0,0,0.4)'>\r\n\t\t\t\t<div style='font-size:70px; margin-right:15px; margin-top:10px;' class='f-putih f-symbol'>?</div>\r\n\t\t\t\t\t<div class='f-putih f24 f-segoe' style='padding:15px; margin-top:50px;'>Edit Bagian Kerja<br><div style='margin-top:7px;' class='f-segoe f-putih f16'><i>Form untuk mengedit data bagian kerja...</i></div></div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<div class='title-dash'>\r\n\t\t\t<div class='f14'><a href='#' class='link-biru'>DISPLAY PRD</a> <span class='f-none f-symbol1'>×</span> Form</div>\r\n\t\t</div>\r\n\t\t\r\n\t\t<div class='wrapper-tengah'>\r\n\t\t\t<div class='wrapper-form' style='width:500px;'>\r\n\t\t\t\t<div class='title-form'><span class='f-symbol mr10'>?</span>EDIT BAGIAN KERJA</div>\r\n\t\t\t\t<div class='pd15'>\r\n\t\t\t\t\t<form method='POST' action='aksi_edit_bagian' enctype='multipart/form-data'>\r\n\t\t\t\t\t\t<input type='hidden' class='form transi-3' name='id' value='{$d['id_bagian']}' required>\r\n\t\t\t\t\t\t<div class='form-grup'>\r\n\t\t\t\t\t\t\t<div class='label-form'>NAMA BAGIAN KERJA</div>\r\n\t\t\t\t\t\t\t<input type='text' class='form transi-3' name='nama_bagian' value='{$d['nama']}' autocomplete='off' required >\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<button class='bkirim transi-3' value='kirim' name='kirim'><span class='f-symbol1 f-none' style='margin-right:20px;'>?</span>EDIT BAGIAN KERJA</button>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t</form>\r\n\t\t\t\t</div>\t\t\r\n\t\t\t</div>\t\t\r\n\t\t</div>\t\t\r\n\t\t\r\n\t"; unset($_SESSION['suc']); unset($_SESSION['err']);
<?php cek_err(); cek_suc(); echo "\r\n\t<script>\r\n\t\tdocument.title = 'Lihat Event | DISPLAY PRD'\r\n\t</script>\r\n\t<script>\r\n\t\t\$(document).ready(function(){\r\n\t\t\t\$('.menu5').addClass('sidebar-dash-aktif');\r\n\t\t\t\$('#table').DataTable();\r\n\t\t});\r\n\t</script>\r\n\t\t<div class='title-admin'>\r\n\t\t\t<div style='padding:20px; height:142px; background:rgba(0,0,0,0.4)'>\r\n\t\t\t\t<div style='font-size:70px; margin-right:15px; margin-top:10px;' class='f-putih f-symbol'>i</div>\r\n\t\t\t\t\t<div class='f-putih f24 f-segoe' style='padding:15px; margin-top:50px;'>Lihat Event<br><div style='margin-top:7px;' class='f-segoe f-putih f16'><i>Data untuk melihat event di PRD...</i></div></div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<div class='title-dash'>\r\n\t\t\t<div class='f14'><a href='#' class='link-biru'>DISPLAY PRD</a> <span class='f-none f-symbol1'>×</span> Data</div>\r\n\t\t</div>\r\n\r\n\t\t\t\t<div class='overlay wrapper-load-hapus'>\r\n\t\t\t\t\t<div class='wrapper-auto bg-putih' style='width:340px; margin-top:100px'>\r\n\t\t\t\t\t\t<div class='bg-abu-muda pd15 f-abu m0'><div class='f-symbol1 mr10'>¡</div><span class='f-segoe'>KONFIRMASI PENGHAPUSAN</span><div class='f-right f-symbol1 mr10 pointer' onclick='close_del_conf()'>Î</div></div>\r\n\t\t\t\t\t\t<div class='pd15'>\r\n\t\t\t\t\t\t\t<p class='f-segoe' align='center'>Anda yakin akan menghapus data<br>- <span class='l-nama'></span> -</p>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<form method='POST' id='form_input' action='aksi_hapus_event'>\r\n\t\t\t\t\t\t\t<input type='hidden' name='id' class='l-id' value=''>\r\n\t\t\t\t\t\t\t<input type='submit' name='kirim' value='YA' class='btn-login'>\r\n\t\t\t\t\t\t</form>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\r\n\t\t<div class='wrapper-tengah'>\r\n\t\t\t<div class='wrapper-form' style='width:900px;'>\r\n\t\t\t\t<div class='title-form'><span class='f-symbol mr10'>i</span>DATA EVENT</div>\r\n\t\t\t\t<div class='pd15'>\r\n\t\t\t\t\t<table id='table' class='f-segoe' border='1' style='border:solid 1px rgba(0,0,0,0.3); border-collapse:collapse;'>\r\n\t\t\t\t\t\t<thead class='f12'>\r\n\t\t\t\t\t\t\t<tr class='title-field'>\r\n\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 56px;'>NO</th>\r\n\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 56px;'>JUDUL</th>\r\n\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 56px;'>WAKTU MULAI</th>\r\n\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 56px;'>WAKTU AKHIR</th>\r\n\t\t\t\t\t\t\t\t<th class='sorting' tabindex='0' aria-controls='example' rowspan='1' colspan='1' aria-label='Office: activate to sort column ascending' style='width: 56px;'>TEMPAT</th>\r\n\t\t\t\t\t\t\t\t<th width='50px'>AKSI</th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody>"; $no = 1; $q = msq($kon, "SELECT * from t_event order by id_event desc"); echo "\r\n\t\t\t\t\t\t\t<script>\r\n\t\t\t\t\t\t\t\tfunction del_conf(data)\r\n\t\t\t\t\t\t\t\t{\t\r\n\t\t\t\t\t\t\t\t\t\$.ajax({\r\n\t\t\t\t\t\t\t\t\t\turl:'aksi_ambil_data_hapus_event',\r\n\t\t\t\t\t\t\t\t\t\ttype:'POST',\r\n\t\t\t\t\t\t\t\t\t\tdata:'id='+data,\r\n\t\t\t\t\t\t\t\t\t\tdataType:'json',\r\n\t\t\t\t\t\t\t\t\t\tsuccess:function(d){\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.wrapper-load-hapus').fadeIn();\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.l-nama').html(d['nama']);\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\$('.l-id').val(d['id']);\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tfunction close_del_conf()\r\n\t\t\t\t\t\t\t\t{\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\$('.wrapper-load-hapus').fadeOut();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t</script>\r\n\t\t\t\t\t\t\t"; while ($d = mfa($q)) { echo "\r\n\t\t\t\t\t\t\t<tr style='background:rgba(255,255,255,0.4); font-size:12px;'>\r\n\t\t\t\t\t\t\t\t<td align='center'>{$no}</td>\t\r\n\t\t\t\t\t\t\t\t<td>{$d['judul']}</td>\r\n\t\t\t\t\t\t\t\t<td>{$d['waktu_mulai']}</td>\r\n\t\t\t\t\t\t\t\t<td>{$d['waktu_akhir']}</td>\r\n\t\t\t\t\t\t\t\t<td>{$d['tempat']}</td>\r\n\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t<div class='wrapper-auto' style='width:115px;'>\r\n\t\t\t\t\t\t\t\t\t\t<div class='t-center pointer link-hapus f-symbol1' onclick='del_conf({$d['id_event']})' style='margin-right:10px; background:red; padding:5px; border-radius:3px; position:relative; color:white;'>Í<span class='f-segoe' style='margin-left:5px;'>Hapus</span></div>\r\n\t\t\t\t\t\t\t\t\t\t<a href='{$_SESSION['level']}/edit_event_{$d['id_event']}' class='t-center pointer link-hapus f-symbol1' style='position:relative; background:blue; padding:5px; border-radius:3px; color:white;'>?<span class='f-segoe' style='margin-left:5px;'>Edit</span></a>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t<div class='psn'></div>\r\n\t\t\t\t\t\t\t</tr>"; $no++; } echo "\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\t\t\r\n\t\t\t</div>\t\t\r\n\t\t</div>\t\t\r\n\t\t\r\n\t"; unset($_SESSION['suc']); unset($_SESSION['err']); ?>
$VarFok = "Fok" . $NOMC; //print_r($_FILES); //$PYAoMAJ->ValChp=($_FILES[$NOMC]['tmp_name']!="" ? $_FILES[$NOMC]['tmp_name'] : $PYAoMAJ->ValChp); $PYAoMAJ->ValChp = $_FILES[$NOMC]['tmp_name']; $PYAoMAJ->Fok = ${$VarFok}; //$VarFname=$NOMC."_name"; // ancienne m�hode //$PYAoMAJ->Fname=($$VarFname !="" ? $$VarFname : $_FILES[$NOMC]['name']); $PYAoMAJ->Fname = $_FILES[$NOMC]['name']; //$VarFsize=$NOMC."_size";// ancienne m�hode //$PYAoMAJ->Fsize=($$VarFsize!="" ? $$VarFsize : $_FILES[$NOMC]['size']); $PYAoMAJ->Fsize = $_FILES[$NOMC]['size']; $VarOldFName = "Old" . $NOMC; $PYAoMAJ->OFN = ${$VarOldFName}; if ($_REQUEST['modif'] == -1) { // suppression de l'enregistrement $rqncs = msq("select " . $PYAoMAJ->NmChamp . " from " . $PYAoMAJ->NmTable . " where " . stripslashes($_REQUEST['key'])); $rwncs = db_fetch_row($rqncs); $PYAoMAJ->Fname = $rwncs[0]; } } $tbset = array_merge($tbset, $PYAoMAJ->RetSet($keycopy, true)); // key copy sert �la gestion des fichiers li� // la gestion des fichiers est faite aussi l�dedans } // fin boucle sur les champs //echovar("tbset"); $_REQUEST['key'] = stripslashes($_REQUEST['key']); //echo "Cl� $_REQUEST['key'] <BR>"; // GROS BUG $where=" where ".$_REQUEST['key'].($where_sup=="" ? "" : " and $where_sup"); $where = " where " . $_REQUEST['key']; if ($_REQUEST['modif'] == 1) {
/** * Methode de recherche qui retourne une liste de reponses. * 1. Si la liste est dans la session alors le systeme retourne une plage de la liste * 2. Si la liste ne se trouve pas dans la session, le systeme fait appel au webservice et calcul la liste * @return String */ function getListeResult() { $this->GoogleMapsTool = new GoogleMapsTool(); $this->GoogleMapsTool->outJSB = false; // pas de balises JS, c'est typo qui les met // echoise la clé Google dans le header $GLOBALS['TSFE']->additionalHeaderData['OutGMJSWK_0'] = $this->GoogleMapsTool->OutGMJSWK(); $result = null; $content = '<div><h2>' . htmlspecialchars($this->pi_getLL("titre_list")) . '</h2></div><br />'; $content .= $this->GoogleMapsTool->OutMapIdS(); $param = array(); if (isset($this->piVars["commune"]) && $this->piVars["commune"] != "") { $objTransfert = new ObjectTransfertWS(); $objTransfert->setKey("commune"); $objTransfert->setValue($this->piVars["commune"]); $param[count($param)] = $objTransfert; $address = addslashes($this->piVars["commune"]) . "," . $this->piVars["pays"]; } if (isset($this->piVars["region"]) && $this->piVars["region"] != "") { $objTransfert = new ObjectTransfertWS(); $objTransfert->setKey("codeRegion"); $objTransfert->setValue($this->piVars["region"]); $param[count($param)] = $objTransfert; } if (isset($this->piVars["departement"]) && $this->piVars["departement"] != "") { $objTransfert = new ObjectTransfertWS(); $objTransfert->setKey("codeDepartement"); $objTransfert->setValue($this->piVars["departement"]); $param[count($param)] = $objTransfert; } if (isset($this->piVars["centre"]) && $this->piVars["centre"] != "") { $objTransfert = new ObjectTransfertWS(); $objTransfert->setKey("centre"); $objTransfert->setValue($this->piVars["centre"]); $param[count($param)] = $objTransfert; } if (isset($this->piVars["type_centre"]) && $this->piVars["type_centre"] != "") { $objTransfert = new ObjectTransfertWS(); $objTransfert->setKey("typeCentre"); $objTransfert->setValue("ct" . $this->piVars["type_centre"]); $param[count($param)] = $objTransfert; } $GLOBALS["TSFE"]->setJS("OutGMJSWK_1", $this->GoogleMapsTool->InitMap(false)); // sera eventuellement ecrasé apres la fin de la liste des CT if ($this->searchConfig == "WSDatastore") { $ws = new WebservicesAccess(); if (!$ws->connect()) { return $ws->getErrorMessage(); } $result = $ws->getCentresTEchniques($param); if (!$result && $ws->getErrorMessage() != "") { return "[error resultat:]" . $ws->getErrorMessage(); } } elseif ($this->piVars["commune"] != "") { // que pour la commune ie l'adresse if ($this->GoogleMapsTool->map_geocoder($address)) { $content .= "<small>" . $this->pi_getLL("vos_coords") . "lattitude: " . $this->GoogleMapsTool->GeoCodeAddressData[2] . "°, longitude: " . $this->GoogleMapsTool->GeoCodeAddressData[3] . "°</small>"; $addwhere = $this->GoogleMapsTool->retWhere($param); $this->GoogleMapsTool->DataScript .= $this->GoogleMapsTool->look4closest($this->GoogleMapsTool->GeoCodeAddressData[2], $this->GoogleMapsTool->GeoCodeAddressData[3], 5, "CT", $addwhere, $address); $result = $this->GoogleMapsTool->tbresult; // $this->GoogleMapsTool->DataScript.="showAddress('$address');"; // fait dans look4closer } else { $content .= $this->pi_getLL("libelle_no_address_geoc"); } } else { // rajoute le type CT $objTransfert = new ObjectTransfertWS(); $objTransfert->setKey("type"); $objTransfert->setValue("CT"); $param[count($param)] = $objTransfert; $this->GoogleMapsTool->DataScript .= $this->GoogleMapsTool->getPoints($param); $result = $this->GoogleMapsTool->tbresult; } //print_r($result); $_SESSION["RESULT_CT"] = $result; if (!$result) { $content .= "<H4>" . $this->pi_getLL("libelle_no_result") . "</H4>"; if (!$this->afficheRegion) { $content .= $this->pi_linkToPage(htmlspecialchars($this->pi_getLL("libelle_nouvelle_recherche")), $GLOBALS["TSFE"]->id); } return $content; } if (count($result) == 1 && isset($result[0]["numError"])) { $content .= "<H4>" . $this->pi_getLL("libelle_error_count") . "</H4>"; if (!$this->afficheRegion) { $content .= $this->pi_linkToPage(htmlspecialchars($this->pi_getLL("libelle_nouvelle_recherche")), $GLOBALS["TSFE"]->id); } return $content; } // adresse du centre de dun le palestel //http://maps.google.fr/maps?f=q&hl=fr&q=1+PROMENADE+DE+LA+FORET%3B+23800+DUN+LE+PALESTEL&ie=UTF8&om=1&z=11&ll=46.318007,1.663055&spn=0.312047,0.858994&iwloc=A // verrue pour mise à jour if (strstr($this->cObj->data["select_key"], "SPC_MAJ")) { $SpcModInsert = true; $tbtp = explode(":", $this->cObj->data["select_key"]); $pidgeo = $tbtp[1]; //print_r($tbtp); } $content .= "<H4>" . count($result) . " centre(s) technique(s) trouvés)</H4><br>"; // si région choisie, centre directement sur elle $recentrg = false; if ($this->piVars["region"]) { $rc = $this->GoogleMapsTool->RegionReCenter($this->piVars["region"]); if ($rc) { $this->GoogleMapsTool->DataScript .= $rc; $recentrg = true; } } foreach ($result as $ce) { if ($ce['dist'] > 0) { $dist = " (" . $ce['dist'] . " km)"; } $content .= '<p style="height:20px;padding-bottom:5px";><strong><a href="' . $this->pi_getPageLink(2973, '', array("numPerso" => $ce["numPerso"], "action" => "liste", "no_cache" => 1)) . '" title="voir la liste des étalons présents" style="height:40px;padding-bottom:20px;padding-left:25px;background-repeat: no-repeat;background-image:url(fileadmin/templates/images/elts_reccurents/cheval.gif);">' . $ce["nom"] . '</a></strong> ' . $dist . '<br></p>'; if ($SpcModInsert) { // mode insertion/maj des points dans la table // hidden, starttime, endtime, name, number, type, geo_pos, label, adresse1, adresse2, cdpst, ville, tel, cell,fax, mail $set = "SET tstamp=" . time() . ",name='" . addslashes($ce["nom"]) . "', number='" . $ce["numPerso"] . "', type='CT', adresse1='" . addslashes($ce["adresse1"]) . "', adresse2='" . addslashes($ce["adresse2"]) . "', cdpst='" . $ce["codePostal"] . "', ville='" . addslashes($ce["libelleCommune"]) . "', tel='" . $ce["telephone"] . "', cell='" . $ce["telPortable"] . "',fax='" . $ce["telecopie"] . "', mail='" . $ce["mail"] . "', pid=" . $pidgeo . ", region='" . addslashes($ce["coRegion"]) . "'"; if ($ce['actCtmp'] == "O") { $type_det = "_mp_"; } if ($ce['actCtpr'] == "O") { $type_det .= "_pr_"; } if ($ce['actCttre'] == "O") { $type_det .= "_tre_"; } $set .= ", type_det='{$type_det}'"; //print_r($ce); //echo $set; $rep = msq("SELECT * FROM tx_dlcubehn03geomatic_points WHERE number=" . $ce["numPerso"]); if (mysql_num_rows($rep) > 0) { msq("UPDATE tx_dlcubehn03geomatic_points {$set} WHERE number=" . $ce["numPerso"]); } else { msq("INSERT INTO tx_dlcubehn03geomatic_points {$set},crdate=" . time()); } } $txt = null; if ($ce["actCtmp"] == "O") { $txt = $txt == null ? "Centre de mise en place" : $txt . " et Centre de mise en place"; } if ($ce["actCtpr"] == "O") { $txt = $txt == null ? "Centre de production" : $txt . " et Centre de production"; } if ($ce["actCttre"] == "O") { $txt = $txt == null ? "Centre de transfert" : $txt . " et centre de transfert embryonnaire"; } if ($txt != null) { $content .= "<p>" . $txt . "</p>"; } // affiche le point sur la carte, qu'en mode webservice datastore // sinon c'est fait dans le calcul du result if ($this->searchConfig == "WSDatastore") { $this->GoogleMapsTool->IconImageFile = "http://www.haras-nationaux.fr/portail/fileadmin/templates/images/elts_reccurents/cheval.gif"; $this->GoogleMapsTool->PointInfo = $txIconImageFilet . '<br/>' . $ce["adresse1"] . "<br/>" . $ce["adresse2"] . "<br/>" . $ce["codePostal"] . " " . $ce["libelleCommune"]; $this->GoogleMapsTool->DataScript .= $this->GoogleMapsTool->displayPointbyNumber($ce["numPerso"], !$recentrg); } $content .= "<p><span id='adresseCT'>" . $ce["adresse1"] . "</span> <span id='adresseCT'>" . $ce["adresse2"] . "</span> <span id='codepostalCT'>" . $ce["codePostal"] . "</span> <span id='communeCT'>" . $ce["libelleCommune"] . "</span></p>"; $content .= "<p>"; if ($ce["telephone"] != "") { $content .= $this->pi_getLL("libelle_telephone") . " : " . $ce["telephone"]; } if ($ce["telecopie"] != "") { $content .= " " . $ce["telecopie"]; } if ($ce["telPortable"]) { $content .= " " . $this->pi_getLL("libelle_telport") . " : " . $ce["telPortable"]; } if ($ce["mail"]) { $content .= " " . $this->pi_getLL("libelle_mail") . " : " . $ce["mail"]; } $content .= "</p>"; $content .= "<hr>"; } // fin boucle sur centres techniques // sort tous le Jscript Google Maps, mais dans le header, pour que ca marche avec ce putain d'explorer $GLOBALS["TSFE"]->setJS("OutGMJSWK_1", $this->GoogleMapsTool->InitMap(false)); if (!$this->afficheRegion) { //echo "test:".$this->pi_getPageLink($GLOBALS["TSFE"]->id); $content .= '<a style="color:white;text-decoration:none" id="lienFonctionPetit" href="index.php?id=' . $GLOBALS["TSFE"]->id . '">' . htmlspecialchars($this->pi_getLL("libelle_nouvelle_recherche")) . '</a>'; } return $content; }
while ($d_bagian = mfa($q_bagian)) { if ($d['id_bagian'] == $d_bagian['id_bagian']) { $slc = "selected"; } else { $slc = ""; } echo "<option value='{$d_bagian['id_bagian']}' {$slc}>{$d_bagian['nama']}</option>"; } echo "\t\t\t\t\t\r\n\t\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class='form-grup'>\r\n\t\t\t\t\t\t\t<div class='label-form'>NAMA MESIN</div>\r\n\t\t\t\t\t\t\t<select class='form transi-3' name='id_mesin' id='id_mesin' required>\r\n\t\t\t\t\t\t\t\t"; $q_mesin = msq($kon, "SELECT * FROM t_mesin where id_bagian='{$d['id_bagian']}' ORDER BY nama ASC"); while ($d_mesin = mfa($q_mesin)) { if ($d['id_mesin'] == $d_mesin['id_mesin']) { $slc = "selected"; } else { $slc = ""; } echo "<option value='{$d_mesin['id_mesin']}' {$slc}>{$d_mesin['nama']}</option>"; } echo "\t\t\t\t\t\r\n\t\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class='form-grup'>\r\n\t\t\t\t\t\t\t<div class='label-form'>TUGAS</div>\r\n\t\t\t\t\t\t\t<select class='form transi-3' name='tugas' id='id_tugas' required>\r\n\t\t\t\t\t\t\t\t"; $q_tugas = msq($kon, "SELECT * FROM t_tugas where id_bagian='{$d['id_bagian']}' ORDER BY tugas ASC"); while ($d_tugas = mfa($q_tugas)) { if ($d['tugas'] == $d_tugas['id_tugas']) { $slc = "selected"; } else { $slc = ""; } echo "<option value='{$d_tugas['id_tugas']}' {$slc}>{$d_tugas['tugas']}</option>"; } echo "\t\t\t\t\t\r\n\t\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class='form-grup'>\r\n\t\t\t\t\t\t\t<div class='label-form'>FOTO KARYAWAN</div>\r\n\t\t\t\t\t\t\t<img src='_asset/_images/_karyawan/{$d['foto']}' id='gbr' width='100px' style='border:solid 1px #ccc; padding:10px; background:#eee;'>\r\n\t\t\t\t\t\t\t<br><br>\r\n\t\t\t\t\t\t\t<input type='file' id='src-gbr' name='foto'>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<button class='bkirim transi-3' value='kirim' name='kirim'><span class='f-symbol1 f-none' style='margin-right:20px;'>?</span>EDIT KARYAWAN</button>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t</form>\r\n\t\t\t\t</div>\t\t\r\n\t\t\t</div>\t\t\r\n\t\t</div>\t\t\r\n\t\t\r\n\t"; unset($_SESSION['suc']); unset($_SESSION['err']);
$(document).ready(function() { $("#owl-example").owlCarousel(); }); </script> <style> .wr-ik { width:180px; float:left; height:110px; background:#eee; border-bottom:solid 1px #ccc; margin-bottom:10px; } .wr-ik:hover { background:#ddd; } </style> <div style='background:white; position:relative; width:950px; margin-top:-50px; margin-left:40px; height:auto; padding-top:40px; padding-left:15px; padding-right:15px; padding-bottom:15px'> <a href='display_awal'><div class='close-gal' style='z-index:1;background:url(_asset/_images/ribbon-kembali.png)no-repeat; width:130px; height:61px; background-size:130px; position:absolute; top:5; right:-10;'></div></a> <div id="owl-example" class="owl-carousel" style='margin-top:20px;'> <?php $q_pdf = msq($kon, "select * from t_ik order by id_ik desc"); while ($d_pdf = mfa($q_pdf)) { echo "\r\n\t\t\t\t<div style='border:solid 1px #ccc; width:180px;'>\r\n\t\t\t\t\t<a href='display_ikDetail_{$d_pdf['id_ik']}'>\r\n\t\t\t\t\t<div class='wr-ik'>\r\n\t\t\t\t\t\t<div class='f-symbol f-none t-center' style='font-size:50px; margin-top:10px;'>m</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t</a>\r\n\t\t\t\t\t<p align='center'>{$d_pdf['judul']}</p>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div style='border:solid 1px #ccc; width:180px;'>\r\n\t\t\t\t\t<a href='display_ikDetail_{$d_pdf['id_ik']}'>\r\n\t\t\t\t\t<div class='wr-ik'>\r\n\t\t\t\t\t\t<div class='f-symbol f-none t-center' style='font-size:50px; margin-top:10px;'>m</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t</a>\r\n\t\t\t\t\t<p align='center'>{$d_pdf['judul']}</p>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div style='border:solid 1px #ccc; width:180px;'>\r\n\t\t\t\t\t<a href='display_ikDetail_{$d_pdf['id_ik']}'>\r\n\t\t\t\t\t<div class='wr-ik'>\r\n\t\t\t\t\t\t<div class='f-symbol f-none t-center' style='font-size:50px; margin-top:10px;'>m</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t</a>\r\n\t\t\t\t\t<p align='center'>{$d_pdf['judul']}</p>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div style='border:solid 1px #ccc; width:180px;'>\r\n\t\t\t\t\t<a href='display_ikDetail_{$d_pdf['id_ik']}'>\r\n\t\t\t\t\t<div class='wr-ik'>\r\n\t\t\t\t\t\t<div class='f-symbol f-none t-center' style='font-size:50px; margin-top:10px;'>m</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t</a>\r\n\t\t\t\t\t<p align='center'>{$d_pdf['judul']}</p>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div style='border:solid 1px #ccc; width:180px;'>\r\n\t\t\t\t\t<a href='display_ikDetail_{$d_pdf['id_ik']}'>\r\n\t\t\t\t\t<div class='wr-ik'>\r\n\t\t\t\t\t\t<div class='f-symbol f-none t-center' style='font-size:50px; margin-top:10px;'>m</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t</a>\r\n\t\t\t\t\t<p align='center'>{$d_pdf['judul']}</p>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div style='border:solid 1px #ccc; width:180px;'>\r\n\t\t\t\t\t<a href='display_ikDetail_{$d_pdf['id_ik']}'>\r\n\t\t\t\t\t<div class='wr-ik'>\r\n\t\t\t\t\t\t<div class='f-symbol f-none t-center' style='font-size:50px; margin-top:10px;'>m</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t</a>\r\n\t\t\t\t\t<p align='center'>{$d_pdf['judul']}</p>\r\n\t\t\t\t</div>\r\n\t\t\t\t\r\n\t\t\t"; } ?> </div> <div class='cb'></div> </div>
<? require("infos.php"); InitPage(true); // initialise en envoyant les balises de début <HTML> etc ... ?> <span class="titrered20px"> Etat provisoire des administrateurs d'UF</span> <table><thead> <th>Nom</th> <th>UF gérée</th> <th>ID</th> <th>Mot de passe</th> <th>Email</th> </thead> <? $NmChpId=($authType=="ldapsweb" ? "PER_LCIDLDAP" : "PER_LCIDPERS"); $rplc=msq("select * from ENV_POSSEDE,PERSONNE where POS_NUPERS=PER_NUPERS AND POS_COPROFIL='$prof'"); while ($rw=mysql_fetch_array($rplc)) { echo "<tr>"; echo "<td>".$rw[PER_LLPRENOMPERS]." ".$rw[PER_LLNOMPERS]."</td>\n"; echo "<td>".RecupLib("UNITE_FONCTION","UFO_NUUNITE","UFO_LLUNITE",$rw[POS_NUUNITE])."</td>\n"; echo "<td>".$rw[$NmChpId]."</td>\n"; echo "<td>".($authType=="ldapsweb" ? "géré par le LDAP" : $rw[POS_LMPASSWD])."</td>\n"; echo "<td>".DispCustHT($rw[PER_MAILPERS])."</td></tr>\n"; } // fin boucle ?> </table> </body> </html>
require("infos.php"); InitPage(true); // initialise en envoyant les balises de début <HTML> etc ... JSpopup(530,500); ?> <div align="center"><a name="haut"></a> <span class="TRM">Fiches personnes détaillées</span> <? EchoTitIm1("RESULTAT"); // cherche les UF dep $TbUf=TbUFdep($ss_InfoUser[NUUNITEG]); $nolig=1; $ss_prmev[ro]="M"; foreach ($TbUf as $val) { $LLUNITE= Recuplib("UNITE_FONCTION","UFO_NUUNITE","UFO_LLUNITE",$val); $rqpd=msq("select PER_NUPERS from PERSONNE left join INFOS_DRH on PER_NUPERS=DRH_NUPERSO where DRH_NUUNITE='$val'"); while ($rwpd=mysql_fetch_row($rqpd)) { echo "<span class=\"TRM\">$LLUNITE</span>"; $NUPERS=$rwpd[0]; $AppIncl=true; // appel par include include("./popup_fichpers.php"); echo "<br>Page ".$nolig++." <BR>"; echo "<HR>"; echo "<DIV STYLE=\"page-break-before:always\"></DIV>"; // saut de page } // boucle sur les pers de l'UF } // boucle sur les UF géré par la pers courante ?> </div></BODY> </HTML>
$index++; unset($b1); } tbfoot(); p($multipage); break; case 2: $ar = mssql_affected_rows(); p('<h2>affected rows : <b>' . $ar . '</b></h2>'); break; } } } } } else { $query = msq("select sysobjects.id,sysobjects.name,sysobjects.category,sysusers.name as owner,sysobjects.crdate from sysobjects join sysusers on sysobjects.uid = sysusers.uid where sysobjects.xtype = 'U' order by sysobjects.name asc"); $table_num = 0; $tabledb = array(); while ($table = mssql_fetch_array($query)) { $table_num++; $tabledb[] = $table; } unset($table); p('<table border="0" cellpadding="0" cellspacing="0">'); p('<form action="' . $self . '" method="POST">'); makehide('action', 'mssqladmin'); p($dbform); p('<tr class="head">'); p('<td>Name</td>'); p('<td>Owner</td>'); p('<td>Create_time</td>');
function retTLDarbo($pido, $indent = 0, $txt_path = "") { $reple = msq("SELECT tt_content.pid,pages.uid,pages.title from tt_content,pages WHERE pages.uid={$pido} AND tt_content.list_type='vm19_news_pi1' AND tt_content.hidden !=1 AND tt_content.deleted !=1 AND tt_content.pid=pages.uid AND pages.hidden !=1 AND pages.deleted !=1 GROUP BY tt_content.pid ORDER BY pages.sorting,pages.title"); if (mysql_num_rows($reple) > 0) { $rwple = mysql_fetch_array($reple); //$this->tbemplact["'".$rwple[0]."'"]=(in_array("'".$rwple[0]."'",$_SESSION['datafvmnews']['emplact']) ? "#SEL#": "").($indent>2 ? str_repeat(" | ",$indent-2) : "")." |--".$rwple[2]; // sans les guillements $this->tbemplact["'" . $rwple[0] . "'"] = (in_array("'{$rwple['0']}'", $_SESSION['datafvmnews']['emplact']) ? "#SEL#" : "") . ($indent > 2 ? str_repeat(" | ", $indent - 2) : "") . " |--" . $rwple[2]; $txt_path .= ($txt_path != "" ? " -> " : "") . $rwple[2]; $this->tbtxtpath[$rwple[0]] = $txt_path; } $indent++; // pour les enfants // chercje les enfants $reppe = msq("SELECT pages.uid from pages WHERE pages.pid={$pido} AND pages.hidden !=1 AND pages.deleted !=1 ORDER BY pages.sorting,pages.title"); while ($rwppe = mysql_fetch_array($reppe)) { //if ($this->pi_getPageLink($rwppe[0])) $this->retTLDarbo($rwppe[0], $indent, $txt_path); } }
this.play(); }); }); $(document).on('click','.close-gal',function(){ $('.left-wrapper').css({ "margin-left":"0%" }); $('.middle-wrapper').css({ "width":"60%" }); $('#welcome').show(); }); </script> <?php $q_vid = msq($kon, "select * from t_video"); $source = array(); while ($d_vid = mfa($q_vid)) { $source[] = "_asset/_video/{$d_vid['video']}"; } $source_all = implode(',', $source); echo "<input type='hidden' value='{$source_all}' id='source_all'>"; ?> <div style='position:relative; margin-top:10px; z-index:1;'> <div class='left-ribbon' style='position:relative !important; left:0; float:left;'></div> <div class='bg-left-ribbon f-left' style='width:300px;'> <div class='f-sambung f-putih' style='padding:2px 5px; font-size:40px;'>Galeri Video</div> </div> <div class='left-ribbon rotate-180'style='margin-top:-20px; margin-left:38px; position:relative !important; float:left;''></div> <div class='cb'></div> </div>
die("error: impossible de joindre le fichier " . $_FILES[$NOMC][name] . "; sa taille est peut-etre trop importante"); } $VarFok = "Fok" . $NOMC; $PYAoMAJ->ValChp = $_FILES[$NOMC][tmp_name] != "" ? $_FILES[$NOMC][tmp_name] : $PYAoMAJ->ValChp; $PYAoMAJ->Fok = ${$VarFok}; $VarFname = $NOMC . "_name"; // ancienne méthode $PYAoMAJ->Fname = ${$VarFname} != "" ? ${$VarFname} : $_FILES[$NOMC][name]; $VarFsize = $NOMC . "_size"; // ancienne méthode $PYAoMAJ->Fsize = ${$VarFsize} != "" ? ${$VarFsize} : $_FILES[$NOMC][size]; $VarOldFName = "Old" . $NOMC; $PYAoMAJ->OFN = ${$VarOldFName}; if ($modif == -1) { // suppression de l'enregistrement $rqncs = msq("select " . $PYAoMAJ->NmChamp . " from " . $PYAoMAJ->NmTable . " where {$key} "); $rwncs = db_fetch_row($rqncs); $PYAoMAJ->Fname = $rwncs[0]; } } $tbset = array_merge($tbset, $PYAoMAJ->RetSet($keycopy, true)); } // fin boucle sur les champs $set = substr($set, 0, -2); // enlève la dernière virgule et esp en trop à la fin if ($_GET['action'] == 'ajout') { $db->query("INSERT INTO `ENTITES` SET " . tbset2set($tbset)); } elseif ($_GET['action'] == 'edition') { $db->query("UPDATE `ENTITES` SET " . tbset2set($tbset) . " WHERE `ENT_ID`='" . (int) $_GET['id'] . "'"); } // ferme la fenetre & rafraichie la fenetre parent