summaryrefslogtreecommitdiffstats
path: root/templates/show_mail_users.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-17 03:56:58 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-17 03:56:58 +0000
commitd23122dffafa40415b1496c240ebd0b27619ef0f (patch)
treef165a28f175f4abbe756c58aec9b579b76fdcbe7 /templates/show_mail_users.inc.php
parenta5d4acd8469d571c39f004431836f13d0ef1a5b6 (diff)
downloadampache-d23122dffafa40415b1496c240ebd0b27619ef0f.tar.gz
ampache-d23122dffafa40415b1496c240ebd0b27619ef0f.tar.bz2
ampache-d23122dffafa40415b1496c240ebd0b27619ef0f.zip
fixed mailing functions
Diffstat (limited to 'templates/show_mail_users.inc.php')
-rw-r--r--templates/show_mail_users.inc.php24
1 files changed, 11 insertions, 13 deletions
diff --git a/templates/show_mail_users.inc.php b/templates/show_mail_users.inc.php
index a98128a1..b8fcf5ce 100644
--- a/templates/show_mail_users.inc.php
+++ b/templates/show_mail_users.inc.php
@@ -1,13 +1,12 @@
<?php
/*
- Copyright (c) 2001 - 2006 Ampache.org
+ Copyright (c) 2001 - 2007 Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or (at your option) any later version.
+ as published by the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -22,20 +21,20 @@
?>
<?php show_box_top(_('Send E-mail to Users')); ?>
-<form name="mail" method="post" action="<?php echo conf('web_path'); ?>/admin/mail.php" enctype="multipart/form-data">
+<form name="mail" method="post" action="<?php echo Config::get('web_path'); ?>/admin/mail.php?action=send_mail" enctype="multipart/form-data">
<table>
<tr>
<td><?php echo _('Mail to'); ?>:</td>
<td>
<select name="to">
- <option value="all" title="Mail Everyone" <?php if ($to == 'all') { echo "selected=\"selected\""; } ?>>All</option>
- <option value="users" title="Mail Users" <?php if ($to == 'user') { echo "selected=\"selected\""; } ?>>Users</option>
- <option value="admins" title="Mail Admins" <?php if ($to == 'admin') { echo "selected=\"selected\""; } ?>>Admins</option>
- <option value="inactive" title="Mail Inactive Users" <?php if ($to == 'inactive') { echo "selected=\"selected\""; } ?>>Inactive</option>
+ <option value="all" title="Mail Everyone"><?php echo _('All'); ?></option>
+ <option value="users" title="Mail Users"><?php echo _('User'); ?></option>
+ <option value="admins" title="Mail Admins"><?php echo _('Admin'); ?></option>
+ <option value="inactive" title="Mail Inactive Users"><?php echo _('Inactive Users'); ?>&nbsp;</option>
</select>
- &nbsp;&nbsp;users that are inactive for more than&nbsp;&nbsp;<input type="text" title="This value is only used when mailing to inactive users" size="3" name="inactive" value="30" />&nbsp;&nbsp;days</title>
</td>
</tr>
+<!--
<tr>
<td colspan="2">
<table>
@@ -86,14 +85,14 @@
<tr>
<td colspan = "2"><?php echo _('Most Popular Threshold in days'); ?>:</td>
<td>
- <input type="text" name="threshold" size="3" value="<?php echo conf('popular_threshold'); ?>" />
+ <input type="text" name="threshold" size="3" value="<?php echo Config::get('popular_threshold'); ?>" />
</td>
</tr>
</table>
</td>
</tr>
-
+-->
<tr>
<td><?php echo _('Subject'); ?>:</td>
<td colspan="3">
@@ -104,13 +103,12 @@
<tr>
<td valign="top"><?php echo _('Message'); ?>:</td>
<td>
- <textarea class="input" name="message" rows="20" cols="70"><?php echo scrub_out($message); ?></textarea>
+ <textarea class="input" name="message" rows="10" cols="70"></textarea>
</td>
</tr>
</table>
<div class="formValidation">
- <input type="hidden" name="action" value="send_mail" />
<input class="button" type="submit" value="<?php echo _('Send Mail'); ?>" />
</div>
</form>