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

session_start();

?>

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

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

<div align='center'><img src='site_images/admin_header_opencms.jpg'></div>
<table width='960' cellspacing='0' cellpadding='20' border='0' align='center'>
<tr>
	<td bgcolor='#ffffff'>


	<?php
		include 'site_login.php';
	?>

	<br>

	<font face='arial' size='4' color='#000000'>
		<b>
			ADMIN - HOMEPAGE - Module Modify:
		</b>
	</font>


	<br>
	<br>

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

	<?php

		if ($_SESSION['session_id_login_verify'] == 'YES') {

			echo "
			Module For:<br>
			";




			include 'site_connect_mysql.php';

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


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


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


			if ($module_list_data_count > 0) {

				echo "<form method='post' action='admin_homepage_module_modify_select.php' style='display: inline; margin: 0;'>
				<select name='id'>
				";


				while($module_list_data_info = mysql_fetch_array($module_list_data)){
					
					$module_id = $module_list_data_info[$connect_mysql_modules_id];
					$module_type = $module_list_data_info[$connect_mysql_modules_type];

					echo "<option value='" . $module_id . "'>" .$module_type . "</option>";

					$module_id = ''; 
					$module_type = '';

				}


				echo "

				</select>
				<br><br>
				
				<input type='submit' value='MODIFY MODULE'>

				</form>

				";

			}
			else {

				echo "Error: There are no Modules to modify...";

			}

			
		}
		else {

			echo "Error: You do not have access to see this page. Go <a href='index.php'>Back</a>.";

		}

	?>

	</font>

	</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