帮忙写个表格样式,不难的
就是一个把我要
输出数据的表格美观一化,我要做为长期之类板,以后一生中便可直接套用。我的原样子如下。众好汉,请发挥你们的才智。原代码及样子如一:
.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;}
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++; } if($p){ echo ' '.$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].' '; echo '
'; } else{ echo '没有纪录。';} } ?>'; echo $tb; echo ' 行 门店地址 起运地 省 目的地 1kgs cbm tons 1ctns
(1ctns >16K >5ctns >50ctns pallet 3tons 5tons 8tons 20ft 40ft min. t/time agent DOOR MIN 币别 MIN.1CBM 备注 备注2