A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_URI::$config is deprecated

Filename: core/URI.php

Line Number: 101

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Router::$uri is deprecated

Filename: core/Router.php

Line Number: 127

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$benchmark is deprecated

Filename: core/Controller.php

Line Number: 82

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$hooks is deprecated

Filename: core/Controller.php

Line Number: 82

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$config is deprecated

Filename: core/Controller.php

Line Number: 82

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$log is deprecated

Filename: core/Controller.php

Line Number: 82

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$utf8 is deprecated

Filename: core/Controller.php

Line Number: 82

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$uri is deprecated

Filename: core/Controller.php

Line Number: 82

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$exceptions is deprecated

Filename: core/Controller.php

Line Number: 82

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$router is deprecated

Filename: core/Controller.php

Line Number: 82

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$output is deprecated

Filename: core/Controller.php

Line Number: 82

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$security is deprecated

Filename: core/Controller.php

Line Number: 82

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$input is deprecated

Filename: core/Controller.php

Line Number: 82

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$lang is deprecated

Filename: core/Controller.php

Line Number: 82

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 132

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 294

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 168

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 237

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 317

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 358

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 282

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 289

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 304

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 314

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 315

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 316

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 317

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 375

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 110

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Session cannot be started after headers have already been sent

Filename: Session/Session.php

Line Number: 143

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$session is deprecated

Filename: core/Loader.php

Line Number: 1283

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Mypagination::$SP is deprecated

Filename: libraries/Mypagination.php

Line Number: 6

Backtrace:

File: /home/cahyonoi/kreatif.co.id/application/libraries/Mypagination.php
Line: 6
Function: _error_handler

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$pagination is deprecated

Filename: core/Loader.php

Line Number: 1283

Backtrace:

File: /home/cahyonoi/kreatif.co.id/application/libraries/Mypagination.php
Line: 7
Function: library

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$mypagination is deprecated

Filename: core/Loader.php

Line Number: 1283

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Page::$func is deprecated

Filename: core/Loader.php

Line Number: 1283

Backtrace:

File: /home/cahyonoi/kreatif.co.id/index.php
Line: 315
Function: require_once

db->query("SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));"); $Q = $this->db->query("select {$a}* from {$table} {$where} order by {$order} {$ad}"); if($Q->num_rows() > 0) { foreach($Q->result_array() as $row) { $data[] = $row; } } $Q->free_result(); return $data; } function getTotalData($table,$where="") { $Q = $this->db->query("select count(*) as tot from {$table} {$where}"); $data = $Q->row(); return $data->tot; } function getQuery($sql) { $data = array(); $Q = $this->db->query("{$sql}"); if($Q->num_rows() > 0) { foreach($Q->result_array() as $row) { $data[] = $row; } } $Q->free_result(); return $data; } function getAllDataPerpage($table, $num, $offset, $order="id", $ad="desc") { $data = array(); $offset = ($offset=='') ? 0 : $offset; $Q = $this->db->query("select * from {$table} order by {$order} {$ad} limit {$offset}, {$num}"); if($Q->num_rows() > 0) { foreach($Q->result_array() as $row) { $data[] = $row; } } $Q->free_result(); return $data; } function getCountData($table,$where="") { $Q = $this->db->query("select count(*) as tot from {$table} {$where}"); $data = $Q->row(); return $data->tot; } function getSumData($table,$field,$where="") { $Q = $this->db->query("select sum({$field}) as tot from {$table} {$where}"); $data = $Q->row(); return $data->tot; } function getData($table, $field="id", $id) { $Q = $this->db->query("select * from {$table} where {$field}='{$id}'"); $data = $Q->row(); return $data; } function getDataWhere($table, $where="",$limit="limit 1") { $Q = $this->db->query("select * from {$table} {$where} {$limit}"); $data = $Q->row(); return $data; } function getMenu($id='0') { $frs_lvl = ($id=='0') ? ' id="nav"' : ''; if($id<=10) $content = ''; else $content = ''; $level = $this->getAllData('t_menu','urutan','asc'," where level_up='{$id}' "); if(count($level)!=0) { foreach($level as $r => $row) { $uri_3 = ($this->uri->segment(3)!='') ? $this->uri->segment(3) : 1; $uri_3 = (int)$uri_3; if($this->getUpMenu($uri_3) == $row['id']) { if($row['id']==1) { $content .= '
  • '.$row['nama'].''; } else { $content .= '
  • '.$row['nama'].''; } } else { if($row['id']==1) { $content .= '
  • '.$row['nama'].''; } else { $content .= '
  • '.$row['nama'].''; } } $next_level = $this->getAllData('t_menu','urutan','asc'," where level_up='".$row['id']."' "); if(count($next_level)!=0) { $content .= $this->getMenu($row['id']); } } } $content .= ''; return $content; } function getUpMenu($id) { if($id==0) $utama = 1; else { $cek = $this->getData('t_menu', 'id', $id); if($cek) { if($cek->level_up!=0) { $utama = $this->getUpMenu($cek->level_up); } else { $utama = $cek->id; } } else { $utama = 1; } } return $utama; } function cek_periode($jenis, $status) { $Q = $this->db->query("select periode from t_periode where jenis = '{$jenis}' and status = '{$status}'"); $data = $Q->row(); return str_replace(" ","",$data->periode); } function periode_to_str($jenis, $status) { $Q = $this->db->query("select periode from t_periode where jenis = '{$jenis}' and status = '{$status}'"); $data = $Q->row(); $tgl1 = substr($data->periode,0,2); $bln1 = substr($data->periode,2,2); $thn1 = substr($data->periode,4,4); $tgl2 = substr($data->periode,8,2); $bln2 = substr($data->periode,10,2); $thn2 = substr($data->periode,12,4); return $this->func->convertTGL($thn1 . "-" . $bln1 . "-" .$tgl1 ,"yes") . " s/d " . $this->func->convertTGL( $thn2 . "-" . $bln2 . "-" .$tgl2,"yes"); } function buat_periode($jenis) { $var_tgl = $this->M_sergun->cek_periode($jenis, 'buka'); $tgl1 = substr($var_tgl,0,2); $bln1 = substr($var_tgl,2,2); $thn1 = substr($var_tgl,4,4); $tgl2 = substr($var_tgl,8,2); $bln2 = substr($var_tgl,10,2); $thn2 = substr($var_tgl,12,4); $tgl_baru_1 = $thn1 . "-" . $bln1 . "-" . $tgl1; $tgl_baru_2 = $thn2 . "-" . $bln2 . "-" . $tgl2; $tgl_baru = '01' . date('mY', mktime(0,0,0, date('m', strtotime($tgl_baru_1))+1, date('d'), date('Y', strtotime($tgl_baru_1)))) . date('tmY', mktime(0,0,0, date('m', strtotime($tgl_baru_2))+1, date('d'), date('Y', strtotime($tgl_baru_2)))); return $tgl_baru; } function pembayaran_lembur() { $R = $this->cek_periode('OT', 'buka'); $bln2 = substr($R,10,2); $bln2 = $bln2 + 1; if (strlen($bln2) == 1) { $bln2 = '0' . $bln2; } else { $bln2 = $bln2; } $thn2 = substr($R,12,4); return '10-' . $bln2 . '-' . date("Y", strtotime($thn2)); } function datediff($tgl1, $tgl2) { $tgl1 = (is_string($tgl1) ? strtotime($tgl1) : $tgl1); $tgl2 = (is_string($tgl2) ? strtotime($tgl2) : $tgl2); $diff_secs = abs($tgl1 - $tgl2); $base_year = min(date("Y", $tgl1), date("Y", $tgl2)); $diff = mktime(0, 0, $diff_secs, 1, 1, $base_year); return array( "years" => date("Y", $diff) - $base_year, "months_total" => (date("Y", $diff) - $base_year) * 12 + date("n", $diff) - 1, "months" => date("n", $diff) - 1, "days_total" => floor($diff_secs / (3600 * 24)), "days" => date("j", $diff) - 1, "hours_total" => floor($diff_secs / 3600), "hours" => date("G", $diff), "minutes_total" => floor($diff_secs / 60), "minutes" => (int) date("i", $diff), "seconds_total" => $diff_secs, "seconds" => (int) date("s", $diff) ); } function menit_ke_jam($menit) { return sprintf("%02d Jam %02d Menit", floor($menit/60), $menit%60); } function shift_pengali($jenis) { $Q = $this->db->query("select pengali from t_shift_rumus where jenis = '{$jenis}'"); $data = $Q->row(); return $data->pengali; } // function backup_tables($tables = '*') // { // //get all of the tables // if($tables == '*') // { // $tables = array(); // $result = mysql_query('SHOW TABLES'); // while($row = mysql_fetch_row($result)) // { // $tables[] = $row[0]; // } // } // else // { // $tables = is_array($tables) ? $tables : explode(',',$tables); // } // //cycle through // foreach($tables as $table) // { // $result = mysql_query('SELECT * FROM '.$table); // $num_fields = mysql_num_fields($result); // $return.= 'DROP TABLE IF EXISTS '.$table.';'; // $row2 = mysql_fetch_row(mysql_query('SHOW CREATE TABLE '.$table)); // $return.= "\n\n".$row2[1].";\n\n"; // for ($i = 0; $i < $num_fields; $i++) // { // while($row = mysql_fetch_row($result)) // { // $return.= 'INSERT INTO '.$table.' VALUES('; // for($j=0; $j<$num_fields; $j++) // { // $row[$j] = addslashes($row[$j]); // $row[$j] = ereg_replace("\n","\\n",$row[$j]); // if (isset($row[$j])) { $return.= '"'.$row[$j].'"' ; } else { $return.= '""'; } // if ($j<($num_fields-1)) { $return.= ','; } // } // $return.= ");\n"; // } // } // $return.="\n\n\n"; // } // //save file // $handle = fopen('DATA_HRD_'.time().'.sql','w+'); // fwrite($handle,$return); // fclose($handle); // } function getBSC($tipe="Q",$unit="66",$tahun="2013",$per="1") { $i = 0; $tot_bobot_bln = array(); $tot_bobot_q = array(); while($i < 13) { if($i!=0) { $tot_bobot_bln[$i] = 0; } if($i%3==0 && $i!=0) { $tot_bobot_q[$i] = 0; } $i++; } $x = 1; //$unit = $this->m_sergun->getAllData('t_unit','nama_unit','asc'); $tot_bobot = 0; $katalog = $this->m_sergun->getAllData('bsc_distribusi d,bsc_penetapan p','p.ord','asc'," where d.kode_penetapan=p.kode and d.unit='".$unit."' and p.tahun='".$tahun."' "); //print_r($katalog); foreach($katalog as $r => $row) { // $cek_dis = $this->m_sergun->getDataWhere("bsc_distribusi"," Where kode_penetapan='".$row['kode']."' and unit='".$id_unit."' "); $bobot = (isset($row['bobot'])) ? $row['bobot'] : ""; $tot_bobot = $tot_bobot + $bobot; $cek_target = $this->m_sergun->getDataWhere("bsc_target_penetapan"," Where id_penetapan='".$row['kode']."' "); $q1 = ($cek_target) ? $cek_target->target_Q1 : ""; $q2 = ($cek_target) ? $cek_target->target_Q2 : ""; $q3 = ($cek_target) ? $cek_target->target_Q3 : ""; $q4 = ($cek_target) ? $cek_target->target_Q4 : ""; $polar = $row['polarisasi']; $i = 0; while($i < 13) { if($i!=0) { $capai = $this->m_sergun->getDataWhere('bsc_pencapaian', " where periode='".$row['tahun'].$i."' and id_penetapan='".$row['kode']."' and status<>'Pending' "); //echo $tahun; exit; $hasil = ($capai) ? floatval($capai->hasil) : ""; if($capai) { if( $i <= 3 ) $target = $q1; elseif($i <= 6) $target = $q2; elseif($i <= 9) $target = $q3; elseif($i <= 12) $target = $q4; $target = floatval($target); if($polar=="Minimum" || $polar=="minimum") { if($hasil >= $target) { $bobotnya = $bobot; } else { $bobotnya = 0; $cek = $target/2; } } else { if($hasil <= $target) { $bobotnya = $bobot; } else { $bobotnya = 0; } } } else { $bobotnya = ""; } $tot_bobot_bln[$i] = $tot_bobot_bln[$i] + $bobotnya; // $hasil = number_format($hasil,2); // //$Q = substr($Q,0,-3); // $hasilx = substr($hasil,-2,2); // $hasil = ($hasilx=="00") ? substr($hasil,0,-3) : $hasil; } if($i%3==0 && $i!=0) { $polar = $row['polarisasi']; $jenis_konsol = $row['jenis_kosolidasi_data']; if($jenis_konsol=="Take Last Known Value") { $cek_capai = $this->m_sergun->getDataWhere('bsc_pencapaian'," where periode='{$tahun}{$i}' and id_penetapan='".$row['kode']."'"); $Q = ($cek_capai) ? $cek_capai->hasil : "0"; } elseif($jenis_konsol=="Sum") { $cek_capai = $this->m_sergun->getDataWhere('bsc_pencapaian'," where periode='".$tahun.($i-2)."' and id_penetapan='".$row['kode']."'"); $h1 = ($cek_capai) ? $cek_capai->hasil : "0"; $cek_capai = $this->m_sergun->getDataWhere('bsc_pencapaian'," where periode='".$tahun.($i-1)."' and id_penetapan='".$row['kode']."'"); $h2 = ($cek_capai) ? $cek_capai->hasil : "0"; $cek_capai = $this->m_sergun->getDataWhere('bsc_pencapaian'," where periode='".$tahun.($i)."' and id_penetapan='".$row['kode']."'"); $h3 = ($cek_capai) ? $cek_capai->hasil : "0"; $Q = $h1 + $h2 + $h3; } else { $cek_capai = $this->m_sergun->getDataWhere('bsc_pencapaian'," where periode='".$tahun.($i-2)."' and id_penetapan='".$row['kode']."'"); $h1 = ($cek_capai) ? $cek_capai->hasil : "0"; $cek_capai = $this->m_sergun->getDataWhere('bsc_pencapaian'," where periode='".$tahun.($i-1)."' and id_penetapan='".$row['kode']."'"); $h2 = ($cek_capai) ? $cek_capai->hasil : "0"; $cek_capai = $this->m_sergun->getDataWhere('bsc_pencapaian'," where periode='".$tahun.($i)."' and id_penetapan='".$row['kode']."'"); $h3 = ($cek_capai) ? $cek_capai->hasil : "0"; $Q = ($h1 + $h2 + $h3) / 3; } if( $i <= 3 ) $target = $q1; elseif($i <= 6) $target = $q2; elseif($i <= 9) $target = $q3; elseif($i <= 12) $target = $q4; $target = floatval($target); $hasil = $Q; if($polar=="Minimum" || $polar=="minimum") { if($hasil >= $target) { $bobotnya = $bobot; $warna = "#00CC33"; } else { $bobotnya = 0; $cek = $target/2; } } else { if($hasil <= $target) { $bobotnya = $bobot; } else { $bobotnya = 0; } } $tot_bobot_q[$i] = $tot_bobot_q[$i] + $bobotnya; } $i++; } $x++; } // print_r($tot_bobot_q); // exit; if($tipe=="bulan") return $tot_bobot_bln[$per]; if($tipe=="Q") { $per = $per*3; return $tot_bobot_q[$per]; } } } ?>

    A PHP Error was encountered

    Severity: Warning

    Message: Cannot modify header information - headers already sent by (output started at /home/cahyonoi/kreatif.co.id/system/core/Exceptions.php:271)

    Filename: core/Common.php

    Line Number: 570

    Backtrace:

    An uncaught Exception was encountered

    Type: RuntimeException

    Message: /home/cahyonoi/kreatif.co.id/application/models/M_sergun.php exists, but doesn't declare class M_sergun

    Filename: /home/cahyonoi/kreatif.co.id/system/core/Loader.php

    Line Number: 340

    Backtrace:

    File: /home/cahyonoi/kreatif.co.id/index.php
    Line: 315
    Function: require_once