[Fusionforge-commits] FusionForge branch master updated. a2057365efcbeff59d358e20f75a1bfd26e70a50
Franck Villaume
nerville at fusionforge.org
Fri Feb 28 17:32:39 CET 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via a2057365efcbeff59d358e20f75a1bfd26e70a50 (commit)
from ea0fa76b4b14e48fb1e71584fdb231506bdaed8e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a2057365efcbeff59d358e20f75a1bfd26e70a50
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date: Fri Feb 28 14:55:48 2014 +0100
Layout: use html_{ao,ac,e} helpers
diff --git a/src/www/include/Layout.class.php b/src/www/include/Layout.class.php
index c5112bb..6514be5 100644
--- a/src/www/include/Layout.class.php
+++ b/src/www/include/Layout.class.php
@@ -624,44 +624,47 @@ if (isset($params['group']) && $params['group']) {
* @return string the html code
*/
function listTableTop($titleArray = array(), $linksArray = array(), $class = '', $id = '', $thClassArray = array(), $thTitleArray = array()) {
+ $attrs = array('class' => 'listing');
$args = '';
if ($class) {
- $args .= ' class="listing '.$class.'"';
+ $attrs['class'] .= ' '.$class;
} else {
- $args .= ' class="listing full"';
+ $attrs['class'] .= ' full';
}
if ($id) {
- $args .= ' id="'.$id.'"';
+ $attrs['id'] = $id;
}
- $return = "\n".
- '<table'.$args.'>';
+ $return = html_ao('table', $attrs);
if (count($titleArray)) {
- $return .= '<thead><tr>';
+ $ap = html_ap();
+ $return .= html_ao('thead');
+ $return .= html_ao('tr');
$count = count($titleArray);
for ($i = 0; $i < $count; $i++) {
- $th = '';
+ $thAttrs = array();
if ($thClassArray && $thClassArray[$i]) {
- $th .= ' class="'.$thClassArray[$i].'"';
+ $thAttrs['class'] = $thClassArray[$i];
}
if ($thTitleArray && $thTitleArray[$i]) {
+ $thAttrs['title'] = $thTitleArray[$i];
$th .= ' title="'.$thTitleArray[$i].'"';
}
$cell = $titleArray[$i];
if ($linksArray) {
$cell = util_make_link($linksArray[$i], $titleArray[$i]);
}
- $return .= "\n".' <th'.$th.'>'.$cell.'</th>';
+ $return .= html_e('th', $thAttrs, $cell, false);
}
- $return .= "\n".'</tr></thead>'."\n";
+ $return .= html_ac($ap);
}
- $return .= '<tbody>';
+ $return .= html_ao('tbody');
return $return;
}
function listTableBottom() {
- return '</tbody>'."\n".'</table>';
+ return html_ac(html_ap() -2);
}
function outerTabs($params) {
-----------------------------------------------------------------------
Summary of changes:
src/www/include/Layout.class.php | 27 +++++++++++++++------------
1 file changed, 15 insertions(+), 12 deletions(-)
hooks/post-receive
--
FusionForge
More information about the Fusionforge-commits
mailing list