home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / JanaSetup.exe / admin / seiten_js / menu.js < prev    next >
Text File  |  2006-05-08  |  12KB  |  256 lines

  1. function login(page)
  2. {
  3.     parent.header.document.dummy.page.value = page;
  4.     parent.main.location.replace('/jana-admin/email/logon.htm');
  5. }
  6.  
  7. /**/
  8.  
  9. var IE  = (document.all);
  10. var DOM = (document.getElementById && !document.all);
  11.  
  12. aktiv = '';
  13.  
  14. function on(name, hov)
  15. {
  16.     if (aktiv != name)
  17.     {
  18.         if (IE)
  19.             document.all.tags('a')[name].style.color = hov;
  20.  
  21.         if (DOM || IE)
  22.             document.getElementsByTagName('a')[name].style.color = hov;
  23.     }
  24. }
  25.  
  26. /**/
  27.  
  28. function off(name, lin)
  29. {
  30.     if (aktiv != name)
  31.     {
  32.         if (IE)
  33.             document.all.tags('a')[name].style.color = lin;
  34.  
  35.         if (DOM || IE)
  36.             document.getElementsByTagName('a')[name].style.color = lin;
  37.     }
  38. }
  39.  
  40. /**/
  41.  
  42. function klick(name, akt, lin)
  43. {
  44.     if (IE)
  45.         document.all.tags('a')[name].style.color = akt;
  46.  
  47.     if (DOM || IE)
  48.         document.getElementsByTagName('a')[name].style.color = akt;
  49.  
  50.     if (aktiv != name)
  51.     {
  52.         if (aktiv != '')
  53.         {
  54.             if (IE)
  55.                 document.all.tags('a')[aktiv].style.color = lin;
  56.  
  57.             if (DOM || IE)
  58.                 document.getElementsByTagName('a')[aktiv].style.color = lin;
  59.         }
  60.     }
  61.  
  62.     aktiv = name;
  63. }
  64.  
  65. /**/
  66.  
  67. function benutz()
  68. {
  69.     with (document)
  70.     {
  71.         write('<a id="l1" href="/jana-admin/email/menue/info_menu.htm" onmouseover="on(\'l1\', hov);" onmouseout="off(\'l1\', lin);" onclick="klick(\'l1\', akt, lin);">' + txt[14][1] + '</a><br />'
  72.  
  73.             + '<img src="/jana-admin/jana_skin/images/linie.gif" border="0" width="107" height="1" vspace="5" alt=""><br />'
  74.  
  75.             + '<a id="l2" href="/jana-admin/admin.dll?load=email/benutzer_pass" onmouseover="on(\'l2\', hov);" onmouseout="off(\'l2\', lin);" onclick="klick(\'l2\', akt, lin);">' + txt[16][3] + '</a><br />'
  76.             + '<a id="l3" href="/jana-admin/admin.dll?load=email/pass" onmouseover="on(\'l3\', hov);" onmouseout="off(\'l3\', lin);" onclick="klick(\'l3\', akt, lin);">' + txt[5][10] + '</a><br />'
  77.             + '<a id="l4" href="javascript:login(\'umleitung_user\');" target="_self" onmouseover="on(\'l4\', hov);" onmouseout="off(\'l4\', lin);" onclick="klick(\'l4\', akt, lin);">' + txt[16][6] + '</a><br />'
  78.             + '<a id="l5" href="javascript:login(\'responder\');" target="_self" onmouseover="on(\'l5\', hov);" onmouseout="off(\'l5\', lin);" onclick="klick(\'l5\', akt, lin);">' + txt[16][13] + '</a><br />');
  79.     }
  80. }
  81.  
  82. /**/
  83.  
  84. function start(w)
  85. {
  86.     with (document)
  87.     {
  88.         if (w == 1)
  89.         {
  90.             write('<a id="l1" href="/jana-admin/admin/info/welcome.htm" target="main" onmouseover="on(\'l1\', hov);" onmouseout="off(\'l1\', lin);" onclick="klick(\'l1\', akt, lin);">' + txt[13][1] + '</a><br />'
  91.                 + '<a id="l2" href="/jana-admin/admin.dll?load=admin/loggfileselect" target="main" onmouseover="on(\'l2\', hov);" onmouseout="off(\'l2\', lin);" onclick="klick(\'l2\', akt, lin);">' + txt[13][2] + '</a><br />'
  92.                 + '<a id="l3" href="javascript:fenster(\'/jana-admin/admin/monitor.shtml\', 490);" onmouseover="on(\'l3\', hov);" onmouseout="off(\'l3\', lin);" onclick="klick(\'l3\', akt, lin);">' + txt[13][3] + '</a><br />');
  93.         }
  94.  
  95.         if (w == 2)
  96.         {
  97.             var _url = '/jana-admin/admin/menue/';
  98.  
  99.             _link    = new Array();
  100.             _link[1] = new Array(_url + 'info_allgemein.htm', _url + 'menue_allgemein.htm', txt[13][5]);
  101.             _link[2] = new Array(_url + 'info_server.htm', _url + 'menue_server.htm', txt[13][6]);
  102.             _link[3] = new Array(_url + 'info_email.htm', _url + 'menue_email.htm', txt[13][7]);
  103.             _link[4] = new Array(_url + 'info_passwort.htm', _url + 'menue_passwort.htm', txt[13][8]);
  104.  
  105.             for (g = 1; g <= 4; g++)
  106.                 write('<a href="javascript:zweiseit(\'' + g + '\', \'' + _link[g][0] + '\', \'' + _link[g][1] + '\');" target="_self">' + _link[g][2] + '</a><br />');
  107.         }
  108.  
  109.         if (w == 3)
  110.         {
  111.             var _url = '/jana-admin/admin/info/';
  112.  
  113.             write('<a id="l4" href="javascript:fenster(\'/jana-admin/admin/help/\', 540);" onmouseover="on(\'l4\', hov);" onmouseout="off(\'l4\', lin);" onclick="klick(\'l4\', akt, lin);">' + txt[13][10] + '</a><br />'
  114.                 + '<a id="l5" href="http://www.janaserver.de/" target="_blank" onmouseover="on(\'l5\', hov);" onmouseout="off(\'l5\', lin);" onclick="klick(\'l5\', akt, lin);">' + txt[13][11] + '</a><br />'
  115.                 + '<a id="l6" href="http://www.janaforum.de/" target="_blank" onmouseover="on(\'l6\', hov);" onmouseout="off(\'l6\', lin);" onclick="klick(\'l6\', akt, lin);">' + txt[13][12] + '</a><br />'
  116.  
  117.                 + '<img src="/jana-admin/jana_skin/images/linie.gif" border="0" width="107" height="1" vspace="5" alt=""><br />'
  118.  
  119.                 + '<a id="l7" href="' + _url + 'info_page.htm" target="main" onmouseover="on(\'l7\', hov);" onmouseout="off(\'l7\', lin);" onclick="klick(\'l7\', akt, lin);">' + txt[13][13] + '</a><br />'
  120.                 + '<a id="l8" href="' + _url + 'lizenz.htm" target="main" onmouseover="on(\'l8\', hov);" onmouseout="off(\'l8\', lin);" onclick="klick(\'l8\', akt, lin);">' + txt[13][14] + '</a><br />');
  121.         }
  122.     }
  123. }
  124.  
  125. /**/
  126.  
  127. function allgemein()
  128. {
  129.     var _url = '/jana-admin/admin.dll?load=admin/';
  130.  
  131.     with (document)
  132.     {
  133.         write('<a id="l1" href="' + _url + 'allgemeine_server_parameter" onmouseover="on(\'l1\', hov);" onmouseout="off(\'l1\', lin);" onclick="klick(\'l1\', akt, lin);">' + txt[14][8] + '</a><br />'
  134.             + '<a id="l2" href="' + _url + 'IPAdress" onmouseover="on(\'l2\', hov);" onmouseout="off(\'l2\', lin);" onclick="klick(\'l2\', akt, lin);">' + txt[14][3] + '</a><br />'
  135.             + '<a id="l3" href="' + _url + 'portnummern" onmouseover="on(\'l3\', hov);" onmouseout="off(\'l3\', lin);" onclick="klick(\'l3\', akt, lin);">' + txt[14][4] + '</a><br />'
  136.             + '<a id="l4" href="' + _url + 'rasparameter" onmouseover="on(\'l4\', hov);" onmouseout="off(\'l4\', lin);" onclick="klick(\'l4\', akt, lin);">' + txt[14][5] + '</a><br />'
  137.             + '<a id="l5" href="' + _url + 'extra_gateways" onmouseover="on(\'l5\', hov);" onmouseout="off(\'l5\', lin);" onclick="klick(\'l5\', akt, lin);">' + txt[14][6] + '</a><br />'
  138.             + '<a id="l6" href="' + _url + 'loggfiles" onmouseover="on(\'l6\', hov);" onmouseout="off(\'l6\', lin);" onclick="klick(\'l6\', akt, lin);">' + txt[13][2] + '</a><br />'
  139.             + '<a id="l7" href="' + _url + 'user_rights" onmouseover="on(\'l7\', hov);" onmouseout="off(\'l7\', lin);" onclick="klick(\'l7\', akt, lin);">' + txt[14][7] + '</a><br />');
  140.     }
  141. }
  142.  
  143. /**/
  144.  
  145. function server()
  146. {
  147.     var _url = '/jana-admin/admin.dll?load=admin/';
  148.  
  149.     with (document)
  150.     {
  151.         write('<a id="l1" href="' + _url + 'proxy_einstellungen" onmouseover="on(\'l1\', hov);" onmouseout="off(\'l1\', lin);" onclick="klick(\'l1\', akt, lin);">' + txt[15][1] + '</a><br />'
  152.             + '<a id="l2" href="' + _url + 'httpserver" onmouseover="on(\'l2\', hov);" onmouseout="off(\'l2\', lin);" onclick="klick(\'l2\', akt, lin);">' + txt[15][2] + '</a><br />'
  153.             + '<a id="l3" href="' + _url + 'ftp_users" onmouseover="on(\'l3\', hov);" onmouseout="off(\'l3\', lin);" onclick="klick(\'l3\', akt, lin);">' + txt[15][3] + '</a><br />'
  154.             + '<a id="l4" href="' + _url + 'news_server" onmouseover="on(\'l4\', hov);" onmouseout="off(\'l4\', lin);" onclick="klick(\'l4\', akt, lin);">' + txt[15][4] + '</a><br />'
  155.             + '<a id="l5" href="' + _url + 'sntp_server" onmouseover="on(\'l5\', hov);" onmouseout="off(\'l5\', lin);" onclick="klick(\'l5\', akt, lin);">' + txt[15][5] + '</a><br />'
  156.             + '<a id="l6" href="' + _url + 'dns_server" onmouseover="on(\'l6\', hov);" onmouseout="off(\'l6\', lin);" onclick="klick(\'l6\', akt, lin);">' + txt[15][6] + '</a><br />'
  157.             + '<a id="l7" href="' + _url + 'mime_type" onmouseover="on(\'l7\', hov);" onmouseout="off(\'l7\', lin);" onclick="klick(\'l7\', akt, lin);">' + txt[15][7] + '</a><br />');
  158.     }
  159. }
  160.  
  161. /**/
  162.  
  163. function email()
  164. {
  165.     var _url = '/jana-admin/admin.dll?load=admin/';
  166.  
  167.     with (document)
  168.     {
  169.         if (parent.header.document.dummy.mail.value == 1)
  170.         {
  171.             write('<a id="l1" href="' + _url + 'generelle_email_parameter" onmouseover="on(\'l1\', hov);" onmouseout="off(\'l1\', lin);" onclick="klick(\'l1\', akt, lin);">' + txt[14][8] + '</a><br />'
  172.                 + '<a id="l2" href="' + _url + 'email_users_einfach" onmouseover="on(\'l2\', hov);" onmouseout="off(\'l2\', lin);" onclick="klick(\'l2\', akt, lin);">' + txt[16][3] + '</a><br />');
  173.         }
  174.         else
  175.         {
  176.             write('<a id="l1" href="' + _url + 'generelle_email_parameter" onmouseover="on(\'l1\', hov);" onmouseout="off(\'l1\', lin);" onclick="klick(\'l1\', akt, lin);">' + txt[14][8] + '</a><br />'
  177.                 + '<a id="l2" href="' + _url + 'pop3_servers" onmouseover="on(\'l2\', hov);" onmouseout="off(\'l2\', lin);" onclick="klick(\'l2\', akt, lin);">' + txt[16][1] + '</a><br />'
  178.                 + '<a id="l3" href="' + _url + 'smtp_servers" onmouseover="on(\'l3\', hov);" onmouseout="off(\'l3\', lin);" onclick="klick(\'l3\', akt, lin);">' + txt[16][2] + '</a><br />'
  179.                 + '<a id="l4" href="' + _url + 'email_users" onmouseover="on(\'l4\', hov);" onmouseout="off(\'l4\', lin);" onclick="klick(\'l4\', akt, lin);">' + txt[16][3] + '</a><br />'
  180.                 + '<a id="l5" href="' + _url + 'email_verteilung" onmouseover="on(\'l5\', hov);" onmouseout="off(\'l5\', lin);" onclick="klick(\'l5\', akt, lin);">' + txt[16][5] + '</a><br />'
  181.                 + '<a id="l6" href="' + _url + 'email_user_groups" onmouseover="on(\'l6\', hov);" onmouseout="off(\'l6\', lin);" onclick="klick(\'l6\', akt, lin);">' + txt[16][4] + '</a><br />'
  182.                 + '<a id="l7" href="' + _url + 'umleitung" onmouseover="on(\'l7\', hov);" onmouseout="off(\'l7\', lin);" onclick="klick(\'l7\', akt, lin);">' + txt[16][6] + '</a><br />'
  183.                 + '<a id="l8" href="' + _url + 'bcc_send" onmouseover="on(\'l8\', hov);" onmouseout="off(\'l8\', lin);" onclick="klick(\'l8\', akt, lin);">' + txt[16][7] + '</a><br />'
  184.                 + '<a id="l9" href="' + _url + 'bcc_recive" onmouseover="on(\'l9\', hov);" onmouseout="off(\'l9\', lin);" onclick="klick(\'l9\', akt, lin);">' + txt[16][8] + '</a><br />'
  185.                 + '<a id="l10" href="' + _url + 'email_alias" onmouseover="on(\'l10\', hov);" onmouseout="off(\'l10\', lin);" onclick="klick(\'l10\', akt, lin);">' + txt[16][9] + '</a><br />');
  186.         }
  187.     }
  188. }
  189.  
  190. /**/
  191.  
  192. function passwort()
  193. {
  194.     var _url = '/jana-admin/admin.dll?load=admin/passwort/';
  195.  
  196.     with (document)
  197.     {
  198.         write('<a id="l1" href="' + _url + 'htaccess" onmouseover="on(\'l1\', hov);" onmouseout="off(\'l1\', lin);" onclick="klick(\'l1\', akt, lin);">' + txt[67][1] + '</a><br />'
  199.             + '<a id="l2" href="' + _url + 'htpasswd" onmouseover="on(\'l2\', hov);" onmouseout="off(\'l2\', lin);" onclick="klick(\'l2\', akt, lin);">' + txt[67][2] + '</a><br />');
  200.     }
  201. }
  202.  
  203. /**/
  204.  
  205. function home()
  206. {
  207.     var _url = '/jana-admin/admin/menue/';
  208.  
  209.     with (document)
  210.     {
  211.         write('<a href="javascript:zweiseit(\'0\', \'/jana-admin/admin/info/welcome.htm\', \'' + _url + 'menue.htm\');" target="_self">' + txt[14][1] + '</a><br />'
  212.             + '<img src="/jana-admin/jana_skin/images/linie.gif" border="0" width="107" height="1" vspace="5" alt=""><br />');
  213.  
  214.         _link    = new Array();
  215.         _link[1] = new Array(_url + 'info_allgemein.htm', _url + 'menue_allgemein.htm', txt[13][5]);
  216.         _link[2] = new Array(_url + 'info_server.htm', _url + 'menue_server.htm', txt[13][6]);
  217.         _link[3] = new Array(_url + 'info_email.htm', _url + 'menue_email.htm', txt[13][7]);
  218.         _link[4] = new Array(_url + 'info_passwort.htm', _url + 'menue_passwort.htm', txt[13][8]);
  219.  
  220.         for (g = 1; g <= 4; g++)
  221.         {
  222.             write('<a href="javascript:zweiseit(\'' + g + '\', \'' + _link[g][0] + '\', \'' + _link[g][1] + '\');" target="_self">');
  223.  
  224.             if (g == parent.header.document.dummy.menu.value)
  225.                 write('<font class="modus">' + _link[g][2] + '</font>');
  226.             else
  227.                 write(_link[g][2]);
  228.  
  229.             write('</a><br />');
  230.         }
  231.     }
  232. }
  233.  
  234. /**/
  235.  
  236. function modus()
  237. {
  238.     with (document)
  239.     {
  240.         _link    = new Array();
  241.         _link[0] = new Array(txt[16][12]);
  242.         _link[1] = new Array(txt[16][11]);
  243.  
  244.         for (h = 1; h > -1; h--)
  245.         {
  246.             write('<a href="javascript:mailkonfig(' + h + ');" target="_self">');
  247.  
  248.             if (h == parent.header.document.dummy.mail.value)
  249.                 write('<font class="modus">' + _link[h][0] + '</font>');
  250.             else
  251.                 write(_link[h][0]);
  252.  
  253.             write('</a><br />');
  254.         }
  255.     }
  256. }