Exemple #1
0
    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">&nbsp;' . $link . '&nbsp;</td>';
        echo '<td align="right">&nbsp;<font color="#0000FF">' . $uniq . '</font>&nbsp;</td>';
        echo '<td align="right">&nbsp;<font color="#FF0000">' . $main[$i] . '</font>&nbsp;</td>';
        echo '<td align="left">&nbsp;' . mk_graph2($main[$i], $main, $uniq, $uniqs, $max_val) . '&nbsp;</td>';
        echo '</tr>';
    }
    echo '</table>';
}
Exemple #2
0
/*=========================================*/
/* メイン処理                              */
/*=========================================*/
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>&nbsp;';
    }
    //ユニーク値
    $uniq = intval($uniqs[$k]);
    //Pathタイトル変換
    $path_title = "";
    if (is_array($ch_path) && isset($ch_path[$k])) {
        $path_title = "[&nbsp;" . $ch_path[$k] . "&nbsp;]<br>&nbsp;";
    }
    //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>&nbsp;' . $link . '&nbsp;</td>';
    echo '<td align="right">&nbsp;<font color="#0000FF">' . $uniq . '</font>&nbsp;</td>';
    echo '<td align="right">&nbsp;<font color="#FF0000">' . $v . '</font>&nbsp;</td>';
    echo '<td>&nbsp;' . mk_graph2($v, $main, $uniq, $uniqs, $max_val) . '&nbsp;</td>';
    echo '</tr>';
}
echo '</table>';