summaryrefslogtreecommitdiff
path: root/templates/messu_broadcast.tpl
blob: 648096628fc6c4dee0d1a742a8e9746f1af897fc (plain)
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
<div class="floaticon">{bithelp}</div>
<div class="contain usermessages">
<div class="header">
<h1><a href="{$gBitLoc.MESSU_PKG_URL}broadcast.php">{tr}Broadcast message{/tr}</a></h1>
</div>

{include file="bitpackage:users/my_bitweaver_bar.tpl"}
{include file="bitpackage:messu/messu_nav.tpl"}

<div class="body">

{if $sent}
	{$message}
{else}
<form action="{$gBitLoc.MESSU_PKG_URL}broadcast.php" method="post">
<table class="panel">
  <tr>
    <td><label for="broadcast-group">{tr}Group{/tr}:</label></td>
    <td>
    <select name="group" id="broadcast-group">
    {if $bit_p_broadcast_all eq 'y'}
      <option value="all" selected="selected">{tr}All users{/tr}</option>
    {/if}
	{section name=ix loop=$groups}
	  <option value="{$groups[ix].group_name|escape}">{$groups[ix].group_name}</option>
	{/section}
    </select>
    </td>
  </tr>
  <tr>
    <td><label for="broadcast-priority">{tr}Priority{/tr}:</label></td><td>
    <select name="priority" id="broadcast-priority">
      <option value="1" {if $priority eq 1}selected="selected"{/if}>{tr}1 -Lowest-{/tr}</option>
      <option value="2" {if $priority eq 2}selected="selected"{/if}>{tr}2 -Low-{/tr}</option>
      <option value="3" {if $priority eq 3}selected="selected"{/if}>{tr}3 -Normal-{/tr}</option>
      <option value="4" {if $priority eq 4}selected="selected"{/if}>{tr}4 -High-{/tr}</option>
      <option value="5" {if $priority eq 5}selected="selected"{/if}>{tr}5 -Very High-{/tr}</option>
    </select>
    </td>
  </tr>
  <tr>
    <td><label for="broadcast-subject">{tr}Subject{/tr}:</label></td><td><input type="text" name="subject" id="broadcast-subject" value="{$subject|escape}" size="80" maxlength="255"/></td>
  </tr>
  <tr>
    <td><label for="broadcast-body">{tr}Body{/tr}:</label></td><td align="center"><textarea rows="20" cols="80" name="body">{$body|escape}</textarea></td>
  </tr>
  <tr class="panelsubmitrow">
  	<td colspan="2"><input type="submit" name="send" value="{tr}send message{/tr}" /></td>
  </tr>
</table>
</form>
{/if}

</div> {* end .body *}
</div> {* end .messages *}