';
$mm = 190 / \count($_row);
foreach ($_row as $value) {
$html .= '| '.$value.' | ';
}
$html .= '
';
return $html;
}
public static function make_table($str)
{
$array = explode('
', $str);
$html = '';
foreach ($array as $value) {
$tmp = explode('|', $value);
$html .= '';
$html .= self::td($tmp[0], 'br bb');
$html .= self::td($tmp[1], 'br bb');
$html .= '
';
}
$html .= '
';
return $html;
}
public static function td($value = '', $classname = '', $colspan = 0)
{
$cls = $classname != '' ? ' class="'.$classname.'"' : '';
$spn = $colspan != '' ? ' colspan="'.$colspan.'"' : '';
return "".$value.' | ';
}
}