2 * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
3 * Copyright (C) 2002-2009 The Nucleus Group
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 * (see nucleus/documentation/index.html#license for more info)
11 * Some JavaScript code for the admin area
14 * $NucleusJP: admin.js,v 1.6.2.1 2007/09/05 05:58:56 kimitake Exp $
18 popup = window.open(url,'helpwindow','status=no,toolbar=yes,scrollbars=yes,resizable=yes,width=500,height=500,top=0,left=0');
19 if (popup.focus) popup.focus();
20 if (popup.GetAttention) popup.GetAttention();
24 var oldCellColor = "#000";
25 function focusRow(row) {
26 var cells = row.cells;
28 oldCellColor = cells[0].style.backgroundColor;
29 for (var i=0;i<cells.length;i++) {
30 cells[i].style.backgroundColor='whitesmoke';
33 function blurRow(row) {
34 var cells = row.cells;
36 for (var i=0;i<cells.length;i++) {
37 cells[i].style.backgroundColor=oldCellColor;
40 function batchSelectAll(what) {
43 while (el = document.getElementById('batch' + i)) {
44 el.checked = what?'checked':'';
49 function selectCanLogin(flag) {
51 window.document.memberedit.canlogin[0].checked=true;
53 // don't disable canlogin[0], otherwise the value won't be passed.
54 // window.document.memberedit.canlogin[0].disabled=true;
55 window.document.memberedit.canlogin[1].disabled=true;
57 window.document.memberedit.canlogin[0].disabled=false;
58 window.document.memberedit.canlogin[1].disabled=false;