Exemple #1
0
function OpenGridForm($title, $tabname)
{
    $_retval = false;
    if (!OpenApp($title)) {
        return $_retval;
    }
    $GLOBALS['oForm'] = OpenTableEdit($tabname);
    $CanModify = $GLOBALS['accessRights'] == "rw";
    $GLOBALS['oForm']->options["canAdd"] = $CanModify;
    $GLOBALS['oForm']->options["canEdit"] = $CanModify;
    $GLOBALS['oForm']->options["canDelete"] = $CanModify;
    session_set_cookie_params(60 * 60);
    $GLOBALS['sqltext'] = '.';
    return true;
}
Exemple #2
0
</style>
</head>



<body>

<?php 
//************************************************************************************************************
//  LiveGrid-Edit Example
//************************************************************************************************************
//  Matt Brown
//************************************************************************************************************
if (OpenGridForm("", "customers")) {
    $orderTE = OpenTableEdit("orders");
    $detailTE = OpenTableEdit("order_details");
    if ($oForm->action != "table") {
        DefineCustTable();
    } elseif ($orderTE->action != "table") {
        DefineOrderTable();
    } elseif ($detailTE->action != "table") {
        DefineDetailTable();
    } else {
        DisplayAllTables();
    }
}
CloseApp();
function DisplayAllTables()
{
    echo "<table border='0' cellspacing='3' style='height:99%; width:99%; margin:0px;'>";
    echo "<col width='25%'>";