</table> </div> <div id="pdflist" class="officelist"> <span>PDF文件列表:</span> <table class="tabletitle"> <tr><td width="25%">文 件 序 号</td><td width="30%">文 件 标 题</td><td width="20%">文 件 大 小</td><td width="25%">相 关 操 作</td></tr> <?php $query = 'select * from ' . $pdfFileInfoTableName; $DB->query($query); $rs = $DB->sql_result(); while ($row = mysql_fetch_array($rs, MYSQL_BOTH)) { // echo "<tr><td>{$row['id']}</td><td>{$row['pdffilename']}</td><td>{$row['filesize']}</td><td><a href=\"{$row['id']$row['pdffilepath']}\" target=htmlfile>下载</a></td></tr>"; echo '<tr><td>' . $row['id'] . '</td><td>' . $row['pdffilename'] . '</td><td>' . $row['filesize'] . '</td><td><a href="' . $row['pdffilepath'] . '" target=htmlfile>下载</a></td></tr>'; } $DB->sql_close(); ?> <tr><td> </td><td> </td><td> </td><td> </td></tr> </table> </div> </div> <div id="maindiv_bottom" class="maindiv_bottom"> <img alt="" src="images/index_main_nether.jpg" /> <div id="conmpanyinfo" class="conmpanyinfo"> <img alt="重庆软航科技有限公司" src="images/Companyinfo.jpg" /> <p>技术支持详见公司网站www.ntko.com “联系我们”</p> </div> </div> </div> </body>
} } else { if (!empty($_POST["foe"])) { if ($_POST["foe"] === $_SESSION["username"]) { $errortext_foe = "can't add yourself"; } else { if (existUser($_POST["foe"]) === 0) { $errortext_foe = "user " . $_POST["foe"] . " doesn't exist"; } else { addFoe($_SESSION["username"], $_POST["foe"]); $errortext_foe = "add foe successfully"; } } } } } $contacts = getContacts($_SESSION["username"]); $friends = getFriends($_SESSION["username"]); $foes = getFoes($_SESSION["username"]); render("contact_template.php", ["contacts" => $contacts, "friends" => $friends, "foes" => $foes, "errortext_contact" => $errortext_contact, "errortext_friend" => $errortext_friend, "errortext_foe" => $errortext_foe, "titile" => "Contact"]); } else { $contacts = getContacts($_SESSION["username"]); $friends = getFriends($_SESSION["username"]); $foes = getFoes($_SESSION["username"]); render("contact_template.php", ["contacts" => $contacts, "friends" => $friends, "foes" => $foes, "errortext_contact" => "", "errortext_friend" => "", "errortext_foe" => "", "titile" => "Contact"]); } } $db->sql_close(); ?>
$ColumnChart = new Graph(); $ColumnChart->set_graphTitle("Hits Summary"); $ColumnChart->set_graphXLabel("Hour"); $ColumnChart->set_graphYLabel("Total Hits"); $ColumnChart->set_chartColumns(array("Hour", "Total Hits")); $result = $objDB->query("select Hour(datetime) as hour, count(*) as hits from hits group by 1 order by 1 desc;"); $index = 0; while ($line = $objDB->fetch_row($result)) { $rows[$index][0] = $line['hour']; $rows[$index][1] = $line['hits']; $index++; } $ColumnChart->set_chartRows($rows); $ColumnChart->set_chartGraph("ColumnChart"); $ColumnChart->get_chartGraph(); $objDB->sql_close(); // ------------------------------------------------------------------------------------------------------------------------------- $LineChart = new Graph(); $LineChart->set_graphTitle("Hits Summary"); $LineChart->set_graphXLabel("Hour"); $LineChart->set_graphYLabel("Total Hits"); $LineChart->set_chartColumns(array("Hour", "Total Hits")); $rows = array(0 => array(0, 5), 1 => array(1, 10), 2 => array(2, 15), 3 => array(3, 20)); $LineChart->set_chartRows($rows); $LineChart->set_chartGraph("LineChart"); $LineChart->get_chartGraph(); ?> </body> </html>