public static function GetLvAccess($cFileLoc, $lCek = true) { $cMd5 = GetSession("cSession_SCLevelmd5"); $cLevel = GetSession("cSession_SCLevel"); if ($lCek) { $cFileLoc = str_replace("./pages/", "", GetLocationFile($cFileLoc)); } $vaReturn = array("lMaker" => false, "lChecker" => false, "lSigner" => false); if ($cLevel == "0000") { $vaReturn = array("lMaker" => false, "lChecker" => false, "lSigner" => true); } else { if (strpos($cMd5, md5($cFileLoc . ".index.1")) > -1) { $vaReturn['lMaker'] = true; } if (strpos($cMd5, md5($cFileLoc . ".index.2")) > -1) { $vaReturn['lChecker'] = true; } if (strpos($cMd5, md5($cFileLoc . ".index.3")) > -1) { $vaReturn['lSigner'] = true; } } SaveSession("lFOTO_DELETE", "1"); return $vaReturn; }
<?php $cPageSource = GetLocationFile(__FILE__); $vaDate = scDate::Date2Var(date("Y-m-d")); ?> <section class="content-header"> <h1> Lihat SPPD </h1> <ol class="breadcrumb"> <li><a href=""><i class="fa fa-envelope"></i>Lihat SPPD</a></li> </ol> </section> <section class="content"> <div class="nav-tabs-custom"> <ul class="nav nav-tabs" id="myTabs"> <li class="active"><a href="#tab_1" data-toggle="tab" id="trsppd_tab_1">Daftar SPPD</a></li> <li class="pull-right bg-danger no-margin" style="padding-right:10px ;padding-left:10px "> <h5 style="font-weight:bold;"> <?php echo $vaDate['Hari'] . " , " . $vaDate['Tgl'] . " " . $vaDate['Bulan'] . " " . $vaDate['Tahun']; ?> </h5> </li> </ul> <div class="tab-content"> <div class="tab-pane active full-height" id="tab_1"> <form id="trsppd_filter"> <div class="row"> <div class="col-sm-3"> <div class="row">
<?php $cLocFile = GetLocationFile(__FILE__); ?> <section class="content-header"> <h1 style="display:inline-block"> Dashboard </h1> <form id="frmdah" class="form-inline pull-right" style="display:inline-block;margin-top:-5px;"> <div class="form-group"> <label>Start Date</label> <input type="text" name="dTglAwal" id="dTglAwal" class="form-control sc-date text-center" <?php echo scDate::SetDataDate(); ?> value="<?php echo date("d-01-Y"); ?> "> <input type="hidden" name="cPageSource" id="cPageSource" value="<?php echo $cLocFile; ?> "> </div> <div class="form-group"> <label>End Date</label> <input type="text" name="dTglAkhir" id="dTglAkhir" class="form-control sc-date text-center" <?php echo scDate::SetDataDate(); ?> value="<?php