Location: PHPKode > projects > ClassSimple > global.php
<?php
/******************************************************
 * global.php
 * MODULE: Core
 * ADMINISTRATION
 *
 * Edits Global Varables
 ******************************************************/

include ("../../admin.header.php");

$db['core'] = open_db(__FILE__, __LINE__, "../../db/core.db");

?>
<h1>Global Settings Editor</h1>

<p>Warning: Changing some of these settings may cause this site to
stop working.  Procede with caution.</p>

<from method="post" action="core.php?mode=save">
<table width="100%" border="0">
<tr><td>Key</td><td>Value</td></tr>
<?php
$result = query(__FILE__, __LINE__, $db['core'], "SELECT * FROM global");

while ($row = fetch($result)){
	echo "<tr><td>" . $row['key'] . "<input type=\"text\" name=\"key[]\" value=\"" . $row['key'] . "\"> </td>" . 
	  "<td><input type=\"text\" name=\"value[]\" value=\"" . $row['value'] . "\"></td></tr>";
}
?>
</table>
<input type="submit" value="Save Settings">
</form>

<?php

include ("../../admin.footer.php");
?>
Return current item: ClassSimple