?>
</define-tag>
+<?
+ function strip_space($foo)
+ {
+ return ereg_replace (" ", "_", $foo);
+ }
+?>
+
# Local variables:
# mode: text
# mode: auto-fill
{
$row = pg_fetch_array($sth, $nr);
- if ($GLOBALS["section_".$row['section']] == 1) {
+ $sect = "section_".strip_space($row['section']);
+
+ if ($GLOBALS[$sect] == 1) {
$count++;
if (strlen ($limit_sections) == 0) {
$limit_sections = $row['section'];
if ($first) {
$first = false;
+ $sect = "section_".strip_space($row['section']);
+
?>
-<row_checkbox name="section_<? echo $row['section']; ?>"
+<row_checkbox name="<? echo $sect; ?>"
title="<b>Sections</b>"
descr="<? echo $row['section']; ?>"
- checked="<? echo (!isset ($limitation) || $GLOBALS["section_".$row['section']] == 1)?"checked":''; ?>"
+ checked="<? echo (!isset ($limitation) || $GLOBALS[$sect] == 1)?"checked":''; ?>"
>
<? } else { ?>
-<row_checkbox name="section_<? echo $row['section']; ?>"
+<row_checkbox name="<? echo $sect; ?>"
title=" "
descr="<? echo $row['section']; ?>"
- checked="<? echo (!isset ($limitation) || $GLOBALS["section_".$row['section']] == 1)?"checked":''; ?>"
+ checked="<? echo (!isset ($limitation) || $GLOBALS[$sect] == 1)?"checked":''; ?>"
>
<?
}
{
$row = pg_fetch_array($sth, $nr);
- if ($GLOBALS["section_".$row['section']] == 1) {
+ $sect = "section_".strip_space($row['section']);
+
+ if ($GLOBALS[$sect] == 1) {
$count++;
if (strlen ($limit_sections) == 0) {
$limit_sections = $row['section'];
if ($first) {
$first = false;
+ $sect = "section_".strip_space($row['section']);
+
?>
-<row_checkbox name="section_<? echo $row['section']; ?>"
+<row_checkbox name="<? echo $sect; ?>"
title="<b>Sections</b>"
descr="<? echo $row['section']; ?>"
- checked="<? echo (!isset ($limitation) || $GLOBALS["section_".$row['section']] == 1)?"checked":''; ?>"
+ checked="<? echo (!isset ($limitation) || $GLOBALS[$sect] == 1)?"checked":''; ?>"
>
<? } else { ?>
-<row_checkbox name="section_<? echo $row['section']; ?>"
+<row_checkbox name="<? echo $sect; ?>"
title=" "
descr="<? echo $row['section']; ?>"
- checked="<? echo (!isset ($limitation) || $GLOBALS["section_".$row['section']] == 1)?"checked":''; ?>"
+ checked="<? echo (!isset ($limitation) || $GLOBALS[$sect] == 1)?"checked":''; ?>"
>
<?
}