PHP柱状图函数

原始HTML大概是从BLUEIDEA得来的吧,记不清了。
PHP我写的,也写了好久了。
现在不用了,在BLOG上留个记录。
CSS部分:

<style type="text/css">
<!--
    ul.q-graph {border:2px solid #0063be;    background:#ffc url(images/graphbg.png) repeat-x scroll 0 0 !important;background:#ffc repeat-x scroll 0 0;    position:relative;list-style:none;margin:1.1em 0 3.5em 0;    padding:0;}
    .q-graph li {    position:absolute;text-align:center;bottom:0;padding:0;margin:0;}
    li.qtr {border-right:1px dotted #41a3e2; word-wrap:break-word; z-index:2;}
    .q-graph ul {list-style:none;}
    li.bar {width:34px; font-size:9px;    color:#fff;    background:#ddd url('images/graphbar.gif') no-repeat -34px 0;}
    li.ticks {left:0;width:100%;z-index:1;}
    div.ticks {position:relative;margin:0;border-top:1px dotted #41a3e2;}
    div.ticks:first-child {border-top:none;}    /*only4 Firefx IE 7+*/
    div.ticks p {position:absolute;left:101%;top:-2px;margin:0;color:#f00;    font-weight:bold;}
-->
</style>

PHP部分:

阅读剩余部分...