$HTML .= '<td>' . "\n"; $HTML .= '<TEXTAREA NAME="announcement" ROWS="10" COLS="60">' . "\n"; $HTML .= $Announcement->TextGet(); $HTML .= '</TEXTAREA>'; $HTML .= '</td>' . "\n"; $HTML .= '<td valign="top">' . "\n"; $HTML .= '<INPUT id="start_date" name="start_date" value="' . $Announcement->StartDateGet() . '" size=25>' . "\n"; $HTML .= '</td>' . "\n"; $HTML .= '<td valign="top">' . "\n"; $HTML .= '<INPUT id="end_date" name="end_date" value="' . $Announcement->EndDateGet() . '" size=25>' . "\n"; $HTML .= '</td>' . "\n"; $HTML .= '</tr>' . "\n"; $HTML .= '<tr>' . "\n"; $HTML .= '<td><b>Plain text Version</b>' . "\n"; $HTML .= '<TEXTAREA NAME="announcement_plain" ROWS="10" COLS="60">' . "\n"; $HTML .= htmlspecialchars($Announcement->TextPlainGet()); $HTML .= '</TEXTAREA>'; $HTML .= '</td>' . "\n"; $HTML .= '</tr>' . "\n"; $ControlName = isset($_REQUEST['edit']) ? 'update' : 'add'; $ControlValue = isset($_REQUEST['edit']) ? 'Update' : 'Add'; $HTML .= '<tr><td colspan="3">' . "\n"; $HTML .= '<div align="center"><INPUT id="' . $ControlName . '" style="WIDTH: 85px; HEIGHT: 24px" type="submit" size="29" value="' . $ControlValue . '"'; $HTML .= ' name="' . $ControlName . '"></div>' . "\n"; $HTML .= '</tr>' . "\n"; $HTML .= '</table>' . "\n"; $HTML .= '<INPUT NAME="id" TYPE="hidden" value="' . $Announcement->IDGet() . '">' . "\n"; $HTML .= '</form>'; echo $HTML; echo "<p></blockquote></TD>\n</TR>\n</TABLE>"; function MyDisplayAnnouncements($Announcement)