... | in list_subscribers.naml |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
<override_macro name="list_subscribers" requires="node">
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Macro Requires: servlet
♦ ♦
<then.process_unsubscription Macro ♦ ♦
</n.if.is_submitted_form>
<n.put_in_head Binary Namespace: HtmlNamespace
Parameters:
in_head
♦ ♦
<style type="text/css">
table.subscriptions {
border-collapse:collapse;
margin-top:1em;
clear:both;
width:100%
}
table.subscriptions th {
padding: .3em .6em;
text-align:left;
border-bottom-style:solid;
border-bottom-width:2px;
}
table.subscriptions td {
padding: .5em;
}
</style>
</n.put_in_head.>
<n.zebra_table_javascript Macro Parameters:
table_selector
♦ ♦
<form method="post" action="" class=''>
<div>
<b>Name:</b> <input type='text' maxlength='30' name="name" /><input class="sub_but" type="submit" value="Search" />
</div>
</form>
<br/>
<div class="weak-color" style="float:left;margin:.5em 0">
<n.one_or_many Macro Parameters:
many_text, one_text, n
♦ ♦ Binary Namespace: NodePageNamespace
Parameters:
do
♦ ♦ Binary Namespace: NodeNamespace
♦ ♦
<one_text><t>subscriber</t></one_text>
<many_text><t>subscribers</t></many_text>
</n.one_or_many.page_node.subscription_count>
</div>
<n.comment Macro Parameters:
text
♦ ♦
<n.subscriptions Binary Namespace: NodeNamespace
Parameters:
length, start, do
♦ ♦ Macro Requires: servlet
♦ ♦ Binary Namespace: NodePageNamespace
Parameters:
do
♦ ♦ Binary Namespace: NodeNamespace
♦ ♦
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: ListSequence
Parameters:
n
♦ ♦
<then>
<table class="subscriptions">
<tr class="shaded-bg-color">
<th class="medium-border-color"></th>
<th class="medium-border-color"><t>Name</t></th>
<th class="medium-border-color"><t>Email</t></th>
<th class="medium-border-color"><t>Subscription Type</t></th>
<th class="medium-border-color"><t>Frequency</t></th>
<th class="medium-border-color"></th>
</tr>
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Macro Requires: servlet
♦ ♦
<then>
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Macro Requires: http_request
Parameters:
name
♦ ♦
<then>
<n.loop Macro Requires: sequence
Parameters:
by, do
♦ ♦
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: BasicNamespace
Parameters:
string, substring
♦ ♦ Binary Namespace: BasicNamespace
Parameters:
text
♦ ♦ Binary Namespace: SubscriptionList
Parameters:
do
♦ ♦ Binary Namespace: SubscriptionNamespace
Parameters:
do
♦ ♦ Binary Namespace: UserNamespace
Parameters:
truncate
♦ ♦ Binary Namespace: BasicNamespace
Parameters:
text
♦ ♦ Binary Namespace: SubscriptionList
Parameters:
do
♦ ♦ Binary Namespace: SubscriptionNamespace
Parameters:
do
♦ ♦ Binary Namespace: UserNamespace
♦ ♦ Binary Namespace: BasicNamespace
Parameters:
text
♦ ♦ Macro ♦ ♦
<then>
<n.subscription_user_row Macro ♦ ♦
</then>
</n.if.contains_substring>
</n.loop.>
</then>
</n.if.has_parameter>
</then>
<else>
<n.loop Macro Requires: sequence
Parameters:
by, do
♦ ♦
<n.subscription_user_row Macro ♦ ♦
</n.loop.>
</else>
</n.if.is_submitted_form>
</table>
</then>
</n.if.has_more_elements>
</n.subscriptions.>
</override_macro>
|
... | in manage_subscribers.naml |
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
|
<macro name="list_subscribers" requires="node">
<n.if.is_submitted_form>
<then.process_unsubscription/>
</n.if.is_submitted_form>
<n.put_in_head.>
<style type="text/css">
table.subscriptions {
border-collapse:collapse;
margin-top:1em;
clear:both;
width:100%
}
table.subscriptions th {
padding: .3em .6em;
text-align:left;
border-bottom-style:solid;
border-bottom-width:2px;
}
table.subscriptions td {
padding: .5em;
}
</style>
</n.put_in_head.>
<n.zebra_table_javascript table_selector="table.subscriptions"/>
<n.subscribers_pagination/>
<div class="weak-color" style="float:left;margin:.5em 0">
<n.one_or_many.page_node.subscription_count>
<one_text><t>subscriber</t></one_text>
<many_text><t>subscribers</t></many_text>
</n.one_or_many.page_node.subscription_count>
</div>
<n.subscriptions. start="[n.subscriber_page_index_record/]" length="[n.subscriber_page_length/]">
<n.if.has_more_elements>
<then>
<table class="subscriptions">
<tr class="shaded-bg-color">
<th class="medium-border-color"></th>
<th class="medium-border-color"><t>Name</t></th>
<th class="medium-border-color"><t>Email</t></th>
<th class="medium-border-color"><t>Subscription Type</t></th>
<th class="medium-border-color"></th>
</tr>
<n.loop.>
<tr>
<td style="width:30px;padding:0"><n.subscription.user.avatar/></td>
<td class="nowrap"><n.subscription.user.user_link/></td>
<td class="nowrap"><n.subscription.user.user_email/></td>
<td class="nowrap"><n.subscription.type_label/></td>
<td class="nowrap"><n.subscription.unsubscribe_button/></td>
</tr>
</n.loop.>
</table>
</then>
</n.if.has_more_elements>
</n.subscriptions.>
<n.subscribers_pagination/>
</macro>
|
Free forum by Nabble | Edit this page |