svnno****@sourc*****
svnno****@sourc*****
2011年 3月 29日 (火) 08:15:36 JST
Revision: 916 http://sourceforge.jp/projects/p2-php/svn/view?view=rev&revision=916 Author: akid Date: 2011-03-29 08:15:36 +0900 (Tue, 29 Mar 2011) Log Message: ----------- p2/ æºå¸¯ã®ãæ°ã«æ¿ã®ç·¨éã§ã表示件æ°ãæå¶ããããã«ããã Modified Paths: -------------- p2/trunk/editfavita.php -------------- next part -------------- Modified: p2/trunk/editfavita.php =================================================================== --- p2/trunk/editfavita.php 2011-03-28 20:23:50 UTC (rev 915) +++ p2/trunk/editfavita.php 2011-03-28 23:15:36 UTC (rev 916) @@ -73,7 +73,11 @@ P2View::printIncludeCssHtml('editfavita'); } -echo "</head><body{$body_at}>" . "\n"; +echo <<<EOP + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> +</head> +<body{$body_at}>\n +EOP; P2Util::printInfoHtml(); @@ -152,7 +156,7 @@ } // PCp -if (!$_conf['ktai']) { +if (UA::isPC()) { $menu_href = $_SERVER['SCRIPT_NAME']; $sortNoJs and $menu_href .= '?sortNoJs=1'; $onclick = " onClick='if (parent.menu) { parent.menu.location.href=\"{$_conf['menu_php']}?nr=1\"; }'"; @@ -223,7 +227,6 @@ <input type="hidden" name="list"> <input type="hidden" name="csrfid" value="{$csrfid}"> - <input type="submit" value="³Éß·"> <input type="submit" name="submit_listfavita" value="ÏXðKp·é" onClick="submitApply();"> @@ -261,13 +264,36 @@ } ?><table><?php + $max = 20; + $i = 0; foreach ($lines as $l) { if (preg_match('/^\t?(.+?)\t(.+?)\t(.+?)$/', rtrim($l), $matches)) { + + if (empty($_GET['va']) and $i >= $max) { // view all + ?><tr><td cols="6"><?php + printf('%dð´¦é\¦ÍȪ<br>i%sj', + $max, + P2View::tagA( + UriUtil::buildQueryUri($_SERVER['SCRIPT_NAME'], + array( + 'va' => '1', // view all + UA::getQueryKey() => UA::getQueryValue() + ) + ), + hs('SÄ\¦') + ) + ); + ?></td></tr><?php + break; + } + $itaj = rtrim($matches[3]); $host = $matches[1]; $bbs = $matches[2]; _printEditSortTrHtml($host, $bbs, $itaj); + + $i++; } } ?></table><?php @@ -280,6 +306,7 @@ // }}} + /* // PCp ¨CɯútH[ HTML\¦ if (!$_conf['ktai']) { @@ -375,6 +402,7 @@ 'bbs' => $bbs, 'itaj_en' => $itaj_en, 'setfavita' => 'top', + 'va' => geti($_GET['va']), // view all 'csrfid' => P2Util::getCsrfId(), UA::getQueryKey() => UA::getQueryValue() ) @@ -393,6 +421,7 @@ 'bbs' => $bbs, 'itaj_en' => $itaj_en, 'setfavita' => 'up', + 'va' => geti($_GET['va']), // view all 'csrfid' => P2Util::getCsrfId(), UA::getQueryKey() => UA::getQueryValue() ) @@ -411,6 +440,7 @@ 'bbs' => $bbs, 'itaj_en' => $itaj_en, 'setfavita' => 'down', + 'va' => geti($_GET['va']), // view all 'csrfid' => P2Util::getCsrfId(), UA::getQueryKey() => UA::getQueryValue() ) @@ -429,6 +459,7 @@ 'bbs' => $bbs, 'itaj_en' => $itaj_en, 'setfavita' => 'bottom', + 'va' => geti($_GET['va']), // view all 'csrfid' => P2Util::getCsrfId(), UA::getQueryKey() => UA::getQueryValue() ) @@ -445,6 +476,7 @@ 'host' => $host, 'bbs' => $bbs, 'setfavita' => '0', + 'va' => geti($_GET['va']), // view all 'csrfid' => P2Util::getCsrfId(), UA::getQueryKey() => UA::getQueryValue() )