function showModule($smarty, $module_name, $local_templates_dir, $arrPermission, $arrCredentiasls) { $smarty->assign("icon", "web/apps/{$module_name}/images/system_shutdown.png"); $smarty->assign("title", _tr("Shutdown")); $smarty->assign("ACCEPT", _tr("Accept")); $smarty->assign("CONFIRM_CONTINUE", _tr("Are you sure you wish to continue?")); $smarty->assign("HALT", _tr("Halt")); $smarty->assign("REBOOT", _tr("Reboot")); $smarty->assign("module_name", $module_name); setActionTPL($smarty, $arrPermission); $salida = $smarty->fetch("{$local_templates_dir}/shutdown.tpl"); return $salida; }
function showApplets_Admin($module_name) { global $smarty; global $arrLang; global $arrConf; $pAppletAdmin = new paloSantoAppletAdmin(); $oForm = new paloForm($smarty, array()); $arrApplets = $pAppletAdmin->getApplets_User($_SESSION["elastix_user"]); $smarty->assign("applets", $arrApplets); $smarty->assign("SAVE", $arrLang["Save"]); $smarty->assign("CANCEL", $arrLang["Cancel"]); $smarty->assign("Applet", $arrLang["Applet"]); $smarty->assign("Activated", $arrLang["Activated"]); $smarty->assign("icon", "web/apps/{$module_name}/images/system_dashboard_applet_admin.png"); setActionTPL(); //folder path for custom templates //folder path for custom templates $local_templates_dir = getWebDirModule($module_name); $htmlForm = $oForm->fetchForm("{$local_templates_dir}/applet_admin.tpl", $arrLang["Dashboard Applet Admin"], $_POST); $content = "<form method='POST' style='margin-bottom:0;' action='?menu={$module_name}'>" . $htmlForm . "</form>"; return $content; }