dereksheahan
asked on
Problem with displaying all of template
Hi all,
I have a page that I'm applying a template to. The template has a news scroller in it and therefore has information in the header. When I apply the template to a page with no header information the template displays fine but when I need to specify where I want the header information for the child page to be displayed (i.e head, nowhere, etc) the information from the database inside is the scroller is not displayed at all. How can I solve this?
Thanks,
D
I have a page that I'm applying a template to. The template has a news scroller in it and therefore has information in the header. When I apply the template to a page with no header information the template displays fine but when I need to specify where I want the header information for the child page to be displayed (i.e head, nowhere, etc) the information from the database inside is the scroller is not displayed at all. How can I solve this?
Thanks,
D
ASKER
Hi Jason,
Hope you're well. Was on holidays there for a week :). The link for this page is http://www.corkgsm.com/Postal/postalmain.php so you can see what's going on. As you can see the scroller on the left side is blank on this page. Here's how I attached the template. I've tried putting the header section in all of the different positions on the template wizard page (i.e. in header, nowhere, etc) but none of them work properly.
So here's the child page with the template attached. I wonder is there an easier way for you to look at this. If you'd like me to put up the file for you so you can view it easier in DW I can do that.
Thanks so much,
D
<?php require_once('../Connectio ns/GSM_bac kup.php'); ?>
<?php
mysql_select_db($database_ GSM_mobile , $dbh);
$query_rsPostalfromDB = "SELECT type_type_id, type_type_name, type_category_id, image_src FROM type_table WHERE type_category_id = 3";
$rsPostalfromDB = mysql_query($query_rsPosta lfromDB, $dbh) or die(mysql_error());
$row_rsPostalfromDB = mysql_fetch_assoc($rsPosta lfromDB);
$totalRows_rsPostalfromDB = mysql_num_rows($rsPostalfr omDB);
?><!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"><!-- InstanceBegin template="/Templates/busin ess.dwt.ph p" codeOutsideHTMLIsLocked="f alse" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Free Vertical News Scroller - Multiple Message Scroller V3.0</title>
<!-- InstanceEndEditable -->
<!-- STEP I: Goes between <HEAD> & </HEAD> tags
You may keep it, change or ignore it!
Or linking to an External Style Sheet:
<LINK REL=StyleSheet HREF="yourstyle.css">
without other style tags -->
<style type="text/css">
A { text-decoration:none;}
A:link {color:blue;}
A:visited{color: blue;}
A:hover {color: red;background-color:#66ff ff;}
.tabb { font-weight:bold; font-size:14px; font-family:Arial,Helvetic a;}
.tan {FONT-SIZE: 12px; COLOR: navy; FONT-FAMILY: Arial,Helvetica; TEXT-ALIGN: center}
.tann {FONT-WEIGHT: bold;FONT-SIZE: 18px; COLOR: navy; FONT-FAMILY: Arial,Helvetica; TEXT-ALIGN: center}
#testimonial {
border: thin solid #FFFFFF;
}
#Layer8 {
position: relative;
}
</style>
<!-- STEP II: Goes between <HEAD> & </HEAD> tags
Or linking to an External js file:
<script language="javascript" src="yourfile.js"></script >
without other script tags -->
<SCRIPT LANGUAGE="JavaScript">
/************************* **********
* http://javascripts.vbarsan.com/
* This notice may not be removed
************************** *********/
//-- Begin Scroller's Parameters and messages -->
//scroller's width
var swidth=206;
//scroller's height
var sheight=20;
//scroller's speed
var sspeed=1;
var restart=sspeed;
var rspeed=sspeed;
//scroller's background
sbcolor="#ccffcc";
//messages: set your own; use as many as you'd like; set up Hyperlinks to
//URLs as you normally do: <a target=... href="... URL ...">..message..</a>;
var singletext=new Array();
singletext[0]='<?php echo $content; ?>';
//-- begin: Scroller's Algorithm -->
if (singletext.length>1)ii=1; else ii=0;
function goup(){if(sspeed!=rspeed*8 ){sspeed=s speed*2;re start=sspe ed;}}
function godown(){if(sspeed>rspeed) {sspeed=ss peed/2;res tart=sspee d;}}
function start(){if (document.all){iens6div.st yle.top=sh eight;iens 6div.inner HTML=singl etext[0];i escroll(ie ns6div);}e lse if (document.layers){document .ns4div.do cument.ns4 div1.top=s height;doc ument.ns4d iv.documen t.ns4div1. visibility ='show';do cument.ns4 div.docume nt.ns4div1 .document. write(sing letext[0]) ;document. ns4div.doc ument.ns4d iv1.docume nt.close() ;ns4scroll (document. ns4div.doc ument.ns4d iv1);}else if (document.getElementById){ document.g etElementB yId('iens6 div').styl e.top=shei ght;docume nt.getElem entById('i ens6div'). innerHTML= singletext [0];ns6scr oll(docume nt.getElem entById('i ens6div')) ;}}
function iescroll(whichdiv){iediv=e val(whichd iv);sizeup =iediv.off setHeight; if(iediv.s tyle.pixel Top>0&&ied iv.style.p ixelTop<=s speed){ied iv.style.p ixelTop=0; setTimeout ("iescroll (iediv)",1 00);}if(ie div.style. pixelTop>= sizeup*-1) {iediv.sty le.pixelTo p-=sspeed; setTimeout ("iescroll (iediv)",1 00);}else{ iediv.styl e.pixelTop =sheight;i ediv.inner HTML=singl etext[ii]; if(ii==sin gletext.le ngth-1)ii= 0;else ii++;}}
function ns4scroll(whichlayer){ns4l ayer=eval( whichlayer );sizeup=n s4layer.do cument.hei ght;if(ns4 layer.top> 0&&ns4laye r.top<=ssp eed){ns4la yer.top=0; setTimeout ("ns4scrol l(ns4layer )",100);}i f (ns4layer.top>=sizeup*-1){ ns4layer.t op-=sspeed ;setTimeou t("ns4scro ll(ns4laye r)",100);} else{ns4la yer.top=sh eight;ns4l ayer.docum ent.write( singletext [ii]);ns4l ayer.docum ent.close( );if(ii==s ingletext. length-1)i i=0;else ii++;}}
function ns6scroll(whichdiv){ns6div =eval(whic hdiv);size up=ns6div. offsetHeig ht;if(pars eInt(ns6di v.style.to p)>0&&pars eInt(ns6di v.style.to p)<=sspeed ){ns6div.s tyle.top=0 ;setTimeou t("ns6scro ll(ns6div) ",100);}if (parseInt(ns6div.style.top )>=sizeup* -1){ns6div .style.top =parseInt( ns6div.sty le.top)-ss peed;setTi meout("ns6 scroll(ns6 div)",100) ;}else{ns6 div.style. top=sheigh t;ns6div.i nnerHTML=s ingletext[ ii];if(ii= =singletex t.length-1 )ii=0;else ii++;}}
//-- end Algorithm -->
</script>
<!-- End of Script between <head> & </head> tags-->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>FireFox Template</title>
<style type="text/css">
<!--
#background {
position:absolute;
left:27px;
top:284px;
width:805px;
height:452px;
z-index:1;
background-color: #448bbf;
visibility: visible;
}
A { text-decoration:none;}
A:link {color:blue;}
A:visited{color: blue;}
A:hover {color: white; background-color:#448bbf;}
#Layer2 {
position:absolute;
left:34px;
top:282px;
width:222px;
height:407px;
z-index:2;
background-color: #448BBF;
}
#ads {
position:absolute;
left:712px;
top:284px;
width:113px;
height:450px;
z-index:3;
background-color: #448BBF;
border-top-style: ridge;
border-right-style: ridge;
border-bottom-style: none;
border-left-style: ridge;
border-top-color: #FFFFFF;
border-right-color: #FFFFFF;
border-bottom-color: #FFFFFF;
border-left-color: #FFFFFF;
visibility: visible;
}
#testimonial {
position:absolute;
left:26px;
top:283px;
width:218px;
height:231px;
z-index:8;
background-color: #448bbf;
visibility: visible;
}
#tell_a_friend {
position:absolute;
left:27px;
top:521px;
width:211px;
height:242px;
z-index:5;
background-color: #448bbf;
visibility: visible;
}
#flashholder {
position:absolute;
left:35px;
top:5px;
width:780px;
height:200px;
z-index:6;
background-color: #996699;
visibility: visible;
}
#mainselectholder {
position:absolute;
left:35px;
top:220px;
width:780px;
height:78px;
z-index:7;
visibility: visible;
}
#testimonial {
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
border-top-color: #000000;
border-right-color: #000000;
border-bottom-color: #000000;
border-left-color: #000000;
}
#bottom {
position:absolute;
left:25px;
top:736px;
width:800px;
height:40px;
z-index:8;
background-color: #b7d8e4;
visibility: visible;
}
#Layer1 {
position:absolute;
left:253px;
top:289px;
width:452px;
height:444px;
z-index:9;
background-color: #448BBF;
overflow: auto;
visibility: visible;
}
#Layer3 {
position:absolute;
left:84px;
top:494px;
width:125px;
height:16px;
z-index:10;
background-color: #448BBF;
visibility: visible;
}
#tell_a_friend {
padding: 3px;
border-top-style: none;
border-right-style: ridge;
border-bottom-style: ridge;
border-left-style: ridge;
border-top-color: #FFFFFF;
border-right-color: #FFFFFF;
border-bottom-color: #FFFFFF;
border-left-color: #FFFFFF;
}
#bottom {
border-top-style: ridge;
border-right-style: ridge;
border-bottom-style: ridge;
border-left-style: ridge;
}
#testimonial {
border: medium ridge #FFFFFF;
}
.style3 {font-family: Arial, Helvetica, sans-serif}
.style4 {font-family: Geneva, Arial, Helvetica, sans-serif}
.style5 {font-size: 14px}
.style8 {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #FFFFFF;
}
.style10 {font-family: Arial, Helvetica, sans-serif; font-weight: bold; }
-->
</style>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>
<BODY onLoad="start()">
<div id="background"></div>
<div id="ads">
<p class="style4"><img src="../Images/little.png" width="11" height="16" /> <strong>What's New:</strong> </p>
<p class="style8"><a href="../Remote/nokiaremot e.php">Nok ia Security Code Removal </a></p>
<p align="center" class="style4"><img src="../Images/little.png" alt="Our Advertisers" width="11" height="16" /> <span class="style10">Advertiser s: </span></p>
<p><img src="../Images/freedommobl ogo_resize d.png" width="109" height="71" /></p>
</div>
<div id="testimonial">
<table cellpadding="0" cellspacing="0">
<tbody><tr>
<th valign="top">
<div align="center" class="style3"><span class="style4"><img src="../Images/little.png" alt="Image" width="11" height="16" /></span> Testimonials:</div></th>
</tr>
<tr>
<td>
<table class="moduletable" align="justify" height="185" width="214">
<tbody><tr>
<td width="208" height="179">
<marquee loop="infinite" behavior="scroll" direction="up" height="180px" width="205" scrollamount="1" scrolldelay="65" truespeed="" onmouseover="this.stop()" onmouseout="this.start()"> <?php echo $content; ?> <br> </marquee>
</td>
</tr>
</tbody></table> </td>
</tr>
</tbody></table>
</div>
<div id="tell_a_friend">
<?php
/* Recommend this website to a friend
Script Version 0.2, copyright RRWH.com 2005.
This script is distributed under the licence conditions on the website http://rrwh.com/scripts.php
You only need to modify 3 variables - the $my_email, $safe_domains and $message
To use this script, simply set the 3 variables, upload it to your website and on the page you wish it to appear
add the following php code
<?php include("contact2.php"); ?>
This script creates the form, and outputs a message on sucess.
*/
// your email address - so you get copies - in case of abuse.
$my_email = 'info@reachateacher.ie';
// set the safe domains to your own domain names
$safe_domains = array('www.reachateacher.ie',);
// check if we are being submitted, and if we are, process it and output a message
if ((isset($_POST['email_frie nd'])) && ($_POST['email_friend'] == 'Recommend') ) {
addslashes(extract($_POST) );
// this is the message you send when the form is completed.
// DO NOT remove any words enclosed in "< >" as they get substituted for form values
$message = '
Hello <tellfriend>
Your friend <tellname>, <tellemail> visited our website at
http://corkgsm.com and wanted to share it with you the great services we have to offer.
Please check out our site to see the great range of services we have to offer!
';
// No need to modify ANYTHING below.
// Check REFERER to minimise Abuse
$i = count($safe_domains) - 1;
while ($i >= 0) {
if (strpos($_SERVER['HTTP_REF ERER'], "http://$safe_domains[$i]") === 0) {
$safe = "yes";
}
$i--;
}
// make sure form fields have been filled in, name is optional
if ( ($safe == "yes") && (($tellemail != '' ) || ($tellfriend != '' ))) {
$regexp = "^([_a-z0-9-]+)(\.[_a-z0-9 -]+)*@([a- z0-9-]+)(\ .[a-z0-9-] +)*(\.[a-z ]{2,4})$";
$sendervalid = 'Nope';
$rxvalid = 'Nope';
if (eregi($regexp, $tellemail)){
$sendervalid = 'Yes';
}
if (eregi($regexp, $tellfriend)){
$rxvalid = 'Yes';
}
if (($sendervalid == 'Yes') && ($rxvalid == 'Yes')) {
// valid to and from address
$good = 'yes';
}
}
if ($good =='yes') {
// form data validated.
$subject = 'Recommended Website';
$headers = "From: <$tellemail>\r\n";
$fmtMail = str_replace("<tellfriend>" , $tellfriend, $message);
$fmtMail = str_replace("<tellname>", $tellname, $fmtMail);
$fmtMail = str_replace("<tellemail>", $tellemail, $fmtMail);
$frommail = $_SERVER["REMOTE_ADDR"];
$fmtMail2 = "$fmtMail \n\n Remote IP is $frommail \n\n\n";
//echo "$tell_friend - $subject \n";
// send message
mail($tellfriend, $subject, $fmtMail, $headers, "-f$tellemail");
// send message to admin address
mail($my_email, $subject, $fmtMail2, $headers, "-f$tellemail");
}
}
?>
<form action="#" method="post" name="tellfriend">
<div align="center">
<legend><span class="style3"><span class="style4"><img src="../Images/little.png" alt="Tell a Friend" width="11" height="16" /></span> <strong>Tell a friend:</strong></span></l egend>
<p><span class="style5">Your name:</span><br>
<input type="text" size="14" name="tellname">
<br>
<span class="style5">Your e-mail:</span><br>
<input type="text" size="14" name="tellemail">
<br>
<span class="style5">Friend's e-mail:</span><br>
<input type="text" size="14" name="tellfriend">
</p>
</div>
<p align="center">
<input type="submit" name="email_friend" value="Recommend" />
</p>
</form></div>
<div id="flashholder">
<object classid="clsid:D27CDB6E-AE 6D-11cf-96 B8-4445535 40000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="780" height="200">
<param name="movie" value="../Images/GSMActual .swf" />
<param name="quality" value="high" />
<embed src="../Images/GSMActual.s wf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockw ave-flash" width="780" height="200"></embed>
</object>
</div>
<div id="mainselectholder">
<div align="center"></div>
<!-- InstanceBeginEditable name="Heading" -->
<table width="400" border="0" align="center" bgcolor="#FFFFFF">
<tr>
<td><a href="../Remote/remotemain live.php"> <img src="../green.gif" border="0" width="186" height="42" alt="s" /></a></td>
<td><img src="../Images/orange.png" alt="Server Unlock" width="172" height="42" /></td>
<td><a href="postalmain.php"><img src="../Images/blue.gif" border="0" width="181" height="42" alt="g" /></a></td>
</tr>
</table><!-- InstanceEndEditable -->
</div>
<div id="bottom">
<div align="center">
<p style="padding-top:20; padding-left:30; color:ffffff; font-family:tagoma; font-size:10px">2006 (c) Copyright Cork GSM. All rights reserved. Brought to you by Freedom Mobile </p>
</div>
</div>
<div id="Layer1"><!-- InstanceBeginEditable name="Main Section" -->
<form id="form1" name="form1" method="post" action="">
Please Select Your Phone Brand:
<table border="1" >
<tr>
<?php
$rsPostalfromDB_endRow = 0;
$rsPostalfromDB_columns = 3; // number of columns
$rsPostalfromDB_hloopRow1 = 0; // first row flag
do {
if($rsPostalfromDB_endRow == 0 && $rsPostalfromDB_hloopRow1+ + != 0) echo "<tr>";
?>
<td><a href="jasontester.php?Type _variable= <?php echo $row_rsPostalfromDB['type_ type_id']; ?>"><img src="http://localhost/GSM/Images/<?php echo $row_rsPostalfromDB['image _src']; ?>" alt="<?php echo $row_rsPostalfromDB['type_ type_name' ]; ?>" border="0" /></a></td>
<?php $rsPostalfromDB_endRow++;
if($rsPostalfromDB_endRow >= $rsPostalfromDB_columns) {
?>
</tr>
<?php
$rsPostalfromDB_endRow = 0;
}
} while ($row_rsPostalfromDB = mysql_fetch_assoc($rsPosta lfromDB));
if($rsPostalfromDB_endRow != 0) {
while ($rsPostalfromDB_endRow < $rsPostalfromDB_columns) {
echo("<td> </td>");
$rsPostalfromDB_endRow++;
}
echo("</tr>");
}?>
</table>
<p> </p>
<p> </p>
</form>
<!-- InstanceEndEditable --></div>
<div id="Layer3"><a href="../feedback.php">Add your comment: </a></div>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</body>
<!-- InstanceEnd --></html>
<?php
mysql_free_result($rsPosta lfromDB);
?>
Hope you're well. Was on holidays there for a week :). The link for this page is http://www.corkgsm.com/Postal/postalmain.php so you can see what's going on. As you can see the scroller on the left side is blank on this page. Here's how I attached the template. I've tried putting the header section in all of the different positions on the template wizard page (i.e. in header, nowhere, etc) but none of them work properly.
So here's the child page with the template attached. I wonder is there an easier way for you to look at this. If you'd like me to put up the file for you so you can view it easier in DW I can do that.
Thanks so much,
D
<?php require_once('../Connectio
<?php
mysql_select_db($database_
$query_rsPostalfromDB = "SELECT type_type_id, type_type_name, type_category_id, image_src FROM type_table WHERE type_category_id = 3";
$rsPostalfromDB = mysql_query($query_rsPosta
$row_rsPostalfromDB = mysql_fetch_assoc($rsPosta
$totalRows_rsPostalfromDB = mysql_num_rows($rsPostalfr
?><!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"><!-- InstanceBegin template="/Templates/busin
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Free Vertical News Scroller - Multiple Message Scroller V3.0</title>
<!-- InstanceEndEditable -->
<!-- STEP I: Goes between <HEAD> & </HEAD> tags
You may keep it, change or ignore it!
Or linking to an External Style Sheet:
<LINK REL=StyleSheet HREF="yourstyle.css">
without other style tags -->
<style type="text/css">
A { text-decoration:none;}
A:link {color:blue;}
A:visited{color: blue;}
A:hover {color: red;background-color:#66ff
.tabb { font-weight:bold; font-size:14px; font-family:Arial,Helvetic
.tan {FONT-SIZE: 12px; COLOR: navy; FONT-FAMILY: Arial,Helvetica; TEXT-ALIGN: center}
.tann {FONT-WEIGHT: bold;FONT-SIZE: 18px; COLOR: navy; FONT-FAMILY: Arial,Helvetica; TEXT-ALIGN: center}
#testimonial {
border: thin solid #FFFFFF;
}
#Layer8 {
position: relative;
}
</style>
<!-- STEP II: Goes between <HEAD> & </HEAD> tags
Or linking to an External js file:
<script language="javascript" src="yourfile.js"></script
without other script tags -->
<SCRIPT LANGUAGE="JavaScript">
/*************************
* http://javascripts.vbarsan.com/
* This notice may not be removed
**************************
//-- Begin Scroller's Parameters and messages -->
//scroller's width
var swidth=206;
//scroller's height
var sheight=20;
//scroller's speed
var sspeed=1;
var restart=sspeed;
var rspeed=sspeed;
//scroller's background
sbcolor="#ccffcc";
//messages: set your own; use as many as you'd like; set up Hyperlinks to
//URLs as you normally do: <a target=... href="... URL ...">..message..</a>;
var singletext=new Array();
singletext[0]='<?php echo $content; ?>';
//-- begin: Scroller's Algorithm -->
if (singletext.length>1)ii=1;
function goup(){if(sspeed!=rspeed*8
function godown(){if(sspeed>rspeed)
function start(){if (document.all){iens6div.st
function iescroll(whichdiv){iediv=e
function ns4scroll(whichlayer){ns4l
function ns6scroll(whichdiv){ns6div
//-- end Algorithm -->
</script>
<!-- End of Script between <head> & </head> tags-->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>FireFox Template</title>
<style type="text/css">
<!--
#background {
position:absolute;
left:27px;
top:284px;
width:805px;
height:452px;
z-index:1;
background-color: #448bbf;
visibility: visible;
}
A { text-decoration:none;}
A:link {color:blue;}
A:visited{color: blue;}
A:hover {color: white; background-color:#448bbf;}
#Layer2 {
position:absolute;
left:34px;
top:282px;
width:222px;
height:407px;
z-index:2;
background-color: #448BBF;
}
#ads {
position:absolute;
left:712px;
top:284px;
width:113px;
height:450px;
z-index:3;
background-color: #448BBF;
border-top-style: ridge;
border-right-style: ridge;
border-bottom-style: none;
border-left-style: ridge;
border-top-color: #FFFFFF;
border-right-color: #FFFFFF;
border-bottom-color: #FFFFFF;
border-left-color: #FFFFFF;
visibility: visible;
}
#testimonial {
position:absolute;
left:26px;
top:283px;
width:218px;
height:231px;
z-index:8;
background-color: #448bbf;
visibility: visible;
}
#tell_a_friend {
position:absolute;
left:27px;
top:521px;
width:211px;
height:242px;
z-index:5;
background-color: #448bbf;
visibility: visible;
}
#flashholder {
position:absolute;
left:35px;
top:5px;
width:780px;
height:200px;
z-index:6;
background-color: #996699;
visibility: visible;
}
#mainselectholder {
position:absolute;
left:35px;
top:220px;
width:780px;
height:78px;
z-index:7;
visibility: visible;
}
#testimonial {
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
border-top-color: #000000;
border-right-color: #000000;
border-bottom-color: #000000;
border-left-color: #000000;
}
#bottom {
position:absolute;
left:25px;
top:736px;
width:800px;
height:40px;
z-index:8;
background-color: #b7d8e4;
visibility: visible;
}
#Layer1 {
position:absolute;
left:253px;
top:289px;
width:452px;
height:444px;
z-index:9;
background-color: #448BBF;
overflow: auto;
visibility: visible;
}
#Layer3 {
position:absolute;
left:84px;
top:494px;
width:125px;
height:16px;
z-index:10;
background-color: #448BBF;
visibility: visible;
}
#tell_a_friend {
padding: 3px;
border-top-style: none;
border-right-style: ridge;
border-bottom-style: ridge;
border-left-style: ridge;
border-top-color: #FFFFFF;
border-right-color: #FFFFFF;
border-bottom-color: #FFFFFF;
border-left-color: #FFFFFF;
}
#bottom {
border-top-style: ridge;
border-right-style: ridge;
border-bottom-style: ridge;
border-left-style: ridge;
}
#testimonial {
border: medium ridge #FFFFFF;
}
.style3 {font-family: Arial, Helvetica, sans-serif}
.style4 {font-family: Geneva, Arial, Helvetica, sans-serif}
.style5 {font-size: 14px}
.style8 {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #FFFFFF;
}
.style10 {font-family: Arial, Helvetica, sans-serif; font-weight: bold; }
-->
</style>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>
<BODY onLoad="start()">
<div id="background"></div>
<div id="ads">
<p class="style4"><img src="../Images/little.png"
<p class="style8"><a href="../Remote/nokiaremot
<p align="center" class="style4"><img src="../Images/little.png"
<p><img src="../Images/freedommobl
</div>
<div id="testimonial">
<table cellpadding="0" cellspacing="0">
<tbody><tr>
<th valign="top">
<div align="center" class="style3"><span class="style4"><img src="../Images/little.png"
</tr>
<tr>
<td>
<table class="moduletable" align="justify" height="185" width="214">
<tbody><tr>
<td width="208" height="179">
<marquee loop="infinite" behavior="scroll" direction="up" height="180px" width="205" scrollamount="1" scrolldelay="65" truespeed="" onmouseover="this.stop()" onmouseout="this.start()">
</td>
</tr>
</tbody></table> </td>
</tr>
</tbody></table>
</div>
<div id="tell_a_friend">
<?php
/* Recommend this website to a friend
Script Version 0.2, copyright RRWH.com 2005.
This script is distributed under the licence conditions on the website http://rrwh.com/scripts.php
You only need to modify 3 variables - the $my_email, $safe_domains and $message
To use this script, simply set the 3 variables, upload it to your website and on the page you wish it to appear
add the following php code
<?php include("contact2.php"); ?>
This script creates the form, and outputs a message on sucess.
*/
// your email address - so you get copies - in case of abuse.
$my_email = 'info@reachateacher.ie';
// set the safe domains to your own domain names
$safe_domains = array('www.reachateacher.ie',);
// check if we are being submitted, and if we are, process it and output a message
if ((isset($_POST['email_frie
addslashes(extract($_POST)
// this is the message you send when the form is completed.
// DO NOT remove any words enclosed in "< >" as they get substituted for form values
$message = '
Hello <tellfriend>
Your friend <tellname>, <tellemail> visited our website at
http://corkgsm.com and wanted to share it with you the great services we have to offer.
Please check out our site to see the great range of services we have to offer!
';
// No need to modify ANYTHING below.
// Check REFERER to minimise Abuse
$i = count($safe_domains) - 1;
while ($i >= 0) {
if (strpos($_SERVER['HTTP_REF
$safe = "yes";
}
$i--;
}
// make sure form fields have been filled in, name is optional
if ( ($safe == "yes") && (($tellemail != '' ) || ($tellfriend != '' ))) {
$regexp = "^([_a-z0-9-]+)(\.[_a-z0-9
$sendervalid = 'Nope';
$rxvalid = 'Nope';
if (eregi($regexp, $tellemail)){
$sendervalid = 'Yes';
}
if (eregi($regexp, $tellfriend)){
$rxvalid = 'Yes';
}
if (($sendervalid == 'Yes') && ($rxvalid == 'Yes')) {
// valid to and from address
$good = 'yes';
}
}
if ($good =='yes') {
// form data validated.
$subject = 'Recommended Website';
$headers = "From: <$tellemail>\r\n";
$fmtMail = str_replace("<tellfriend>"
$fmtMail = str_replace("<tellname>", $tellname, $fmtMail);
$fmtMail = str_replace("<tellemail>",
$frommail = $_SERVER["REMOTE_ADDR"];
$fmtMail2 = "$fmtMail \n\n Remote IP is $frommail \n\n\n";
//echo "$tell_friend - $subject \n";
// send message
mail($tellfriend, $subject, $fmtMail, $headers, "-f$tellemail");
// send message to admin address
mail($my_email, $subject, $fmtMail2, $headers, "-f$tellemail");
}
}
?>
<form action="#" method="post" name="tellfriend">
<div align="center">
<legend><span class="style3"><span class="style4"><img src="../Images/little.png"
<p><span class="style5">Your name:</span><br>
<input type="text" size="14" name="tellname">
<br>
<span class="style5">Your e-mail:</span><br>
<input type="text" size="14" name="tellemail">
<br>
<span class="style5">Friend's e-mail:</span><br>
<input type="text" size="14" name="tellfriend">
</p>
</div>
<p align="center">
<input type="submit" name="email_friend" value="Recommend" />
</p>
</form></div>
<div id="flashholder">
<object classid="clsid:D27CDB6E-AE
<param name="movie" value="../Images/GSMActual
<param name="quality" value="high" />
<embed src="../Images/GSMActual.s
</object>
</div>
<div id="mainselectholder">
<div align="center"></div>
<!-- InstanceBeginEditable name="Heading" -->
<table width="400" border="0" align="center" bgcolor="#FFFFFF">
<tr>
<td><a href="../Remote/remotemain
<td><img src="../Images/orange.png"
<td><a href="postalmain.php"><img
</tr>
</table><!-- InstanceEndEditable -->
</div>
<div id="bottom">
<div align="center">
<p style="padding-top:20; padding-left:30; color:ffffff; font-family:tagoma; font-size:10px">2006 (c) Copyright Cork GSM. All rights reserved. Brought to you by Freedom Mobile </p>
</div>
</div>
<div id="Layer1"><!-- InstanceBeginEditable name="Main Section" -->
<form id="form1" name="form1" method="post" action="">
Please Select Your Phone Brand:
<table border="1" >
<tr>
<?php
$rsPostalfromDB_endRow = 0;
$rsPostalfromDB_columns = 3; // number of columns
$rsPostalfromDB_hloopRow1 = 0; // first row flag
do {
if($rsPostalfromDB_endRow == 0 && $rsPostalfromDB_hloopRow1+
?>
<td><a href="jasontester.php?Type
<?php $rsPostalfromDB_endRow++;
if($rsPostalfromDB_endRow >= $rsPostalfromDB_columns) {
?>
</tr>
<?php
$rsPostalfromDB_endRow = 0;
}
} while ($row_rsPostalfromDB = mysql_fetch_assoc($rsPosta
if($rsPostalfromDB_endRow != 0) {
while ($rsPostalfromDB_endRow < $rsPostalfromDB_columns) {
echo("<td> </td>");
$rsPostalfromDB_endRow++;
}
echo("</tr>");
}?>
</table>
<p> </p>
<p> </p>
</form>
<!-- InstanceEndEditable --></div>
<div id="Layer3"><a href="../feedback.php">Add
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</body>
<!-- InstanceEnd --></html>
<?php
mysql_free_result($rsPosta
?>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Jason,
I guess I'll close this question and put a new one up as this one is answered.
Cheers,
D
I guess I'll close this question and put a new one up as this one is answered.
Cheers,
D
If you apply a template to a blank page, the whole template code executes and the dependent code for the scroller should be unaffected. If you mess with the header on the child page, it may comment out that dependent code and screw the scroller. I'm not sure why this is a variable for you...why are modifying the headers on a case by case basis?
One possible solution is to implement multiple templates that cover all the different options.