echo '<div id="time_w">'; echo '<table border="0" cellpadding="0" cellspacing="0">'; echo '<tr align="center" valign="bottom">' . $tmp["main"] . '</tr>'; echo '<tr>' . $tmp["time"] . '</tr>'; echo '</table>'; echo '</div>'; } else { echo '<table>'; echo '<tr>'; echo '<th nowrap>時間</th>'; echo '<th nowrap>ユニーク</th>'; echo '<th nowrap>件数</th>'; echo '<th nowrap>グラフ</th>'; echo '</tr>'; for ($i = 0; $i < 24; $i++) { //ユニーク値 $uniq = intval($uniqs[$i]); if (!$uniq) { $uniq = 0; } //link $link = sel_link(query_edit("sel", $i), $i); echo '<tr id="bg_id' . $i . '" onmouseover="chBG(\'bg_id' . $i . '\', 1);" onmouseout="chBG(\'bg_id' . $i . '\', 0);">'; echo '<td align="right"> ' . $link . ' </td>'; echo '<td align="right"> <font color="#0000FF">' . $uniq . '</font> </td>'; echo '<td align="right"> <font color="#FF0000">' . $main[$i] . '</font> </td>'; echo '<td align="left"> ' . mk_graph2($main[$i], $main, $uniq, $uniqs, $max_val) . ' </td>'; echo '</tr>'; } echo '</table>'; }
/*=========================================*/ /* メイン処理 */ /*=========================================*/ echo '<table>'; echo '<tr>'; echo '<th nowrap>ページ</th>'; echo '<th nowrap>ユニーク</th>'; echo '<th nowrap>件数</th>'; echo '<th nowrap>グラフ</th>'; echo '</tr>'; foreach ($main as $k => $v) { if ($p_sel_icon) { $sel_path = '<a href="' . FILENAME . query_edit("p_sel", $k) . '">' . set_img(SELPATHMARK, "ページ指定") . '</a> '; } //ユニーク値 $uniq = intval($uniqs[$k]); //Pathタイトル変換 $path_title = ""; if (is_array($ch_path) && isset($ch_path[$k])) { $path_title = "[ " . $ch_path[$k] . " ]<br> "; } //link $link = $sel_path . $path_title . sel_link(query_edit("sel", $k), $k); echo '<tr id="bg_id' . $k . '" onmouseover="chBG(\'bg_id' . $k . '\', 1);" onmouseout="chBG(\'bg_id' . $k . '\', 0);">'; echo '<td> ' . $link . ' </td>'; echo '<td align="right"> <font color="#0000FF">' . $uniq . '</font> </td>'; echo '<td align="right"> <font color="#FF0000">' . $v . '</font> </td>'; echo '<td> ' . mk_graph2($v, $main, $uniq, $uniqs, $max_val) . ' </td>'; echo '</tr>'; } echo '</table>';