* $r['Email'] - Email address of the recipient
* $a['Full'] - Full name + email
*
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2018 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
/** Begin template **/
$count = 0;
+echo "<span class=\"recpt_head\">";
+
foreach ($recipients as $r) {
$count++;
- if ($count > 3 && !$show_more)
- continue;
+
echo $r['Full'];
if ($count != count($recipients)) {
echo ", \n ";
}
+ if (!$show_more && $count == 3) {
+ echo "</span><span id=\"recpt_tail_" . $which_field . "\">";
+ }
}
+echo "</span>\n";
+
if (count($recipients) > 3) {
- if ($show_more) {
- ?>
- <small>(<a href="<?php echo $more_less_toggle_href; ?>"><?php echo _("less"); ?></a>)</small>
- <?php
+ if ( checkForJavascript() ) {
+ $url = "javascript:void(0)";
+ $onclick = ' onclick="showhide(\'' . $which_field . "','" . _("more") . "','" . _("less") . "')\"";
} else {
- ?>
- <small>(<a href="<?php echo $more_less_toggle_href; ?>"><?php echo _("more"); ?></a>)</small>
- <?php
+ $url = $more_less_toggle_href;
+ $onlclick = '';
}
+
+ echo " (<a href=\"" . $url . "\"" . $onclick . " id=\"toggle_" . $which_field . "\">" .
+ ($show_more ? _("less") : _("more") ) .
+ "</a>)";
}