| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * table_row.tpl |
| 5 | * |
| 6 | * Template for constructing an opening table row tag. |
| 7 | * |
| 8 | * The following variables are available in this template: |
| 9 | * array $attributes The table attributes |
| 10 | * |
| 11 | * @copyright 1999-2017 The SquirrelMail Project Team |
| 12 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
| 13 | * @version $Id$ |
| 14 | * @package squirrelmail |
| 15 | * @subpackage templates |
| 16 | */ |
| 17 | |
| 18 | |
| 19 | // retrieve the template vars |
| 20 | // |
| 21 | extract($t); |
| 22 | |
| 23 | |
| 24 | echo '<tr'; |
| 25 | |
| 26 | foreach ($attributes as $key => $value) { |
| 27 | echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"'); |
| 28 | } |
| 29 | |
| 30 | echo ">\n"; |
| 31 | |