Solved

Template Problem with End Editable Region

Posted on 2006-07-04
13
646 Views
Last Modified: 2012-06-27
Hi all,
This is probably a silly question but when I try to update a child page with a template it gives me this error.
There is an error at line 556, column 21 (absolute position o 20151. InstanceBeginEditable tag at line 484 not closed when InstanceEnd was reached. Here is the source of the page: http://www.corkgsm.com/Remote/remote2.phps
Any ideas?
Thanks,
D
0
Comment
Question by:dereksheahan
  • 7
  • 6
13 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
Try moving the template code starting at 484 and ending at 586 to the outside of the div tag:

<!-- InstanceBeginEditable name="Main Section" --><div>

instead of the other way around.  Make sure you do the same with the closing instance.

When you open the template this is based on and run Modify | Templates | Check Template Syntax, what does DW say?
0
 

Author Comment

by:dereksheahan
Comment Utility
Hi Jason,
I'm not sure why its giving me this error and its causing me a lot of hassle with other objects on the page.
Firstly, all of the other template pages have the script with the div tag first and they work fine. When I check the template syntax it comes up  with no errors.
I've tried creating a new child page and creating it again but it generates the same error. :(
When I try to change the order on this page like you suggest above it doesn't let me edit this part of the page (i.e. <div id="Layer1"><!-- InstanceBeginEditable name="Main Section" -->
  <form action="remote3.php" method="POST" name="remote_user" id="remote_user" tmt:validate="true">) All of this part of the script comes up in black and is non-editable.
Any other suggestions?
Thanks,
D
0
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
Sometimes the template code goes wacky when it inside of container objects.

It's hard to troubleshoot the actual page: too much code to wade through.  The area that I'm focusing on is this at the very bottom:

<!-- InstanceEndEditable --></div>
<div id="addcom"><a href="../feedback.php">Add your comment: </a></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
<!-- InstanceEnd --></html>

That <!-- InstanceEnd --> is not closing the template properly.  Additionally, this part looks weird in code view:

<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --><!-- InstanceParam name="onload" type="text" value="start()" -->

That InstanceParam tag should be greyed out, but isn't.  Is that Param necessary?  If not, remove it.

The template is screwed up or there is some code you've added to the page that is causing the template to think an Instance is closing before it actually is.  I'm not sure how to proceed from here, other than removing some unnecessary editable regions one at a time until the problem is fixed.  You can also try removing HTML comments that don't need to be there and see if that fixes it.  

You can try detaching this one page from the template and see if that fixes everything.  If so, then post the .dwt code and we'll debug there.
0
 

Author Comment

by:dereksheahan
Comment Utility
Hi Jason,
>>>That InstanceParam tag should be greyed out, but isn't.  Is that Param necessary?  If not, remove it.

Yes, it is necessary as I need to define the body onload for the page. I found something strange at the end of the page that might be causing the problem. "<input type="hidden" name="item" value="    This tag was never closed. Now when I fix it and save it I then go to the templates - update current page and it reverts back to the above given the error mentioned to in the above post. Is there is anything else I can try to fix this?
Also, when I try to detach from template it still has the area at the bottom (the part that is causing the problem) greyed out so I can't edit the problem area at all! Help! :)
Not sure what to try from here.
Thanks,
D
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 450 total points
Comment Utility
Post the current template source code and we'll see if it's valid.  It sounds like this one page is FUBAR'ed.  I would detach the template, then open the page in notepad and manually remove any leftover template code.  Then make a new page based off the template and try cutting and pasting the code again.
0
 

Author Comment

by:dereksheahan
Comment Utility
Here's the current code so. I've been playing with it here and seem to be able to save it alirght as long as I don't try to update the template. Anyways here's the code :) I'll have a go at your suggestion above.
Thanks,
D

<?php require_once('../Connections/GSM_backup.php'); ?>
<?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
  $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $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;
}

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "remote_user")) {
  $insertSQL = sprintf("INSERT INTO details_table (det_username, det_email_add, det_model_id) VALUES (%s, %s, %s)",
                       GetSQLValueString($_POST['text_username'], "text"),
                       GetSQLValueString($_POST['text_email_add'], "text"),
                       GetSQLValueString($_POST['modeldrop'], "int"));

  mysql_select_db($database_GSM_mobile, $dbh);
  $Result1 = mysql_query($insertSQL, $dbh) or die("Result[1] ".mysql_error());
}
$details_table_last_id = mysql_insert_id();


if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "remote_user")) {
  $insertSQL = sprintf("INSERT INTO remote_details_table (rem_user_id,rem_network_id, rem_IMEI_nr) VALUES (%s, %s, %s)",
                       GetSQLValueString($details_table_last_id, "int"),
                       GetSQLValueString($_POST['networkdrop'], "int"),
                       GetSQLValueString($_POST['text_IMEI'], "double"));

  mysql_select_db($database_GSM_mobile, $dbh);
  $Result2 = mysql_query($insertSQL, $dbh) or die("Result[2]".mysql_error());
}



mysql_select_db($database_GSM_mobile, $dbh);
$query_rsNetworks = "SELECT * FROM network_table";
$rsNetworks = mysql_query($query_rsNetworks, $dbh) or die(mysql_error());
$row_rsNetworks = mysql_fetch_assoc($rsNetworks);
$totalRows_rsNetworks = mysql_num_rows($rsNetworks);

$colname_rsModels = "-1";
if (isset($_GET['Type_variable'])) {
  $colname_rsModels = (get_magic_quotes_gpc()) ? $_GET['Type_variable'] : addslashes($_GET['Type_variable']);
}
mysql_select_db($database_GSM_mobile, $dbh);
$query_rsModels = sprintf("SELECT mod_model_id, mod_model_name, mod_type_id, log_table.log_model_id, log_table.log_1 FROM model_table, log_table WHERE mod_type_id = %s AND log_table.log_model_id = model_table.mod_model_id", $colname_rsModels);
$rsModels = mysql_query($query_rsModels, $dbh) or die(mysql_error());
$row_rsModels = mysql_fetch_assoc($rsModels);
$totalRows_rsModels = mysql_num_rows($rsModels);

mysql_select_db($database_GSM_mobile, $dbh);
$query_rsId = "SELECT det_user_id FROM details_table";
$rsId = mysql_query($query_rsId, $dbh) or die(mysql_error());
$row_rsId = mysql_fetch_assoc($rsId);
$totalRows_rsId = mysql_num_rows($rsId);


?>
<?php
mysql_select_db($database_GSM_mobile, $dbh);
$query_rsFeedback = "SELECT feed_feedback_text, online, feedback_table.feed_name FROM feedback_table WHERE feedback_table.online = 1";
$rsFeedback = mysql_query($query_rsFeedback, $dbh) or die(mysql_error());
$row_rsFeedback = mysql_fetch_assoc($rsFeedback);
$totalRows_rsFeedback = mysql_num_rows($rsFeedback);


do {
$content .= "&quot;".$row_rsFeedback['feed_feedback_text']."&quot;"." - ".$row_rsFeedback['feed_name']. "<br>"."<br>";
} while ($row_rsFeedback = mysql_fetch_assoc($rsFeedback));

$itemname = "Remote Server Unlock: \n\n
Brand: {$row_rsModels['type_type_name']} \n
Model: {$row_rsModels['mod_model_name']} \n
";
?><!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/business.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Remote Unlock Section</title>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="Header" -->
<!-- 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:#66ffff;}
 .tabb { font-weight:bold; font-size:14px; font-family:Arial,Helvetica;}
 .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 src="../Files/script_tmt_validator.js" type="text/javascript"></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:256px;
      top:289px;
      width:452px;
      height:444px;
      z-index:9;
      background-color: #448BBF;
      overflow: auto;
      visibility: visible;
}
#addcom {
      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>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --><!-- InstanceParam name="onload" type="text" value="start()" -->
</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="nokiaremote.php">Nokia 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">Advertisers: </span></p>
  <p><img src="../Images/freedommoblogo_resized.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_friend'])) && ($_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_REFERER'], "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></legend>
  <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-AE6D-11cf-96B8-444553540000" 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.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-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="Old/remote1back.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="../Postal/postalmainbackup.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 action="remote3.php" method="POST" name="remote_user" id="remote_user" tmt:validate="true">
  <p>
    <label>User Name
    <input name="text_username" type="text" id="text_username" class="required" tmt:required="true" tmt:message="Please insert your surname">
    </label>
  </p>
  <p>
    <label>Email Address
    <input name="text_email_add" type="text" id="text_email_add">
    </label>
  </p>
  <p>
    <label>Model:
    <select name="modeldrop" id="modeldrop">
      <?php
do {  
?>
      <option value="<?php echo $row_rsModels['mod_model_id']?>"><?php echo $row_rsModels['mod_model_name']?></option>
      <?php
} while ($row_rsModels = mysql_fetch_assoc($rsModels));
  $rows = mysql_num_rows($rsModels);
  if($rows > 0) {
      mysql_data_seek($rsModels, 0);
        $row_rsModels = mysql_fetch_assoc($rsModels);
  }
?>
    </select>
    </label>
  </p>
 
  <p>
    <label>Network
    <select name="networkdrop" id="networkdrop">
      <?php
do {  
?>
      <option value="<?php echo $row_rsNetworks['net_network_id']?>"><?php echo $row_rsNetworks['net_network_name']?></option>
      <?php
} while ($row_rsNetworks = mysql_fetch_assoc($rsNetworks));
  $rows = mysql_num_rows($rsNetworks);
  if($rows > 0) {
      mysql_data_seek($rsNetworks, 0);
        $row_rsNetworks = mysql_fetch_assoc($rsNetworks);
  }
?>
    </select>
    </label>
  </p>
  <p>
    <label>IMEI Number
    <input name="text_IMEI" type="text" id="text_IMEI">
    </label>
  </p>
  <p>
    <label>Submit
    <input type="submit" name="Submit" value="Submit">
    </label>
  </p>
<input type="hidden" name="MM_insert" value="remote_user">
<input type="hidden" name="user_id_fk" value="">
<input type="hidden" name="item_value" value="<?php echo $row_rsModels['log_1']; ?>">
<input type="hidden" name="item" value="<? echo $itemname; ?>" />
</form>

<!-- InstanceEndEditable --></div>
<div id="addcom"><a href="../feedback.php">Add your comment: </a></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
<!-- InstanceEnd --></html>
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
Derek,

Is this the page code or the .dwt?  Fixing the page isn't going to help...you're better off just removing all template markup and that should fix all other problems.

If you want me to tshoot the template, post that.
0
 

Author Comment

by:dereksheahan
Comment Utility
Oh okay,
Here's the template :)


<?php require_once('../Connections/GSM_backup.php'); ?>
<?php
mysql_select_db($database_GSM_mobile, $dbh);
$query_rsFeedback = "SELECT feed_feedback_text, online, feedback_table.feed_name FROM feedback_table WHERE feedback_table.online = 1";
$rsFeedback = mysql_query($query_rsFeedback, $dbh) or die(mysql_error());
$row_rsFeedback = mysql_fetch_assoc($rsFeedback);
$totalRows_rsFeedback = mysql_num_rows($rsFeedback);


do {
$content .= "&quot;".$row_rsFeedback['feed_feedback_text']."&quot;"." - ".$row_rsFeedback['feed_name']. "<br>"."<br>";
} while ($row_rsFeedback = mysql_fetch_assoc($rsFeedback));
?><!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>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Free Vertical News Scroller - Multiple Message Scroller V3.0</title>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="Header" -->
<!-- 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:#66ffff;}
 .tabb { font-weight:bold; font-size:14px; font-family:Arial,Helvetica;}
 .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 -->
<!-- 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:220px;
      z-index:8;
      background-color: #448bbf;
      visibility: visible;
}
#tell_a_friend {
      position:absolute;
      left:28px;
      top:504px;
      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:255px;
      top:284px;
      width:452px;
      height:444px;
      z-index:9;
      background-color: #448BBF;
      overflow: auto;
      visibility: visible;
}
#addcom {
      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>
<!-- TemplateEndEditable --><!-- TemplateParam name="onload" type="text" value="" -->
</head>

<body onload ="@@(onload)@@">
<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/nokia1.php">Nokia 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">Advertisers: </span></p>
  <p><img src="../Images/freedommoblogo_resized.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="203" width="214">
           <tbody><tr>
            <td width="208" height="197">
             <marquee loop="infinite" behavior="scroll" direction="up" style="width: 205px; height: 180px" 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_friend'])) && ($_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_REFERER'], "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></legend>
  <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-AE6D-11cf-96B8-444553540000" 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.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="780" height="200"></embed>
  </object>
</div>
<div id="mainselectholder">
  <div align="center"></div>
  <table width="400" border="0" align="center" bgcolor="#FFFFFF">
    <tr>
      <td><a href="../Remote/remote1.php"><img src="../green.gif" border="0" width="186" height="42" alt="s" /></a></td>
      <td><a href="../Server/server1.php"><img src="../Images/orange.png" alt="Server Unlock" width="172" height="42" border="0" /></a></td>
      <td><a href="../Postal/postalmain.php"><img src="../Images/blue.gif" border="0" width="181" height="42" alt="g" /></a></td>
    </tr>
  </table>
 
</div>
<div id="bottom">
  <div align="center">
    <p style="padding-top:20px; padding-left:30px; 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"><!-- TemplateBeginEditable name="Main Section" -->
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
<!-- TemplateEndEditable --></div>
<script type="text/javascript" src="../Files/ieupdate.js"></script>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

</body>
</html>
0
 

Author Comment

by:dereksheahan
Comment Utility
Great! Your last step seems to have fixed it. I took the code into Word and made a couple of adjustments, brought it back in, update the template page to it and it gives no errors! Strange.. very strange.
0
 

Author Comment

by:dereksheahan
Comment Utility
Just one small php question on the page if you have a sec to have a look. Somehow over the last few days one of the variables no longer posts correctly. I have this section (I think you may have wrote it!!!)
$itemname = "Remote Server Unlock: \n\n
Brand: {$row_rsModels['type_type_name']} \n
Model: {$row_rsModels['mod_model_name']} \n

Where I use the this to print to paypal. For some reason the brand is returning blank and is not posting. Any ideas why? The code is from the above page if you could have a quick look :)
Cheers,
D
0
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
I'll check it tomorrow (my time).  I'm kinda wiped out here tonight.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
Hi Derek,

Simple solution.  Here is the SQL query for that recordset:

SELECT mod_model_id, mod_model_name, mod_type_id, log_table.log_model_id, log_table.log_1

type_type_name is not there.
0
 

Author Comment

by:dereksheahan
Comment Utility
Thanks Jason. Don't know how I missed  that one. Somehow this entry was removed over the last few edits to the page. Not sure how. Anyways, its working now and thats the main thing.
Cheers,
D
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now