Jump to content

[SOLVED] i need w/ implementing the php


shortybookit

Recommended Posts

in to the html i think that is what i need any ways--

 

i have the php and database done the php works for everything login in,search,emails the forgoten password, verifys the emails entered match

blah blah everything works now

 

currently all it is though is the form calling the database

 

when i tried to add a header to the main page actually just a pic across the top that is it just a pic

 

nothing works

 

is there a way special way i have to do this???

 

putting php and html on the same page???

Link to comment
https://forums.phpfreaks.com/topic/44194-solved-i-need-w-implementing-the-php/
Share on other sites


<html>
<head>
	<title>My Website</title>
	<style type="text/css" media="screen"> @import url('css/global.css');


</style>
    <script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}
//-->
        </script>
</head>

<body onLoad="MM_preloadImages('http://www.tookout.com/eric/application/graphics/navmenu.jpg')">




<table cellspacing="0" width="95%">
		<tr>
			<td height="100" colspan="5" align="left" valign="top"><div align="left"><img src="http://www.cometosandiego.com/eric/application/graphics/header-left.jpg" width="453" height="105"><img src="http://www.tookout.com/eric/application/graphics/header-img.jpg" width="453" height="105"></div></td>
		</tr>
		<tr>
		  <td height="21" colspan="5" align="left" valign="top" background="http://www.tookout.com/eric/application/graphics/navmenu.jpg"><div align="center">NAVAGATION MENU GOES HERE HOME-FIND A JOB-EMPLOYERS BLAH BLAH </div></td>
  </tr>
		<tr>
			<td width="193">
				<h2>Menu</h2>
				{if isset($smarty.session.user_id)}
					{* if the user is logged in, show "logged in" menu *}
					<p>Hey, you're logged in!</p>
					<p>
						<a href="member.php">Account Info</a><br />
						<a href="logout.php">Logout</a><br />
					</p>
				{else}
					{* if the user is NOT logged in, show normal menu *}
					<a href="index.php">Home</a><br />
					<a href="register.php">Register</a><br />
				{/if}			  </td>
			<td width="13"> </td>
			<td width="494" align="left" valign="top">
				    <p> </p>
				    <p> </p>
				    <p>{if !$DATABASE_CONNECTION }
					</p>
				    <h1>Database Error</h1>
					<p>
						The website cannot connect to the database. Please check your configuration file.						</p>
				{else}
					{if isset( $tpl_name )}
						{include file=default/$tpl_name.tpl.php}
					{/if}					
				{/if}			  </td>
			<td width="6"> </td>
			<td width="193">
				<h2>Right Column</h2>
				{if isset($smarty.session.user_id)}
					{* if the user is logged in, show "logged in" menu *}
					Stuff
				{else}
					{* if the user is NOT logged in, show normal menu *}
					{if $tpl_name eq 'Login'}
						{* Don't show the login page if it's being viewed in the main section *}
						Stuff
					{else}
						{include file=default/Login.tpl.php}
					{/if}
				{/if}			  </td>
		</tr>
		<tr>
			<td height="100" colspan="5"> </td>
		</tr>
		<tr>
			<td colspan="5" align="center">
				© 2000 - {$smarty.now|date_format:"%Y"} Your Company, Inc.<br />
				All rights reserved.				</td>
		</tr>
</table>

</body>
</html>



 

the domain i changed it is not currently live

and i am just starting this i will change the depth of the images later but this is not working

 

with out the 3 pics this works fine

with the pics i get a white screen

 

OK if you are changing the banner images then you need to edit this part

 

67 lines down

 

<table cellspacing="0" width="95%">
<tr>
<td height="100" colspan="5" align="left" valign="top"><div align="left"><img src="http://www.cometosandiego.com/eric/application/graphics/header-left.jpg" width="453" height="105"><img src="http://www.tookout.com/eric/application/graphics/header-img.jpg" width="453" height="105"></div></td>

 

added a banner above (22.jpg)

<table cellspacing="0" width="95%">
<tr>
<td height="100" colspan="5" align="left" valign="top"><div align="left"><img src="22.jpg"<br>
<img src="http://www.cometosandiego.com/eric/application/graphics/header-left.jpg" width="453" height="105"><img src="http://www.tookout.com/eric/application/graphics/header-img.jpg" width="453" height="105"></div></td></tr>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.