summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-12-09 20:15:44 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-12-09 20:15:44 +0000
commit49bb4c05a88dbda1f3cc3db8486fbcf938eeb081 (patch)
tree68ee03a4019a626071e4bc997f7f611a932be936 /templates
parent77fd3245140b4c1e4a1c5f440e0a3d67470d6562 (diff)
downloadnewsletters-49bb4c05a88dbda1f3cc3db8486fbcf938eeb081.tar.gz
newsletters-49bb4c05a88dbda1f3cc3db8486fbcf938eeb081.tar.bz2
newsletters-49bb4c05a88dbda1f3cc3db8486fbcf938eeb081.zip
true template revamp. been a pleasure doing business with you.
Diffstat (limited to 'templates')
-rw-r--r--templates/admin_newsletters.tpl109
1 files changed, 108 insertions, 1 deletions
diff --git a/templates/admin_newsletters.tpl b/templates/admin_newsletters.tpl
index 0ec837f..4cbb2d9 100644
--- a/templates/admin_newsletters.tpl
+++ b/templates/admin_newsletters.tpl
@@ -1,5 +1,111 @@
-<a class="pagetitle" href="{$smarty.const.NEWSLETTERS_PKG_URL}admin/index.php">{tr}Admin newsletters{/tr}</a>
+{strip}
+<div class="floaticon">{bithelp}</div>
+<<<<<<< admin_newsletters.tpl
+<div class="edit ___">
+ <div class="header">
+ <h1>{tr}Netsletter Settings{/tr}</h1>
+ </div>
+
+ <div class="body">
+ {if $individual eq 'y'}
+ <a href="{$smarty.const.KERNEL_PKG_URL}object_permissions.php?objectName=newsletter%20{$gContent->mInfo.name}&amp;object_type=newsletter&amp;permType=newsletters&amp;object_id={$gContent->mInfo.nl_id}">{tr}There are individual permissions set for this newsletter{/tr}</a><br /><br />
+ {/if}
+ {form legend="Create / Edit Newsletters"}
+ maybe we could have an option to autosubscribe users to a list when they register with the site.
+ <div class="row">
+ {formlabel label="Title" for="title"}
+ {forminput}
+ <input type="text" name="title" id="title" value="{$gContent->mInfo.title|escape}" />
+ {formhelp note="Title of the newsletter."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Description" for="description"}
+ {forminput}
+ <textarea name="edit" rows="4" cols="40" id="description">{$gContent->mInfo.data|escape}</textarea>
+ {formhelp note="Description of the newsletter, that users know what they are getting themselves into."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Users can Subscribe" for="allow_user_sub"}
+ {forminput}
+ <input type="checkbox" name="allow_user_sub" id="allow_user_sub" {if $gContent->mInfo.allow_user_sub eq 'y'}checked="checked"{/if} />
+ {formhelp note="Users can subscribe to this list. Disabling this options means that you have to manually add users to the list."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Any e-mail Address" for="allow_any_sub"}
+ {forminput}
+ <input type="checkbox" name="allow_any_sub" id="allow_any_sub" {if $gContent->mInfo.allow_any_sub eq 'y'}checked="checked"{/if} />
+ {formhelp note="Users may subscribe using any email address."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Append Un/Subscribe Instructions" for="unsub_msg"}
+ {forminput}
+ <input type="checkbox" name="unsub_msg" id="unsub_msg" {if $gContent->mInfo.unsub_msg eq 'y'}checked="checked"{/if} />
+ {formhelp note="Append instructions on how to subscribe / unsubscribe to ever outgoing newsletter. This is only useful when users can un / subscribe to the list themselves."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Validate e-mail Addresses" for="validate_addr"}
+ {forminput}
+ <input type="checkbox" name="validate_addr" id="validate_addr" {if $gContent->mInfo.validate_addr eq 'y'}checked="checked"{/if} />
+ {formhelp note="Validate all email addresses before they are added to the list. This might result in members not being added despite working email addresses."}
+ {/forminput}
+ </div>
+
+ <div class="row submit">
+ <input type="submit" name="save" value="{tr}Save{/tr}" />
+ </div>
+ {/form}
+
+ {minifind}
+
+ <table class="data">
+ <caption>{tr}Newsletters{/tr}</caption>
+ <tr>
+ <th>{smartlink ititle="Name" isort=name offset=$offset}</th>
+ <th>{smartlink ititle="Description" isort=description offset=$offset}</th>
+ <th>{smartlink ititle="Created" isort=last_sent offset=$offset}</th>
+ <th>{smartlink ititle="Last Sent" isort=created offset=$offset}</th>
+ <th>{smartlink ititle="Users [ Confirmed ]" isort=users offset=$offset}</th>
+ <th>{smartlink ititle="Editions" isort=editions offset=$offset}</th>
+ <th>{tr}Action{/tr}</th>
+ </tr>
+
+ {foreach key=nlId from=$newsletters item=nl}
+ <tr class="{cycle values='odd,even'}">
+ <td>{$nl.title}</td>
+ <td>{$nl.data}</td>
+ <td>{$nl.created|bit_short_date}</td>
+ <td>{$nl.last_sent|bit_short_date}</td>
+ <td style="text-align:right;"><a href="{$smarty.const.NEWSLETTERS_PKG_URL}admin/admin_newsletter_subscriptions.php?nl_id={$nlId}">{$nl.users|default:0} [ {$channels[user].confirmed|default:0} ]</a></td>
+ <td style="text-align:right;">{$nl.editions|default:0}</td>
+ <td style="text-align:right;">
+ <a href="{$smarty.const.NEWSLETTERS_PKG_URL}admin/index.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$nlId}">{biticon ipackage=liberty iname=delete iexplain=Remove}</a>
+ <a href="{$smarty.const.NEWSLETTERS_PKG_URL}admin/index.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;nl_id={$nlId}">{biticon ipackage=liberty iname=edit iexplain=Edit}</a>
+ {if $channels[user].individual eq 'y'}({/if}<a href="{$smarty.const.KERNEL_PKG_URL}object_permissions.php?objectName=newsletter%20{$nl.title}&amp;object_type={$smarty.const.BITNEWSLETTER_CONTENT_TYPE_GUID}&amp;permType=newsletters&amp;object_id={$nlId}">{biticon ipackage=liberty iname=permissions iexplain=Permissions}</a>{if $nl.individual eq 'y'}){/if}
+ </td>
+ </tr>
+ {foreachelse}
+ <tr class="norecords">
+ <td colspan="7">{tr}No Records Found{/tr}</td>
+ </tr>
+ {/foreach}
+ </table>
+
+ {pagination}
+ </div><!-- end .body -->
+</div><!-- end .___ -->
+{/strip}
+=======
{if $gBitSystemPrefs.feature_help eq 'y'}
<a href="http://bitweaver.org/wiki/PackageNewsletters" target="help" title="{tr}Tikiwiki.org help{/tr}: {tr}Newsletters{/tr}"><img class="icon" src="{$smarty.const.IMG_PKG_URL}icons/help.gif" alt="help" /></a>
{/if}
@@ -79,3 +185,4 @@
</table>
{pagination}
+>>>>>>> 1.4