<?
// nothumb1.php
// Photo Gallery แบบไม่ใช้ Thumbnail
$title = "Photo Gallery version 1.0 (No Thumbnail)";
$updated = "ปรับปรุง : 2549-09-28";
$starttoexplore = "no"; // yes = เปิดทั้งหมดทันที
//
// $imgnamewidth = 3 ถ้าชื่อแฟ้มเป็น abc001.jpg
$imgnamewidth = 1; // จำนวนตัวอักษรก่อนเลข 3 หลักหลัง เช่น w001.jpg ก็จะเท่ากับ 1
$imgsize = " width=100 height=100"; // ขนาดของ thumbnail
//
$catname = "Group of Photo";
$catbg = " bgcolor=#dddddd";
$catwidth = 200;
// 3 บรรทัดนี้ ลบออกได้
$cat[1] = "ธรรมชาติ";
$cat[2] = "ลำปาง";
$cat[3] = "ม.โยนก";
//
// Sample from
// 1. http://www.msn-emotions.org/backgrounds_and_wallpapers/wallpapers/photos.php
// 2. http://www.lovelampang.com/nw
// 3. http://www.yonok.ac.th/wallpic
//
$p{'001'}=1; $p{'002'}=1; $p{'003'}=1; $p{'004'}=1; $p{'005'}=1; $p{'006'}=2; $p{'007'}=2; $p{'008'}=2; $p{'009'}=2; $p{'010'}=2;
$p{'011'}=3; $p{'012'}=3; $p{'013'}=3; $p{'014'}=3; $p{'015'}=3; $p{'016'}=3; $p{'017'}=3; $p{'018'}=3; $p{'019'}=3; $p{'020'}=3;
$p{'021'}=3; $p{'022'}=3; $p{'023'}=3; $p{'024'}=3; $p{'025'}=3; $p{'026'}=3; $p{'027'}=3; $p{'028'}=1; $p{'029'}=1; $p{'030'}=1;
$p{'031'}=1; $p{'032'}=1; $p{'033'}=1; $p{'034'}=1; $p{'035'}=1; $p{'036'}=1; $p{'037'}=1; $p{'038'}=1; $p{'039'}=1; $p{'040'}=1;
$p{'041'}=1; $p{'042'}=1; $p{'043'}=1; $p{'044'}=1; $p{'045'}=1; $p{'046'}=1; $p{'047'}=1; $p{'048'}=1; $p{'049'}=1; $p{'050'}=1;
$p{'051'}=1; $p{'052'}=1; $p{'053'}=1; $p{'054'}=1; $p{'055'}=1; $p{'056'}=1; $p{'057'}=1; $p{'058'}=1; $p{'059'}=1; $p{'060'}=1;
$p{'061'}=1; $p{'062'}=1; $p{'063'}=1; $p{'064'}=1; $p{'065'}=1; $p{'066'}=1; $p{'067'}=1; $p{'068'}=1; $p{'069'}=1; $p{'070'}=1;
$p{'071'}=1; $p{'072'}=1; $p{'073'}=1; $p{'074'}=1; $p{'075'}=1; $p{'076'}=1; $p{'077'}=1; $p{'078'}=1; $p{'079'}=1; $p{'080'}=1;
$p{'081'}=1; $p{'082'}=1; $p{'083'}=1; $p{'084'}=1; $p{'085'}=1; $p{'086'}=1; $p{'087'}=1; $p{'088'}=1; $p{'089'}=1; $p{'090'}=1;
$p{'091'}=1; $p{'092'}=1; $p{'093'}=1; $p{'094'}=1; $p{'095'}=1; $p{'096'}=1; $p{'097'}=1; $p{'098'}=1; $p{'099'}=1; $p{'100'}=1;
$p{'101'}=1; $p{'102'}=1; $p{'103'}=1; $p{'104'}=1; $p{'105'}=1; $p{'106'}=1; $p{'107'}=1; $p{'108'}=1; $p{'109'}=1; $p{'110'}=1;
$p{'111'}=1; $p{'112'}=1; $p{'113'}=3; $p{'114'}=2; $p{'115'}=2; $p{'116'}=2; $p{'117'}=2; $p{'118'}=2; $p{'119'}=2; $p{'120'}=2;
$p{'121'}=2; $p{'122'}=2; $p{'123'}=2; $p{'124'}=2; $p{'125'}=2; $p{'126'}=2; $p{'127'}=2; $p{'128'}=2; $p{'129'}=2; $p{'130'}=2;
$p{'131'}=2; $p{'132'}=2; $p{'133'}=2; $p{'134'}=2; $p{'135'}=2; $p{'136'}=2; $p{'137'}=2; $p{'138'}=2; $p{'139'}=2; $p{'140'}=2;
$p{'141'}=2; $p{'142'}=2; $p{'143'}=2; $p{'144'}=2; $p{'145'}=2; $p{'146'}=2; $p{'147'}=2; $p{'148'}=2; $p{'149'}=2; $p{'150'}=2;
$p{'151'}=2; $p{'152'}=2; $p{'153'}=3; $p{'154'}=2; $p{'155'}=2; $p{'156'}=2; $p{'157'}=2; $p{'158'}=2; $p{'159'}=2; $p{'160'}=2;
$p{'161'}=2; $p{'162'}=2; $p{'163'}=2; $p{'164'}=2; $p{'165'}=2; $p{'166'}=2; $p{'167'}=2; $p{'168'}=2; $p{'169'}=2; $p{'170'}=2;
$p{'171'}=2; $p{'172'}=2; $p{'173'}=2; $p{'174'}=2; $p{'175'}=2; $p{'176'}=2; $p{'177'}=2; $p{'178'}=2; $p{'179'}=2; $p{'180'}=2;
$p{'181'}=2; $p{'182'}=2; $p{'183'}=2; $p{'184'}=2; $p{'185'}=2; $p{'186'}=2; $p{'187'}=2; $p{'188'}=2; $p{'189'}=2; $p{'190'}=2;
$p{'191'}=2; $p{'192'}=2; $p{'193'}=2; $p{'194'}=2; $p{'195'}=2; $p{'196'}=2; $p{'197'}=2; $p{'198'}=2; $p{'199'}=2; $p{'200'}=2;
$p{'201'}=2; $p{'202'}=2; $p{'203'}=2; $p{'204'}=2; $p{'205'}=2; $p{'206'}=2; $p{'207'}=2; $p{'208'}=2; $p{'209'}=2; $p{'210'}=2;
$p{'211'}=2; $p{'212'}=2; $p{'213'}=2; $p{'214'}=2; $p{'215'}=2; $p{'216'}=2; $p{'217'}=2; $p{'218'}=2; $p{'219'}=2; $p{'220'}=2;
$p{'221'}=2; $p{'222'}=2; $p{'223'}=2; $p{'224'}=2; $p{'225'}=2; $p{'226'}=2; $p{'227'}=2; $p{'228'}=2; $p{'229'}=2; $p{'230'}=2;
$p{'231'}=2; $p{'232'}=2; $p{'233'}=2; $p{'234'}=2; $p{'235'}=2; $p{'236'}=2; $p{'237'}=2; $p{'238'}=2; $p{'239'}=2; $p{'240'}=2;
$p{'241'}=2; $p{'242'}=2; $p{'243'}=2; $p{'244'}=2; $p{'245'}=2; $p{'246'}=2; $p{'247'}=2; $p{'248'}=2; $p{'249'}=5; $p{'250'}=2;
$p{'251'}=2; $p{'252'}=2; $p{'253'}=2; $p{'254'}=2; $p{'255'}=5; $p{'256'}=4; $p{'257'}=2; $p{'258'}=2; $p{'259'}=2; $p{'260'}=2;
$p{'261'}=4; $p{'262'}=2; $p{'263'}=2; $p{'264'}=2; $p{'265'}=2; $p{'266'}=2; $p{'267'}=2; $p{'268'}=2; $p{'269'}=2; $p{'270'}=2;
$p{'271'}=2; $p{'272'}=2; $p{'273'}=2; $p{'274'}=2; $p{'275'}=2; $p{'276'}=2; $p{'277'}=2; $p{'278'}=2; $p{'279'}=2; $p{'280'}=2;
$p{'281'}=1; $p{'282'}=2; $p{'283'}=4; $p{'284'}=2; $p{'285'}=2; $p{'286'}=1; $p{'287'}=1; $p{'288'}=1; $p{'289'}=1; $p{'290'}=1;
$p{'291'}=1; $p{'292'}=1; $p{'293'}=1; $p{'294'}=1; $p{'295'}=1; $p{'296'}=1; $p{'297'}=1; $p{'298'}=1; $p{'299'}=1; $p{'300'}=1;
$p{'301'}=1; $p{'302'}=1; $p{'303'}=1; $p{'304'}=1; $p{'305'}=1; $p{'306'}=1; $p{'307'}=1; $p{'308'}=1; $p{'309'}=1; $p{'310'}=1;
$p{'311'}=1; $p{'312'}=1; $p{'313'}=1; $p{'314'}=1; $p{'315'}=1; $p{'316'}=1; $p{'317'}=1; $p{'318'}=1; $p{'319'}=1; $p{'320'}=1;
$p{'321'}=1; $p{'322'}=1; $p{'323'}=1; $p{'324'}=1; $p{'325'}=1; $p{'326'}=1; $p{'327'}=1; $p{'328'}=1; $p{'329'}=1; $p{'330'}=1;
$p{'331'}=1; $p{'332'}=1; $p{'333'}=1; $p{'334'}=1; $p{'335'}=1; $p{'336'}=1; $p{'337'}=1; $p{'338'}=1; $p{'339'}=1; $p{'340'}=1;
$p{'341'}=1; $p{'342'}=1; $p{'343'}=1; $p{'344'}=1; $p{'345'}=1; $p{'346'}=1; $p{'347'}=1; $p{'348'}=1; $p{'349'}=1; $p{'350'}=1;
$p{'351'}=1; $p{'352'}=1; $p{'353'}=1; $p{'354'}=1; $p{'355'}=1; $p{'356'}=1; $p{'357'}=1; $p{'358'}=1; $p{'359'}=1; $p{'360'}=1;
$p{'361'}=1; $p{'362'}=1; $p{'363'}=1; $p{'364'}=1; $p{'365'}=1; $p{'366'}=1; $p{'367'}=1; $p{'368'}=1; $p{'369'}=1; $p{'370'}=1;
$p{'371'}=1; $p{'372'}=1; $p{'373'}=1; $p{'374'}=1; $p{'375'}=1; $p{'376'}=1; $p{'377'}=1; $p{'378'}=1; $p{'379'}=1; $p{'380'}=1;
$p{'381'}=1; $p{'382'}=1; $p{'383'}=1; $p{'384'}=1; $p{'385'}=1; $p{'386'}=1; $p{'387'}=1; $p{'388'}=1; $p{'389'}=1; $p{'390'}=1;
$p{'391'}=1; $p{'392'}=1; $p{'393'}=1; $p{'394'}=1; $p{'395'}=1; $p{'396'}=1; $p{'397'}=1; $p{'398'}=1; $p{'399'}=1; $p{'400'}=1;
$p{'401'}=1; $p{'402'}=1; $p{'403'}=1; $p{'404'}=1; $p{'405'}=1; $p{'406'}=1; $p{'407'}=1; $p{'408'}=1; $p{'409'}=1; $p{'410'}=1;
$p{'411'}=1; $p{'412'}=1; $p{'413'}=1; $p{'414'}=1; $p{'415'}=1; $p{'416'}=1; $p{'417'}=1; $p{'418'}=1; $p{'419'}=1; $p{'420'}=1;
$p{'421'}=1; $p{'422'}=1; $p{'423'}=1; $p{'424'}=1; $p{'425'}=1; $p{'426'}=1; $p{'427'}=1; $p{'428'}=1; $p{'429'}=1; $p{'430'}=1;
$p{'431'}=1; $p{'432'}=1; $p{'433'}=1; $p{'434'}=1; $p{'435'}=1; $p{'436'}=1; $p{'437'}=1; $p{'438'}=1; $p{'439'}=1; $p{'440'}=1;
$p{'441'}=1; $p{'442'}=1; $p{'443'}=1; $p{'444'}=1; $p{'445'}=1; $p{'446'}=1; $p{'447'}=1; $p{'448'}=1; $p{'449'}=1; $p{'450'}=1;
$p{'451'}=1; $p{'452'}=1; $p{'453'}=1; $p{'454'}=1; $p{'455'}=1; $p{'456'}=1; $p{'457'}=1; $p{'458'}=1; $p{'459'}=1; $p{'460'}=1;
$p{'461'}=1; $p{'462'}=1; $p{'463'}=1; $p{'464'}=1; $p{'465'}=1; $p{'466'}=1; $p{'467'}=1; $p{'468'}=1; $p{'469'}=1; $p{'470'}=1;
$p{'471'}=1; $p{'472'}=1; $p{'473'}=1; $p{'474'}=1; $p{'475'}=1; $p{'476'}=1; $p{'477'}=1; $p{'478'}=1; $p{'479'}=1; $p{'480'}=1;
$p{'481'}=1; $p{'482'}=1; $p{'483'}=1; $p{'484'}=1; $p{'485'}=1; $p{'486'}=1; $p{'487'}=1; $p{'488'}=1; $p{'489'}=1; $p{'490'}=1;
$p{'491'}=1; $p{'492'}=1; $p{'493'}=1; $p{'494'}=1; $p{'495'}=1; $p{'496'}=1; $p{'497'}=1; $p{'498'}=1; $p{'499'}=1; $p{'500'}=1;
$p{'501'}=1; $p{'502'}=1; $p{'503'}=1; $p{'504'}=1; $p{'505'}=1; $p{'506'}=1; $p{'507'}=1; $p{'508'}=1; $p{'509'}=1; $p{'510'}=1;
$p{'511'}=1; $p{'512'}=1; $p{'513'}=1; $p{'514'}=1; $p{'515'}=1; $p{'516'}=1; $p{'517'}=1; $p{'518'}=1; $p{'519'}=1; $p{'520'}=1;
$p{'521'}=1; $p{'522'}=1; $p{'523'}=1; $p{'524'}=1; $p{'525'}=1; $p{'526'}=1; $p{'527'}=1; $p{'528'}=1; $p{'529'}=1; $p{'530'}=1;
$p{'531'}=1; $p{'532'}=1; $p{'533'}=1; $p{'534'}=1; $p{'535'}=1; $p{'536'}=1; $p{'537'}=1; $p{'538'}=1; $p{'539'}=1; $p{'540'}=1;
$p{'541'}=1; $p{'542'}=1; $p{'543'}=1; $p{'544'}=1; $p{'545'}=1; $p{'546'}=1; $p{'547'}=1; $p{'548'}=1; $p{'549'}=1; $p{'550'}=1;
$p{'551'}=1; $p{'552'}=1; $p{'553'}=1; $p{'554'}=1; $p{'555'}=1; $p{'556'}=1; $p{'557'}=1; $p{'558'}=1; $p{'559'}=1; $p{'560'}=1;
$p{'561'}=1; $p{'562'}=1; $p{'563'}=1; $p{'564'}=1; $p{'565'}=1; $p{'566'}=1; $p{'567'}=1; $p{'568'}=1; $p{'569'}=1; $p{'570'}=1;
$p{'571'}=1; $p{'572'}=1; $p{'573'}=1; $p{'574'}=1; $p{'575'}=1; $p{'576'}=1; $p{'577'}=1; $p{'578'}=1; $p{'579'}=1; $p{'580'}=1;
$p{'581'}=1; $p{'582'}=1; $p{'583'}=1; $p{'584'}=1; $p{'585'}=1; $p{'586'}=1; $p{'587'}=1; $p{'588'}=1; $p{'589'}=1; $p{'590'}=1;
$p{'591'}=1; $p{'592'}=1; $p{'593'}=1; $p{'594'}=1; $p{'595'}=1; $p{'596'}=1; $p{'597'}=1; $p{'598'}=1; $p{'599'}=1; $p{'600'}=1;
$p{'601'}=1; $p{'602'}=1; $p{'603'}=1; $p{'604'}=1; $p{'605'}=1; $p{'606'}=1; $p{'607'}=1; $p{'608'}=1; $p{'609'}=1; $p{'610'}=1;
$p{'611'}=1; $p{'612'}=1; $p{'613'}=1; $p{'614'}=1; $p{'615'}=1; $p{'616'}=1; $p{'617'}=1; $p{'618'}=1; $p{'619'}=1; $p{'620'}=1;
$p{'621'}=1; $p{'622'}=1; $p{'623'}=1; $p{'624'}=1; $p{'625'}=1; $p{'626'}=1; $p{'627'}=1; $p{'628'}=1; $p{'629'}=1; $p{'630'}=1;
$p{'631'}=1; $p{'632'}=1; $p{'633'}=1; $p{'634'}=1; $p{'635'}=1; $p{'636'}=1; $p{'637'}=1; $p{'638'}=1; $p{'639'}=1; $p{'640'}=1;
$p{'641'}=1; $p{'642'}=1; $p{'643'}=1; $p{'644'}=1; $p{'645'}=1; $p{'646'}=1; $p{'647'}=1; $p{'648'}=1; $p{'649'}=1; $p{'650'}=1;
$p{'651'}=1; $p{'652'}=1; $p{'653'}=1; $p{'654'}=1; $p{'655'}=1; $p{'656'}=1; $p{'657'}=1; $p{'658'}=1; $p{'659'}=1; $p{'660'}=1;
$p{'661'}=1; $p{'662'}=1; $p{'663'}=1; $p{'664'}=1; $p{'665'}=1; $p{'666'}=1; $p{'667'}=1; $p{'668'}=1; $p{'669'}=1; $p{'670'}=1;
$p{'671'}=1; $p{'672'}=1; $p{'673'}=1; $p{'674'}=1; $p{'675'}=1; $p{'676'}=1; $p{'677'}=1; $p{'678'}=1; $p{'679'}=1; $p{'680'}=1;
$p{'681'}=1; $p{'682'}=1; $p{'683'}=1; $p{'684'}=1; $p{'685'}=1; $p{'686'}=1; $p{'687'}=1; $p{'688'}=1; $p{'689'}=1; $p{'690'}=1;
$p{'691'}=1; $p{'692'}=1; $p{'693'}=1; $p{'694'}=1; $p{'695'}=1; $p{'696'}=1; $p{'697'}=1; $p{'698'}=1; $p{'699'}=1; $p{'700'}=1;
?>
<html><head><title><?=$title?></title></head>
<body bgcolor=#404040 topmargin=0 leftmargin=0>
<table width=100% border=0 bgcolor=black>
<td valign=top><font color=white size=0><?=$title?></td>
<?
$cattxt = "";
$i = 1;
foreach ($cat as $k=>$v) { $cattxt .= $i++.". <a href=?group=$k>$v</a><br>"; }
if (strlen($cattxt) > 1) {
echo "<td width=$catwidth $catbg><font size=0>";
echo "<b>$catname</b><br>";
echo $cattxt. $i++ . ". <a href=?group=0>ทั้งหมด</a><br>";
echo "</td>";
}
?>
</table>
<font color=white size=0>
<?
if (!isset($_GET['group']) && $starttoexplore != "yes") {
echo "<center>โปรดเลือกกลุ่มภาพ";
} else {
$i = 0;
$dir_handle = opendir(".");
while ($list = readdir($dir_handle)) {
if (strtolower(substr($list,-4)) == ".jpg")
if ($p{substr($list,$imgnamewidth,3)} == $_GET['group'] ||
$_GET['group'] == "0" ||
($starttoexplore == "yes" && !isset($_GET['group'])))
echo "<a href=".$list."><img src=$list border=0 alt=$list $imgsize></a> ";
}
}
?>
<hr color=black width=50%>
<center><?=$updated?>
</body></html>
จำนวน : 131 บรรทัด