コード例 #1
0
ファイル: af_iss.php プロジェクト: laiello/ebpls
include_once "includes/variables.php";
include_once "lib/multidbconnection.php";
$dbLink = Open($dbtype, $connecttype, $dbhost, $dbuser, $dbpass, $dbuser_id);
$preft = 'af_issuance';
//table
$prefd = 'af_id';
//primary key
$field1 = 'user_id';
$field2 = 'af_start';
$field3 = 'af_end';
$field4 = 'min_allow';
$user_id = @$HTTP_POST_VARS[$field1];
$af_start = @$HTTP_POST_VARS[$field2];
$af_end = @$HTTP_POST_VARS[$field3];
$min_allow = @$HTTP_POST_VARS[$field3];
$unit_vars = new MainVar();
$swhere = "where {$field1}='{$user_id}'";
//search duplicate
$nValues = "'','{$user_id}','{$af_start}','{$af_end}','{$min_allow}',now(),'{$usern}'";
//insert
$setfld = "{$field1}='{$user_id}', {$field2}='{$af_start}', {$field3}='{$af_end}', {$field4}='{$min_allow}', input_by='{$usern}'";
//update
$ewhere = "{$prefd}='{$bbo}'";
if ($order == "") {
    $order = $field1;
    //listing
}
if ($HTTP_POST_VARS['page'] == 0 || $HTTP_POST_VARS['page'] == "") {
    $pager = 1;
} else {
    $pager = $HTTP_POST_VARS['page'];
コード例 #2
0
ファイル: viewlog.php プロジェクト: laiello/ebpls
require_once "lib/ebpls.lib.php";
require_once "lib/ebpls.utils.php";
require_once "class/main.class.php";
include_once "includes/config.php";
include_once "includes/variables.php";
include_once "lib/multidbconnection.php";
$dbLink = Open($dbtype, $connecttype, $dbhost, $dbuser, $dbpass, $dbname);
$preft = 'ebpls_activity_log';
//table
$prefd = 'act_id';
//primary key
$field1 = 'user_log';
$field2 = 'logged';
$field3 = 'date_input';
$logid = $_COOKIE["logid"];
$r = new MainVar();
$r->SelectDataWhere($preft, "where act_id='{$logid}'");
$r->FetchArray($r->outselect);
$p = $r->outarray;
?>
<form name="_FRM" method="post">
<script language='Javascript' src='javascripts/default.js'></script>
<script language='Javascript' src='includes/datepick/datetimepicker.js'></script>
<script language='Javascript' src='javascripts/javafunc.js'></script>
<link href="stylesheets/default.css" rel="stylesheet" type="text/css"/>
<table border="0" width="100%">
	<tr>
		<td width="157">Date Logged:</td>
		<td><?php 
echo $p[$field3];
?>