Index: trunk/kernel/admin_templates/img/arrow.gif
===================================================================
diff -u -N -r1566 -r6669
Binary files differ
Index: trunk/kernel/admin_templates/categories/categories_tabs.tpl
===================================================================
diff -u -N -r6093 -r6669
--- trunk/kernel/admin_templates/categories/categories_tabs.tpl (.../categories_tabs.tpl) (revision 6093)
+++ trunk/kernel/admin_templates/categories/categories_tabs.tpl (.../categories_tabs.tpl) (revision 6669)
@@ -17,14 +17,14 @@
-
+
-
-
-
-
-
-
+
+
+
+
+
+
Index: trunk/kernel/admin_templates/xml/cache_updater.tpl
===================================================================
diff -u -N -r5164 -r6669
--- trunk/kernel/admin_templates/xml/cache_updater.tpl (.../cache_updater.tpl) (revision 5164)
+++ trunk/kernel/admin_templates/xml/cache_updater.tpl (.../cache_updater.tpl) (revision 6669)
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/incs/header_mini.tpl
===================================================================
diff -u -N -r4330 -r6669
--- trunk/kernel/admin_templates/incs/header_mini.tpl (.../header_mini.tpl) (revision 4330)
+++ trunk/kernel/admin_templates/incs/header_mini.tpl (.../header_mini.tpl) (revision 6669)
@@ -1,10 +1,10 @@
-
-
-
-
-
+
+
+
+
+
@@ -52,19 +52,19 @@
- |
+
-
+
-
+
-
-
+
+
Index: trunk/core/admin_templates/img/ajax_progress.gif
===================================================================
diff -u -N
Binary files differ
Index: trunk/kernel/admin_templates/incs/is.js
===================================================================
diff -u -N
--- trunk/kernel/admin_templates/incs/is.js (revision 2596)
+++ trunk/kernel/admin_templates/incs/is.js (revision 0)
@@ -1,210 +0,0 @@
-// Ultimate client-side JavaScript client sniff. Version 3.03
-// (C) Netscape Communications 1999. Permission granted to reuse and distribute.
-// Revised 17 May 99 to add is.nav5up and is.ie5up (see below).
-// Revised 21 Nov 00 to add is.gecko and is.ie5_5 Also Changed is.nav5 and is.nav5up to is.nav6 and is.nav6up
-// Revised 22 Feb 01 to correct Javascript Detection for IE 5.x, Opera 4,
-// correct Opera 5 detection
-// add support for winME and win2k
-// synch with browser-type-oo.js
-// Revised 26 Mar 01 to correct Opera detection
-// Revised 02 Oct 01 to add IE6 detection
-
-// Everything you always wanted to know about your JavaScript client
-// but were afraid to ask ... "Is" is the constructor function for "is" object,
-// which has properties indicating:
-// (1) browser vendor:
-// is.nav, is.ie, is.opera, is.hotjava, is.webtv, is.TVNavigator, is.AOLTV
-// (2) browser version number:
-// is.major (integer indicating major version number: 2, 3, 4 ...)
-// is.minor (float indicating full version number: 2.02, 3.01, 4.04 ...)
-// (3) browser vendor AND major version number
-// is.nav2, is.nav3, is.nav4, is.nav4up, is.nav6, is.nav6up, is.gecko, is.ie3,
-// is.ie4, is.ie4up, is.ie5, is.ie5up, is.ie5_5, is.ie5_5up, is.ie6, is.ie6up, is.hotjava3, is.hotjava3up
-// (4) JavaScript version number:
-// is.js (float indicating full JavaScript version number: 1, 1.1, 1.2 ...)
-// (5) OS platform and version:
-// is.win, is.win16, is.win32, is.win31, is.win95, is.winnt, is.win98, is.winme, is.win2k
-// is.os2
-// is.mac, is.mac68k, is.macppc
-// is.unix
-// is.sun, is.sun4, is.sun5, is.suni86
-// is.irix, is.irix5, is.irix6
-// is.hpux, is.hpux9, is.hpux10
-// is.aix, is.aix1, is.aix2, is.aix3, is.aix4
-// is.linux, is.sco, is.unixware, is.mpras, is.reliant
-// is.dec, is.sinix, is.freebsd, is.bsd
-// is.vms
-//
-// See http://www.it97.de/JavaScript/JS_tutorial/bstat/navobj.html and
-// http://www.it97.de/JavaScript/JS_tutorial/bstat/Browseraol.html
-// for detailed lists of userAgent strings.
-//
-// Note: you don't want your Nav4 or IE4 code to "turn off" or
-// stop working when Nav5 and IE5 (or later) are released, so
-// in conditional code forks, use is.nav4up ("Nav4 or greater")
-// and is.ie4up ("IE4 or greater") instead of is.nav4 or is.ie4
-// to check version in code which you want to work on future
-// versions.
-
-function Is ()
-{ // convert all characters to lowercase to simplify testing
- var agt=navigator.userAgent.toLowerCase();
-
- // *** BROWSER VERSION ***
- // Note: On IE5, these return 4, so use is.ie5up to detect IE5.
-
- this.major = parseInt(navigator.appVersion);
- this.minor = parseFloat(navigator.appVersion);
-
- // Note: Opera and WebTV spoof Navigator. We do strict client detection.
- // If you want to allow spoofing, take out the tests for opera and webtv.
- this.nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
- && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
- && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
- this.nav2 = (this.nav && (this.major == 2));
- this.nav3 = (this.nav && (this.major == 3));
- this.nav4 = (this.nav && (this.major == 4));
- this.nav4up = (this.nav && (this.major >= 4));
- this.navonly = (this.nav && ((agt.indexOf(";nav") != -1) ||
- (agt.indexOf("; nav") != -1)) );
- this.nav6 = (this.nav && (this.major == 5));
- this.nav6up = (this.nav && (this.major >= 5));
- this.gecko = (agt.indexOf('gecko') != -1);
-
- this.ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
- this.ie3 = (this.ie && (this.major < 4));
- this.ie4 = (this.ie && (this.major == 4) && (agt.indexOf("msie 4")!=-1) );
- this.ie4up = (this.ie && (this.major >= 4));
- this.ie5 = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) );
- this.ie5_5 = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.5") !=-1));
- this.ie5up = (this.ie && !this.ie3 && !this.ie4);
- this.ie5_5up =(this.ie && !this.ie3 && !this.ie4 && !this.ie5);
- this.ie6 = (this.ie && (this.major == 4) && (agt.indexOf("msie 6.")!=-1) );
- this.ie6up = (this.ie && !this.ie3 && !this.ie4 && !this.ie5 && !this.ie5_5);
-
- // KNOWN BUG: On AOL4, returns false if IE3 is embedded browser
- // or if this is the first browser window opened. Thus the
- // variables is.aol, is.aol3, and is.aol4 aren't 100% reliable.
- this.aol = (agt.indexOf("aol") != -1);
- this.aol3 = (this.aol && this.ie3);
- this.aol4 = (this.aol && this.ie4);
- this.aol5 = (agt.indexOf("aol 5") != -1);
- this.aol6 = (agt.indexOf("aol 6") != -1);
-
- this.opera = (agt.indexOf("opera") != -1);
- this.opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
- this.opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
- this.opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
- this.opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
- this.opera5up = (this.opera && !this.opera2 && !this.opera3 && !this.opera4);
-
- this.webtv = (agt.indexOf("webtv") != -1);
-
- this.TVNavigator = ((agt.indexOf("navio") != -1) || (agt.indexOf("navio_aoltv") != -1));
- this.AOLTV = this.TVNavigator;
-
- this.hotjava = (agt.indexOf("hotjava") != -1);
- this.hotjava3 = (this.hotjava && (this.major == 3));
- this.hotjava3up = (this.hotjava && (this.major >= 3));
-
- // *** JAVASCRIPT VERSION CHECK ***
- if (this.nav2 || this.ie3) this.js = 1.0;
- else if (this.nav3) this.js = 1.1;
- else if (this.opera5up) this.js = 1.3;
- else if (this.opera) this.js = 1.1;
- else if ((this.nav4 && (this.minor <= 4.05)) || this.ie4) this.js = 1.2;
- else if ((this.nav4 && (this.minor > 4.05)) || this.ie5) this.js = 1.3;
- else if (this.hotjava3up) this.js = 1.4;
- else if (this.nav6 || this.gecko) this.js = 1.5;
- // NOTE: In the future, update this code when newer versions of JS
- // are released. For now, we try to provide some upward compatibility
- // so that future versions of Nav and IE will show they are at
- // *least* JS 1.x capable. Always check for JS version compatibility
- // with > or >=.
- else if (this.nav6up) this.js = 1.5;
- // note ie5up on mac is 1.4
- else if (this.ie5up) this.js = 1.3
-
- // HACK: no idea for other browsers; always check for JS version with > or >=
- else this.js = 0.0;
-
- // *** PLATFORM ***
- this.win = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
- // NOTE: On Opera 3.0, the userAgent string includes "Windows 95/NT4" on all
- // Win32, so you can't distinguish between Win95 and WinNT.
- this.win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));
-
- // is this a 16 bit compiled version?
- this.win16 = ((agt.indexOf("win16")!=-1) ||
- (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1) ||
- (agt.indexOf("windows 16-bit")!=-1) );
-
- this.win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) ||
- (agt.indexOf("windows 16-bit")!=-1));
-
- // NOTE: Reliable detection of Win98 may not be possible. It appears that:
- // - On Nav 4.x and before you'll get plain "Windows" in userAgent.
- // - On Mercury client, the 32-bit version will return "Win98", but
- // the 16-bit version running on Win98 will still return "Win95".
- this.win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
- this.winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
- this.win32 = (this.win95 || this.winnt || this.win98 ||
- ((this.major >= 4) && (navigator.platform == "Win32")) ||
- (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1));
-
- this.winme = ((agt.indexOf("win 9x 4.90")!=-1));
- this.win2k = ((agt.indexOf("windows nt 5.0")!=-1));
-
- this.os2 = ((agt.indexOf("os/2")!=-1) ||
- (navigator.appVersion.indexOf("OS/2")!=-1) ||
- (agt.indexOf("ibm-webexplorer")!=-1));
-
- this.mac = (agt.indexOf("mac")!=-1);
- // hack ie5 js version for mac
- if (this.mac && this.ie5up) this.js = 1.4;
- this.mac68k = (this.mac && ((agt.indexOf("68k")!=-1) ||
- (agt.indexOf("68000")!=-1)));
- this.macppc = (this.mac && ((agt.indexOf("ppc")!=-1) ||
- (agt.indexOf("powerpc")!=-1)));
-
- this.sun = (agt.indexOf("sunos")!=-1);
- this.sun4 = (agt.indexOf("sunos 4")!=-1);
- this.sun5 = (agt.indexOf("sunos 5")!=-1);
- this.suni86= (this.sun && (agt.indexOf("i86")!=-1));
- this.irix = (agt.indexOf("irix") !=-1); // SGI
- this.irix5 = (agt.indexOf("irix 5") !=-1);
- this.irix6 = ((agt.indexOf("irix 6") !=-1) || (agt.indexOf("irix6") !=-1));
- this.hpux = (agt.indexOf("hp-ux")!=-1);
- this.hpux9 = (this.hpux && (agt.indexOf("09.")!=-1));
- this.hpux10= (this.hpux && (agt.indexOf("10.")!=-1));
- this.aix = (agt.indexOf("aix") !=-1); // IBM
- this.aix1 = (agt.indexOf("aix 1") !=-1);
- this.aix2 = (agt.indexOf("aix 2") !=-1);
- this.aix3 = (agt.indexOf("aix 3") !=-1);
- this.aix4 = (agt.indexOf("aix 4") !=-1);
- this.linux = (agt.indexOf("inux")!=-1);
- this.sco = (agt.indexOf("sco")!=-1) || (agt.indexOf("unix_sv")!=-1);
- this.unixware = (agt.indexOf("unix_system_v")!=-1);
- this.mpras = (agt.indexOf("ncr")!=-1);
- this.reliant = (agt.indexOf("reliantunix")!=-1);
- this.dec = ((agt.indexOf("dec")!=-1) || (agt.indexOf("osf1")!=-1) ||
- (agt.indexOf("dec_alpha")!=-1) || (agt.indexOf("alphaserver")!=-1) ||
- (agt.indexOf("ultrix")!=-1) || (agt.indexOf("alphastation")!=-1));
- this.sinix = (agt.indexOf("sinix")!=-1);
- this.freebsd = (agt.indexOf("freebsd")!=-1);
- this.bsd = (agt.indexOf("bsd")!=-1);
- this.unix = ((agt.indexOf("x11")!=-1) || this.sun || this.irix || this.hpux ||
- this.sco ||this.unixware || this.mpras || this.reliant ||
- this.dec || this.sinix || this.aix || this.linux || this.bsd || this.freebsd);
-
- this.vms = ((agt.indexOf("vax")!=-1) || (agt.indexOf("openvms")!=-1));
-}
-
-var is;
-var isIE3Mac = false;
-// this section is designed specifically for IE3 for the Mac
-
-if ((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) &&
-(parseInt(navigator.appVersion)==3))
- isIE3Mac = true;
-else is = new Is();
Index: trunk/core/units/groups/groups_config.php
===================================================================
diff -u -N -r6093 -r6669
--- trunk/core/units/groups/groups_config.php (.../groups_config.php) (revision 6093)
+++ trunk/core/units/groups/groups_config.php (.../groups_config.php) (revision 6669)
@@ -47,7 +47,7 @@
'Sections' => Array(
'in-portal:user_groups' => Array(
'parent' => 'in-portal:users',
- 'icon' => 'usergroups',
+ 'icon' => 'in-portal:usergroups',
'label' => 'la_tab_User_Groups',
'url' => Array('t' => 'groups/groups_list', 'pass' => 'm'),
'permissions' => Array('view', 'add', 'edit', 'delete', 'advanced:send_email', 'advanced:manage_permissions'),
Index: trunk/core/units/categories/categories_config.php
===================================================================
diff -u -N -r6583 -r6669
--- trunk/core/units/categories/categories_config.php (.../categories_config.php) (revision 6583)
+++ trunk/core/units/categories/categories_config.php (.../categories_config.php) (revision 6669)
@@ -108,8 +108,8 @@
'parent' => 'in-portal:site',
'icon' => 'catalog',
'label' => 'la_tab_Browse',
- 'url' => Array('t' => 'catalog', 'pass' => 'm'),
- 'late_load' => Array('t' => 'xml/tree_categories', 'pass' => 'm', 'm_cat_id' => 0),
+ 'url' => Array('t' => 'in-portal/catalog', 'pass' => 'm'),
+ 'late_load' => Array('t' => 'in-portal/xml/tree_categories', 'pass' => 'm', 'm_cat_id' => 0),
'onclick' => 'checkCatalog(0)',
'permissions' => Array('view'),
'priority' => 0.1,
@@ -119,7 +119,7 @@
'parent' => 'in-portal:site',
'icon' => 'advanced_view',
'label' => 'la_tab_AdvancedView',
- 'url' => Array('t' => 'advanced_view', 'pass' => 'm'),
+ 'url' => Array('t' => 'in-portal/advanced_view', 'pass' => 'm'),
'permissions' => Array('view'),
'priority' => 0.2,
'type' => stTREE,
@@ -169,7 +169,7 @@
'parent' => 'in-portal:site',
'icon' => 'settings_search',
'label' => 'la_tab_ConfigSearch',
- 'url' => Array('t' => 'config/config_search', 'module_key' => 'category', 'pass_section' => true, 'pass' => 'm'),
+ 'url' => Array('t' => 'in-portal/config/config_search', 'module_key' => 'category', 'pass_section' => true, 'pass' => 'm'),
'permissions' => Array('view', 'edit'),
'priority' => 5,
'type' => stTREE,
@@ -179,7 +179,7 @@
'parent' => 'in-portal:site',
'icon' => 'settings_email',
'label' => 'la_tab_ConfigE-mail',
- 'url' => Array('t' => 'config/config_email', 'module' => 'In-Portal:Category', 'pass_section' => true, 'pass' => 'm'),
+ 'url' => Array('t' => 'in-portal/config/config_email', 'module' => 'In-Portal:Category', 'pass_section' => true, 'pass' => 'm'),
'permissions' => Array('view', 'edit'),
'priority' => 6,
'type' => stTREE,
@@ -189,7 +189,7 @@
'parent' => 'in-portal:site',
'icon' => 'settings_custom',
'label' => 'la_tab_ConfigCustom',
- 'url' => Array('t' => 'custom_fields/custom_fields_list', 'cf_type' => 1, 'pass_section' => true, 'pass' => 'm,cf'),
+ 'url' => Array('t' => 'in-portal/custom_fields/custom_fields_list', 'cf_type' => 1, 'pass_section' => true, 'pass' => 'm,cf'),
'permissions' => Array('view', 'add', 'edit', 'delete'),
'priority' => 7,
'type' => stTREE,
Index: trunk/core/admin_templates/categories/categories_edit_custom.tpl
===================================================================
diff -u -N -r5272 -r6669
--- trunk/core/admin_templates/categories/categories_edit_custom.tpl (.../categories_edit_custom.tpl) (revision 5272)
+++ trunk/core/admin_templates/categories/categories_edit_custom.tpl (.../categories_edit_custom.tpl) (revision 6669)
@@ -4,7 +4,7 @@
-
+
@@ -23,9 +23,9 @@
submit_event('c','OnCancelEdit');
}
) );
-
+
a_toolbar.AddButton( new ToolBarSeparator('sep1') );
-
+
a_toolbar.AddButton( new ToolBarButton('prev', '', function() {
go_to_id('c', '');
}
@@ -34,31 +34,30 @@
go_to_id('c', '');
}
) );
-
+
function edit(){ }
-
+
a_toolbar.Render();
-
+
a_toolbar.HideButton('prev');
a_toolbar.HideButton('next');
a_toolbar.HideButton('sep1');
-
+
a_toolbar.DisableButton('next');
a_toolbar.DisableButton('prev');
-
+
-
+
-
\ No newline at end of file
Index: trunk/core/admin_templates/img/tree/ftv2blank.gif
===================================================================
diff -u -N
Binary files differ
Index: trunk/core/admin_templates/img/list_arrow_2_desc.gif
===================================================================
diff -u -N
Binary files differ
Index: trunk/core/admin_templates/categories/categories_edit_images.tpl
===================================================================
diff -u -N -r5320 -r6669
--- trunk/core/admin_templates/categories/categories_edit_images.tpl (.../categories_edit_images.tpl) (revision 5320)
+++ trunk/core/admin_templates/categories/categories_edit_images.tpl (.../categories_edit_images.tpl) (revision 6669)
@@ -1,12 +1,12 @@
-
+
-
+
@@ -16,12 +16,12 @@
+
@@ -50,7 +50,7 @@
-
+
Index: trunk/kernel/admin_templates/incs/ajax.js
===================================================================
diff -u -N
--- trunk/kernel/admin_templates/incs/ajax.js (revision 6583)
+++ trunk/kernel/admin_templates/incs/ajax.js (revision 0)
@@ -1,257 +0,0 @@
-// Main AJAX classs
-function Request() {}
-
-Request.timeout = 5000; //5 seconds
-Request.method = 'GET';
-Request.headers = new Array();
-Request.params = null;
-
-Request.makeRequest = function(p_url, p_busyReq, p_progId, p_successCallBack, p_errorCallBack, p_pass, p_object) {
- //p_url: the web service url
- //p_busyReq: is a request for this object currently in progress?
- //p_progId: element id where progress HTML should be shown
- //p_successCallBack: callback function for successful response
- //p_errorCallBack: callback function for erroneous response
- //p_pass: string of params to pass to callback functions
- //p_object: object of params to pass to callback functions
-
- if (p_busyReq) return;
- var req = Request.getRequest();
- if (req != null) {
- p_busyReq = true;
- Request.showProgress(p_progId);
- req.onreadystatechange = function() {
- if (req.readyState == 4) {
- p_busyReq = false;
- window.clearTimeout(toId);
- if (req.status == 200) {
- p_successCallBack(req, p_pass, p_object);
- } else {
- p_errorCallBack(req, p_pass, p_object);
- }
- Request.hideProgress(p_progId);
- }
- }
- var $ajax_mark = (p_url.indexOf('?') ? '&' : '?') + 'ajax=yes';
- req.open(Request.method, p_url + $ajax_mark, true);
-
- if (Request.method == 'POST') {
- Request.headers['Content-type'] = 'application/x-www-form-urlencoded';
- Request.headers['referer'] = p_url;
- }
- else {
- Request.headers['If-Modified-Since'] = 'Sat, 1 Jan 2000 00:00:00 GMT';
- }
-
- Request.sendHeaders(req);
- if (Request.method == 'POST') {
- req.send(Request.params);
- Request.method = 'GET'; // restore method back to GET
- }
- else {
- req.send(null);
- }
-
- var toId = window.setTimeout( function() {if (p_busyReq) req.abort();}, Request.timeout );
- }
-}
-
-Request.sendHeaders = function($request) {
- for (var $header_name in Request.headers) {
- $request.setRequestHeader($header_name, Request.headers[$header_name]);
- }
- Request.headers = new Array(); // reset header afterwards
-}
-
-Request.getRequest = function() {
- var xmlHttp;
- try { xmlHttp = new ActiveXObject('MSXML2.XMLHTTP'); return xmlHttp; } catch (e) {}
- try { xmlHttp = new ActiveXObject('Microsoft.XMLHTTP'); return xmlHttp; } catch (e) {}
- try { xmlHttp = new XMLHttpRequest(); return xmlHttp; } catch(e) {}
- return null;
-}
-
-Request.showProgress = function(p_id) {
- if (p_id != '') {
- Request.setOpacity(20, p_id);
-
- if (!document.getElementById(p_id + '_progress')) {
- document.body.appendChild(Request.getProgressObject(p_id));
- }
- else {
- var $progress_div = document.getElementById(p_id + '_progress');
- $progress_div.style.top = getRealTop(p_id) + 'px';
- $progress_div.style.height = document.getElementById(p_id).clientHeight;
- $progress_div.style.display = 'block';
- }
-// document.getElementById(p_id).innerHTML = Request.getProgressHtml();
- }
-}
-
-Request.hideProgress = function(p_id) {
- if (p_id != '') {
- document.getElementById(p_id + '_progress').style.display = 'none';
- Request.setOpacity(100, p_id);
- }
-}
-
-Request.setOpacity = function (opacity, id) {
- var object = document.getElementById(id).style;
- object.opacity = (opacity / 100);
- object.MozOpacity = (opacity / 100);
- object.KhtmlOpacity = (opacity / 100);
- object.filter = "alpha(opacity=" + opacity + ")";
-}
-
-Request.getProgressHtml = function() {
- return " " + Request.progressText + "
";
-}
-
-Request.getProgressObject = function($id) {
- var $div = document.createElement('DIV');
- var $parent_div = document.getElementById($id);
-
- $div.id = $id + '_progress';
-
- $div.style.width = $parent_div.clientWidth + 'px';
- $div.style.height = '150px'; // default height if div is empty (first ajax request for div)
- $div.style.left = getRealLeft($parent_div) + 'px';
- $div.style.top = getRealTop($parent_div) + 'px';
- $div.style.position = 'absolute';
-
- /*$div.style.border = '1px solid green';
- $div.style.backgroundColor = '#FF0000';*/
-
- $div.innerHTML = ''+Request.progressText+'
| ';
- return $div;
-}
-
-Request.getErrorHtml = function(p_req) {
- //TODO: implement accepted way to handle request error
- return '[status: ' + p_req.status + '; status_text: ' + p_req.statusText + '; responce_text: ' + p_req.responseText + ']';
-}
-
-Request.serializeForm = function(theform) {
- if (typeof(theform) == 'string') {
- theform = document.getElementById(theform);
- }
-
- var els = theform.elements;
- var len = els.length;
- var queryString = '';
-
- Request.addField = function(name, value) {
- if (queryString.length > 0) queryString += '&';
- queryString += encodeURIComponent(name) + '=' + encodeURIComponent(value);
- };
-
- for (var i = 0; i= 0) {
- Request.addField(el.name, el.options[el.selectedIndex].value);
- }
- break;
-
- case 'select-multiple':
- for (var j = 0; j < el.options.length; j++) {
- if (!el.options[j].selected) continue;
- Request.addField(el.name, el.options[j].value);
- }
- break;
-
- case 'checkbox':
- case 'radio':
- if (!el.checked) continue;
- Request.addField(el.name,el.value);
- break;
- }
- }
- return queryString;
-};
-
-// AJAX ProgressBar classs
-function AjaxProgressBar($url) {
- this.WindowTitle = this.GetWindow().document.title;
- this.URL = $url;
- this.BusyRequest = false;
- this.LastResponceTime = this.GetMicroTime();
- this.ProgressPercent = 0; // progress percent
- this.ProgressTime = new Array();
- this.Query();
-}
-
-AjaxProgressBar.prototype.GetWindow = function() {
- return window.parent ? window.parent : window;
-}
-
-AjaxProgressBar.prototype.GetMicroTime = function() {
- var $now = new Date();
- return Math.round($now.getTime() / 1000); // because miliseconds are returned too
-}
-
-AjaxProgressBar.prototype.Query = function() {
- Request.makeRequest(this.URL, this.BusyRequest, '', this.successCallback, this.errorCallback, '', this);
-}
-
-// return time needed for progress to finish
-AjaxProgressBar.prototype.GetEstimatedTime = function() {
- return Math.ceil((100 - this.ProgressPercent) * Math.sum(this.ProgressTime) / this.ProgressPercent);
-}
-
-AjaxProgressBar.prototype.successCallback = function($request, $params, $object) {
- var $responce = $request.responseText;
- var $match_redirect = new RegExp('^#redirect#(.*)').exec($responce);
- if ($match_redirect != null) {
- $object.showProgress(100);
- // redirect to external template requested
- window.location.href = $match_redirect[1];
- return false;
- }
-
- if ($object.showProgress($responce)) {
- $object.Query();
- }
-}
-
-AjaxProgressBar.prototype.errorCallback = function($request, $params, $object) {
- alert('AJAX Error; class: AjaxProgressBar; ' + Request.getErrorHtml($request));
-}
-
-AjaxProgressBar.prototype.FormatTime = function ($seconds) {
- $seconds = parseInt($seconds);
-
- var $minutes = Math.floor($seconds / 60);
- if ($minutes < 10) $minutes = '0' + $minutes;
- $seconds = $seconds % 60;
- if ($seconds < 10) $seconds = '0' + $seconds;
-
- return $minutes + ':' + $seconds;
-}
-
-AjaxProgressBar.prototype.showProgress = function ($percent) {
- this.ProgressPercent = $percent;
- var $now = this.GetMicroTime();
- this.ProgressTime[this.ProgressTime.length] = $now - this.LastResponceTime;
- this.LastResponceTime = $now;
-
- var $display_progress = parseInt(this.ProgressPercent);
- this.GetWindow().document.title = $display_progress + '% - ' + this.WindowTitle;
- document.getElementById('progress_display[percents_completed]').innerHTML = $display_progress + '%';
- document.getElementById('progress_display[elapsed_time]').innerHTML = this.FormatTime( Math.sum(this.ProgressTime) );
- document.getElementById('progress_display[Estimated_time]').innerHTML = this.FormatTime( this.GetEstimatedTime() );
-
- document.getElementById('progress_bar[done]').style.width = $display_progress + '%';
- document.getElementById('progress_bar[left]').style.width = (100 - $display_progress) + '%';
- return $percent < 100 ? true : false;
-}
\ No newline at end of file
Index: trunk/kernel/admin_templates/item_selector/item_selector_catalog.tpl
===================================================================
diff -u -N -r6093 -r6669
--- trunk/kernel/admin_templates/item_selector/item_selector_catalog.tpl (.../item_selector_catalog.tpl) (revision 6093)
+++ trunk/kernel/admin_templates/item_selector/item_selector_catalog.tpl (.../item_selector_catalog.tpl) (revision 6669)
@@ -3,7 +3,7 @@
-
+
@@ -15,7 +15,7 @@
"/>
-
+
@@ -35,7 +35,7 @@
|
-
+
+
|
-
+
-
+
@@ -85,19 +85,19 @@
- |
+
-
+
-
+
-
+
-
+
Index: trunk/kernel/admin_templates/advanced_view.tpl
===================================================================
diff -u -N -r6583 -r6669
--- trunk/kernel/admin_templates/advanced_view.tpl (.../advanced_view.tpl) (revision 6583)
+++ trunk/kernel/admin_templates/advanced_view.tpl (.../advanced_view.tpl) (revision 6669)
@@ -14,9 +14,9 @@
"/>
-
-
-
+ /incs/fw_menu.js">
+
+ /incs/catalog.js">
-
-
-
-
-
-
-
-
-
- ');">In-Portal v
- |
-
-
- |
-
-
-
-
-
-
- " onclick="" icon="img/icons/icon24_.gif">
-
- " onclick="" name="" icon="img/icons/icon24_.gif" load_url="">
-
-
-
-
-
- |
-
-
-
-
-
-
\ No newline at end of file
Index: trunk/kernel/admin_templates/xml/tree_categories.tpl
===================================================================
diff -u -N -r5536 -r6669
--- trunk/kernel/admin_templates/xml/tree_categories.tpl (.../tree_categories.tpl) (revision 5536)
+++ trunk/kernel/admin_templates/xml/tree_categories.tpl (.../tree_categories.tpl) (revision 6669)
@@ -1,6 +1,6 @@
- " icon="img/icons/icon24_catalog.gif" href="" onclick="checkCatalog()" load_url="">
+ " icon="img/icons/icon24_catalog.gif" href="" onclick="checkCatalog()" load_url="">
Index: trunk/kernel/admin_templates/categories/relations_edit.tpl
===================================================================
diff -u -N -r6093 -r6669
--- trunk/kernel/admin_templates/categories/relations_edit.tpl (.../relations_edit.tpl) (revision 6093)
+++ trunk/kernel/admin_templates/categories/relations_edit.tpl (.../relations_edit.tpl) (revision 6669)
@@ -23,15 +23,15 @@
) );
a_toolbar.AddButton( new ToolBarSeparator('sep2') );
-
+
a_toolbar.Render();
-
+
a_toolbar.HideButton('prev');
a_toolbar.HideButton('next');
a_toolbar.HideButton('sep1');
a_toolbar.HideButton('sep2');
-
+
a_toolbar.DisableButton('next');
@@ -45,20 +45,19 @@
-
-
+
+
-
\ No newline at end of file
Index: trunk/core/admin_templates/img/itemtabs/tab_middle.gif
===================================================================
diff -u -N
Binary files differ
Index: trunk/kernel/admin_templates/xml/categories_list.tpl
===================================================================
diff -u -N -r6583 -r6669
--- trunk/kernel/admin_templates/xml/categories_list.tpl (.../categories_list.tpl) (revision 6583)
+++ trunk/kernel/admin_templates/xml/categories_list.tpl (.../categories_list.tpl) (revision 6669)
@@ -42,8 +42,8 @@
$Catalog.reflectPasteButton();
#separator#
-
-
+
+
Index: trunk/kernel/admin_templates/incs/tab_blocks.tpl
===================================================================
diff -u -N
--- trunk/kernel/admin_templates/incs/tab_blocks.tpl (revision 6093)
+++ trunk/kernel/admin_templates/incs/tab_blocks.tpl (revision 0)
@@ -1,58 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- url(img/tab_back3.jpg) no-repeat top left;" cellpadding="0" cellspacing="0" border="0">
- |
- left.gif" width="15" height="23"> |
-
- ', '')" class="" onClick="">
- |
- right.gif" width="15" height="23"> |
-
-
- |
-
-
-
-
-
- url(img/tab_back3.jpg) no-repeat top left;" cellpadding="0" cellspacing="0" border="0">
- |
- left.gif" width="15" height="23"> |
-
- " class="" onClick="">
- |
- right.gif" width="15" height="23"> |
-
-
-
-
-
-
-
-
- url(img/tab_back3.jpg) no-repeat top left;" cellpadding="0" cellspacing="0" border="0">
- |
- left.gif" width="15" height="23"> |
- style="border-top: black 1px solid;" background="img/tab_back.gif">
- ', '')" class="" onClick="">
- |
- right.gif" width="15" height="23"> |
-
-
-
-
\ No newline at end of file
Index: trunk/kernel/admin_templates/stylesheets/style_editor.tpl
===================================================================
diff -u -N -r4834 -r6669
--- trunk/kernel/admin_templates/stylesheets/style_editor.tpl (.../style_editor.tpl) (revision 4834)
+++ trunk/kernel/admin_templates/stylesheets/style_editor.tpl (.../style_editor.tpl) (revision 6669)
@@ -5,7 +5,7 @@
-
+/incs/colorselector.js" type="text/javascript" language="javascript">
")
-/* The main calendar widget. DIV containing a table. */
-
Index: trunk/kernel/admin_templates/categories/images_edit.tpl
===================================================================
diff -u -N -r5320 -r6669
--- trunk/kernel/admin_templates/categories/images_edit.tpl (.../images_edit.tpl) (revision 5320)
+++ trunk/kernel/admin_templates/categories/images_edit.tpl (.../images_edit.tpl) (revision 6669)
@@ -1,7 +1,7 @@
-
+
@@ -23,7 +23,7 @@
submit_event('c-img','OnCancel');
}
) );
-
+
a_toolbar.Render();
@@ -35,18 +35,18 @@
-
-
+
+
-
+
-
-
-
-
-
-
+
+
+
+
+
+
Index: trunk/core/units/users/users_config.php
===================================================================
diff -u -N -r4702 -r6669
--- trunk/core/units/users/users_config.php (.../users_config.php) (revision 4702)
+++ trunk/core/units/users/users_config.php (.../users_config.php) (revision 6669)
@@ -48,13 +48,13 @@
),
'IDField' => 'PortalUserId',
-
+
'StatusField' => Array('Status'),
-
+
'TitleField' => 'Login',
-
+
'ItemType' => 6, // used for custom fields only (on user's case)
-
+
'StatisticsInfo' => Array(
'pending' => Array(
'icon' => 'icon16_user_pending.gif',
@@ -64,101 +64,101 @@
'status' => STATUS_PENDING,
),
),
-
+
'TitlePresets' => Array(
'default' => Array( 'new_status_labels' => Array('u'=>'!la_title_Adding_User!'),
'edit_status_labels' => Array('u'=>'!la_title_Editing_User!'),
'new_titlefield' => Array('u'=>'!la_title_New_User!'),
),
-
+
'users_list' => Array('prefixes' => Array('u_List'), 'format' => "!la_title_Users! (#u_recordcount#)"),
-
+
'users_edit' => Array('prefixes' => Array('u'), 'format' => "#u_status# '#u_titlefield#' - !la_title_General!"),
-
+
'users_select' => Array('prefixes' => Array('u_List'), 'format' => "!la_title_Users! (#u_recordcount#) - !la_title_SelectUser!"),
-
+
'tree_users' => Array('format' => '!la_section_overview!'),
),
-
+
'PermSection' => Array('main' => 'in-portal:user_list', 'email' => 'in-portal:user_email', 'custom' => 'in-portal:user_custom'),
-
+
'Sections' => Array(
'in-portal:users' => Array(
'parent' => 'in-portal:root',
- 'icon' => 'community',
+ 'icon' => 'in-portal:community',
'label' => 'la_tab_Community',
'url' => Array('t' => 'sections_list', 'pass_section' => true, 'pass' => 'm'),
'permissions' => Array('view'),
'priority' => 2,
'type' => stTREE,
),
-
+
'in-portal:user_list' => Array(
'parent' => 'in-portal:users',
- 'icon' => 'users',
+ 'icon' => 'in-portal:users',
'label' => 'la_tab_User_List',
'url' => Array('index_file' => 'users/user_list.php', 'pass' => 'm', 'resetpage' => 1),
'permissions' => Array('view', 'add', 'edit', 'delete', 'advanced:ban', 'advanced:send_email', /*'advanced:add_favorite', 'advanced:remove_favorite',*/),
'priority' => 1,
'type' => stTREE,
),
-
+
'in-portal:configure_users' => Array(
'parent' => 'in-portal:users',
- 'icon' => 'users_settings',
+ 'icon' => 'in-portal:users_settings',
'label' => 'la_tab_ConfigSettings',
'url' => Array('t' => 'config/config_universal', 'module' => 'In-Portal:Users', 'pass_section' => true, 'pass' => 'm'),
'permissions' => Array('view', 'edit'),
'priority' => 3,
'type' => stTREE,
),
-
+
'in-portal:user_email' => Array(
'parent' => 'in-portal:users',
- 'icon' => 'settings_email',
+ 'icon' => 'in-portal:settings_email',
'label' => 'la_tab_ConfigE-mail',
'url' => Array('t' => 'config/config_email', 'module' => 'In-Portal:Users', 'pass_section' => true, 'pass' => 'm'),
'permissions' => Array('view', 'edit'),
'priority' => 4,
'type' => stTREE,
),
-
+
'in-portal:user_custom' => Array(
'parent' => 'in-portal:users',
- 'icon' => 'settings_custom',
+ 'icon' => 'in-portal:settings_custom',
'label' => 'la_tab_ConfigCustom',
'url' => Array('t' => 'custom_fields/custom_fields_list', 'cf_type' => 6, 'pass_section' => true, 'pass' => 'm,cf'),
'permissions' => Array('view', 'add', 'edit', 'delete'),
'priority' => 5,
'type' => stTREE,
),
-
+
'in-portal:user_banlist' => Array(
'parent' => 'in-portal:users',
- 'icon' => 'banlist',
+ 'icon' => 'in-portal:banlist',
'label' => 'la_tab_BanList',
'url' => Array('index_file' => 'config/edit_banlist.php', 'DataType' => 6, 'pass_section' => true, 'pass' => 'm'),
'permissions' => Array('view', 'add', 'edit', 'delete'),
'priority' => 6,
'type' => stTREE,
),
- ),
-
+ ),
+
'TableName' => TABLE_PREFIX.'PortalUser',
'ListSQLs' => Array( '' => ' SELECT %1$s.* %2$s FROM %1$s
LEFT JOIN '.TABLE_PREFIX.'UserGroup ug ON %1$s.PortalUserId = ug.PortalUserId AND ug.PrimaryGroup = 1
LEFT JOIN '.TABLE_PREFIX.'PortalGroup g ON ug.GroupId = g.GroupId
LEFT JOIN '.TABLE_PREFIX.'%3$sPortalUserCustomData cust ON %1$s.ResourceId = cust.ResourceId',
),
-
+
'ItemSQLs' => Array( '' => ' SELECT %1$s.* %2$s FROM %1$s
LEFT JOIN '.TABLE_PREFIX.'UserGroup ug ON %1$s.PortalUserId = ug.PortalUserId AND ug.PrimaryGroup = 1
LEFT JOIN '.TABLE_PREFIX.'PortalGroup g ON ug.GroupId = g.GroupId
LEFT JOIN '.TABLE_PREFIX.'%3$sPortalUserCustomData cust ON %1$s.ResourceId = cust.ResourceId',
),
-
+
'ListSortings' => Array(
'' => Array(
'Sorting' => Array('Login' => 'asc'),
@@ -171,20 +171,20 @@
'Groups' => Array(
Array('mode' => 'AND', 'filters' => Array(0,1,2), 'type' => WHERE_FILTER),
),
-
+
'Filters' => Array(
0 => Array('label' =>'la_Enabled', 'on_sql' => '', 'off_sql' => '%1$s.Status != 1' ),
1 => Array('label' => 'la_Disabled', 'on_sql' => '', 'off_sql' => '%1$s.Status != 0' ),
2 => Array('label' => 'la_Pending', 'on_sql' => '', 'off_sql' => '%1$s.Status != 2' ),
)
),
-
+
'CalculatedFields' => Array(
'' => Array(
'PrimaryGroup' => 'g.Name',
),
),
-
+
'Fields' => Array
(
'PortalUserId' => Array(),
@@ -248,7 +248,7 @@
'CreatedOn_formatted' => Array('title' => 'la_col_CreatedOn', 'sort_field' => 'CreatedOn'),
),
),
-
+
'UserSelector' => Array(
'Icons' => Array(0 => 'icon16_user_disabled.gif', 1 => 'icon16_user.gif', 2 => 'icon16_user_pending.gif'),
'Fields' => Array(
Index: trunk/core/admin_templates/img/tree/ftv2node.gif
===================================================================
diff -u -N
Binary files differ
Index: trunk/kernel/admin_templates/incs/header.tpl
===================================================================
diff -u -N
--- trunk/kernel/admin_templates/incs/header.tpl (revision 6093)
+++ trunk/kernel/admin_templates/incs/header.tpl (revision 0)
@@ -1,47 +0,0 @@
-
-
-
-In-Portal :: Administration Panel
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- >
-
-
-
-
-
\ No newline at end of file
Index: trunk/core/admin_templates/categories/relations_edit.tpl
===================================================================
diff -u -N -r6093 -r6669
--- trunk/core/admin_templates/categories/relations_edit.tpl (.../relations_edit.tpl) (revision 6093)
+++ trunk/core/admin_templates/categories/relations_edit.tpl (.../relations_edit.tpl) (revision 6669)
@@ -23,15 +23,15 @@
) );
a_toolbar.AddButton( new ToolBarSeparator('sep2') );
-
+
a_toolbar.Render();
-
+
a_toolbar.HideButton('prev');
a_toolbar.HideButton('next');
a_toolbar.HideButton('sep1');
a_toolbar.HideButton('sep2');
-
+
a_toolbar.DisableButton('next');
@@ -45,20 +45,19 @@
-
-
+
+
-
\ No newline at end of file
Index: trunk/core/admin_templates/stylesheets/style_editor.tpl
===================================================================
diff -u -N -r4834 -r6669
--- trunk/core/admin_templates/stylesheets/style_editor.tpl (.../style_editor.tpl) (revision 4834)
+++ trunk/core/admin_templates/stylesheets/style_editor.tpl (.../style_editor.tpl) (revision 6669)
@@ -5,7 +5,7 @@
-
+/incs/colorselector.js" type="text/javascript" language="javascript">