Location: PHPKode > projects > WeBBind Web Gui to Bind > webbind_0.98/htmlcommon.php
<?

function HTMLHeader()
{
	print("<HEAD>\n");
	print("<META NAME=\"AUTHOR\" CONTENT=\"Danilo Paliani\">\n");
        print("<HEAD> <TITLE> WeBBind Main Page </TITLE> </HEAD>\n");
        print("<BODY TEXT=\"#000000\" BGCOLOR=\"#FFFFFF\" LINK=\"#0000EE\" VLINK=\"#551A8B\" ALINK=\"#FF0000\">\n");

        print("<TABLE BORDER=0>\n");
        print("<TR><TD ALIGN=top><IMG SRC=\"logo.gif\" ALT=\"Logo\"></TD>\n");
        print("<TD> &nbsp; &nbsp; &nbsp; &nbsp;</TD><TD><H2><FONT SIZE=+4>DNS ADMIN</FONT></H2></TD></TR>\n");
        print("</TABLE>\n");
        print("<BR><BR>\n");
}

function Banner($message,$user,$server)
{        
        print("<TABLE CELLPADDING=4 CELLSPACING=0 BORDER=0 WIDTH=600>\n");
        print("<TR BGCOLOR=\"#DCDCDC\"><TD><B>\n");
        print("$message</B><BR></TD>\n");
        print("<TD ALIGN=right>\n");
        print("</FONT></TD></TR>\n");
        print("<TR BGCOLOR=\"#DCDCDC\"><TD ALIGN=right>\n");
        if ($user) {
        	print("<font face=\"Verdana\" size=2 font color=\"#990000\"><B>Logon Name: &nbsp; [$user] &nbsp; DNS Server: [$server]</B><BR></TD>\n");
        	print("<TD ALIGN=right>\n");
        	print("</FONT></TD></TR>\n");
        	}
        print("</TABLE>\n");
        print("<BR>\n");
        print("<BR>\n");
}

function HTMLFooter()
{
        print("<FONT SIZE=2>");
        print("<A HREF=\"http://www.afn.org/~afn23397\"><b>WeBBind</b></A> -- Danilo Paliani ");
        print("(<A HREF=\"mailto:hide@address.com\">hide@address.com</A>).<BR>");
        print("</FONT>");
}

function Confirm()
{
	print("<SCRIPT LANGUAGE=\"JavaScript\">\n");
	print("<!---\n");
	print("function conferma() {\n");
	print("		if (confirm(\"Eliminare la zona selezionata dal Name Server ?\"))\n");
	print("			return true\n");
	print("		else\n");
	print("			return false\n");
	print("}\n");
	print("// end hiding from old browsers -->\n");
	print("</SCRIPT>\n");
}

function HelpWin()
{
//JavaScript
	print("<SCRIPT LANGUAGE=\"Javascript\"  TYPE=\"text/javascript\">\n");
	print("<!---\n");
	print("function help_window(freshurl)\n");
	print("{\n");
	print("SmallWin = window.open(freshurl, 'HelpWindow','scrollbars,noresizable,notoolbar,height=240,width=471');\n");
	print("if (window.focus){\n");
	print("			SmallWin.focus();\n");
	print("            	}\n");
	// print("if (SmallWin.opener == null) SmallWin.opener = window;\n");
	// print("SmallWin.opener.name = "PUMain";\n");
	print("}\n");
	print("// end hiding from old browsers -->\n");
	print("</SCRIPT>\n");	
}

function HelpLink($whatis)
{
print("<A HREF=\"Javascript:help_window('help.php#$whatis')\"> <img src=\"/icons/unknown.gif\" border=\"0\" alt=\"Help\"> </a>\n");
}

function ChkVal()
{
	print("<SCRIPT LANGUAGE=\"JavaScript\">\n");
	print("<!---\n");
	print("function chkval() {\n");
	// print("alert(form);");
	print("if ( (cnzone.extslavefqdn.value != \"\") && (cnzone.extslaveip.value == \"\") ) {\n");
	print("\talert(\"E' obbligatorio indicare FQDN e IP address del secondary Name Server .\");\n");
	print("\tevent.returnValue=false;\n");
	print("\t}\n");
	//print("return false;}\n");
	print("}\n");
	print("// end hiding from old browsers -->\n");
	print("</SCRIPT>\n");

}

function StatusBar($zflto)
{
	include("global.php");
/*
	print("<SCRIPT LANGUAGE=\"JavaScript\">\n");
        print("<!---\n");
        print("var yourwords = \"Session Timeout $zflto Secs\";\n");
        print("var speed = 150;\n");
        print("var control = 1;\n");
        print("function flash()\n");
        print("{\n");
        print("  if (control == 1)\n");
        print("    {\n");
        print("      window.status=yourwords;\n");
        print("      control=0;\n");
        print("    }\n");
        print("  else\n");
        print("    {\n");
        print("      window.status=\"\";\n");
        print("      control=1;\n");
        print("    }\n");
        print("  setTimeout(\"flash();\",speed);\n");
        print("}\n");
        print("// end hiding from old browsers -->\n");
        print("</SCRIPT>\n");
*/
	print("<META HTTP-EQUIV=\"Refresh\" CONTENT=\"$zflto;URL=$phpbindurl\">\n");
//	print("<BODY onload=\"flash();\">");
}

?>
Return current item: WeBBind Web Gui to Bind