Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function gen_collectorcard( $about = array() )
- {
- $return = '';
- $default = default_stats();
- foreach( $default as $major => $intermediate )
- {
- if( !isset( $about[ $major ] ) )
- {
- $about[ $major ] = $default[ $major ];
- }
- $return .='<td style="vertical-align:top;text-align:center;"><table>';
- $return .= '<tr><td colspan="3" style="vertical-align:middle;text-align:center;">'. longhand_stat( $major ). '</td></tr>';
- foreach( $intermediate as $minor => $value )
- {
- if( !isset( $about[ $major ][ $minor ] ) )
- {
- $about[ $major ][ $minor ] = floatval( $value );
- }
- $return .= '<tr><td colspan="1" style="vertical-align:middle;text-align:center;">'. longhand_stat( $minor ). '</td><td style="vertical-align:middle;text-align:right;">'. floatval( $about[ $major ][ $minor ] ). '</td></tr>';
- }
- $return .='</table></td>';
- }
- $return = '<table style="vetical-align:top;text-align:left;"><tr>'.$return.'</tr></table>';
- return $return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement