if (getSetting ("newitem")) { ?>
|
|
} else { ?>
} ?>
$noempty = false;
$found = false;
$value = $row['value'] != "" ? $row['value'] : getSetting ("defaultvalue");
$selections = preg_split ("/\n|\r/", getSetting ("selections"), -1, PREG_SPLIT_NO_EMPTY);
$options = array ();
foreach ($selections as $selection) {
if ($selection!="") {
$name = preg_replace ("/.*<(.*)>/", "\\1", $selection);
$selection = preg_replace ("/ *<.*>/", "", $selection);
if ($selection=="") {
$noempty = true;
}
if ($name!="" && $value == $selection) {
$found = true;
}
if ($name!="") {
$options[] = array ('value' => $selection, 'name' => $name);
}
}
}
?>
if (getSetting ("newitem")) { ?>
} ?>
|
|