Location: PHPKode > projects > chillyCMS > chillyCMS/modules/newestarticles/backend.php
<?php
defined('DOIT') or die('Restricted access');

$modsettings=explode(",",$modsettings);
$amounts=array("1","3","5","10");

$editform .= "<p>$mod_na[lbl_settings]</p><br /><br />".
"<p>$mod_na[lbl_amount]</p><br />".
"<select name='articlescount' size='1'>";
foreach ($amounts as $amount) {
	if ($modsettings[0]==$amount) {
		$editform .= "<option selected='selected'>$amount</option>";
	} else {
		$editform .= "<option>$amount</option>";
	}
}
$editform .= "</select>";
//since the data is to be saved in an array, the order is important!
$specialsettings="articlescount";
?>
Return current item: chillyCMS