Пример #1
0
include "ewcfg7.php";
include "ewmysql7.php";
include "phpfn7.php";
include "tbl_userinfo.php";
include "userfn7.php";
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate");
// HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
// HTTP/1.0
// Create page object
$tbl_user_edit = new ctbl_user_edit();
$Page =& $tbl_user_edit;
// Page init
$tbl_user_edit->Page_Init();
// Page main
$tbl_user_edit->Page_Main();
include "header.php";
?>
<script type="text/javascript">
<!--

// Create page object
var tbl_user_edit = new ew_Page("tbl_user_edit");

// page properties
tbl_user_edit.PageID = "edit"; // page ID
Пример #2
0
    function Page_DataRendered(&$footer)
    {
        // Example:
        //$footer = "your footer";
    }
    // Form Custom Validate event
    function Form_CustomValidate(&$CustomError)
    {
        // Return error message in CustomError
        return TRUE;
    }
}
ew_Header(FALSE);
// Create page object
if (!isset($tbl_user_edit)) {
    $tbl_user_edit = new ctbl_user_edit();
}
// Page init
$tbl_user_edit->Page_Init();
// Page main
$tbl_user_edit->Page_Main();
include_once "header.php";
?>
<script type="text/javascript">

// Page object
var tbl_user_edit = new ew_Page("tbl_user_edit");
tbl_user_edit.PageID = "edit"; // Page ID
var EW_PAGE_ID = tbl_user_edit.PageID; // For backward compatibility

// Form object