Location: PHPKode > projects > OpenCMS > OpenCMS - Version Alpha/index.php
<?php

session_start();

?>

<html><link rel='shortcut icon' href='favicon.ico'>
<head>
<title>
OpenCMS-Ver.Alpha
</title>
</head>

<body bgcolor='#333333' topmargin='0' leftmargin='0'>

<div align='center'><a href='index.php'><img src='site_images/site_header_opencms.jpg' border='0'></a></div>
<table width='960' cellspacing='0' cellpadding='0' border='0' align='center'>
<tr>
	<td bgcolor='#ffffff'>


		<table width='100%' cellspacing='0' cellpadding='20' border='0' align='center'>
		<tr valign='top'>

			<td bgcolor='#a0a0a0' width='11%'>
				&nbsp;
			</td>


<?php


			include 'site_connect_mysql.php';

			//Connect To Database
			$mysql_OpenCMS_connection = mysql_connect($loginhostname, $loginusername, $loginpassword);
			mysql_select_db($logindatabase, $mysql_OpenCMS_connection);


			$header_list = "
			SELECT 
			* 
			FROM " . 
			$connect_mysql_header_table . "
			ORDER BY " .
			$connect_mysql_header_id
			; 

			//echo "<h2>" . $header_list . "</h2>";


			$header_list_data = mysql_query($header_list) or die(mysql_error());
			$header_list_data_count = mysql_num_rows($header_list_data);

			$counter = 1;

			while($header_list_data_info = mysql_fetch_array($header_list_data)){
				
				$id = $header_list_data_info[$connect_mysql_header_id];
				$type = $header_list_data_info[$connect_mysql_header_type];
				$text = $header_list_data_info[$connect_mysql_header_text];


				if ($counter <= 3) {

				echo "
				<td bgcolor='#a0a0a0' width='26%'>


					<table width='100%' cellspacing='0' cellpadding='10' border='0' align='center'>
					<tr valign='top'>
						<td bgcolor='#ffcc00' width='100%'>

							<center>
							<font face='arial' size='4' color='#000000'>
							<b>
							[ " . $type . " ]
							</b>
							</font>
							<font face='arial' size='2' color='#000000'>
							<br>
							" . $text . "
							</b>
							</font>
							</center>

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


				</td>
				";

				$counter += 1;

				}

				
				$id = '';
				$type = '';
				$text = '';

			
			}
			
?>

			</td>
			<td bgcolor='#a0a0a0' width='11%'>
				&nbsp;
			</td>

		</tr>
		</table>


		<table width='100%' cellspacing='0' cellpadding='20' border='0' align='center'>
		<tr valign='top'>
			<td bgcolor='#cccccc' width='150'>

				<font face='arial' size='2' color='#000000'>



				<!--&bull; <a href='index.php'>Home</a><br><br>-->

<?php


			$subpage_list = "
			SELECT 
			* 
			FROM " . 
			$connect_mysql_subpages_table . "
			ORDER BY " .
			$connect_mysql_subpages_id
			; 

			//echo "<h2>" . $subpage_list . "</h2>";


			$subpage_list_data = mysql_query($subpage_list) or die(mysql_error());
			$subpage_list_data_count = mysql_num_rows($subpage_list_data);


			while($subpage_list_data_info = mysql_fetch_array($subpage_list_data)){
				
				$id = $subpage_list_data_info[$connect_mysql_subpages_id];
				$type = $subpage_list_data_info[$connect_mysql_subpages_type];
				$text = $subpage_list_data_info[$connect_mysql_subpages_text];
				$video = $subpage_list_data_info[$connect_mysql_subpages_video];
				$image = $subpage_list_data_info[$connect_mysql_subpages_image];


				echo "
				&bull; <a href='site_subpage.php?id=" . $id . "'>" . $type . "</a><br>";
				
				$id = '';
				$type = '';
				$text = '';
				$video = '';
				$image = '';

			
			}
			
?>



				<br>
				&bull; Social Media:<br>
<?php


			include 'site_connect_mysql.php';

			//Connect To Database
			$mysql_OpenCMS_connection = mysql_connect($loginhostname, $loginusername, $loginpassword);
			mysql_select_db($logindatabase, $mysql_OpenCMS_connection);


			$socialmedia_list = "
			SELECT 
			* 
			FROM " . 
			$connect_mysql_socialmedia_table . "
			ORDER BY " .
			$connect_mysql_socialmedia_type
			; 

			//echo "<h2>" . $socialmedia_list . "</h2>";


			$socialmedia_list_data = mysql_query($socialmedia_list) or die(mysql_error());
			$socialmedia_list_data_count = mysql_num_rows($socialmedia_list_data);


			while($socialmedia_list_data_info = mysql_fetch_array($socialmedia_list_data)){
				
				$id = $socialmedia_list_data_info[$connect_mysql_socialmedia_id];
				$type = $socialmedia_list_data_info[$connect_mysql_socialmedia_type];
				$newwindow = $socialmedia_list_data_info[$connect_mysql_socialmedia_newwindow];
				$link = $socialmedia_list_data_info[$connect_mysql_socialmedia_link];
				$image = $socialmedia_list_data_info[$connect_mysql_socialmedia_image];


				echo "
				&bull; <a href='" . $link . "'>" . $type . "</a><br>";
				
				$id = '';
				$type = '';
				$newwindow = '';
				$link = '';
				$image = '';

			
			}
			
?>

				<br>
				<hr>
				<br>
				<a href='site_admin.php'>OpenCMS Admin Area</a>
				</font>

			</td>
			<td valign='top'>

				<!--
				<font face='arial' size='4' color='#000000'>
				Homepage
				</font>
				-->


<?php


			$module_list = "
			SELECT 
			* 
			FROM " . 
			$connect_mysql_modules_table . "
			ORDER BY " .
			$connect_mysql_modules_type
			; 

			//echo "<h2>" . $module_list . "</h2>";


			$module_list_data = mysql_query($module_list) or die(mysql_error());
			$module_list_data_count = mysql_num_rows($module_list_data);



			while($module_list_data_info = mysql_fetch_array($module_list_data)){
				
				$id = $module_list_data_info[$connect_mysql_modules_id];
				$type = $module_list_data_info[$connect_mysql_modules_type];
				$text = $module_list_data_info[$connect_mysql_modules_text];
				$video = $module_list_data_info[$connect_mysql_modules_video];
				$image = $module_list_data_info[$connect_mysql_modules_image];


				echo "
					<table width='100%' cellspacing='0' cellpadding='0' border='0' align='center'>
					<tr valign='top'>
						<td bgcolor='#cccccc' width='100%' valign='top'>

							<table width='100%' cellspacing='0' cellpadding='10' border='0' align='center'>
							<tr valign='top'>
								<td bgcolor='#000000' width='100%'>

									<font face='arial' size='4' color='#ffffff'>
									<b>
									" . $type . ":
									</b>
									</font>

								</td>
							</tr>
							<tr valign='top'>
								<td bgcolor='#cccccc' width='100%'>
									<font face='arial' size='2' color='#000000'>
									" . $text . "
									<br>
									<br>
									<!--
									<b>
									&bull; <a href=''>About Us</a><br>
									&bull; <a href=''>Our Culture</a><br>
									&bull; <a href=''>Quality of Team</a><br>
									&bull; <a href=''>Franchise Quality</a>
									</b>
									<br>
									<br>
									-->
									";


									if ($video != '') {

										echo "<iframe width='420' height='315' src='http://www.youtube.com/embed/" . $video . "' frameborder='0' allowfullscreen></iframe>";

									}
									

									echo "
									</font>

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

						</td>
						<td bgcolor='#cccccc' width='175' valign='top'>
						";


							if ($image != '') {

								echo "<img src='site_uploaded_files/" . $image . "'>";

							}

						
						echo "
						</td>
					</tr>
					</table>



					<br>


				";
				
				$id = '';
				$type = '';
				$text = '';
				$video = '';
				$image = '';

			
			}
			
?>














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


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

<table width='960' cellspacing='0' cellpadding='20' border='0' align='center'>
<tr>
	<td bgcolor='#000000'>

		<font face='arial' size='1' color='#ffffff'>
			OpenCMS - Version Alpha - http://sourceforge.net/projects/open-cms/
		</font>

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

</body>
</html>
Return current item: OpenCMS