close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Dreamweaver cs6 Template problems

Thread began 5/11/2018 7:21 am by john70964 | Last modified 5/14/2018 9:19 am by john70964 | 1101 views | 2 replies

john70964

Dreamweaver cs6 Template problems

I have a dreamweaver cs6 sample page A-Sample-Page.php on my localhost
Code is
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
<p>&nbsp;</p>
<p>sample page</p>
</body>
</html>

I have a template Test.dwt
Code is below:
So the A-Sample-Page.php page has <head> and a <Body> tags
When I select Modify/Templates
The inconsistant Region Names warning appears and there is no body tag in the Not Resolved list.

Can anyon see what I am doing wrong please?
Thank you

John

<?php require_once('../Connections/conn1.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

$maxRows_rsPrimeImage = 15;
$pageNum_rsPrimeImage = 0;
if (isset($_GET['pageNum_rsPrimeImage'])) {
$pageNum_rsPrimeImage = $_GET['pageNum_rsPrimeImage'];
}
$startRow_rsPrimeImage = $pageNum_rsPrimeImage * $maxRows_rsPrimeImage;

mysql_select_db($database_conn1, $conn1);
$query_rsPrimeImage = "SELECT * FROM boats WHERE frontpageshow = 1 AND my_class =1 ORDER BY RecNo DESC";
$query_limit_rsPrimeImage = sprintf("%s LIMIT %d, %d", $query_rsPrimeImage, $startRow_rsPrimeImage, $maxRows_rsPrimeImage);
$rsPrimeImage = mysql_query($query_limit_rsPrimeImage, $conn1) or die(mysql_error());
$row_rsPrimeImage = mysql_fetch_assoc($rsPrimeImage);

if (isset($_GET['totalRows_rsPrimeImage'])) {
$totalRows_rsPrimeImage = $_GET['totalRows_rsPrimeImage'];
} else {
$all_rsPrimeImage = mysql_query($query_rsPrimeImage, $conn1);
$totalRows_rsPrimeImage = mysql_num_rows($all_rsPrimeImage);
}
$totalPages_rsPrimeImage = ceil($totalRows_rsPrimeImage/$maxRows_rsPrimeImage)-1;$maxRows_rsPrimeImage = 15;
$pageNum_rsPrimeImage = 0;
if (isset($_GET['pageNum_rsPrimeImage'])) {
$pageNum_rsPrimeImage = $_GET['pageNum_rsPrimeImage'];
}
$startRow_rsPrimeImage = $pageNum_rsPrimeImage * $maxRows_rsPrimeImage;

mysql_select_db($database_conn1, $conn1);
$query_rsPrimeImage = "SELECT * FROM boats WHERE frontpageshow = 1 AND my_class =1 ORDER BY RecNo DESC";
$query_limit_rsPrimeImage = sprintf("%s LIMIT %d, %d", $query_rsPrimeImage, $startRow_rsPrimeImage, $maxRows_rsPrimeImage);
$rsPrimeImage = mysql_query($query_limit_rsPrimeImage, $conn1) or die(mysql_error());
$row_rsPrimeImage = mysql_fetch_assoc($rsPrimeImage);

if (isset($_GET['totalRows_rsPrimeImage'])) {
$totalRows_rsPrimeImage = $_GET['totalRows_rsPrimeImage'];
} else {
$all_rsPrimeImage = mysql_query($query_rsPrimeImage, $conn1);
$totalRows_rsPrimeImage = mysql_num_rows($all_rsPrimeImage);
}
$totalPages_rsPrimeImage = ceil($totalRows_rsPrimeImage/$maxRows_rsPrimeImage)-1;

mysql_select_db($database_conn1, $conn1);
$query_rsCats = "SELECT *, COUNT(RecNo) as categoryCount FROM boats GROUP BY Category1";
$rsCats = mysql_query($query_rsCats, $conn1) or die(mysql_error());
$row_rsCats = mysql_fetch_assoc($rsCats);
$totalRows_rsCats = mysql_num_rows($rsCats);
?>
<?php
// RepeatSelectionCounter_1357817887437 Initialization
$RepeatSelectionCounter_1357817887437 = 0;
$RepeatSelectionCounterBasedLooping_1357817887437 = false;
$RepeatSelectionCounter_1357817887437_Iterations = "3";
?>
<!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 id="p7DMM" name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Boats for sale | sell your boat | free advert</title>
<!-- TemplateEndEditable -->
<meta name="description" content="Boats for Sale including Powerboats, Superyachts, Cruisers, Ski, Jet, Sailing. Sell your boat with Free advertising. Display up to 10 images for a small fee."/>
<meta name="keywords" content="boats for sale,used boats for sale,sell a boat, boat parts,boatsforsale,boats,power boats,sailboats,dinghies,cruisers,work boats,fishing boats,marine craft,used powerboats,used sailboats,new craft,sell your boat,sell your boat free,fishing craft,motorboats,barges,superyachts,Sunseeker,Fairline,Princess,Hardy,Hatteras,Bayliner,Azimut,Fisher,Hunter,Searay,Bavaria,Westerly,Beneteau,Jeaneau,shetland,Sea Ray,Broom" />
<meta name="google-site-verification" content="-Gub8NEmgjAWSwIPsxrNU0X21iS2gq2TuxH0IeZMRCE" />
<link href="../styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../CSSMenuWriter/cssmw4/menu.js"></script>
<style type="text/css" media="all">
<!--
@import url("../CSSMenuWriter/cssmw4/menu.css");
-->
</style>
<!--[if lte IE 6]>
<style type="text/css" media="all">
@import url("CSSMenuWriter/cssmw4/menu_ie.css");
</style>

<![endif]-->
<style type="text/css">
.Inspiration {
padding-top: 10px;
padding-right: 7px;
padding-bottom: 10px;
padding-left: 7px;
background-image: -moz-linear-gradient(top, #a8c6b8, #157a93);
background-image: -o-linear-gradient(top, #a8c6b8, #157a93);
background-image: -webkit-linear-gradient(#a8c6b8, #157a93);
background-image: -webkit-gradient(linear,left top, left bottom, color-stop(0, #a8c6b8), color-stop(1, #157a93));
background-image: linear-gradient(top, #a8c6b8, #157a93);
filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#a8c6b8', EndColorStr='#157a93', GradientType=0);
-ms-filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#a8c6b8', EndColorStr='#157a93', GradientType=0);
border-style: solid;
color: #ffffff;
background-color: #157a93;
border-color: #b8c5ab;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
border-width: 1px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
-khtml-border-radius: 6px;
border-radius: 6px;
behavior: url(../webassist/button_styles/ie-css3.htc);
}

.Inspirationcustom {
padding-top: 10px;
padding-right: 7px;
padding-bottom: 10px;
padding-left: 7px;
background-image: -moz-linear-gradient(top, #a8c6b8, #157a93);
background-image: -o-linear-gradient(top, #a8c6b8, #157a93);
background-image: -webkit-linear-gradient(#a8c6b8, #157a93);
background-image: -webkit-gradient(linear,left top, left bottom, color-stop(0, #a8c6b8), color-stop(1, #157a93));
background-image: linear-gradient(top, #a8c6b8, #157a93);
filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#a8c6b8', EndColorStr='#157a93', GradientType=0);
-ms-filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#a8c6b8', EndColorStr='#157a93', GradientType=0);
border-style: solid;
color: #ffffff;
background-color: #157a93;
border-color: #b8c5ab;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
border-width: 1px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
-khtml-border-radius: 6px;
border-radius: 6px;
behavior: url(../webassist/button_styles/ie-css3.htc);
}
.Inspirationcustom:hover {
cursor: auto;
}

.Inspirationcustom2 {
padding-top: 10px;
padding-right: 7px;
padding-bottom: 10px;
padding-left: 7px;
background-image: -moz-linear-gradient(top, #a8c6b8, #157a93);
background-image: -o-linear-gradient(top, #a8c6b8, #157a93);
background-image: -webkit-linear-gradient(#a8c6b8, #157a93);
background-image: -webkit-gradient(linear,left top, left bottom, color-stop(0, #a8c6b8), color-stop(1, #157a93));
background-image: linear-gradient(top, #a8c6b8, #157a93);
filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#a8c6b8', EndColorStr='#157a93', GradientType=0);
-ms-filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#a8c6b8', EndColorStr='#157a93', GradientType=0);
border-style: solid;
color: #ffffff;
background-color: #157a93;
border-color: #b8c5ab;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
border-width: 1px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
-khtml-border-radius: 6px;
border-radius: 6px;
behavior: url(../webassist/button_styles/ie-css3.htc);
outline-style: none;
border: 2px solid #b8c5ab;
}
.Inspirationcustom2:hover {
border-color: #0000FF;
}

.BFSN {
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
background-image: -moz-linear-gradient(top, #006699, #000066);
background-image: -o-linear-gradient(top, #006699, #000066);
background-image: -webkit-linear-gradient(#006699, #000066);
background-image: -webkit-gradient(linear,left top, left bottom, color-stop(0, #006699), color-stop(1, #000066));
background-image: linear-gradient(top, #006699, #000066);
filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#006699', EndColorStr='#000066', GradientType=0);
-ms-filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#006699', EndColorStr='#000066', GradientType=0);
color: #FFFFFF;
padding: 5px;
border: 2px solid #FFFFFF;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
border-radius: 5px;
behavior: url(../webassist/button_styles/ie-css3.htc);
}
.BFSN:hover {
border-width: 2px;
padding: 4px;
}
.BFSN1 { font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
background-image: -moz-linear-gradient(top, #006699, #000066);
background-image: -o-linear-gradient(top, #006699, #000066);
background-image: -webkit-linear-gradient(#006699, #000066);
background-image: -webkit-gradient(linear,left top, left bottom, color-stop(0, #006699), color-stop(1, #000066));
background-image: linear-gradient(top, #006699, #000066);
filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#006699', EndColorStr='#000066', GradientType=0);
-ms-filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#006699', EndColorStr='#000066', GradientType=0);
color: #FFFFFF;
padding: 5px;
border: 2px solid #FFFFFF;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
border-radius: 5px;
behavior: url(../webassist/button_styles/ie-css3.htc);
}
</style>
<script type="text/javascript" src="../CSSMenuWriter/cssmw4/menu.js"></script>
<style type="text/css" media="all">
<!--
@import url("../CSSMenuWriter/cssmw4/menu.css");
.BFSN2 { font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
background-image: -moz-linear-gradient(top, #006699, #000066);
background-image: -o-linear-gradient(top, #006699, #000066);
background-image: -webkit-linear-gradient(#006699, #000066);
background-image: -webkit-gradient(linear,left top, left bottom, color-stop(0, #006699), color-stop(1, #000066));
background-image: linear-gradient(top, #006699, #000066);
filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#006699', EndColorStr='#000066', GradientType=0);
-ms-filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#006699', EndColorStr='#000066', GradientType=0);
color: #FFFFFF;
padding: 5px;
border: 2px solid #FFFFFF;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
border-radius: 5px;
behavior: url(../webassist/button_styles/ie-css3.htc);
}
-->
</style>
<meta name="google-site-verification" content="-Gub8NEmgjAWSwIPsxrNU0X21iS2gq2TuxH0IeZMRCE" />
<link href="../p7dmm/p7DMM01.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="../p7dmm/p7DMMscripts.js"></script>
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>

<body>
<p>
<script type="text/javascript" src="/ga.js"></script>
</p>
<div id="p7DMM_2" class="p7DMM01 p7DMM p7dmm-centered responsive dmm01-pop">
<div id="p7DMMtb_2" class="p7DMM-toolbar closed"><a href="#" title="Hide/Show Menu"><img src="../p7dmm/img/toggle-icon.png" alt="Toggle Menu" /></a></div>
<ul id="p7DMMu_2" class="p7DMM01-menu closed">
<li><a id="p7DMMt2_1" href="../index.php">Home</a></li>
<li>
<div id="p7DMMs2_3" class="p7dmm-sub-wrapper">
<ul>
<li><a href="../BoatResultsSearch.php">Detailed Search</a></li>
<li><a href="../Boat_Quick_Search.php">Quick Search</a></li>
</ul>
</div>
</li>
<li>
<div id="p7DMMs2_5" class="p7dmm-sub-wrapper">
<ul>
<li><a href="../boating_items.php">Boating Items</a></li>
</ul>
</div>
</li>
</ul>
<script type="text/javascript">P7_opDMM('p7DMM_2',3,450,0,1,1,1,0,0,1);</script>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
<?php
mysql_free_result($rsCats);

mysql_free_result($rsPrimeImage);
?>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...