Location: PHPKode > scripts > Noostr > style/admin/settings.php
<?php defined('SYSPATH') OR die('No direct access to this file is allowed.');
show_header();

$site = $ns->site;
ksort($site);
$groups = get_groups($site);
$vars = get_vars($site);
?>
<form name="adminsettings" id="adminsettings" action="/<?php echo ADMIN; ?>/<?php echo $ns->template['page']; ?>" method="post">
<?php
echo '<div id="panes">';
for ($i = 0, $c = count($groups); $i < $c; $i++) {
	echo '<div><h3>'.$groups[$i].'</h3><dl>';
	for ($j = 0, $d = count($vars); $j < $d; $j++) {
		if ($site[$vars[$j].'_group'] == $groups[$i] && $vars[$j] != 'startpage' && $vars[$j] != 'style') {
			echo '<dt><label for="'.$vars[$j].'">'.$site[$vars[$j].'_description'].'</label></dt>';
			echo '<dd>'.get_input($vars[$j], $site[$vars[$j].'_type'], $site[$vars[$j]], $site[$vars[$j].'_values']).'</dd>';
		}
	}
	echo '</dl>';
	echo '<input type="submit" name="submit_'.$groups[$i].'" id="submit_'.$groups[$i].'" value="Update!" /></div>';
}
?></div>
	<input type="hidden" name="type" id="type" value="admin_update" />
	<input type="hidden" name="next" id="next" value="/<?php echo ADMIN; ?>/<?php echo $ns->template['page']; ?>" />
</form>
<?php

show_footer();
Return current item: Noostr