';
$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.' | ';
}
public static function tag($tag = 'div', $value = '', $class = '', $style = '')
{
$str1 = $class != '' ? ' class="'.$class.'"' : '';
$str2 = $style != '' ? ' style="'.$style.'"' : '';
return "<$tag $str1 $str2>".$value."$tag>";
}
public static function end($value = 'div')
{
return "$value>";
}
}