ezmlm-web/template/textfiles.cs
lars 4c83771e11 updated UPGRADE file
new configuration setting: HTML_LINKS
changed layout of top div
fixed some IE rendering problems
improved visualization of subscriber's log
changed interface of 'form_header' macros
moved interface and language selection to the top of the page
reverse order of subscriber's log entries
set explicit default values for UNSAFE_RM, PRETTY_NAMES, ALIAS_USER, HTML_LINKS, HTML_LANGUAGE, FILE_UPLOAD and DEFAULT_OPTIONS
HTML_CSS_FILE replaced by HTML_CSS_URL - it defaults to '/ezmlm-web.css'
added manpages for 'webusers' and 'ezmlmwebrc' file formats
added check for required settings
ignore 'taintness' of 'send' input data due to non-ascii characters in buttons' values
2007-04-10 22:19:43 +00:00

61 lines
2.1 KiB
C#

<div class="title">
<h1><?cs var:html_escape(Lang.Title.FileSelect) ?></h1>
</div>
<div class="introduction">
<?cs var:html_escape(Lang.Introduction.TextFiles) ?>
</div>
<fieldset>
<legend><?cs var:html_escape(Lang.Legend.TextFiles) ?> </legend>
<?cs call:form_header("select_textfile") ?>
<ul>
<?cs if:subcount(Data.List.CustomizedFiles) +
subcount(Data.List.DefaultFiles) > 0 ?>
<!-- scrollbox for list's subscribers -->
<!-- Keep selection box a reasonable size - suggested by Sebastian Andersson -->
<?cs if:subcount(Data.List.CustomizedFiles) +
subcount(Data.List.DefaultFiles) > 15 ?>
<?cs set:Data.ScrollSize = 15 ?>
<?cs else ?>
<?cs set:Data.ScrollSize = subcount(Data.List.CustomizedFiles) +
subcount(Data.List.DefaultFiles) ?>
<?cs /if ?>
<li><select name="file" size="<?cs var:Data.ScrollSize ?>" style="padding-right:10px">
<?cs if:subcount(Data.List.CustomizedFiles) > 0 ?>
<!-- no optgroup if there is no alternative optgroup -->
<?cs if:subcount(Data.List.DefaultFiles) > 0 ?>
<optgroup label="<?cs var:html_escape(Lang.Misc.CustomizedFiles) ?>">
<?cs /if ?>
<?cs each:item = Data.List.CustomizedFiles ?>
<option><?cs var:item ?></option>
<?cs /each ?>
<?cs if:subcount(Data.List.DefaultFiles) > 0 ?>
</optgroup>
<?cs /if ?>
<?cs /if ?>
<?cs if:subcount(Data.List.DefaultFiles) > 0 ?>
<!-- no optgroup if there is no alternative optgroup -->
<?cs if:subcount(Data.List.CustomizedFiles) > 0 ?>
<optgroup label="<?cs var:html_escape(Lang.Misc.DefaultFiles) ?>">
<?cs /if ?>
<?cs each:item = Data.List.DefaultFiles ?>
<option><?cs var:item ?></option>
<?cs /each ?>
<?cs if:subcount(Data.List.CustomizedFiles) > 0 ?>
</optgroup>
<?cs /if ?>
<?cs /if ?>
</select></li>
<?cs else ?>
<li><?cs var:html_escape(Lang.Misc.NoFiles) ?></li>
<?cs /if ?>
<li><input type="hidden" name="action" value="textfile_edit" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.EditFile) ?></button></li>
</ul>
</form>
</fieldset>