Files
resourcelinks.org/rlinks3/indextest.php
2017-03-02 21:43:14 -06:00

130 lines
6.1 KiB
PHP
Executable File

<?php
include "functions.php";
include "admin.php";
//open the database connection
InitializeDB();
SetAdminCookie(VerifyUser());
?>
<!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=utf-8" />
<meta name="generator" content="Adobe GoLive" />
<title>Welcome to the Home Page of ResourceLinks</title>
<link href="css/basic.css" rel="stylesheet" type="text/css" media="all" />
<link href="resourcelinks_php.css" rel="stylesheet" type="text/css" media="all" />
<script language='javascript' type='text/javascript' src='rlinks.js'></script>
<style type="text/css" media="screen"><!--
#missionstatement { height: 24px; width: 470px; left: 70px; top: 37px; position: absolute; visibility: visible; }
#rlinkslogo { height: 83px; width: 392px; left: 10px; top: 37px; position: absolute; visibility: visible; }
#menu { height: 410px; width: 190px; left: 410px; top: 120px; position: absolute; visibility: visible; }
#layer1 { height: 28px; width: 330px; left: 40px; top: 130px; position: absolute; visibility: visible; }
--></style>
</head>
<body bgcolor="#fcffed">
<div id="layer1">
<div style="position:relative;width:305px;height:33px;-adbe-g:p;">
<div style="position:absolute;top:0px;left:16px;width:288px;height:32px;-adbe-c:c">
<div align="center">
<em><font face="Georgia, Times New Roman, Times, serif">The Latest.....</font><font color="#fcfcfc" face="Georgia, Times New Roman, Times, serif">
<hr width="60%" />
</font></em></div>
</div>
</div>
</div>
<div style='position:absolute;left:488px;top:620px;z-index:20'>
<img src='php_graphics/red_arrow.jpg' border='0' />
<a href='rlinkspages/austria_trip.php'><img src='php_graphics/austriatrip_btn.jpg' border='0' /></a>
</div>
<div style="position:relative;width:1068px;height:6000px;-adbe-g:m;">
<div style="position:absolute;top:64px;left:416px;width:448px;height:528px;">
<img src="rlinkpagephotos/wkirchen2.jpg" alt="" width="448" height="528" border="0" /></div>
<div style="position:absolute;top:144px;left:32px;width:340px">
<?php
//commands to execute before script
if($_POST['cmd'] == 'addpost')
{ $report = AddPost($_POST['type']); }
else if($_POST['cmd'] == 'editpost')
{ $report = EditPost($_POST['type']); }
else if($_POST['cmd'] == 'deletepost')
{ $report = DeletePost($_POST['type']); }
else if($_POST['cmd'] == 'addcomment')
{ AddComment('news'); }
//page requests
if($_GET['page'] == 'admin')
{ print Admin($report); }
else if( isset($_GET['id']) )
{ print GetSinglePost('news',$_GET['id']); }
else
{ print GetPosts('news',$_GET['page']); }
?>
</div>
</div>
<div id="rlinkslogo">
<img src="rlinkpagephotos/resourcelinkslogogif" alt="" height="83" width="371" border="0" /></div>
<div id="menu">
<table width="150" border="0" cellspacing="2" cellpadding="7" align="center">
<tr>
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="indextest.php">Home</a></font></em></td>
</tr>
<tr>
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/wo_we_are.html">Who we are</a></font></em></td>
</tr>
<tr>
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/vision_for_ministry.html">Vision for Ministry</a></font></em></td>
</tr>
<tr>
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/foundational_beliefs.html">Foundational Beliefs</a></font></em></td>
</tr>
<tr>
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/directors.html">Directors</a></font></em></td>
</tr>
<tr>
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/how-to-contribute.html">How to Contribute</a></font></em></td>
</tr>
<tr>
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/prayer_updates.php">Prayer Updates</a></font></em></td>
</tr>
<tr>
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/studies_projects.php">Studies/Projects</a></font></em></td>
</tr>
<tr>
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/great_stuff.php">Great Stuff</a></font></em></td>
</tr>
<tr>
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="linksstuff/linkframes.html">Links</a></font></em></td>
</tr>
<tr>
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/through_the-lens.php">Through the Lens</a></font></em></td>
</tr>
<tr>
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="guestbook.php">Guestbook</a></font></em></td>
</tr>
<tr>
<td align="center" bgcolor="#faf0e6"><font size="-1" color="#006400">Click <a href="prayer_let_signup/newplsignup.html">here</a> to request our monthly newsletter</font></td>
</tr>
</table>
</div>
<div id="missionstatement">
<div style="position:relative;width:450px;height:24px;-adbe-g:p;">
<div colspan="3" style="position:absolute;top:0px;left:32px;width:416px;height:16px;-adbe-c:c">
<font size="-1" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><i>Equipping the Man...to Build the Church... to Change the Nations</i></font></div>
</div>
</div>
<p></p>
</body>
</html>