function slist($name, $lvl, $sl) { $qR = mysql_query("SELECT * FROM sections WHERE parent='{$name}'") or die(mysql_error()); while ($r = mysql_fetch_array($qR)) { if ($sl == $r[name]) { print "<option value='{$r['name']}' selected>"; } else { print "<option value='{$r['name']}'>"; } $l = $lvl + 4; while ($l--) { print " "; } print "|____"; print "{$r['name']}"; print "</option>"; slist($r[name], $lvl + 10, $sl); } }
echo ":"; echo "</td>"; echo "<td>"; slist("fi_min", 0, 59, $finish['min']); echo ":"; echo "</td>"; echo "<td>"; slist("fi_sec", 0, 59, $finish['sec']); echo " "; echo "</td>"; echo "<td>"; slist("fi_day", 1, 31, $finish['day']); echo "/"; echo "</td>"; echo "<td>"; slist("fi_mon", 1, 12, $finish['mon']); echo "/"; echo "</td>"; echo "<td>"; echo "<input type=text name=fi_yr value=\"" . $finish['yr'] . "\" size=5 maxlength=4>"; echo " "; echo "</td>"; echo "</tr>"; echo "</table>"; echo "</td></tr><tr><td align=left valign=top>"; echo "<b>Pre-defined </b>"; echo "</td><td align=left valign=top>"; $now = time(); /* // td_day mon yr
include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.artica.inc'; include_once 'ressources/class.mysql.inc'; include_once 'ressources/class.ini.inc'; include_once 'ressources/class.user.inc'; include_once 'ressources/class.cron.inc'; $users = new usersMenus(); if (!$users->AsPostfixAdministrator) { $tpl = new templates(); $error = $tpl->javascript_parse_text("{ERROR_NO_PRIVS}"); echo "alert('{$error}')"; die; } if (isset($_GET["zarafa-orhpans-list"])) { slist(); exit; } if (isset($_POST["ZarafaStoreDelete"])) { ZarafaStoreDelete(); exit; } if (isset($_POST["ZarafaStoreLink"])) { ZarafaStoreLink(); exit; } if (isset($_POST["ZarafaStoreScan"])) { ZarafaStoreScan(); exit; } if (isset($_GET["ZarafaCopyToPublic-js"])) {
include_once('ressources/class.users.menus.inc'); include_once('ressources/class.artica.inc'); include_once('ressources/class.mysql.inc'); include_once('ressources/class.ini.inc'); include_once('ressources/class.user.inc'); include_once('ressources/class.cron.inc'); $users=new usersMenus(); if(!$users->AsPostfixAdministrator){ $tpl=new templates(); $error=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}"); echo "alert('$error')"; die(); } if(isset($_GET["zarafa-orhpans-list"])){slist();exit;} if(isset($_POST["ZarafaStoreDelete"])){ZarafaStoreDelete();exit;} if(isset($_POST["ZarafaStoreLink"])){ZarafaStoreLink();exit;} if(isset($_POST["ZarafaStoreScan"])){ZarafaStoreScan();exit;} if(isset($_GET["ZarafaCopyToPublic-js"])){ZarafaCopyToPublic_js();exit;} if(isset($_GET["ZarafaCopyToPublic-popup"])){ZarafaCopyToPublic_popup();exit;} if(isset($_POST["ZarafaCopyToPublicPerform"])){ZarafaCopyToPublic_perform();exit;} if(isset($_GET["js"])){js();exit;} popup(); function js(){ $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->javascript_parse_text("{orphans}");
function slist($name, $lvl) { $qR = mysql_query("select * from sections where parent='{$name}'") or die(mysql_error()); while ($r = mysql_fetch_array($qR)) { $l = $lvl + 4; print "\n"; while ($l--) { print " "; } print "|____"; print "<input type=\"radio\" name=\"sect\" value=\"{$r['name']}\">{$r['name']} "; print "<a href=\"sections.php?action=delete&name={$r['name']}\">delete</a> "; print "<a href=\"sections.php?action=edit&name={$r['name']}\">edit</a> "; slist($r[name], $lvl + 10); } }