Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 831 → Rev 832

/trunk/api/text/wiki_wikini/Parse/Table.php
1,5 → 1,5
<?php
// $Id: Table.php,v 1.2 2004-11-25 15:36:19 jpm Exp $
// $Id: Table.php,v 1.3 2006-04-28 12:41:27 florian Exp $
 
 
/**
100,6 → 100,7
}
// Les attributs de la ligne
$morceaux='';
if (preg_match('/^!(.*)!$/U', $cell[0], $morceaux)) {
$attr = $morceaux[1];
} else {
/trunk/api/text/wiki_wikini/Render/Xhtml/Table.php
27,7 → 27,10
{
// make nice variable names (type, attr, span)
extract($options);
if (!isset($span)) $span=1;
if (!isset($type)) $type='';
if (!isset($attr)) $attr='';
 
$pad = ' ';
switch ($type) {
35,20 → 38,15
case 'table_start':
$css = $this->formatConf(' class="%s"', 'css_table');
return "\n\n".'<table'.$css.' '.trim($attr).'>'."\n";
break;
case 'table_end':
return "</table>\n\n";
break;
case 'row_start':
$css = $this->formatConf(' class="%s"', 'css_tr');
return "$pad<tr$css $attr>\n";
break;
case 'row_end':
return "$pad</tr>\n";
break;
case 'cell_start':
79,7 → 77,6
// done!
$html .= '>';
return $html;
break;
case 'cell_end':
if ($attr == 'header') {
87,7 → 84,6
} else {
return "</td>\n";
}
break;
default:
return '';