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

$modsettings=explode(",",$modsettings);
$page->query("select id,name from site_content where depth=0 and parentid=0");
$result = $page->db->getdata_array();
//settings are passed to this file in the variable $modsettings formatted as a string
$editform .= "<p>$mod_rss[lbl_settings]</p><br><br>".
"<span>$mod_rss[lbl_incitems]</span>".
"<input class='middle' type='checkbox' name='allitems' value='1' id='allswitch' onclick='toggle_display(\"allswitch\",\"pickmenu\",true)'";
if ($modsettings[0]==1) {
	$editform .= "checked='checked' ";
}
$editform .= "/>";

$editform .= "</p><br /><br />
<div id='pickmenu'>
<p>$mod_rss[lbl_pickmenu]</p>
<select name='whichmenu' size='1'>";
foreach ($result as $row) {
	if ($row["id"]==$modsettings[1]) {
		$editform .= "<option value='$row[id]' selected='selected'>$row[name]</option>";
	} else {
		$editform .= "<option value='$row[id]'>$row[name]</option>";
	}
}
$editform .= "</select></div><br />".
'<script type="text/javascript">toggle_display("allswitch","pickmenu",true)</script>'.
"<p>$mod_rss[lbl_feeddesc]</p>".
"<textarea cols='50' rows='1' name='feedtitle'>$modsettings[2]</textarea>";

$specialsettings="allitems,whichmenu,feedtitle";
?>
Return current item: chillyCMS