.asp template to .php template
Posted: Tue Jun 01, 2010 1:29 pm
Hello,
I am a complete noob at this website programing thing. But after my boss decided to switch web hosts it became apparent that the new host did not support .asp. Needless to say fixing the problem was put on me. I have managed to convert almost all of the files over, but I am having much difficulty getting the template files (I am using dreamweaver) to work. Could someone please help me out. This is the code for one of the templates in .asp:
I am a complete noob at this website programing thing. But after my boss decided to switch web hosts it became apparent that the new host did not support .asp. Needless to say fixing the problem was put on me. I have managed to convert almost all of the files over, but I am having much difficulty getting the template files (I am using dreamweaver) to work. Could someone please help me out. This is the code for one of the templates in .asp:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Estill Energy Inc.</title>
<!-- TemplateEndEditable -->
<meta name="keywords" content="Estill Energy Inc., renewable, products, " />
<meta name="description" content="Estill Energy Inc. provides renewable energy products ...." />
<script language="JavaScript">
var gAutoPrint = true; // Tells whether to automatically call the print function
function printSpecial()
{
if (document.getElementById != null)
{
var html = '<HTML>\n<HEAD>\n';
if (document.getElementsByTagName != null)
{
var headTags = document.getElementsByTagName("head");
if (headTags.length > 0)
html += headTags[0].innerHTML;
}
html += '\n</HE>\n<BODY>\n';
var printReadyElem = document.getElementById("printReady");
if (printReadyElem != null)
{
html += printReadyElem.innerHTML;
}
else
{
alert("Could not find the printReady function");
return;
}
html += '\n</BO>\n</HT>';
var printWin = window.open("","printSpecial");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
if (gAutoPrint)
printWin.print();
}
else
{
alert("The print ready feature is only available if you are using an browser. Please update your browswer.");
}
}
</script>
<script language="JavaScript">
var timeout = 500;
var closetimer = 0;
var ddmenuitem = 0;
// open hidden layer
function mopen(id)
{
// cancel close timer
mcancelclosetime();
// close old layer
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
// get new layer and show it
ddmenuitem = document.getElementById(id);
ddmenuitem.style.visibility = 'visible';
}
// close showed layer
function mclose()
{
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}
// go close timer
function mclosetime()
{
closetimer = window.setTimeout(mclose, timeout);
}
// cancel close timer
function mcancelclosetime()
{
if(closetimer)
{
window.clearTimeout(closetimer);
closetimer = null;
}
}
// close layer when click-out
document.onclick = mclose;
</script>
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<link href="../Stylesheet/Estill-Stylesheet.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#666666"><table width="998" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td width="10" background="../Includes/Images/left-bkgr-image.jpg"> </td>
<td bgcolor="#FFFFFF"><table width="974" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="20"><!--#include file="../Includes/Banner-Index.asp" --></td>
</tr>
<tr>
<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div id="printReady">
<table width="974" border="0" cellspacing="0" cellpadding="15">
<tr>
<td align="left" valign="top">
<!-- TemplateBeginEditable name="Main Page Editable Region" --> Home Page Editable Region<!-- TemplateEndEditable --></td>
</tr>
</table>
</div></td>
</tr>
</table>
<p> </p>
<p> </p> <p> </p></td>
</tr>
</table>
<div align="center"></div></td>
<td width="10" background="../Includes/Images/right-bkgr-image.jpg"> </td>
</tr>
</table>
<!--#include file="../Includes/Footer.asp" -->
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table>
<p>
</p>
</body>
</html>