forked from services/mlmmj-light-web-ecg
123 lines
4.1 KiB
PHP
123 lines
4.1 KiB
PHP
<?php
|
|
/* Smarty version 3.1.31, created on 2021-07-23 15:23:28
|
|
from "/home/pacs/ecg00/users/mlmmj/doms/list.ecogood.org/htdocs-ssl/mlmmj-light-web-ecg/misc/smarty/templates_en/index.tpl" */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '3.1.31',
|
|
'unifunc' => 'content_60fac2d08b3df8_25701302',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'0dee7916f2ab5d00e5d3cc848d789a3c9c535c34' =>
|
|
array (
|
|
0 => '/home/pacs/ecg00/users/mlmmj/doms/list.ecogood.org/htdocs-ssl/mlmmj-light-web-ecg/misc/smarty/templates_en/index.tpl',
|
|
1 => 1627046606,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_60fac2d08b3df8_25701302 (Smarty_Internal_Template $_smarty_tpl) {
|
|
?>
|
|
<html>
|
|
<head>
|
|
<link rel="stylesheet" type="text/css" href="style.css">
|
|
<?php echo '<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("Are you really want to delete the mailing list?");
|
|
}
|
|
<?php echo '</script'; ?>
|
|
>
|
|
</head>
|
|
<body>
|
|
<div id="header">
|
|
<div id="header_left">
|
|
Manage your ECG mailing lists
|
|
</div>
|
|
<div id="header_right">
|
|
<a href="logout.php">Log out</a>
|
|
</div>
|
|
</div>
|
|
<div id="breadcrumbs"><?php echo $_smarty_tpl->tpl_vars['domain']->value;?>
|
|
</div>
|
|
<div id="index">
|
|
<div id="lists_header">
|
|
<b>All available mailing lists:</b>
|
|
|
|
<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@<?php echo $_smarty_tpl->tpl_vars['domain']->value;?>
|
|
, where "example" is the list name.
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<table id="lists">
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['lists']->value, 'list');
|
|
if ($_from !== null) {
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['list']->value) {
|
|
?>
|
|
<tr>
|
|
<td>
|
|
•
|
|
</td>
|
|
<td>
|
|
<a href="edit_list.php?list_name=<?php echo $_smarty_tpl->tpl_vars['list']->value;?>
|
|
"><?php echo $_smarty_tpl->tpl_vars['list']->value;?>
|
|
</a>
|
|
</td>
|
|
<!--<td>
|
|
<a href="del_list.php?list_name=<?php echo $_smarty_tpl->tpl_vars['list']->value;?>
|
|
" onclick="return confirm_delete()"><img src="delete.svg" width=15></a>
|
|
</td>-->
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);
|
|
?>
|
|
|
|
</table>
|
|
<!--<form method="post" action="add_list.php" onsubmit="return validate_form()">
|
|
<div id="add_list">
|
|
<input type="text" name="list_name" id="add_list_input">
|
|
|
|
<input type="submit" name="submit" value="Add" id="add_list_button">
|
|
</div>
|
|
</form>-->
|
|
</div>
|
|
</body>
|
|
</html>
|
|
<?php }
|
|
}
|