<?php if (!defined('IS_SITE_ADMIN')) { header('Location: /404.php'); exit; } if (!(hasPermissions('adm') && hasPermissions('communes'))) { exit; } if (!($groups = commune::GetGroups())) { $groups = array(); } $grpCnt = count($groups); ?> <script type="text/javascript"> function reOrder(__this, direct) { var oCurr = __this.offsetParent.parentNode; var tbl = oCurr.parentNode; var thisIndex = oCurr.rowIndex; var prev = tbl.rows.item(thisIndex + direct); var nCurr = prev.cloneNode(true); tbl.replaceChild(oCurr, prev); var newx = tbl.insertRow(thisIndex); tbl.replaceChild(nCurr, newx); var oCells = oCurr.cells; var nCells = nCurr.cells; var oUp = oCells.item(2); var nUp = nCells.item(2); var oDown = oCells.item(3);