Exemplo n.º 1
0
echo $thThemeColor4;
?>
" align="RIGHT" class="thText">
			<a href="javascript: window.close();"><b>Close this Window [X]</b></a><br>
		</td>
	</tr>
</table>

<?php 
// ********************** START HERE **********************
if (!empty($logseqno)) {
    require_once "lib/dbhtmltable.class.php";
    $objDbTable = new DbHtmlTable($thThemeColor3, $thThemeColor4, "ARIAL,HELVETICA,SANS-SERIF", "2", "#000000", 500, 1, 2);
    echo "<div align=\"CENTER\" class=\"thText\">";
    echo "<span class=\"thSectionTitle\">Log Details</span>";
    echo $objDbTable->getDbRecHtmlTable("SELECT id, userid, userlevel, username, querystring, remoteip, lastupdated FROM ebpls_activity_log WHERE id = {$logseqno}", array('Sequence<nobr /> No.', 'User<nobr /> Id<nobr /> No.', 'User<nobr /> Level', 'User<nobr /> Name', 'Querystring<nobr /> Used', 'Remote<nobr /> IP', 'Date<nobr /> Logged'), array(null, null, 'decodeUserLevel', null, 'decodeFuncNum', 'myCsv2br', 'myCsv2br', 'myNl2br'), $thDbLink);
    echo "</div>";
}
// **********************  END HERE  **********************
// *** Module Dependent User-defined Functions ***
function decodeUserLevel($intLevel)
{
    return $GLOBALS['thUserLevel'][$intLevel][1];
}
function myNl2br($strInput)
{
    return nl2br($strInput) . "&nbsp;";
}
function myCsv2br($strInput)
{
    return str_replace('|-|', '<br />', nl2br($strInput)) . "&nbsp;";
Exemplo n.º 2
0
        $result = FALSE;
    }
    if ($result === FALSE) {
        "<div align=\"CENTER\" class=\"thFieldTitle\">Delete Failed! Please Contact Your Administrator.</div>";
    } else {
        echo "<div align=\"CENTER\" class=\"thFieldTitle\">Delete Successfull!</div>";
    }
} else {
    // ********************** START HERE **********************
    if (!empty(${$qryVar2}) || !empty($frmId)) {
        require_once "lib/dbhtmltable.class.php";
        $objDbTable = new DbHtmlTable($thThemeColor3, $thThemeColor4, "ARIAL,HELVETICA,SANS-SERIF", "2", "#000000", 500, 1, 2);
        echo "<div align=\"CENTER\" class=\"thText\">\n";
        echo "<form method=\"POST\" action=\"" . $HTTP_SERVER_VARS['PHP_SELF'] . "\">\n";
        echo "<span class=\"thSectionTitle\">Delete This User?</span><br>\n";
        echo $objDbTable->getDbRecHtmlTable("SELECT id, level, username, password, lastname, firstname, designation, email, gsmnum, dateadded, lastupdated FROM ebpls_user WHERE id = " . ${$qryVar2}, array('User Id', 'User Level', 'User Name', 'Password', 'Lastname', 'Firstname', 'Designation', 'Email Address', 'GSM Number', 'Date Added', 'Last Updated'), array('setInputHidden', 'decodeUserLevel', 'setInputText', 'setInputPassword', 'setInputText', 'setInputText', 'setInputText', 'setInputText', 'setInputText', null, null, null), $thDbLink, 200, 300) . "<br>\n";
        echo "<input type=\"HIDDEN\" name=\"frmctr\" value=\"{$frmctr}\">\n";
        echo "<input type=\"HIDDEN\" name=\"{$qryVar1}\" value=\"" . ${$qryVar1} . "\">\n";
        echo "<input type=\"HIDDEN\" name=\"{$qryVar2}\" value=\"" . ${$qryVar2} . "\">\n";
        echo "<input type=\"SUBMIT\" name=\"frmBtnDelete\" value=\"Delete\"> &nbsp; &nbsp;\n";
        echo "<input type=\"BUTTON\" name=\"frmBtnCancel\" value=\"Close\" onClick=\"javascript: window.close();\"> &nbsp; &nbsp;\n";
        echo "</form>\n";
        echo "</div>\n";
    } else {
        echo "<br><br><span class=\"thFieldTitle\">Access Denied : Insufficient Parameters!</span>";
    }
    // **********************  END HERE  **********************
}
// *** Module Dependent User-defined Functions ***
function decodeUserLevel($intLevel)
{