码迷,mamicode.com
首页 > Web开发 > 详细

php后台拼接输出table表格

时间:2015-06-24 10:45:04      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:

<?php
    header("Content-type:text/html;charset=utf-8"); 
    $str=‘‘;
    $str.=‘<table border="1"  class="show_left" style="margin-left:50px; width:auto;">‘;
    $str.=‘<tr>‘;
        $str.=‘<td class="one" align="center">品类编号</td>‘;
        $str.=‘<td class="one" align="center">品类名称</td>‘;
        $str.=‘<td class="one" align="center">添加时间</td>‘;
        $str.=‘<td class="one" align="center">等  级</td>‘;
        $str.=‘<td class="one" align="center">状  态</td>‘;
        $str.=‘<td class="one" align="center">备  注</td>‘;
    $str.=‘</tr>‘;
    
    $str.=‘<tr>‘;
        $str.=‘<td  align="center" class="one">1</td>‘;
        $str.=‘<td  align="center" class="one">sdasd</td>‘;
        $str.=‘<td  align="center" class="one">fdgs</td>‘;
        $str.=‘<td  align="center" class="one">dsfasdf</td>‘;
        $str.=‘<td  align="center" class="one">fgdsgs</td>‘;
        $str.=‘<td  align="center" class="one">ewrwrw</td>‘;
    $str.=‘</tr>‘;
    $str.=‘</table>‘;
    echo $str;
?>
技术分享

 

php后台拼接输出table表格

标签:

原文地址:http://www.cnblogs.com/719907411hl/p/4597014.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!