Files
mlmmj-light-web-ecg/misc/smarty/templates_en/index.tpl

112 lines
3.5 KiB
Smarty

<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<script>
function validate_form()
{
var name = document.getElementById('add_list_input').value;
var name = name.toLowerCase();
if (name == "")
{
return false;
}
if (name.length > 30)
{
alert("Mailing list name must not be longer than 30 characters.");
return false;
}
if ( name.match(/[^a-z0-9_]/) )
{
alert("Mailing list name must contain only english letters, digits and undercores.");
return false;
}
}
function confirm_delete()
{
return confirm("Do you really want to delete the mailing list?");
}
</script>
</head>
<body>
<div id="header">
<div id="header_left">
<a href="{$web_url}">{$headline}</a>
</div>
<div id="header_right">
<a href="logout.php">Logout ({$username})</a>
</div>
</div>
<div id="breadcrumbs">Home</div>
<div id="index">
<div id="lists_header">
<b>All available mailing lists</b>
&nbsp;
<div class="tooltip">
<img src="help.svg" width=15 height=15>
<span class="help_add_list">
You can edit mailing lists on this page. Just click on its name.
To post a message into a mailing list send an email to example@{$domain}, where "example" is the lists name.
</span>
</div>
</div>
<table id="lists">
<tr>
<td>
&starf;
</td>
<td style="font-weight: bold;">
Lists you own (editable)
</td>
</tr>
{foreach $lists as $list}
{if $list == 1}
<tr>
<td>
&check;
</td>
<td>
<a href="edit_list.php?list_name={$list@key}">{$list@key}</a>
</td>
</tr>
{/if}
{/foreach}
<tr>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td>
&starf;
</td>
<td style="font-weight: bold;">
All other lists (not editable)
</td>
</tr>
{foreach $lists as $list}
{if $list == 0}
<tr>
<td>
&cross;
</td>
<td>
{$list@key}
</td>
</tr>
{/if}
{/foreach}
</table>
</div>
</body>
</html>