Esempio n. 1
0
    }
}
if (is_array($arrPage) && count($arrPage) > 0) {
    $strOpt = "";
    foreach ($arrPage as $key => $value) {
        if ($_POST["page_name"] == $key) {
            $strSel = "selected='selected'";
        } else {
            $strSel = "";
        }
        $strOpt .= "<option value='" . $key . "' " . $strSel . ">" . $value . "</option>";
    }
    $hdlTpl->setVariable("optpagename", $strOpt);
    //Assigns option
}
$arrModule1 = $hldGlobal->fnFetchModule(0, $strSearch, $int);
$arrModule = $hldGlobal->fnGetPagerArr($arrModule1);
if (is_array($arrModule) && count($arrModule) > 0) {
    foreach ($arrModule as $key => $value) {
        if (is_numeric($key)) {
            if ($value["isactive"]) {
                $intstatus = 0;
                $hdlTpl->setVariable("status", "Active");
                //Assigns status
            } else {
                $intstatus = 1;
                $hdlTpl->setVariable("status", "In Active");
                //Assigns status
            }
            $hdlTpl->setVariable("returnurl", $hldGlobal->fnEncodeURL($_SERVER["REQUEST_URI"]));
            //Assigns encode url
Esempio n. 2
0
        $strPathName = $strModuleName;
        if (is_dir("../presenterFiles/{$fname}") && $fname != "") {
            $cmd = 'mv  "../presenterFiles/' . $fname . '" "../presenterFiles/' . $strPathName . '"';
            @exec($cmd, $output, $return_val);
        } else {
            @mkdir("../presenterFiles/{$strPathName}", 0777);
        }
        $return = $_GET["return"];
        header("Location:message.php?mess=6&return={$return}");
    }
}
if (!$intError) {
    $hdlTpl->setVariable("error_message", $strErrormessage);
    //Assigns values
}
$arrModule = $hldGlobal->fnFetchModule($_GET["id"]);
$strOption = $hldGlobal->fnGetCource($arrModule[0]["course_id"]);
//Fetches options
$hdlTpl->setVariable("option", $strOption);
//Assigns option
if (is_array($arrPage) && count($arrPage) > 0) {
    $strOpt = "";
    foreach ($arrPage as $key => $value) {
        if ($arrModule[0]["page_name"] == $key) {
            $strSel = "selected='selected'";
        } else {
            $strSel = "";
        }
        $strOpt .= "<option value='" . $key . "' " . $strSel . ">" . $value . "</option>";
    }
    $hdlTpl->setVariable("optpagename", $strOpt);