Home  >  Article  >  Backend Development  >  帮忙写个表格样式,不难的,该怎么解决

帮忙写个表格样式,不难的,该怎么解决

WBOY
WBOYOriginal
2016-06-13 13:38:561170browse

帮忙写个表格样式,不难的
就是一个把我要
输出数据的表格美观一化,我要做为长期之类板,以后一生中便可直接套用。我的原样子如下。众好汉,请发挥你们的才智。原代码及样子如一:

CSS code

    .menu{
        background:#9CF;
        display:block;
        
        }
        .menu ul{
            list-style-type:none;}
        .menu li{
            float:left;
            margin:0 3px;
            }
            .menu li a:hover{
            background-color:#91f491;
            color:white;
            border-bottom:solid 1px #91f491;
                }
                .menu li a#current{
                    background-color:#0ce;
                    color:white;
                    border-bottom:none;
                    }
        .one{
            margin-top:20px;
            overflow-x:scroll;
    }
    .one a{
        color:#00F;
        text-decoration:underline;}


PHP code

query('select * from whole where date=(select max(date) from whole) group by pol');while($r=$q->fetch_array(MYSQLI_USE_RESULT)){$op.='';} $q2=$m->query('select * from whole where date=(select max(date) from whole) group by province');while($r2=$q2->fetch_array(MYSQLI_USE_RESULT)){$op2.='';} ?>
起运地
终到地
query("select * from whole where pod=(select pod from whole where id='".$_POST[pod]."') and pol=(select pol from whole where id='".$_POST[pol]."') and date=(select max(date) from whole)");$i=1; while($r3=$q3->fetch_array(MYSQLI_USE_RESULT)){ $p=count($r3)?1:0; $tb.=''.$i.''.$r3[store].''.$r3[pol].''.$r3[province].''.$r3[pod].''.$r3[kgs].''.$r3[cbm].''.$r3[tons].''.$r3[ctns].''.$r3[ctnsmore].''.$r3[ctns5].''.$r3[ctns50].''.$r3[pallet].''.$r3[tons3].''.$r3[tons5].''.$r3[tons8].''.$r3[ft20].''.$r3[ft40].''.$r3[min].''.$r3[time].''.$r3[agent].''.$r3[door].''.$r3[currency].''.$r3[mincbm].''.$r3[remark].''.$r3[remark2].'';$i++; } if($p){ echo ''; echo ''; echo $tb; echo '
门店地址起运地目的地1kgscbmtons1ctns
(
1ctns >16K>5ctns>50ctnspallet3tons5tons8tons20ft40ftmin.t/timeagentDOOR MIN币别MIN.1CBM备注备注2
'; } else{ echo '没有纪录。';} } ?>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn