Jump to content

Template


BeDedicated

Recommended Posts

Hey Guys,

 

Im wondering if you can help.

 

For some strange reason when i put the default header.tpl there it works all fine and dandy when i put my new customized header it doesnt work properly its annoying me becuase i cant see much differnce.

 

 

<!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={$charset}" />
<title>{$companyname} - {$pagetitle}</title>
<link rel="stylesheet" type="text/css" href="templates/{$template}/style11.css" />
</head>
<body>



<div id="wrap">

<div id="header">
	<a href="/" id="logo"><img src="images/logo.png" alt="SpeediHost" width="233" height="50" /></a>
		<form id="login" method="post" action="myaccount/dologin.php?goto=clientarea">
		  <strong> </strong>

		  <fieldset>
		<legend>Login</legend>
		<strong>My Account Login</strong>
		<label for="username">Username</label>
		<input type="text" name="username" id="username" value="Username" onfocus="if(this.value=='Username'){this.value=''};" onblur="if(this.value==''){this.value='Username'};" />			<label for="password">Password</label>

		<input type="password" name="password" id="password" value="" />			<button type="submit">Login</button>			
	</fieldset>
</form>
</div>

<div id="navigation">

<ul>
	<li class="current"><a href="index.php">Home</a></li>
       <li><a href="clientarea.php">Client Area</a></li>
	<li><a href="supporttickets.php">Support Ticket</a></li>
       <li><a href="submitticket.php">Submit Ticket</a></li>
       <li><a href="domainchecker.php">Domain Checker</a></li>
       <li><a href="#">Affiliates</a></li>
     <li><a href="cart.php">Order</a></li>
       </ul>
</div>

 <div id="content">
  <div id="breadcrumbs">

<hr />
<p><a href="index.php">Home</a>
 › <span class="current">Client Area</span>

</p>
<p class="date"><span style="text-align:right;">{if $loggedin}Welcome {$clientsdetails.firstname}! <a href="logout.php">Logout</a>{else} Welcome please <a href="clientarea.php">Login</a>{/if}</span></p>
   </div>
   <div id="left">
 {if $loggedin}
 	<dl id="leftnav">
     <dt><a href="#">Navigation</a></dt>
     <dd><a href="#">My Details</a></dd>
     <dd><a href="#">My Hosting Packages</a></dd>

     <dd><a href="#">My Products & Services</a></dd>
     <dd><a href="#">My Domains</a></dd>
     <dd><a href="#">My Invoices</a></dd>
     <dd><a href="#">My Support Tickets</a></dd>
     <dd><a href="#">Emails from SpeediHost</a></dd>

     </dl>
     {/if}

      <form method="post" action="knowledgebase.php?action=search">
   <strong>Search Speedi</strong><br />
   <img src="images/spacer.gif" width="1" height="5" alt="" /><br />
   <select name="searchin" class="navinput" style="width:130px;">
   <option value="Knowledgebase">{$LANG.knowledgebasetitle}</option>
   <option value="Downloads">{$LANG.downloadstitle}</option>
   </select>
   <br />
   <img src="images/spacer.gif" width="1" height="5" alt="" /><br />
   <input name="search" type="text" class="navinput" size="15" />
    
   <input name="submit2" type="submit" class="submitbutton" value="{$LANG.go}" />
   </form>
   </div>

Link to comment
Share on other sites

Ok,

 

Here is the problem

 

<input type="text" name="username" id="username" value="Username" onfocus="if(this.value=='Username'){this.value=''};" onblur="if(this.value==''){this.value='Username'};" />			<label for="password">Password</label>

 

Should actually read

 

<input type="text" name="username" id="username" value="Username" onfocus="if(this.value=='Username')(this.value='');" onblur="if(this.value=='')(this.value='Username');" />			<label for="password">Password</label>

 

The reason for this is because the smarty template system uses {} these type of brackets for the templates. Once it reads this it is unsure what to do.

 

I hope that helps!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated