function showDocumentUpload($gid, $script, $update)
{
    $step = JRequest::getInt("step", 1);
    $method = JRequest::getCmd("method", null);
    if ($script) {
        HTML_docman::scriptDocumentUpload($step, $method, $update);
        return;
    }
    //fetch the license form
    $html = new StdClass();
    $html->menu = fetchMenu();
    $html->docupload = fetchDocumentUploadForm($gid, $step, $method, $update);
    HTML_docman::pageDocumentUpload($html, $step, $method, $update);
}
Beispiel #2
0
function showDocumentUpload($gid, $script, $update)
{
    $step = (int) mosGetParam($_REQUEST, "step", 1);
    $method = mosGetParam($_REQUEST, "method", null);
    if ($script) {
        HTML_docman::scriptDocumentUpload($step, $method, $update);
        return;
    }
    //fetch the license form
    $html = new StdClass();
    $html->menu = fetchMenu();
    $html->docupload = fetchDocumentUploadForm($gid, $step, $method, $update);
    HTML_docman::pageDocumentUpload($html, $step, $method, $update);
}