OSDN Git Service

Update project term to '2002 - 2011'.
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / javascript / admin.js
index 2001194..ec37ca0 100755 (executable)
@@ -1,49 +1,60 @@
-/**\r
-  * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/) \r
-  * Copyright (C) 2002-2005 The Nucleus Group\r
-  *\r
-  * This program is free software; you can redistribute it and/or\r
-  * modify it under the terms of the GNU General Public License\r
-  * as published by the Free Software Foundation; either version 2\r
-  * of the License, or (at your option) any later version.\r
-  * (see nucleus/documentation/index.html#license for more info)\r
-  *  \r
-  * Some JavaScript code for the admin area\r
-  *\r
-  * $Id: admin.js,v 1.3 2005-03-12 06:19:04 kimitake Exp $\r
-  * $NucleusJP$\r
-  */\r
-\r
-function help(url) {\r
-       popup = window.open(url,'helpwindow','status=no,toolbar=yes,scrollbars=yes,resizable=yes,width=500,height=500,top=0,left=0');\r
-       if (popup.focus) popup.focus();\r
-       if (popup.GetAttention) popup.GetAttention();\r
-       return false;\r
-}                              \r
-\r
-var oldCellColor = "#000";\r
-function focusRow(row) {\r
-       var cells = row.cells;\r
-       if (!cells) return;\r
-       oldCellColor = cells[0].style.backgroundColor;\r
-       for (var i=0;i<cells.length;i++) {\r
-               cells[i].style.backgroundColor='whitesmoke';\r
-       }\r
-}\r
-function blurRow(row) {\r
-       var cells = row.cells;\r
-       if (!cells) return;\r
-       for (var i=0;i<cells.length;i++) {\r
-               cells[i].style.backgroundColor=oldCellColor;\r
-       }\r
-}\r
-function batchSelectAll(what) {\r
-       var i = 0;\r
-       var el;\r
-       while (el = document.getElementById('batch' + i)) {\r
-               el.checked = what?'checked':'';\r
-               i++;\r
-       }\r
-       return false;                                   \r
-}\r
-\r
+/**
+  * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/) 
+  * Copyright (C) 2002-2011 The Nucleus Group
+  *
+  * This program is free software; you can redistribute it and/or
+  * modify it under the terms of the GNU General Public License
+  * as published by the Free Software Foundation; either version 2
+  * of the License, or (at your option) any later version.
+  * (see nucleus/documentation/index.html#license for more info)
+  *  
+  * Some JavaScript code for the admin area
+  *
+  * $Id$
+  * $NucleusJP: admin.js,v 1.6.2.1 2007/09/05 05:58:56 kimitake Exp $
+  */
+
+function help(url) {
+       popup = window.open(url,'helpwindow','status=no,toolbar=no,scrollbars=yes,resizable=yes,width=570,height=530,top=0,left=0');
+       if (popup.focus) popup.focus();
+       if (popup.GetAttention) popup.GetAttention();
+       return false;
+}                              
+
+var oldCellColor = "#000";
+function focusRow(row) {
+       var cells = row.cells;
+       if (!cells) return;
+       oldCellColor = cells[0].style.backgroundColor;
+       for (var i=0;i<cells.length;i++) {
+               cells[i].style.backgroundColor='whitesmoke';
+       }
+}
+function blurRow(row) {
+       var cells = row.cells;
+       if (!cells) return;
+       for (var i=0;i<cells.length;i++) {
+               cells[i].style.backgroundColor=oldCellColor;
+       }
+}
+function batchSelectAll(what) {
+       var i = 0;
+       var el;
+       while (el = document.getElementById('batch' + i)) {
+               el.checked = what?'checked':'';
+               i++;
+       }
+       return false;                                   
+}
+function selectCanLogin(flag) {
+       if (flag) {
+               window.document.memberedit.canlogin[0].checked=true;
+
+               // don't disable canlogin[0], otherwise the value won't be passed.
+//             window.document.memberedit.canlogin[0].disabled=true;
+               window.document.memberedit.canlogin[1].disabled=true;
+       } else {
+               window.document.memberedit.canlogin[0].disabled=false;
+               window.document.memberedit.canlogin[1].disabled=false;
+       }
+}