"Fossies" - the Fresh Open Source Software Archive

Member "webbind_0.98/htmlcommon.php" (5 Jan 2002, 4159 Bytes) of package /linux/misc/dns/old/WeBBind_0.98.tar:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 <?
    2 
    3 function HTMLHeader()
    4 {
    5     print("<HEAD>\n");
    6     print("<META NAME=\"AUTHOR\" CONTENT=\"Danilo Paliani\">\n");
    7         print("<HEAD> <TITLE> WeBBind Main Page </TITLE> </HEAD>\n");
    8         print("<BODY TEXT=\"#000000\" BGCOLOR=\"#FFFFFF\" LINK=\"#0000EE\" VLINK=\"#551A8B\" ALINK=\"#FF0000\">\n");
    9 
   10         print("<TABLE BORDER=0>\n");
   11         print("<TR><TD ALIGN=top><IMG SRC=\"logo.gif\" ALT=\"Logo\"></TD>\n");
   12         print("<TD> &nbsp; &nbsp; &nbsp; &nbsp;</TD><TD><H2><FONT SIZE=+4>DNS ADMIN</FONT></H2></TD></TR>\n");
   13         print("</TABLE>\n");
   14         print("<BR><BR>\n");
   15 }
   16 
   17 function Banner($message,$user,$server)
   18 {        
   19         print("<TABLE CELLPADDING=4 CELLSPACING=0 BORDER=0 WIDTH=600>\n");
   20         print("<TR BGCOLOR=\"#DCDCDC\"><TD><B>\n");
   21         print("$message</B><BR></TD>\n");
   22         print("<TD ALIGN=right>\n");
   23         print("</FONT></TD></TR>\n");
   24         print("<TR BGCOLOR=\"#DCDCDC\"><TD ALIGN=right>\n");
   25         if ($user) {
   26             print("<font face=\"Verdana\" size=2 font color=\"#990000\"><B>Logon Name: &nbsp; [$user] &nbsp; DNS Server: [$server]</B><BR></TD>\n");
   27             print("<TD ALIGN=right>\n");
   28             print("</FONT></TD></TR>\n");
   29             }
   30         print("</TABLE>\n");
   31         print("<BR>\n");
   32         print("<BR>\n");
   33 }
   34 
   35 function HTMLFooter()
   36 {
   37         print("<FONT SIZE=2>");
   38         print("<A HREF=\"http://www.afn.org/~afn23397\"><b>WeBBind</b></A> -- Danilo Paliani ");
   39         print("(<A HREF=\"mailto:afn23397@afn.org\">afn23397@afn.org</A>).<BR>");
   40         print("</FONT>");
   41 }
   42 
   43 function Confirm()
   44 {
   45     print("<SCRIPT LANGUAGE=\"JavaScript\">\n");
   46     print("<!---\n");
   47     print("function conferma() {\n");
   48     print("     if (confirm(\"Eliminare la zona selezionata dal Name Server ?\"))\n");
   49     print("         return true\n");
   50     print("     else\n");
   51     print("         return false\n");
   52     print("}\n");
   53     print("// end hiding from old browsers -->\n");
   54     print("</SCRIPT>\n");
   55 }
   56 
   57 function HelpWin()
   58 {
   59 //JavaScript
   60     print("<SCRIPT LANGUAGE=\"Javascript\"  TYPE=\"text/javascript\">\n");
   61     print("<!---\n");
   62     print("function help_window(freshurl)\n");
   63     print("{\n");
   64     print("SmallWin = window.open(freshurl, 'HelpWindow','scrollbars,noresizable,notoolbar,height=240,width=471');\n");
   65     print("if (window.focus){\n");
   66     print("         SmallWin.focus();\n");
   67     print("             }\n");
   68     // print("if (SmallWin.opener == null) SmallWin.opener = window;\n");
   69     // print("SmallWin.opener.name = "PUMain";\n");
   70     print("}\n");
   71     print("// end hiding from old browsers -->\n");
   72     print("</SCRIPT>\n");   
   73 }
   74 
   75 function HelpLink($whatis)
   76 {
   77 print("<A HREF=\"Javascript:help_window('help.php#$whatis')\"> <img src=\"/icons/unknown.gif\" border=\"0\" alt=\"Help\"> </a>\n");
   78 }
   79 
   80 function ChkVal()
   81 {
   82     print("<SCRIPT LANGUAGE=\"JavaScript\">\n");
   83     print("<!---\n");
   84     print("function chkval() {\n");
   85     // print("alert(form);");
   86     print("if ( (cnzone.extslavefqdn.value != \"\") && (cnzone.extslaveip.value == \"\") ) {\n");
   87     print("\talert(\"E' obbligatorio indicare FQDN e IP address del secondary Name Server .\");\n");
   88     print("\tevent.returnValue=false;\n");
   89     print("\t}\n");
   90     //print("return false;}\n");
   91     print("}\n");
   92     print("// end hiding from old browsers -->\n");
   93     print("</SCRIPT>\n");
   94 
   95 }
   96 
   97 function StatusBar($zflto)
   98 {
   99     include("global.php");
  100 /*
  101     print("<SCRIPT LANGUAGE=\"JavaScript\">\n");
  102         print("<!---\n");
  103         print("var yourwords = \"Session Timeout $zflto Secs\";\n");
  104         print("var speed = 150;\n");
  105         print("var control = 1;\n");
  106         print("function flash()\n");
  107         print("{\n");
  108         print("  if (control == 1)\n");
  109         print("    {\n");
  110         print("      window.status=yourwords;\n");
  111         print("      control=0;\n");
  112         print("    }\n");
  113         print("  else\n");
  114         print("    {\n");
  115         print("      window.status=\"\";\n");
  116         print("      control=1;\n");
  117         print("    }\n");
  118         print("  setTimeout(\"flash();\",speed);\n");
  119         print("}\n");
  120         print("// end hiding from old browsers -->\n");
  121         print("</SCRIPT>\n");
  122 */
  123     print("<META HTTP-EQUIV=\"Refresh\" CONTENT=\"$zflto;URL=$phpbindurl\">\n");
  124 //  print("<BODY onload=\"flash();\">");
  125 }
  126 
  127 ?>