Beispiel #1
0
        $result = th_query($strQuery);
        //--- delete from the listings
        delSubLevelListings($dbLink, $frmId);
    } else {
        $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  **********************
Beispiel #2
0
<table width="650" border="0" cellspacing="1" cellpadding="1">
	<tr>
		<td bgcolor="<?php 
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;";
}
Beispiel #3
0
        unlockUser($frmThreadId);
        $frmBtnUnlock = "";
        ?>
        <body onload='javascript:alert ("User is successfully unlocked!!");'></body>
        <?php 
    }
    //	header("Location: " . $HTTP_SERVER_VARS['PHP_SELF'].'?part=4&class_type=Settings&itemID_=7&busItem=Settings&permit_type=Settings&settings_type=UserManager&item_id=Settings&com=unlock');
}
?>


<?php 
// ********************** START HERE **********************
echo "<div align=\"CENTER\" class=\"thText\">\n";
require_once "lib/dbhtmltable.class.php";
$objDbTable = new DbHtmlTable($thThemeColor3, $thThemeColor4, "ARIAL,HELVETICA,SANS-SERIF", "2", null, 550, 1, 2);
if (empty($frmCorpNames)) {
    // display Administrator List
    if ($com == "kick") {
        echo "<div align=\"CENTER\"><font size=2 color=red>Successfully Kicked User!</font></div><br>";
        $com = "";
    }
    if ($com == "unlock") {
        echo "<div align=\"CENTER\"><font size=2 color=red>Successfully Unlock User!</font></div><br>";
        $com = "";
    }
    $strCurDomain = isset($ThUserData['domain']) ? $ThUserData['domain'] : '';
    $strLabelToShow = $strCurDomain ? "{$strCurDomain} : " : "";
    echo "<table border=0 width=100% align=center cellspacing=0 cellpadding=0>\n\n\t\t<tr><td colspan=2 class=header align=center width=100%>SETTINGS</td></tr>\n\n\t\t<tr>\n\n\t\t\t<td colspan=2 align=center>\n\n\t\t\t</td>\n\n\t\t</tr>\n\n\t\t<tr width=100%>\n\n\t\t\t<td align=center colspan=3 class=header2> User Manager </td>\n\n\t\t</tr>\n\n\t\t<tr>\n\n\t\t\t<td colspan=2 align=center>\n\n\t\t\t</td>\n\n\t\t</tr>\n\n\t\t<tr>\n\n\t\t\t<td colspan=2 align=center>\n\n\t\t\t</td>\n\n\t\t</tr>\n\n\t\t<tr>\n\n\t\t\t<td colspan=2 align=center>\n\n\t\t\t</td>\n\n\t\t</tr>\n\n\t</table>";
    $objDbTable->setTextBeforeTable("\n\n");
    /* echo "<span><input type=\"HIDDEN\" name=\"frmThreadId\" value=\"\">\n";