「トップページ(PHP)」の編集履歴(バックアップ)一覧はこちら

トップページ(PHP)」(2006/01/26 (木) 19:09:53) の最新版変更点

追加された行は緑色になります。

削除された行は赤色になります。

<?php //==================================== //メイン //==================================== require_once('./init.php'); $s_init = new sql_init(); $c_h = new hyoji(); $co_id = $s_init->connect(); $h = new html(); $h->header_html("ノブログ");//ヘッダー $c_h->hyoji_t(); class hyoji{ function hyoji_t(){ $osirase = $this->o_hyoji(); echo<<<EOD <!--main--> <table border="0" class="main"> <tr> <!--メニューバー--> <td valign="top"> <div class="index-menu"> <a href="security/sinki.html"><img src="./image/sinki.gif" width="100%" alt="新規登録" border="0"></a> <!--ログイン部--> <div class="im-box" alt="ログイン"><img src="./image/doa.gif" alt="ログイン">ログイン</div> <form action ="noblog_login.php" method="post"> <input type=hidden name="mode" value="write"> <table cellspacing="0" cellpadding="2" border="0"> <tr> <td nowrap> ノブログID: </td> <td> <input type="text" name="userID" maxlength="20" size="15" style="ime-mode: disabled;" value="$userID"> </td> </tr> <tr> <td nowrap> パスワード: </td> <td> <input type="password" name="passwd" maxlength="16" size="12" value="$passwd"> </td> </tr> <tr> <td colspan="2"> <input type="checkbox" name="check" value ="ok" Checked>ログイン状態を保存する <input type="submit" value="ログイン"><br> <a href="passa.php">パスワードを忘れた方</a> </td> </tr> </table> </form> <div class="hr1"></div> <div class="im-box"><img src="./image/book.gif" alt="ブログについて">ブログについて</div> <font color="#990000"> <img src="./image/yajirushi.gif" alt="ブログって?"><a href="./b-kaisetu.html">ブログって?</a><br> <img src="./image/yajirushi.gif" alt="ブログとは"><a href="./nobu-kaisetu.html">ノブログとは</a><br></font> <div class="hr1"></div><br> <div class="im-box"><img src="./image/hatena.gif" alt="サポート">サポート</div> <img src="./image/yajirushi.gif" alt="助け合い広場"><a href="./bbs.html">助け合い広場</a><br> <img src="./image/yajirushi.gif" alt="ヘルプ"><a href="./help.html">ヘルプ</a><br> <img src="./image/yajirushi.gif" alt="FAQ"><a href="./faq.html">FAQ</a><br> <img src="./image/yajirushi.gif" alt="利用規約"><a href="./riyou.html">利用規約</a><br> <img src="./image/yajirushi.gif" alt="お問い合わせ"><a href="./otoiawase.html">お問い合わせ</a><br> <div class="hr1"></div><br> </div> </td> <!--メニューバー終了--> <!--お知らせ--> <td valign="top"> <div class="topic"> <div class="topic-base"> <table border="0"> <tr> <td width="120px"> <div class="topic-sub">お知らせ</div> </td> <td width="400px"> <div class="topic-main"><MARQUEE direction=left scrolldelay=100> $osirase</marquee></div> </td> </tr> </table> </div> </div> <div class="waku1"> <a href="osirase.php">お知らせ詳細</a></div> <!--お知らせ終了--> <!--新着情報--> <div class="newblog"> <div class="im-box"><img src="./image/pen.gif" alt="新着情報">新着情報</div> <table border="0" class="sintyaku"> <tr> <th> タイトル名 </th> <th> ブログ名 </th> <th> 更新時間 </th> </tr> EOD; global $ki,$bg,$co_id; $sql = "SELECT {$ki['colum']}.{$ki['id']},{$bg['title']},{$ki['day']},{$ki['time']},{$ki['title']}" ." FROM {$ki['colum']},{$bg['colum']}" ." WHERE {$bg['colum']}.{$bg['id']} = {$ki['colum']}.{$ki['id']} " ."ORDER BY {$ki['day']} DESC,{$ki['time']} DESC LIMIT 7"; //sqlの実行 $res = mysql_query($sql,$co_id) or html::error("$sql<br/>"); //データを取る while($row = mysql_fetch_array($res,MYSQL_ASSOC)){ //ブログのタイトルが10文字以上あれば...を表示 $bTitle = mb_strimwidth($row{$bg['title']}, 0, 23,"...","SJIS"); //記事のタイトルが10文字以上あれば...を表示 $kijiTitle = mb_strimwidth($row{$ki['title']}, 0, 23,"...","SJIS"); $kijino = $row[$ki['kno']]; //記事ナンバー $date = $row{$ki['day']}; //ブログ投稿日 $time = $row{$ki['time']}; //ブログ投稿時間 $userID = $row[$ki['id']]; //ユーザID sscanf("$date","%d-%d-%d",$yy,$mm,$dd); echo<<<EOD <tr> <td width="152"> <a href="//">$kijiTitle</a> </td> <td width="152"> <a href="./ka.php">$bTitle</a> </td> <td> $mm/$dd - $time </td> </tr> EOD; } echo<<<EOD </table> <div class="hr1"></div> <div align="right"><a href="sinkitoko.php">詳細</a></div> </div> <!--新着情報終了--> </td> </tr> <!--2行目--> <!--ランキング--> <tr> <td valign="top"> <div class="ranking-box"> <div class="rm-box"><img src="./image/oukan.gif" alt="週間ランキング">週間ランキング<br></div> <table border="0" class="ranking"> EOD; global $bg,$co_id; $sql = "SELECT {$bg['id']},{$bg['title']},{$bg['arnk']}" ." FROM {$bg['colum']} " ."ORDER BY {$bg['arnk']} LIMIT 10"; //sqlの実行 $res = mysql_query($sql,$co_id) or html::error("$sql<br/>"); //データを取る while($row = mysql_fetch_array($res,MYSQL_ASSOC)){ $bTitle = $row{$bg['title']}; //ブログタイトル $rank = $row{$bg['arnk']}; //ブログの順位 $userID = $row[$bg['id']]; //ユーザID //ランキング表示 echo<<<EOD <tr> <td> $rank </td> <td> <a href="/$userID/">$bTitle</a> </td> </tr> EOD; } echo<<<EOD </table> <div class="hr1"></div> <div align="right"><a href="ranking.html">詳細</a></div> </div> <!--ランキング終了--> </td> <!--カテゴリ--> <td valign="top"> <div class="newblog"> <div class="im-box"><img src="./image/moji.gif" alt="カテゴリ">カテゴリ</div> <table border="0" valign="top"> <tr> <td valign="top"> <div class="cate1"><a href=sort.php?No=100>健康と生活</a></div> EOD; $No = 100; $res = $this->c_hyoji($No); $No = 1000; while($row = mysql_fetch_array($res)) { ++$No; echo<<<EOD <a href=categori_runk.php?No=$No>{$row["categoriName"]}</a> EOD; } echo<<<EOD ...</div> <div class="cate1"><a href="./kariy.html">スポーツ</a></div> <div class="cate2"> EOD; $No = 300; $res = $this->c_hyoji($No); $No = 3000; while($row = mysql_fetch_array($res)) { ++$No; echo<<<EOD <a href=categori_runk.php?No=$No>{$row["categoriName"]}</a> EOD; } echo<<<EOD ...</div> <div class="cate1"><a href="./kariy.html">ギャンブル</a></div> <div class="cate2"> EOD; $No = 400; $res = $this->c_hyoji($No); $No = 4000; while($row = mysql_fetch_array($res)) { ++$No; echo<<<EOD <a href=categori_runk.php?No=$No>{$row["categoriName"]}</a> EOD; } echo<<<EOD ...</div> </td> <td width= valign="top"> <div class="cate1"><a href="./kariy.html">ニュース</a></div> <div class="cate2"> EOD; $No = 200; $res = $this->c_hyoji($No); $No = 2000; while($row = mysql_fetch_array($res)) { ++$No; echo<<<EOD <a href=categori_runk.php?No=$No>{$row["categoriName"]}</a> EOD; } echo<<<EOD ...</div> <div class="cate1"><a href="./kariy.html">趣味</a></div> <div class="cate2"> EOD; $No = 500; $res = $this->c_hyoji($No); $No = 5000; while($row = mysql_fetch_array($res)) { ++$No; echo<<<EOD <a href=categori_runk.php?No=$No>{$row["categoriName"]}</a> EOD; } echo<<<EOD ...</div> <div class="cate1"><a href="./kari.html">エンターテイメント</a></div> <div class="cate2"> EOD; $No = 600; $res = $this->c_hyoji($No); $No = 6000; while($row = mysql_fetch_array($res)) { ++$No; echo<<<EOD <a href=categori_runk.php?No=$No>{$row["categoriName"]}</a> EOD; } echo<<<EOD ...</div> </td> </tr> </table> <!--カテゴリ全表示--> <div class="hr1"></div> <div align="right"><a href="categori_itiran.php">全表示</a></div> </div> </td> <!--カテゴリ終了--> </tr> </table> <!--フッダー--> <table border="0"> <tr> <td> <div class="hr1"> Copyright (C) 2005 IT・Webmaster 2groups. All Rights Reserved.</div> </td> </tr> </table> <!--フッダー終了--> </div> </div> </BODY> </HTML> EOD; } //================================================ // //================================================ function c_hyoji($No) { global $co_id,$ca; $No = $No."%"; $sql = "select {$ca['name']} from {$ca['colum']} where {$ca['no']} like '$No' order by {$ca['no']} limit 4"; $resp = mysql_query($sql,$co_id); return $resp; } //================================================ //お知らせ表示(電光掲示板) //================================================ function o_hyoji(){ global $co_id,$osi; $sql = "SELECT {$osi['osirase']}" ." FROM {$osi['colum']} " ."ORDER BY {$osi['date']} DESC,{$osi['time']} DESC limit 1"; $res = mysql_query($sql,$co_id); //データを表示 while($row = mysql_fetch_array($res,MYSQL_ASSOC)){ $osirase = $row{$osi['osirase']}; } return $osirase; } } ?>

表示オプション

横に並べて表示:
変化行の前後のみ表示:
目安箱バナー