本文整理汇总了PHP中OnEvent::sortable方法的典型用法代码示例。如果您正苦于以下问题:PHP OnEvent::sortable方法的具体用法?PHP OnEvent::sortable怎么用?PHP OnEvent::sortable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OnEvent
的用法示例。
在下文中一共展示了OnEvent::sortable方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sortable
public function sortable($handle, $saveTo = null, $connectWith = null, $dropPlaceholder = null, $axis = "y", $additionalParameters = array())
{
$this->sortable = OnEvent::sortable("%LISTID%", $handle, $saveTo, $axis, $connectWith, $dropPlaceholder, "", $additionalParameters);
}
示例2: getSortable
public function getSortable($echo)
{
$entries = $_SESSION["CurrentAppPlugins"]->getMenuEntries();
#$appMenuHidden = MenuGUI::getAppMenuOrder("appMenuHidden");
$appMenuDisplayed = MenuGUI::getAppMenuOrder("appMenuDisplayed");
if ($appMenuDisplayed == "") {
$appMenuDisplayed = implode(";", $_SESSION["CurrentAppPlugins"]->getMenuEntries());
}
$es = MenuGUI::sort($entries, $appMenuDisplayed);
#, $appMenuHidden);
$appMenuDisplayed = explode(";", $appMenuDisplayed);
$L = new HTMLList();
$L->addListStyle("list-style-type:none;margin-left:0px;margin-top:10px;");
$es = array_reverse($es, true);
foreach ($es as $key => $value) {
if (!in_array($value, $appMenuDisplayed)) {
continue;
}
$L->addItem($key);
$L->addItemClass("containerSortTabsHandle");
$L->addItemStyle("padding:5px;cursor:move;margin:0px;");
$L->setItemID("appMenu_{$value}");
}
#$I = new HTMLInput("showAgain", "checkbox");
#$I->style("float:left;margin-right:5px;");
#$I->onclick(addslashes(OnEvent::rme(new mUserdata(-1), "setUserdata", array("'hideTooltipDashboard'", "'1'"))));
$L .= OnEvent::script(OnEvent::sortable("#containerSortTabs ul", ".containerSortTabsHandle", "Spellbook::updateOrder", "y", null, null, "Menu.refresh();") . "\$j('#containerSortTabs ul li').hover(function() {\n \$j(this).addClass('backgroundColor2');\n }, function() {\n \$j(this).removeClass('backgroundColor2');\n });\n\t" . ((mUserdata::getUDValueS("hideTooltipDashboard", "0") == "0" and mUserdata::getUDValueS("hideTooltips", "0") == "0") ? "\n\t\$j('#SpellbookMenuEntry img').qtip(\$j.extend({}, qTipSharedRed, {\n\t\tcontent: {\n\t\t\ttext: 'Klicken Sie auf die Weltkugel, um die angezeigten Plugins und ihre Reihenfolge zu ändern.<br /><div style=\"margin-top:10px;\"><a href=\"#\" style=\"color:grey;\" onclick=\"" . addslashes(OnEvent::rme(new mUserdata(-1), "setUserdata", array("'hideTooltipDashboard'", "'1'", "''", "0", "1"))) . " return false;\">Diesen Tipp nicht mehr anzeigen</a></div><div style=\"clear:both;margin-top:5px;\"><a href=\"#\" style=\"color:grey;\" onclick=\"" . addslashes(OnEvent::rme(new mUserdata(-1), "setUserdata", array("'hideTooltips'", "'1'", "''", "0", "1"))) . " return false;\">Keine Tipps mehr anzeigen</a></div>', \n\t\t\ttitle: {\n\t\t\t\ttext: 'Dashboard',\n\t\t\t\tbutton: true\n\t\t\t}\n\t\t}\n\t}));" : ""));
$L = "<h2 style=\"padding-left:0px;\">Reihenfolge</h2>{$L}";
if ($echo) {
echo $L;
}
return $L;
}
示例3: sortable
public function sortable($handle, $saveTo = null, $connectWith = null, $dropPlaceholder = null)
{
$this->sortable = OnEvent::sortable("%LISTID%", $handle, $saveTo, "y", $connectWith, $dropPlaceholder);
}