The module
Its for my crew. Iam going to show people whp the crew of my page is. And some stuff about them. But sometimes they get new hardware / or there is a new crew member.
What I want. That I can create new crew members, edit the profiles. And add new "lines of info" like Msn: blabla@blalbla.com
Right now I have made the PHP like a modul.. Or It shows up like a modul. But Aint Dynamic. And I cant add stuff to it. From the admin menu.
Modules/Index.php
Code
<?php
if(!page) { header("Location: $HTTP_REFERER"); }
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
$index = 0;
$ModName = basename( dirname( __file__ ) );
modules_get_language();
if (!$user){
$username="";
}else{
getusrinfo($user);
}
global $textcolor1,$textcolor2, $user, $cookie, $adminmail, $nukeurl, $sitename, $user, $pntable, $dbconn, $multilingual, $currentlang, $bgcolor2 ;
include("header.php");
include("config.php");
OpenTable();
?>
<style type="text/css">
<!--
.style10 {font-size: 14}
.style12 {
font-size: 18px;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style33 {font-family: Verdana, Arial, Helvetica, sans-serif}
-->
</style><BODY text="#0A306E" link="#0A306E" Vlink="#0A306E" Alink="#0A306E" class="style10">
</style>
<div align="center" class="style12 ">Crew!</div>
<span class="style33"><br>
</span>
<br>
<table width="441" cellpadding="0" cellspacing="0">
<tr>
<td height="25"><p class="style2">The Crew </p></td>
<td>Stand-in Crew </td>
</tr>
<tr>
<td width="290" height="25"><a href="" onClick="window.open('razor.php',
'Razor','width=350,height=500');return false;"> Razor</a></td>
<td width="149">No One right now </td>
</tr>
<tr> </tr>
<tr>
<td width="290" height="25"><a href="" onClick="window.open('nitro.php',
'Nitro','width=350,height=500');return false;"> </a><a href="" onClick="window.open('ripley.php',
'Ripley','width=350,height=500');return false;">Ripley</a></td>
<td width="149"> </td>
</tr>
<tr> </tr>
<tr>
<td width="290" height="25"><a href="" onClick="window.open('nitro.php',
'Nitro','width=350,height=500');return false;">Nitro</a></td>
</tr>
<tr> </tr>
</table>
<p><strong><br>
News for the Crew <br>
We like to add stuff about new crew members here.</strong><strong></strong><br>
<br>
<?
CloseTable();
include("footer.php");
?>
</p>
if(!page) { header("Location: $HTTP_REFERER"); }
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
$index = 0;
$ModName = basename( dirname( __file__ ) );
modules_get_language();
if (!$user){
$username="";
}else{
getusrinfo($user);
}
global $textcolor1,$textcolor2, $user, $cookie, $adminmail, $nukeurl, $sitename, $user, $pntable, $dbconn, $multilingual, $currentlang, $bgcolor2 ;
include("header.php");
include("config.php");
OpenTable();
?>
<style type="text/css">
<!--
.style10 {font-size: 14}
.style12 {
font-size: 18px;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style33 {font-family: Verdana, Arial, Helvetica, sans-serif}
-->
</style><BODY text="#0A306E" link="#0A306E" Vlink="#0A306E" Alink="#0A306E" class="style10">
</style>
<div align="center" class="style12 ">Crew!</div>
<span class="style33"><br>
</span>
<br>
<table width="441" cellpadding="0" cellspacing="0">
<tr>
<td height="25"><p class="style2">The Crew </p></td>
<td>Stand-in Crew </td>
</tr>
<tr>
<td width="290" height="25"><a href="" onClick="window.open('razor.php',
'Razor','width=350,height=500');return false;"> Razor</a></td>
<td width="149">No One right now </td>
</tr>
<tr> </tr>
<tr>
<td width="290" height="25"><a href="" onClick="window.open('nitro.php',
'Nitro','width=350,height=500');return false;"> </a><a href="" onClick="window.open('ripley.php',
'Ripley','width=350,height=500');return false;">Ripley</a></td>
<td width="149"> </td>
</tr>
<tr> </tr>
<tr>
<td width="290" height="25"><a href="" onClick="window.open('nitro.php',
'Nitro','width=350,height=500');return false;">Nitro</a></td>
</tr>
<tr> </tr>
</table>
<p><strong><br>
News for the Crew <br>
We like to add stuff about new crew members here.</strong><strong></strong><br>
<br>
<?
CloseTable();
include("footer.php");
?>
</p>
This is just so it fits with the rest of the PN site (with the blocks and so on..) as you can se it popups when you click on the names. And I want to let it continue with that.
Here I want to add new "links" for example "Engine" and He sould be put under "Stand-in Crew"
Another Ex. Razor.php
Code
<TITLE>Razor</TITLE>
<style type="text/css">
<!--
body {
background-color: #F0F0F0;
}
.style1 {
color: #FFFFFF;
font-weight: bold;
}
-->
</style><BODY text="#0A306E" link="#0A306E" Alink="#0A306E" Vlink="#0A306E">
<CENTER>
<TABLE width=310 bgcolor=#115CA1 border="0" cellspacing="0" cellpadding="0">
<TR><TD align=center><BR>
<table width=90% border="1" cellpadding="4" cellspacing="0" bgcolor="#FFFFFF">
<tr bgcolor="#115CA1">
<td colspan=2><span class="style1">Razor</span></td>
</tr>
<tr bgcolor="#F0F0F0">
<td width=100><font face="Helvetica" size="2"><B>Crew Member since:<B></font></td>
<td width=210><font face="Helvetica" size="2">April 2003</font></td>
<tr bgcolor="#F0F0F0">
<td width=100><font face="Helvetica" size="2"><B>Name:</B></font></td>
<td width=210><font face="Helvetica" size="2">Oscar</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>Age:</B></font></td>
<td><font face="Helvetica" size="2">26</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>Town:</B></font></td>
<td><font face="Helvetica" size="2">Havdrup</font></td>
<tr bgcolor="#F0F0F0">
<td width=100><font face="Helvetica" size="2"><B>Rang:</B></font></td>
<td width=210><font face="Helvetica" size="2">Admin / Webmaster</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>E-mail:</B></font></td>
<td><font face="Helvetica" size="2"><A href=mailto:>His Mail</A></font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>MSN:</B></font></td>
<td><font face="Helvetica" size="2">None</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>ICQ:</B></font></td>
<td><font face="Helvetica" size="2">Nope</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>Cpu:</B></font></td>
<td><font face="Helvetica" size="2">AMD Athlon XP 1800+</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>Memory:</B></font></td>
<td><font face="Helvetica" size="2">DDR2700 768mb</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>GFX:</B></font></td>
<td><font face="Helvetica" size="2">ATI Radeon 8500pro 64mb</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>Mouse:</B></font></td>
<td><font face="Helvetica" size="2">Logitech MX 500</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>Connection:</B></font></td>
<td><font face="Helvetica" size="2">ADSL 2048/512</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>Homepage:</B></font></td>
<td><font face="Helvetica" size="2"><A href=http://none.com target=_blank>http://www.none.com</A></font></td>
<tr>
</table>
<span class="baggrund"><BR>
</CENTER>
</span>
</TABLE>
</TABLE>
</TABLE>
</BODY>
</HTML>
<a href="" onclick="window.close();">
Close this</a>
<style type="text/css">
<!--
body {
background-color: #F0F0F0;
}
.style1 {
color: #FFFFFF;
font-weight: bold;
}
-->
</style><BODY text="#0A306E" link="#0A306E" Alink="#0A306E" Vlink="#0A306E">
<CENTER>
<TABLE width=310 bgcolor=#115CA1 border="0" cellspacing="0" cellpadding="0">
<TR><TD align=center><BR>
<table width=90% border="1" cellpadding="4" cellspacing="0" bgcolor="#FFFFFF">
<tr bgcolor="#115CA1">
<td colspan=2><span class="style1">Razor</span></td>
</tr>
<tr bgcolor="#F0F0F0">
<td width=100><font face="Helvetica" size="2"><B>Crew Member since:<B></font></td>
<td width=210><font face="Helvetica" size="2">April 2003</font></td>
<tr bgcolor="#F0F0F0">
<td width=100><font face="Helvetica" size="2"><B>Name:</B></font></td>
<td width=210><font face="Helvetica" size="2">Oscar</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>Age:</B></font></td>
<td><font face="Helvetica" size="2">26</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>Town:</B></font></td>
<td><font face="Helvetica" size="2">Havdrup</font></td>
<tr bgcolor="#F0F0F0">
<td width=100><font face="Helvetica" size="2"><B>Rang:</B></font></td>
<td width=210><font face="Helvetica" size="2">Admin / Webmaster</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>E-mail:</B></font></td>
<td><font face="Helvetica" size="2"><A href=mailto:>His Mail</A></font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>MSN:</B></font></td>
<td><font face="Helvetica" size="2">None</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>ICQ:</B></font></td>
<td><font face="Helvetica" size="2">Nope</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>Cpu:</B></font></td>
<td><font face="Helvetica" size="2">AMD Athlon XP 1800+</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>Memory:</B></font></td>
<td><font face="Helvetica" size="2">DDR2700 768mb</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>GFX:</B></font></td>
<td><font face="Helvetica" size="2">ATI Radeon 8500pro 64mb</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>Mouse:</B></font></td>
<td><font face="Helvetica" size="2">Logitech MX 500</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>Connection:</B></font></td>
<td><font face="Helvetica" size="2">ADSL 2048/512</font></td>
<tr bgcolor="#F0F0F0">
<td><font face="Helvetica" size="2"><B>Homepage:</B></font></td>
<td><font face="Helvetica" size="2"><A href=http://none.com target=_blank>http://www.none.com</A></font></td>
<tr>
</table>
<span class="baggrund"><BR>
</CENTER>
</span>
</TABLE>
</TABLE>
</TABLE>
</BODY>
</HTML>
<a href="" onclick="window.close();">
Close this</a>
And THIS!! is what I like to change. And add stuff to without have to upload the new *.php file everytime.
