示例#1
0
文件: af_iss.php 项目: laiello/ebpls
    } else {
        ?>
		<body onload='javascript:alert ("Existing User Found"); frm.af_start.focus(); frm.af_start.select();'></body>
<?php 
    }
    $bbo = '';
} elseif ($com == 'delete') {
    ///delete
    $nWhere = "{$prefd} = '{$bbo}'";
    $unit_vars->DeleteQuery($preft, $nWhere);
    ?>
		<body onload='javascript:alert ("Record Deleted!");'></body>
<?php 
    $bbo = '';
    $com = "";
    $user_id = "";
    $af_start = "";
    $af_end = "";
}
if ($com == 'edit') {
    $where = "where {$prefd}='{$bbo}'";
    $unit_vars->SelectDataWhere($preft, $where);
    $unit_vars->FetchArray($unit_vars->outselect);
    $bbo = $unit_vars->outarray[$prefd];
    $user_id = $unit_vars->outarray[$field1];
    $af_start = $unit_vars->outarray[$field2];
    $af_end = $unit_vars->outarray[$field3];
    $min_allow = $unit_vars->outarray[$field3];
}
include_once "html/af_iss.html";
include_once "pager/af_iss_page.php";
示例#2
0
文件: viewlog.php 项目: laiello/ebpls
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];
?>
</td>