Loading...
Skip to main content
Site identity, navigation, etc.
Log in
Username
Password
I forgot my password
CapsLock is on.
Log in
Stay in SSL mode
Navigation and related functionality and content
Related content
View template: messu-mailbox.tpl
Edit CSS
Template listing
{title help="Inter-User Messages" admpage="messages"}{tr}Messages{/tr}{/title} {include file='tiki-mytiki_bar.tpl'} {include file='messu-nav.tpl'} {if $prefs.messu_mailbox_size gt '0'} <div class="progress"> <div class="progress-bar" role="progressbar" aria-valuenow="{$cellsize}" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em;">{$percentage}% <span class="sr-only">{$percentage}% {tr}full{/tr}</span> </div> </div> [{$messu_mailbox_number} / {$prefs.messu_mailbox_size}] {tr}messages{/tr}. {if $messu_mailbox_number ge $prefs.messu_mailbox_size}{tr}Mailbox is full! Delete or archive some messages if you want to receive more messages.{/tr}{/if} {/if} <form class="d-flex flex-row flex-wrap align-items-center mb-4" action="messu-mailbox.php" method="get"> <div class="mb-3 col-sm-3"> <label for="mess-mailmessages">{tr}Messages:{/tr}</label> <select name="flags" id="mess-mailmessages" class="form-select"> <option value="isRead_y" {if $flag eq 'isRead' and $flagval eq 'y'}selected="selected"{/if}>{tr}Read{/tr}</option> <option value="isRead_n" {if $flag eq 'isRead' and $flagval eq 'n'}selected="selected"{/if}>{tr}Unread{/tr}</option> <option value="isFlagged_y" {if $flag eq 'isFlagged' and $flagval eq 'y'}selected="selected"{/if}>{tr}Flagged{/tr}</option> <option value="isFlagged_n" {if $flag eq 'isflagged' and $flagval eq 'n'}selected="selected"{/if}>{tr}Unflagged{/tr}</option> <option value="" {if $flag eq ''}selected="selected"{/if}>{tr}All{/tr}</option> </select> </div> <div class="mb-3 col-sm-3"> <label for="mess-mailprio">{tr}Priority:{/tr}</label> <select name="priority" id="mess-mailprio" class="form-select"> <option value="" {if $priority eq ''}selected="selected"{/if}>{tr}All{/tr}</option> <option value="1" {if $priority eq 1}selected="selected"{/if}>{tr}1{/tr}</option> <option value="2" {if $priority eq 2}selected="selected"{/if}>{tr}2{/tr}</option> <option value="3" {if $priority eq 3}selected="selected"{/if}>{tr}3{/tr}</option> <option value="4" {if $priority eq 4}selected="selected"{/if}>{tr}4{/tr}</option> <option value="5" {if $priority eq 5}selected="selected"{/if}>{tr}5{/tr}</option> </select> </div> <div class="mb-3 col-sm-4"> <label for="mess-mailcont">{tr}Containing:{/tr}</label> <div class="input-group"> <input type="text" name="find" id="mess-mailcont" value="{$find|escape}" class="form-control"> <input type="submit" class="btn btn-info btn-sm" name="filter" value="{tr}Filter{/tr}"> </div> </div> </form> <form class="d-flex flex-row flex-wrap align-items-center" action="messu-mailbox.php" method="post" name="form_messu_mailbox" id="form_messu_mailbox"> {ticket} <input type="hidden" name="offset" value="{$offset|escape}"> <input type="hidden" name="find" value="{$find|escape}"> <input type="hidden" name="sort_mode" value="{$sort_mode|escape}"> <input type="hidden" name="flag" value="{$flag|escape}"> <input type="hidden" name="flagval" value="{$flagval|escape}"> <input type="hidden" name="priority" value="{$priority|escape}"> {jq notonready=true} var CHECKBOX_LIST = [{{section name=user loop=$items}'msg[{$items[user].msgId}]'{if not $smarty.section.user.last},{/if}{/section}}]; {/jq} <div class="table-responsive"> <table class="table"> <tr> <th>{if $items}<input title="{tr}Select All{/tr}" type="checkbox" name="checkall" onclick="checkbox_list_check_all('form_messu_mailbox',CHECKBOX_LIST,this.checked);">{/if}</th> <th style="width:18px"> </th> <th><a href="messu-mailbox.php?flag={$flag}&priority={$priority}&flagval={$flagval}&find={$find|escape:'url'}&offset={$offset}&sort_mode={if $sort_mode eq 'user_from_desc'}user_from_asc{else}user_from_desc{/if}">{tr}Sender{/tr}</a></th> <th><a href="messu-mailbox.php?flag={$flag}&priority={$priority}&flagval={$flagval}&find={$find|escape:'url'}&offset={$offset}&sort_mode={if $sort_mode eq 'subject_desc'}subject_asc{else}subject_desc{/if}">{tr}Subject{/tr}</a></th> <th><a href="messu-mailbox.php?flag={$flag}&priority={$priority}&flagval={$flagval}&find={$find|escape:'url'}&offset={$offset}&sort_mode={if $sort_mode eq 'date_desc'}date_asc{else}date_desc{/if}">{tr}Date{/tr}</a></th> <th>{tr}is reply to{/tr}</th> <th style="text-align:right;">{tr}Size{/tr}</th> </tr> {section name=user loop=$items} <tr> <td class="prio{$items[user].priority}"><input type="checkbox" name="msg[{$items[user].msgId}]"></td> <td class="prio{$items[user].priority}"> {if $items[user].isFlagged eq 'y'} <button type="submit" name="flagmsg" value="n_{$items[user].msgId}" class="btn btn-link pt-0"> <i class="fa fa-flag tips" aria-hidden="true" title="{tr}Flagged: Click to unflag{/tr}"></i> </button> {else} <button type="submit" name="flagmsg" value="y_{$items[user].msgId}" class="btn btn-link pt-0"> <i class="far fa-flag tips" aria-hidden="true" title="{tr}Not Flagged: Click to flag{/tr}"></i> </button> {/if} </td> <td {if $items[user].isRead eq 'n'}style="font-weight:bold"{/if} class="prio{$items[user].priority}">{$items[user].user_from|userlink}</td> <td {if $items[user].isRead eq 'n'}style="font-weight:bold"{/if} class="prio{$items[user].priority}"><a class="readlink" href="messu-read.php?offset={$offset}&flag={$flag}&priority={$items[user].priority}&flagval={$flagval}&sort_mode={$sort_mode}&find={$find|escape:'url'}&msgId={$items[user].msgId}">{$items[user].subject|escape}</a></td> <td {if $items[user].isRead eq 'n'}style="font-weight:bold"{/if} class="prio{$items[user].priority}">{$items[user].date|tiki_short_datetime}</td>{* date_format:"%d %b %Y [%H:%I]" *} <td class="prio{$items[user].priority}"> {if $items[user].replyto_hash eq ""} {else} <a class="readlink" href="messu-mailbox.php?origto={$items[user].replyto_hash}"> {icon name='envelope' alt="{tr}Find replied message{/tr}"} </a> {/if} </td> <td style="text-align:right;{if $items[user].isRead eq 'n'}font-weight:bold;{/if}" class="prio{$items[user].priority}">{$items[user].len|kbsize}</td> </tr> {sectionelse} <tr><td colspan="7" class="odd">{tr}No messages to display{/tr}</td></tr> {/section} <tr><td colspan="7"> <div class="row mx-0 mb-3 font-weight-bold"><div class="col text-center">{tr}Key:{/tr}</div><div class="col prio1 text-center">{tr}Priority{/tr} 1</div><div class="col prio2 text-center">{tr}Priority{/tr} 2</div><div class="col prio3 text-center">{tr}Priority{/tr} 3</div><div class="col prio4 text-center">{tr}Priority{/tr} 4</div><div class="col prio5 text-center">{tr}Priority{/tr} 5</div> </div></td></tr> </table> </div> {if $items} <div class="mb-3 row"> {tr}Perform action with checked:{/tr} <input type="submit" class="btn btn-warning btn-sm ms-2" name="delete" value="{tr}Delete{/tr}"{if $js} onclick="confirmPopup('{tr}Delete selected messages?{/tr}')"{/if} > <input type="submit" class="btn btn-primary btn-sm" name="archive" value="{tr}Archive{/tr}"> <input type="submit" class="btn btn-primary btn-sm no-timeout" name="download" value="{tr}Download{/tr}"> <select name="action" class="form-select ms-4 me-2"> <option value="isRead_y">{tr}Mark as read{/tr}</option> <option value="isRead_n">{tr}Mark as unread{/tr}</option> <option value="isFlagged_y">{tr}Mark as flagged{/tr}</option> <option value="isFlagged_n">{tr}Mark as unflagged{/tr}</option> </select> <input type="submit" class="btn btn-primary btn-sm" name="mark" value="{tr}Mark{/tr}"> </div> {/if} </form> {if $mess_maxRecords ne ''}{assign var=maxRecords value=$mess_maxRecords}{else}{assign var=maxRecords value=$prefs.maxRecords}{/if} {pagination_links cant=$cant_pages step=$maxRecords offset=$offset}{/pagination_links}
Related content
Most Popular Tags
adze
american woods
axe
broadleaf
broadleaf aspen
broadleafs
community
conifers
dendrology
eco friendly
education
froe
glossary
green
green woodworking
hammer
hard wood
hard woods
hardwoods
hickory
history
how to
joinery
literature
machinery
material processing
media
merchants
mortise
people
plane
poplar
safety
shaker
shave
society
soft woods
spokeshave
sustainable
template
tenon
terminology
tools
wood
works