本文整理匯總了PHP中Install::InsertMenus方法的典型用法代碼示例。如果您正苦於以下問題:PHP Install::InsertMenus方法的具體用法?PHP Install::InsertMenus怎麽用?PHP Install::InsertMenus使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Install
的用法示例。
在下文中一共展示了Install::InsertMenus方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
break;
// Delete
// Delete
case 5:
$db->qry("DELETE FROM %prefix%menu WHERE pos = %int%", $_GET["pos"]);
break;
// Rewrite Menu Question
// Rewrite Menu Question
case 6:
$func->question(t('Bist du sicher, dass du alle Navigationseinträge zurücksetzen möchten?'), "index.php?mod=install&action=menu&step=7&onlyactive={$_GET["onlyactive"]}", "index.php?mod=install&action=menu&onlyactive={$_GET["onlyactive"]}");
break;
// Rewrite Menu Action
// Rewrite Menu Action
case 7:
$db->qry_first("DELETE FROM %prefix%menu");
$install->InsertMenus(1);
break;
// Change Group Action
// Change Group Action
case 9:
$menu = $db->qry("UPDATE %prefix%menu SET group_nr = %int% WHERE pos = %string%", $_POST["group"], $_GET["pos"]);
break;
// Set Possition
// Set Possition
case 10:
if ($_POST['pos']) {
foreach ($_POST['pos'] as $key => $val) {
$db->qry('UPDATE %prefix%menu SET pos = %int% WHERE id = %int%', $val, $key);
}
}
if ($_POST['group']) {
示例2: WHERE
$db->qry("DELETE FROM %prefix%boxes WHERE module = %string%", $_GET["rewrite"]);
$_GET["rewrite"] .= "_";
if ($_GET["rewrite"] == "downloads_") {
$_GET["rewrite"] = "Download";
}
if ($_GET["rewrite"] == "usrmgr_") {
$_GET["rewrite"] = "Userdetails";
}
if ($_GET["rewrite"] == "tournament2_") {
$_GET["rewrite"] = "t";
}
$find_config = $db->qry_first("DELETE FROM %prefix%config WHERE (cfg_group = %string%) OR (cfg_key LIKE %string%)", $_GET["rewrite"], $_GET["rewrite"] . '%');
}
// Auto-Load Modules from XML-Files
$install->InsertModules(0);
$install->InsertMenus($rewrite_all);
// Output Module-List
$dsp->NewContent(t('Modulverwaltung'), t('Hier kannst du Module de-/aktivieren, sowie deren Einstellungen verändern.'));
$dsp->AddDoubleRow("", "<a href=\"index.php?mod=install&action=modules&step=3\">" . t('Alle Module zurücksetzen') . "</a>");
$dsp->AddHRuleRow();
$dsp->SetForm("index.php?mod=install&action=modules&step=2");
$res = $db->qry("SELECT * FROM %prefix%modules ORDER BY changeable DESC, caption");
while ($row = $db->fetch_array($res)) {
$dsp->AddContentLine($install->getModConfigLine($row));
}
$db->free_result($res);
$dsp->AddFormSubmitRow(t('Weiter'));
$dsp->AddBackButton("index.php?mod=install", "install/modules");
$dsp->AddContent();
break;
}
示例3: Install
<?php
include_once 'modules/install/class_install.php';
$install = new Install();
$dsp->NewContent(t('Menu Einträge ersetzen'), "");
switch ($_GET['step']) {
default:
$dsp->SetForm("index.php?mod=install&action=dbmenu&step=2");
$dsp->AddCheckBoxRow("rewrite", t('Menu Einträge ersetzen'), "", "");
$dsp->AddFormSubmitRow(t('Weiter'));
$dsp->AddBackButton("index.php?mod=install");
break;
case 2:
$install->InsertMenus($_POST["rewrite"]);
$func->information(t('Menu erfolgreich neu geschrieben'), "index.php?mod=install");
break;
}
$dsp->AddContent();