<?php

$level = "1,2,3";
include "inc/login.php";
$filefetcher = "sumberdatakapal.inc.php";
$pesanpesan = ijinkan("namsubmitproses=1");
extract($_REQUEST);
include "inc/status.php";
include "inc/modify.php";
require_once "inc/connect.php";
?>

<?php 
$nambiggie[text] = "Sumber Data";
$nambiggie[slices] = "slices/forsumberdatakapal.jpg";
?>

<?php 
if ($_POST["namsubmitproses"]) {
    if (!empty($_FILES["namtextlokasifile"]["name"]) && !empty($namtextshipsailstatus)) {
        if ($_FILES["namtextlokasifile"]["type"] == "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" || $_FILES["namtextlokasifile"]["type"] == "application/vnd.ms-excel") {
            funplog($_SERVER['REMOTE_ADDR'], $_SESSION["penggunaid"], "Sumber Data: Impor XLS", "RUN", "1", "", "");
            require_once $deflink . "class/phpexcel/PHPExcel/IOFactory.php";
            $inputFileType = PHPExcel_IOFactory::identify($_FILES["namtextlokasifile"]["tmp_name"]);
            $objReader = PHPExcel_IOFactory::createReader($inputFileType);
            $objReader->setReadDataOnly(true);
            $objReader->setLoadSheetsOnly("template");
            $objPHPExcel = $objReader->load($_FILES["namtextlokasifile"]["tmp_name"]);
            $objWorksheet = $objPHPExcel->getActiveSheet();
            $buatsumberid = funtheid("xls");
            $buatsumbertimeimported = date("Y-m-d H:i:s");
Exemplo n.º 2
0
<?php

$level = "1,2,3";
include "inc/login.php";
include "dependencies.php";
$filefetcher = "sumberdatakapal.inc.php";
$filefetchercarriersaringkapal = "namtextsaringshipsailstatus='+document.getElementById('namtextsaringshipsailstatus').value+'&" . "namtextsaringshipname='+document.getElementById('namtextsaringshipname').value+'&" . "namtextsaringshipdepartureport='+document.getElementById('namtextsaringshipdepartureport').value+'&" . "namtextsaringshipdestinationport='+document.getElementById('namtextsaringshipdestinationport').value+'&" . "namtextsaringshipdeparturedatetanggal='+document.getElementById('namtextsaringshipdeparturedatetanggal').value+'&" . "namtextsaringshipdeparturedatebulan='+document.getElementById('namtextsaringshipdeparturedatebulan').value+'&" . "namtextsaringshipdeparturedatetahun='+document.getElementById('namtextsaringshipdeparturedatetahun').value+'&" . "namtextsaringshipdestinationdatetanggal='+document.getElementById('namtextsaringshipdestinationdatetanggal').value+'&" . "namtextsaringshipdestinationdatebulan='+document.getElementById('namtextsaringshipdestinationdatebulan').value+'&" . "namtextsaringshipdestinationdatetahun='+document.getElementById('namtextsaringshipdestinationdatetahun').value+'";
$filefetchercarriersaringpenumpang = "namtextsaringpenumpangnama='+document.getElementById('namtextsaringpenumpangnama').value+'&" . "namtextsaringpenumpangjeniskelamin='+document.getElementById('namtextsaringpenumpangjeniskelamin').value+'&" . "namtextsaringpenumpangpasporno='+document.getElementById('namtextsaringpenumpangpasporno').value+'&" . "namtextsaringpenumpangwaktulahirtanggal='+document.getElementById('namtextsaringpenumpangwaktulahirtanggal').value+'&" . "namtextsaringpenumpangwaktulahirbulan='+document.getElementById('namtextsaringpenumpangwaktulahirbulan').value+'&" . "namtextsaringpenumpangwaktulahirtahun='+document.getElementById('namtextsaringpenumpangwaktulahirtahun').value+'&" . "namtextsaringpenumpangpasporpoi='+document.getElementById('namtextsaringpenumpangpasporpoi').value+'&" . "namtextsaringpenumpangpaspordoitanggal='+document.getElementById('namtextsaringpenumpangpaspordoitanggal').value+'&" . "namtextsaringpenumpangpaspordoibulan='+document.getElementById('namtextsaringpenumpangpaspordoibulan').value+'&" . "namtextsaringpenumpangpaspordoitahun='+document.getElementById('namtextsaringpenumpangpaspordoitahun').value+'&" . "namtextsaringpenumpangkebangsaan='+document.getElementById('namtextsaringpenumpangkebangsaan').value+'&" . "namtextsaringpenumpangremarks='+document.getElementById('namtextsaringpenumpangremarks').value+'";
$filefetchercarrierfitur1 = "namsubmitfitur1=ok&" . "namtextvarfitur1='+document.getElementById('namtextvarfitur1').value+'";
$filefetchercarrierubahpenumpang = "ffswubahpenumpangcase=saatproses&" . "namsubmitubahdatapenumpang=ok&" . "namtextubahpenumpangnama='+document.getElementById('namtextubahpenumpangnama').value+'&" . "namtextubahpenumpangjeniskelamin='+document.getElementById('namtextubahpenumpangjeniskelamin').value+'&" . "namtextubahpenumpangwaktulahirtanggal='+document.getElementById('namtextubahpenumpangwaktulahirtanggal').value+'&" . "namtextubahpenumpangwaktulahirbulan='+document.getElementById('namtextubahpenumpangwaktulahirbulan').value+'&" . "namtextubahpenumpangwaktulahirtahun='+document.getElementById('namtextubahpenumpangwaktulahirtahun').value+'&" . "namtextubahpenumpangpasporno='+document.getElementById('namtextubahpenumpangpasporno').value+'&" . "namtextubahpenumpangpasporpoi='+document.getElementById('namtextubahpenumpangpasporpoi').value+'&" . "namtextubahpenumpangpaspordoitanggal='+document.getElementById('namtextubahpenumpangpaspordoitanggal').value+'&" . "namtextubahpenumpangpaspordoibulan='+document.getElementById('namtextubahpenumpangpaspordoibulan').value+'&" . "namtextubahpenumpangpaspordoitahun='+document.getElementById('namtextubahpenumpangpaspordoitahun').value+'&" . "namtextubahpenumpangkebangsaan='+document.getElementById('namtextubahpenumpangkebangsaan').value+'";
$loadingtime = 0;
$pesanpesan = ijinkan("tandahapus=1");
?>

<?php 
$nambiggie[text] = "Sumber Data";
$nambiggie[slices] = "slices/forsumberdatakapal.jpg";
?>

<?php 
if ($_POST["namsubmitubahdatapenumpang"] == "ok") {
    sleep($loadingtime);
    if (!empty($_POST["namtextubahpenumpangnama"]) && !empty($_POST["namtextubahpenumpangjeniskelamin"])) {
        funplog($_SERVER['REMOTE_ADDR'], $_SESSION["penggunaid"], "Sumber Data Penumpang: Ubah Data", "RUN", "1", "", "");
        $ubahpenumpangnama = trim(strip_tags(funbuangkarakteraneh($_POST["namtextubahpenumpangnama"])));
        $ubahpenumpangnama = ucwords($ubahpenumpangnama);
        $ubahpenumpangjeniskelamin = $_POST["namtextubahpenumpangjeniskelamin"];
        $ubahpenumpangwaktulahirtahun = $_POST["namtextubahpenumpangwaktulahirtahun"];
        $ubahpenumpangwaktulahirbulan = $_POST["namtextubahpenumpangwaktulahirbulan"];
        $ubahpenumpangwaktulahirtanggal = $_POST["namtextubahpenumpangwaktulahirtanggal"];
        $ubahpenumpangwaktulahir = $ubahpenumpangwaktulahirtahun . "-" . $ubahpenumpangwaktulahirbulan . "-" . $ubahpenumpangwaktulahirtanggal;
<?php

$level = "1,2,3";
include "inc/login.php";
include "dependencies.php";
$filefetcher = "identifikasipenumpang.inc.php";
$filefetchercarriersaring = "namtextsaringpenumpangnama='+document.getElementById('namtextsaringpenumpangnama').value+'&" . "namtextsaringpenumpangjeniskelamin='+document.getElementById('namtextsaringpenumpangjeniskelamin').value+'&" . "namtextsaringpenumpangpasporno='+document.getElementById('namtextsaringpenumpangpasporno').value+'&" . "namtextsaringpenumpangwaktulahirtanggal='+document.getElementById('namtextsaringpenumpangwaktulahirtanggal').value+'&" . "namtextsaringpenumpangwaktulahirbulan='+document.getElementById('namtextsaringpenumpangwaktulahirbulan').value+'&" . "namtextsaringpenumpangwaktulahirtahun='+document.getElementById('namtextsaringpenumpangwaktulahirtahun').value+'&" . "namtextsaringpenumpangkebangsaan='+document.getElementById('namtextsaringpenumpangkebangsaan').value+'&" . "namtextsaringpenumpangatensistatus='+document.getElementById('namtextsaringpenumpangatensistatus').value+'&" . "namtexttampilan='+document.getElementById('namtexttampilan').value+'";
$filefetchercarrierbuat = "ffswbuatcase=saatproses&" . "namsubmitbuatdatapribadipenumpang=ok&" . "namtextbuatpenumpangnama='+document.getElementById('namtextbuatpenumpangnama').value+'&" . "namtextbuatpenumpangjeniskelamin='+document.getElementById('namtextbuatpenumpangjeniskelamin').value+'&" . "namtextbuatpenumpangtempatlahir='+document.getElementById('namtextbuatpenumpangtempatlahir').value+'&" . "namtextbuatpenumpangwaktulahirtanggal='+document.getElementById('namtextbuatpenumpangwaktulahirtanggal').value+'&" . "namtextbuatpenumpangwaktulahirbulan='+document.getElementById('namtextbuatpenumpangwaktulahirbulan').value+'&" . "namtextbuatpenumpangwaktulahirtahun='+document.getElementById('namtextbuatpenumpangwaktulahirtahun').value+'&" . "namtextbuatpenumpangagama='+document.getElementById('namtextbuatpenumpangagama').value+'&" . "namtextbuatpenumpangalamatjalan='+encodeURI(document.getElementById('namtextbuatpenumpangalamatjalan').value)+'&" . "namtextbuatpenumpangalamatkota='+document.getElementById('namtextbuatpenumpangalamatkota').value+'&" . "namtextbuatpenumpangalamatkodepos='+document.getElementById('namtextbuatpenumpangalamatkodepos').value+'&" . "namtextbuatpenumpangalamatnotel='+document.getElementById('namtextbuatpenumpangalamatnotel').value+'&" . "namtextbuatpenumpangatensistatus='+document.getElementById('namtextbuatpenumpangatensistatus').value+'&" . "namtextbuatpenumpangatensiketerangan='+encodeURI(document.getElementById('namtextbuatpenumpangatensiketerangan').value)+'&" . "namtextbuatpenumpangpasporno='+document.getElementById('namtextbuatpenumpangpasporno').value+'&" . "namtextbuatpenumpangpasporpoi='+document.getElementById('namtextbuatpenumpangpasporpoi').value+'&" . "namtextbuatpenumpangpaspordoitanggal='+document.getElementById('namtextbuatpenumpangpaspordoitanggal').value+'&" . "namtextbuatpenumpangpaspordoibulan='+document.getElementById('namtextbuatpenumpangpaspordoibulan').value+'&" . "namtextbuatpenumpangpaspordoitahun='+document.getElementById('namtextbuatpenumpangpaspordoitahun').value+'&" . "namtextbuatpenumpangkebangsaan='+document.getElementById('namtextbuatpenumpangkebangsaan').value+'&" . "namtextbuatpenumpangciriciri='+encodeURI(document.getElementById('namtextbuatpenumpangciriciri').value)+'&" . "namtexttmplokasifotobinary1='+document.getElementById('namiframefoto').contentWindow.document.getElementById('namtexttmplokasifotobinary1').value+'&" . "namtexttmplokasifotobinary2='+document.getElementById('namiframefoto').contentWindow.document.getElementById('namtexttmplokasifotobinary2').value+'&" . "namtexttypefoto='+document.getElementById('namiframefoto').contentWindow.document.getElementById('namtexttypefoto').value+'&" . "namtexttmplokasifotopasporbinary1='+document.getElementById('namiframefotopaspor').contentWindow.document.getElementById('namtexttmplokasifotopasporbinary1').value+'&" . "namtexttmplokasifotopasporbinary2='+document.getElementById('namiframefotopaspor').contentWindow.document.getElementById('namtexttmplokasifotopasporbinary2').value+'&" . "namtexttypefotopaspor='+document.getElementById('namiframefotopaspor').contentWindow.document.getElementById('namtexttypefotopaspor').value+'";
$filefetchercarrierubah = "ffswubahcase=saatproses&" . "namsubmitubahdatapribadipenumpang=ok&" . "namtextubahpenumpangnama='+document.getElementById('namtextubahpenumpangnama').value+'&" . "namtextubahpenumpangjeniskelamin='+document.getElementById('namtextubahpenumpangjeniskelamin').value+'&" . "namtextubahpenumpangtempatlahir='+document.getElementById('namtextubahpenumpangtempatlahir').value+'&" . "namtextubahpenumpangwaktulahirtanggal='+document.getElementById('namtextubahpenumpangwaktulahirtanggal').value+'&" . "namtextubahpenumpangwaktulahirbulan='+document.getElementById('namtextubahpenumpangwaktulahirbulan').value+'&" . "namtextubahpenumpangwaktulahirtahun='+document.getElementById('namtextubahpenumpangwaktulahirtahun').value+'&" . "namtextubahpenumpangagama='+document.getElementById('namtextubahpenumpangagama').value+'&" . "namtextubahpenumpangalamatjalan='+encodeURI(document.getElementById('namtextubahpenumpangalamatjalan').value)+'&" . "namtextubahpenumpangalamatkota='+document.getElementById('namtextubahpenumpangalamatkota').value+'&" . "namtextubahpenumpangalamatkodepos='+document.getElementById('namtextubahpenumpangalamatkodepos').value+'&" . "namtextubahpenumpangalamatnotel='+document.getElementById('namtextubahpenumpangalamatnotel').value+'&" . "namtextubahpenumpangatensistatus='+document.getElementById('namtextubahpenumpangatensistatus').value+'&" . "namtextubahpenumpangatensiketerangan='+encodeURI(document.getElementById('namtextubahpenumpangatensiketerangan').value)+'&" . "namtextubahpenumpangpasporno='+document.getElementById('namtextubahpenumpangpasporno').value+'&" . "namtextubahpenumpangpasporpoi='+document.getElementById('namtextubahpenumpangpasporpoi').value+'&" . "namtextubahpenumpangpaspordoitanggal='+document.getElementById('namtextubahpenumpangpaspordoitanggal').value+'&" . "namtextubahpenumpangpaspordoibulan='+document.getElementById('namtextubahpenumpangpaspordoibulan').value+'&" . "namtextubahpenumpangpaspordoitahun='+document.getElementById('namtextubahpenumpangpaspordoitahun').value+'&" . "namtextubahpenumpangkebangsaan='+document.getElementById('namtextubahpenumpangkebangsaan').value+'&" . "namtextubahpenumpangciriciri='+encodeURI(document.getElementById('namtextubahpenumpangciriciri').value)+'&" . "namtexttmplokasifotobinary1='+document.getElementById('namiframefoto').contentWindow.document.getElementById('namtexttmplokasifotobinary1').value+'&" . "namtexttmplokasifotobinary2='+document.getElementById('namiframefoto').contentWindow.document.getElementById('namtexttmplokasifotobinary2').value+'&" . "namtexttypefoto='+document.getElementById('namiframefoto').contentWindow.document.getElementById('namtexttypefoto').value+'&" . "namtexttmplokasifotopasporbinary1='+document.getElementById('namiframefotopaspor').contentWindow.document.getElementById('namtexttmplokasifotopasporbinary1').value+'&" . "namtexttmplokasifotopasporbinary2='+document.getElementById('namiframefotopaspor').contentWindow.document.getElementById('namtexttmplokasifotopasporbinary2').value+'&" . "namtexttypefotopaspor='+document.getElementById('namiframefotopaspor').contentWindow.document.getElementById('namtexttypefotopaspor').value+'";
$loadingtime = 0;
$pesanpesan = ijinkan("namsubmitbuatdatapribadipenumpang=1,2;" . "namsubmitubahdatapribadipenumpang=1,2;" . "tandahapus=1");
?>

<?php 
$nambiggie[text] = "Identifikasi Penumpang";
$nambiggie[slices] = "slices/foridentifikasipenumpang.jpg";
?>

<?php 
if ($_POST["namsubmitbuatdatapribadipenumpang"] == "ok") {
    sleep($loadingtime);
    if (!empty($_POST["namtextbuatpenumpangnama"]) && !empty($_POST["namtextbuatpenumpangjeniskelamin"])) {
        funplog($_SERVER['REMOTE_ADDR'], $_SESSION["penggunaid"], "Data Penumpang: Buat Baru", "RUN", "1", "", "");
        $buatpenumpangid = funtheid("pnp");
        $buatpenumpangnama = trim(strip_tags(funbuangkarakteraneh($_POST["namtextbuatpenumpangnama"])));
        $buatpenumpangnama = ucwords($buatpenumpangnama);
        $buatpenumpangjeniskelamin = $_POST["namtextbuatpenumpangjeniskelamin"];
        $buatpenumpangtempatlahir = trim(strip_tags(funbuangkarakteraneh($_POST["namtextbuatpenumpangtempatlahir"])));
        $buatpenumpangtempatlahir = ucwords($buatpenumpangtempatlahir);
        $buatpenumpangwaktulahirtahun = $_POST["namtextbuatpenumpangwaktulahirtahun"];
        $buatpenumpangwaktulahirbulan = $_POST["namtextbuatpenumpangwaktulahirbulan"];