| [ Index ] |
PHP Cross Reference of Nucleus CMS 3.32 |
[Summary view] [Print] [Text view]
1 /** 2 * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/) 3 * Copyright (C) 2002-2007 The Nucleus Group 4 * 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) 10 * 11 * Some JavaScript code for the admin area 12 * 13 * $Id: admin.js 1143 2007-05-10 08:39:46Z kimitake $ 14 */ 15 16 function help(url) { 17 popup = window.open(url,'helpwindow','status=no,toolbar=yes,scrollbars=yes,resizable=yes,width=500,height=500,top=0,left=0'); 18 if (popup.focus) popup.focus(); 19 if (popup.GetAttention) popup.GetAttention(); 20 return false; 21 } 22 23 var oldCellColor = "#000"; 24 function focusRow(row) { 25 var cells = row.cells; 26 if (!cells) return; 27 oldCellColor = cells[0].style.backgroundColor; 28 for (var i=0;i<cells.length;i++) { 29 cells[i].style.backgroundColor='whitesmoke'; 30 } 31 } 32 function blurRow(row) { 33 var cells = row.cells; 34 if (!cells) return; 35 for (var i=0;i<cells.length;i++) { 36 cells[i].style.backgroundColor=oldCellColor; 37 } 38 } 39 function batchSelectAll(what) { 40 var i = 0; 41 var el; 42 while (el = document.getElementById('batch' + i)) { 43 el.checked = what?'checked':''; 44 i++; 45 } 46 return false; 47 } 48 function selectCanLogin(flag) { 49 if (flag) { 50 window.document.memberedit.canlogin[0].checked=true; 51 52 // don't disable canlogin[0], otherwise the value won't be passed. 53 // window.document.memberedit.canlogin[0].disabled=true; 54 window.document.memberedit.canlogin[1].disabled=true; 55 } else { 56 window.document.memberedit.canlogin[0].disabled=false; 57 window.document.memberedit.canlogin[1].disabled=false; 58 } 59 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Feb 12 15:34:36 2008 | Cross-referenced by PHPXref 0.7 |