Jump to content

Help with my page


kat_jumper_33

Recommended Posts

--------------------------------------------------------------------------------
So for an assignment, we made a webpage in html, now we are supposed to change it around using php. The objective was to change it so that anyone could use the same layout and just add there information to be echoed in the right spots.
My Page: (original = http://cordova.asap.um.maine.edu/~baileyk/NMD102/bio.html )

new with php:

<?php
$name = "Kathleen Bailey";
$title = "Kathleen's Page";
$interests = "Riding Horses, Sports, U-Maine Women's Rugby, Snowboarding, Photography, Traveling and Scotland.";
$Major = "New Media";
$Minor =  "Equine Studies";
$image = "images/barebackcrop.jpg";
$class1 = array("DIGITAL ART", "(ART 270)", "09:30A-12:00P", "TR", "L 311");
$class2 = array("TRAIN THE STANDARDBRED HORSE", "(AVS 393)", "06:00P-09:00P", "R", "HR 203");
$class3 = array("EQUINE INTERNSHIP", "(AVS 397)", "--", "--", "--");
$class4 = array("FUNDAMENTALS INFO SYSTEMS", "(NMD 102)", "01:10P-02:00P", "MWF", "BW 124");
$class5 = array("DESIGN BASICS FOR NEW MEDIA", "(NMD 1042)", "03:30P-04:45P", "TR", "LL 121");
?>



<html>
<body>

<table border="1" width="100%" cellpadding="10">
<tr>

<td width="6%" valign="top">
<html>
<body>
<p>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<CENTER><a href="Timeline/history.html">
<img border="0" src="http://i23.photobucket.com/albums/b376/KatBailey33c/untitled-1.jpg" width="83" height="125">
<BR><BR><BR><BR><a href="photogallery/gallery.html">
<img border="0" src="images/camera.jpg">
</a>
</p>

</body>
</html>

</td>

<td width="50%" valign="top">
<html>
<head>
<CENTER>
<body bgcolor="#0099cc">


<H2> <php? echo $title; ?> </H2>
<Title> <php? echo $title; ?> </title>

<HR WIDTH="25%" COLOR="#6699FF" SIZE="6">
</head>
<body>
<br>
<font color=000099>Name:</font><b> <?php echo $name; ?> </b>
?>
<br>
<br>
<font color=000099>Major:</font> <b> <?php echo $Major; ?> </b>
<br>
<font color=000099>Minor:</font> <b> <?php echo $minor; ?> </b>
<br>
<br>
<font color=000099>Interests:</font> <b> <?php echo $interests; > </b>
<br>
<br>


<html>
<body>

<table border="0" width="100%" cellpadding="2">
<tr>

<td width="44%" valign="top">
<Center><font color=000066><B>My Picture</font>
<BR>
<img src="<?php echo $image; ?>" border=4>
</td>

<td width="56%" valign="top">
<BR><BR>
<Center><B>Class Schedule</b>
<TABLE BORDER="2" BORDERCOLOR="#333399" CELLPADDING="2" CELLSPACING="2" WIDTH="80%">
<TR>
<TD><B>Name</TD>
<TD><B>Time</TD>
<TD><B>Date</TD>
<TD><B>Location</TD>
<TR>
<TD><?php echo $class1[0]; ?>
<br><?php echo $class1[1]; ?></TD>
<TD><?php echo $class1[2]; ?></TD>
<TD><?php echo $class1[3]; ?></TD>
<TD><?php echo $class1[4]; ?></TD>
<TR>
<TD><?php echo $class2[0]; ?><br><?php echo $class1[1]; ?></TD>
<TD><?php echo $class2[2]; ?></TD>
<TD><?php echo $class2[3]; ?></TD>
<TD><?php echo $class2[4]; ?></TD>
<TR>
<TD><?php echo $class3[0]; ?><br><?php echo $class1[1]; ?></TD>
<TD><?php echo $class3[2]; ?></TD>
<TD><?php echo $class3[3]; ?></TD>
<TD><?php echo $class3[4]; ?></TD>
<TR>
<TD><?php echo $class4[0]; ?><br><?php echo $class1[1]; ?></TD>
<TD><?php echo $class4[2]; ?></TD>
<TD><?php echo $class4[3]; ?></TD>
<TD><?php echo $class4[4]; ?></TD>
<TR>
<TD><?php echo $class5[0]; ?><br><?php echo $class1[1]; ?></TD>
<TD><?php echo $class5[2]; ?></TD>
<TD><?php echo $class5[3]; ?></TD>
<TD><?php echo $class5[4]; ?></TD>
</TR>
</TR>
</TABLE>
</td>

</tr>
</table>
</td>

</tr>
</table>

</body>
</html>
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • 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.