当前位置: 首页>>代码示例>>PHP>>正文


PHP cekAkses函数代码示例

本文整理汇总了PHP中cekAkses函数的典型用法代码示例。如果您正苦于以下问题:PHP cekAkses函数的具体用法?PHP cekAkses怎么用?PHP cekAkses使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了cekAkses函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: cekAkses

<?php

require 'connections/con_gl.php';
cekAkses($_SESSION[akses], "DD-7-3");
mysql_select_db($database_con_gl, $con_gl);
$query_klas1 = "SELECT id, gudang FROM gl_gudang ORDER BY gudang ASC";
$klas1 = mysql_query($query_klas1, $con_gl) or die(mysql_error());
$row_klas1 = mysql_fetch_assoc($klas1);
$totalRows_klas1 = mysql_num_rows($klas1);
$colname_edit = "-1";
if (isset($_GET['id'])) {
    $colname_edit = get_magic_quotes_gpc() ? $_GET['id'] : addslashes($_GET['id']);
}
mysql_select_db($database_con_gl, $con_gl);
$query_edit = sprintf("SELECT * FROM gl_kontak WHERE id = %s", $colname_edit);
$edit = mysql_query($query_edit, $con_gl) or die(mysql_error());
$row_edit = mysql_fetch_assoc($edit);
$totalRows_edit = mysql_num_rows($edit);
?>
<script type="text/javascript">
$(document).ready(function() {

	$().ajaxStart(function() {
		$('#loading').show();
		$('#result').hide();
	}).ajaxStop(function() {
		$('#loading').hide();
		$('#result').fadeIn('slow');
	});

	$('#delete').submit(function() {
开发者ID:bosokpp1,项目名称:cipaganti-rentcar,代码行数:31,代码来源:delete.php

示例2: cekAkses

<?php

require 'connections/con_gl.php';
cekAkses($_SESSION[akses], "EX-2");
$currentPage = $_SERVER["PHP_SELF"];
mysql_select_db($database_con_gl, $con_gl);
$query_l_kel = "SELECT id, jenis FROM gl_jenisasuransi ORDER BY jenis ASC";
$l_kel = mysql_query($query_l_kel, $con_gl) or die(mysql_error());
$row_l_kel = mysql_fetch_assoc($l_kel);
$totalRows_l_kel = mysql_num_rows($l_kel);
$maxRows_data = 8;
$pageNum_data = 0;
if (isset($_GET['pageNum_data'])) {
    $pageNum_data = $_GET['pageNum_data'];
}
$startRow_data = $pageNum_data * $maxRows_data;
$cr_txt = str_replace("+", " ", $_REQUEST[cr_txt]);
mysql_select_db($database_con_gl, $con_gl);
$query_data = "SELECT gl_transaksiextendasuransi.id, gl_transaksiextendasuransi.tgltransaksi, gl_transaksiextendasuransi.noref, gl_transaksiextendasuransi.jthtempopolis, gl_transaksiextendasuransi.biayapolis, gl_transaksiextendasuransi.nopolis, gl_masterkendaraan.nopolisi, gl_jenisasuransi.jenis, gl_kontak.nama, gl_kontak.tlp FROM gl_transaksiextendasuransi, gl_masterkendaraan, gl_jenisasuransi, gl_kontak WHERE gl_masterkendaraan.id = gl_transaksiextendasuransi.nopolisi AND gl_jenisasuransi.id = gl_transaksiextendasuransi.jenis AND gl_kontak.id = gl_transaksiextendasuransi.namainsurance";
if (isset($_GET[cr_txt]) and $_GET[cr_txt] != '' and $_GET[cr_txt] != '+') {
    $decode_cr = str_replace("+", " ", $_GET[cr_txt]);
    $query_data .= " AND (gl_transaksiextendasuransi.nopolis LIKE '%%{$decode_cr}%%' OR gl_transaksiextendasuransi.nopolis LIKE '%%{$decode_cr}%%' OR gl_transaksiextendasuransi.noref LIKE '%%{$decode_cr}%%' OR gl_kontak.nama LIKE '%%{$decode_cr}%%' OR gl_kontak.tlp LIKE '%%{$decode_cr}%%')";
}
if (isset($_GET[cr_kel]) and $_GET[cr_kel] != 'ALL') {
    $query_data .= " AND gl_transaksiextendasuransi.jenis ='{$_GET['cr_kel']}'";
}
$query_data .= " ORDER BY gl_transaksiextendasuransi.jenis, gl_transaksiextendasuransi.nopolisi";
$data = mysql_query($query_data, $con_gl) or die(mysql_error());
$totalRows_data = mysql_num_rows($data);
$totalPages_data = floor($totalRows_data / $maxRows_data);
$query_data .= " LIMIT {$startRow_data}, {$maxRows_data}";
开发者ID:bosokpp1,项目名称:cipaganti-rentcar,代码行数:31,代码来源:main.php

示例3: cekAkses

<?php

require 'connections/con_gl.php';
cekAkses($_SESSION[akses], "KB-3-2");
$colname_edit = "-1";
if (isset($_GET['noreferensi'])) {
    $colname_edit = get_magic_quotes_gpc() ? $_GET['noreferensi'] : addslashes($_GET['noreferensi']);
}
mysql_select_db($database_con_gl, $con_gl);
$query_edit = sprintf("SELECT * FROM gl_rtrans WHERE no_ref = '{$_GET['noreferensi']}'", $colname_edit);
$edit = mysql_query($query_edit, $con_gl) or die(mysql_error());
$row_edit = mysql_fetch_assoc($edit);
$totalRows_edit = mysql_num_rows($edit);
mysql_select_db($database_con_gl, $con_gl);
$query_klas = "SELECT kd, klasifikasi, keterangan, neraca, ruglab, tipe FROM gl_klas where `tipe` <>'6' and `tipe` <>'7' ORDER BY kd,klasifikasi ASC";
$klas = mysql_query($query_klas, $con_gl) or die(mysql_error());
$row_klas = mysql_fetch_assoc($klas);
$totalRows_klas = mysql_num_rows($klas);
mysql_select_db($database_con_gl, $con_gl);
$query_kontak = "SELECT id, nama, type FROM gl_kontak ORDER BY type, nama ASC";
$kontak = mysql_query($query_kontak, $con_gl) or die(mysql_error());
$row_kontak = mysql_fetch_assoc($kontak);
$totalRows_kontak = mysql_num_rows($kontak);
mysql_select_db($database_con_gl, $con_gl);
$query_klaskas = "SELECT kd, klasifikasi FROM gl_klas WHERE tipe = 2 ORDER BY kd,klasifikasi ASC";
$klaskas = mysql_query($query_klaskas, $con_gl) or die(mysql_error());
$row_klaskas = mysql_fetch_assoc($klaskas);
$totalRows_klaskas = mysql_num_rows($klaskas);
mysql_select_db($database_con_gl, $con_gl);
$query_def_ak = "SELECT gl_company.a_kas FROM gl_company";
$def_ak = mysql_query($query_def_ak, $con_gl) or die(mysql_error());
开发者ID:bosokpp1,项目名称:cipaganti-rentcar,代码行数:31,代码来源:edit.php

示例4: cekAkses

<?php

require_once 'connections/con_gl.php';
cekAkses($_SESSION[akses], "KR-1-1");
mysql_select_db($database_con_gl, $con_gl);
$query_kontak = "SELECT id, nama, type, tcustomer FROM gl_kontak where gl_kontak.type='Customer' AND status='AKTIF' ORDER BY type, nama ASC";
$kontak = mysql_query($query_kontak, $con_gl) or die(mysql_error());
$row_kontak = mysql_fetch_assoc($kontak);
$totalRows_kontak = mysql_num_rows($kontak);
unset($_SESSION['kendaraan']);
unset($_SESSION['txtkendaraan']);
unset($_SESSION['hargasatuan']);
unset($_SESSION['diskon']);
unset($_SESSION['total']);
unset($_SESSION['transaksi']);
unset($_SESSION['subtotal']);
unset($_SESSION['pajak']);
unset($_SESSION['grandtotal']);
function romawi($bulan)
{
    switch ($bulan) {
        case '01':
            $rom = "I";
            break;
        case '02':
            $rom = "II";
            break;
        case '03':
            $rom = "III";
            break;
        case '04':
开发者ID:bosokpp1,项目名称:cipaganti-rentcar,代码行数:31,代码来源:add.php

示例5: cekAkses

<?php

require_once 'connections/con_gl.php';
cekAkses($_SESSION[akses], "DD-8");
$currentPage = $_SERVER["PHP_SELF"];
$maxRows_data = 8;
$pageNum_data = 0;
if (isset($_GET['pageNum_data'])) {
    $pageNum_data = $_GET['pageNum_data'];
}
$startRow_data = $pageNum_data * $maxRows_data;
$cr_txt = str_replace("+", " ", $_REQUEST[cr_txt]);
mysql_select_db($database_con_gl, $con_gl);
$query_data = "SELECT id, nama, alamat, tlp, email, tgldaftar, nama2, tlp2, status from gl_kontak where type='customer' and tcustomer='Corporate'";
if (isset($_GET[cr_txt]) and $_GET[cr_txt] != '' and $_GET[cr_txt] != '+') {
    $decode_cr = str_replace("+", " ", $_GET[cr_txt]);
    $query_data .= " AND nama LIKE '%%{$decode_cr}%%' OR tlp LIKE '%%{$decode_cr}%%' OR nama2 LIKE '%%{$decode_cr}%%' OR tlp2 LIKE '%%{$decode_cr}%%' OR status LIKE '%%{$decode_cr}%%'";
}
$query_data .= " order by nama asc";
$data = mysql_query($query_data, $con_gl) or die(mysql_error());
$totalRows_data = mysql_num_rows($data);
$totalPages_data = floor($totalRows_data / $maxRows_data);
$query_data .= " LIMIT {$startRow_data}, {$maxRows_data}";
$data = mysql_query($query_data, $con_gl) or die(mysql_error());
$totalRow_data = mysql_num_rows($data);
$row_data = mysql_fetch_assoc($data);
$queryString_data = "";
if (!empty($_SERVER['QUERY_STRING'])) {
    $params = explode("&", $_SERVER['QUERY_STRING']);
    $newParams = array();
    foreach ($params as $param) {
开发者ID:bosokpp1,项目名称:cipaganti-rentcar,代码行数:31,代码来源:main+-+Copy.php

示例6: cekAkses

<?php

require 'connections/con_gl.php';
cekAkses($_SESSION[akses], "PD-2");
mysql_select_db($database_con_gl, $con_gl);
$query_edit = "SELECT gl_stok.id, gl_stok.stok, gl_stok.fisik, gl_gudang.gudang, gl_barang.barang, gl_satuan.satuan FROM gl_stok, gl_gudang, gl_barang, gl_satuan WHERE gl_gudang.id=gl_stok.gudang AND gl_barang.id=gl_stok.barang AND gl_satuan.id=gl_stok.satuan AND gl_stok.id='{$_GET['id']}'";
$edit = mysql_query($query_edit, $con_gl) or die(mysql_error());
$row_edit = mysql_fetch_assoc($edit);
$totalRows_edit = mysql_num_rows($edit);
?>
<script type="text/javascript">
$(document).ready(function() {

	$().ajaxStart(function() {
		$('#loading').show();
		$('#result').hide();
	}).ajaxStop(function() {
		$('#loading').hide();
		$('#result').fadeIn('slow');
	});

	$('#editstok').submit(function() {
		$.ajax({
			type: 'POST',
			url: $(this).attr('action'),
			data: $(this).serialize(),
			success: function(data) {
				$('#result').html(data);
			}
		})
		return false;
开发者ID:bosokpp1,项目名称:cipaganti-rentcar,代码行数:31,代码来源:editstok.php

示例7: session_start

<?php

session_start();
include '../../config/connect.php';
include '../../config/function.php';
include '../../config/config.php';
if (NULL !== cekAkses("{$modul}", "{$_SESSION['ylevel']}", "{$act}")) {
    $kd = anti($_POST['kode']);
    $tgl = anti($_POST['tgl']);
    $cust = anti($_POST['cust']);
    $b = explode(' - ', $_POST['brg']);
    $brg = $b[0];
    $harga = abs((int) $_POST['harga']);
    //harga asli dari data barang
    $select_diskon = anti($_POST['select_diskon']);
    $disc_persen = abs((int) $_POST['disc_persen']);
    $disc_rp = abs((int) $_POST['disc_rp']);
    $disc_unit = abs((int) $_POST['disc_unit']);
    $qty = abs((int) $_POST['qty']);
    $jumlah = abs((int) $_POST['jumlah']);
    // $diskon = abs((int)($_POST['diskon']));
    // $ket = anti($_POST['ket']);
    // $item_disc = $harga - $harga_disc;
    // item_disc = nominal pemberian diskon/potongan (auto). Jika harga real ketika transaksi berbeda dengan harga dari data barang
    // $ttl = $harga_disc * $qty;
    // total harga real transaksi * dengan qty
    echo $kd . '<br>';
    echo $tgl . '<br>';
    echo $cust . '<br>';
    echo $brg . '<br>';
    echo $harga . '<br>';
开发者ID:iddan,项目名称:mhs,代码行数:31,代码来源:aksi.php

示例8: cekAkses

<?php

require 'connections/con_gl.php';
?>

<?php 
cekAkses($_SESSION[akses], "A-1-2");
$colname_edit = "-1";
if (isset($_GET['id'])) {
    $colname_edit = get_magic_quotes_gpc() ? $_GET['id'] : addslashes($_GET['id']);
}
mysql_select_db($database_con_gl, $con_gl);
$query_edit = sprintf("SELECT * FROM gl_admin WHERE id = %s", $colname_edit);
$edit = mysql_query($query_edit, $con_gl) or die(mysql_error());
$row_edit = mysql_fetch_assoc($edit);
$totalRows_edit = mysql_num_rows($edit);
mysql_select_db($database_con_gl, $con_gl);
$query_kary = "SELECT id, nama FROM gl_kontak WHERE type = 'Karyawan' ORDER BY nama ASC";
$kary = mysql_query($query_kary, $con_gl) or die(mysql_error());
$row_kary = mysql_fetch_assoc($kary);
$totalRows_kary = mysql_num_rows($kary);
?>

<script type="text/javascript" src="js/jquery.wysiwyg.js"></script>

<script type="text/javascript">

$(document).ready(function() {


开发者ID:bosokpp1,项目名称:cipaganti-rentcar,代码行数:28,代码来源:edit+-+Copy.php

示例9: cekAkses

<?php

require 'connections/con_gl.php';
cekAkses($_SESSION[akses], "PD-3-1");
mysql_select_db($database_con_gl, $con_gl);
$query_klas = "SELECT id, tipecustomer FROM gl_tipecustomer ORDER BY tipecustomer ASC";
$klas = mysql_query($query_klas, $con_gl) or die(mysql_error());
$row_klas = mysql_fetch_assoc($klas);
$totalRows_klas = mysql_num_rows($klas);
mysql_select_db($database_con_gl, $con_gl);
$query_klas1 = "SELECT id, cabang FROM gl_cabang ORDER BY cabang ASC";
$klas1 = mysql_query($query_klas1, $con_gl) or die(mysql_error());
$row_klas1 = mysql_fetch_assoc($klas1);
$totalRows_klas1 = mysql_num_rows($klas1);
?>
<link href="ccss/ui.datepicker.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/ui.datepicker.js"></script>
<script type="text/javascript">
<!--
$(function()
      {
        $('.calendar').datepicker({
            appendText : "",
            dateFormat : 'yy/mm/dd'
          });
      });
	  
</script>
<script type="text/javascript" src="js/ajax_data.js"></script>
<script type="text/javascript">
$(document).ready(function() {
开发者ID:bosokpp1,项目名称:cipaganti-rentcar,代码行数:31,代码来源:add+-+Copy.php

示例10: session_start

<?php

session_start();
/*Added by suwondo*/
require 'connections/con_gl.php';
cekAkses($_SESSION[akses], "JS-6");
$currentPage = $_SERVER["PHP_SELF"];
mysql_select_db($database_con_gl, $con_gl);
$bid = $_GET['barang'];
$jumlah = $_GET['jumlah'];
$checkin = $_GET['checkin'];
$checkout = $_GET['checkout'];
global $d;
$d = substr($checkin, 8, 2);
$s = substr($checkin, 8, 1);
if ($s == 0) {
    $d = substr($checkin, 9, 1);
}
//echo $newdate;
$area = $_GET['area'];
list($namaarea) = mysql_fetch_row(mysql_query("select area from gl_area where id = '{$area}'"));
list($paket) = mysql_fetch_row(mysql_query("select barang from gl_barang where id = '{$bid}'"));
?>
<script type="text/javascript" src="js/jquery-1.4.js"></script>
<script type="text/javascript" src="js/jquery.autocomplete.js"></script>
<link rel="stylesheet" type="text/css" href="css/jquery.autocomplete.css" />
<h1>Data Kendaraan <?php 
if ($area != '') {
    echo "Area " . $namaarea;
}
?>
开发者ID:bosokpp1,项目名称:cipaganti-fms,代码行数:31,代码来源:list.php


注:本文中的cekAkses函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。