Remove some HTML from the core
[squirrelmail.git] / templates / default / table.tpl
diff --git a/templates/default/table.tpl b/templates/default/table.tpl
new file mode 100644 (file)
index 0000000..b528660
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+
+/**
+  * table.tpl
+  *
+  * Template for constructing an opening table tag.
+  *
+  * The following variables are available in this template:
+  * array  $attributes  The table attributes
+  *
+  * @copyright &copy; 1999-2008 The SquirrelMail Project Team
+  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+  * @version $Id: table.tpl 12078 2007-01-07 07:28:11Z pdontthink $
+  * @package squirrelmail
+  * @subpackage templates
+  */
+
+
+// retrieve the template vars
+//
+extract($t);
+
+
+echo '<table';
+
+foreach ($attributes as $key => $value) {
+    echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
+}
+
+echo ">\n";
+