mirror of
https://github.com/e107inc/e107.git
synced 2025-08-30 17:50:12 +02:00
Menu-Manager drag-N-drop support.
This commit is contained in:
@@ -84,7 +84,7 @@ else
|
||||
$admin_log->e_log_event(4, __FILE__."|".__FUNCTION__."@".__LINE__, "LOGIN", LAN_ROLL_LOG_11, "U: ".$tp->toDB($_POST['authname']), FALSE, LOG_TO_ROLLING);
|
||||
echo "<script type='text/javascript'>document.location.href='../index.php'</script>\n";
|
||||
// header("location: ../index.php");
|
||||
e107::getRedirect()->redirect('../index.php');
|
||||
e107::getRedirect()->redirect('admin.php?failed');
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -126,7 +126,7 @@ else
|
||||
}
|
||||
|
||||
$e_sub_cat = 'logout';
|
||||
|
||||
|
||||
if (!defset('NO_HEADER'))
|
||||
require_once (e_ADMIN."header.php");
|
||||
|
||||
@@ -156,7 +156,9 @@ class auth
|
||||
|
||||
$incChap = (vartrue($pref['password_CHAP'], 0)) ? " onsubmit='hashLoginPassword(this)'" : "";
|
||||
|
||||
$text = "<div style='padding:20px;text-align:center'>
|
||||
$class = (e_QUERY == 'failed') ? "class='e-shake'" : "";
|
||||
|
||||
$text = "<div {$class} style='padding:20px;text-align:center'>
|
||||
<form method='post' action='".e_SELF."' {$incChap} >
|
||||
<table style='width:50%' class='fborder'>
|
||||
<tr>
|
||||
@@ -196,7 +198,8 @@ class auth
|
||||
</form>
|
||||
</div>";
|
||||
|
||||
e107::getRender()->tablerender(ADLAN_92, $text);
|
||||
// echo $text;
|
||||
e107::getRender()->tablerender(ADLAN_92, $text);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -31,6 +31,49 @@ if (!getperms("2"))
|
||||
e107::coreLan('menus', true);
|
||||
e107::coreLan('admin', true);
|
||||
|
||||
if(strpos(e_QUERY, 'configure') !== FALSE )
|
||||
{
|
||||
|
||||
e107::js('core', 'colorbox/jquery.colorbox-min.js', 'jquery', 2);
|
||||
e107::css('core', 'colorbox/colorbox.css', 'jquery');
|
||||
|
||||
e107::js('core', 'core/jquery.elastic.source.js', 'jquery', 2);
|
||||
|
||||
e107::js('core', 'plupload/plupload.full.js', 'jquery', 2);
|
||||
e107::css('core', 'plupload/jquery.plupload.queue/css/jquery.plupload.queue.css', 'jquery');
|
||||
e107::js('core', 'plupload/jquery.plupload.queue/jquery.plupload.queue.js', 'jquery', 2);
|
||||
|
||||
e107::css('core', 'chosen/chosen.css', 'jquery');
|
||||
e107::js('core', 'chosen/chosen.jquery.min.js', 'jquery', 2);
|
||||
|
||||
e107::css('core', 'password/style.css', 'jquery');
|
||||
e107::js('core', 'password/jquery.pwdMeter.js', 'jquery', 2);
|
||||
//
|
||||
e107::js("core", "plupload/customUpload.js","jquery",3);
|
||||
|
||||
e107::js("core", "core/mediaManager.js","jquery",3);
|
||||
|
||||
|
||||
e107::css('core', 'core/admin.css', 'jquery');
|
||||
e107::js('core', 'core/admin.jquery.js', 'jquery', 4);
|
||||
|
||||
|
||||
e107::css('inline'," .column { width: 170px; float: left; padding-bottom: 100px; }
|
||||
.portlet { margin: 0 1em 1em 0; }
|
||||
.portlet-header { margin: 0.3em; padding-bottom: 4px; padding-left: 0.2em; cursor:move }
|
||||
.portlet-header .ui-icon { float: right; }
|
||||
.portlet-content { padding: 10px; }
|
||||
.ui-sortable-placeholder { border: 1px dotted black; visibility: visible !important; height: 50px !important; }
|
||||
.ui-sortable-placeholder * { visibility: hidden; }
|
||||
",'jquery');
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$e_sub_cat = 'menus';
|
||||
|
||||
require_once(e_HANDLER."file_class.php");
|
||||
@@ -41,7 +84,7 @@ require_once(e_HANDLER."menumanager_class.php");
|
||||
|
||||
$rs = new form;
|
||||
$frm = new e_form();
|
||||
$men = new e_menuManager(); // use 1 for dragdrop.
|
||||
$men = new e_menuManager(0); // use 1 for dragdrop.
|
||||
|
||||
|
||||
if(e_AJAX_REQUEST)
|
||||
@@ -96,6 +139,8 @@ require_once("footer.php");
|
||||
|
||||
function headerjs()
|
||||
{
|
||||
return;
|
||||
|
||||
global $sql,$pref,$men;
|
||||
|
||||
if(!$men->dragDrop)
|
||||
|
Reference in New Issue
Block a user