3 * read_recipient_list.tpl
5 * Template to generate the listing of recipeients for the To, CC and BCC fields.
7 * The following variables are available in this template:
8 * $which_field - The field that is currently being displayed. Will be 'to',
10 * $more_less_toggle_href - URL to toggle more/less addresses for this field
11 * $show_more - boolean TRUE if we want to show all addresses for this field.
12 * $recipients - array containing all receipients for this field. Each element
13 * is an array representing a recipient and contains the following
15 * $r['Name'] - The name attached to the receipient. Will contain the email
16 * if no name is provided.
17 * $r['Email'] - Email address of the recipient
18 * $a['Full'] - Full name + email
20 * @copyright 1999-2021 The SquirrelMail Project Team
21 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
23 * @package squirrelmail
24 * @subpackage templates
27 /** add required includes **/
29 /** extract template variables **/
32 /** Begin template **/
34 echo "<span class=\"recpt_head\">";
36 foreach ($recipients as $r) {
40 if ($count != count($recipients)) {
43 if (!$show_more && $count == 3) {
44 echo "</span><span id=\"recpt_tail_" . $which_field . "\">";
50 if (count($recipients) > 3) {
51 if ( checkForJavascript() ) {
52 $url = "javascript:void(0)";
53 $onclick = ' onclick="showhide(\'' . $which_field . "','" . _("more") . "','" . _("less") . "')\"";
55 $url = $more_less_toggle_href;
59 echo " (<a href=\"" . $url . "\"" . $onclick . " id=\"toggle_" . $which_field . "\">" .
60 ($show_more ? _("less") : _("more") ) .