|
<! http://www.yonok.ac.th/burin/pat01.php > <? function getpost($v,$d){ global $gv; if ($_POST['updated'] <> "updated") { $gv{$v} = $d; } if (isset($_GET[$v])) { $gv{$v} = $_GET[$v]; } if (isset($_POST[$v])) { $gv{$v} = $_POST[$v]; } } getpost('title','YONOK faculty : บุรินทร์ รุจจนพันธุ์(Burin rujjanapan)'); getpost('keywords','yonok,college,programmer,teacher,lampang,thailand,clipper'); getpost('description','YONOK faculty : burin rujjanapan'); getpost('background','http://www.yonok.ac.th/burin/bg.gif'); getpost('bghead','http://www.yonok.ac.th/burin/bghead.gif'); getpost('name','บุรินทร์ รุจจนพันธุ์(Burin rujjanapan)'); getpost('addr1','Mobile.0-1992-7223 Home.0-5422-3684 E-mail.burin@yonok.ac.th'); getpost('addr2','อาจารย์สาขาวิทยาการคอมพิวเตอร์ คณะวิทยาศาสตร์'); getpost('addr3','วิทยาลัยโยนกลำปาง 52000 (Office. 0-5426-5170 Ext.210)'); getpost('logo','http://www.yonok.ac.th/burin/ynlogobw.gif'); getpost('photo','http://www.yonok.ac.th/burin/photo.jpg'); getpost('lastupdate','ปรับปรุง: 1 เมษายน 2546'); getpost('footer','ท่านมาเราขอบใจ ท่านไปเราขอบคุณ'); getpost('icon','http://www.yonok.ac.th/burin/b.gif'); getpost('heading1','สารบัญ'); getpost('bgcolor1','#808080'); getpost('bordercolor1','#800000'); getpost('t101','ผลงาน และกิจกรรม'); getpost('l101','http://www.thaiall.com/homepage/pat01'); getpost('t102','ฝึกอบรม และสัมมนา'); getpost('l102','http://www.yonok.ac.th/burin/training.htm'); getpost('t103','ประสบการณ์การสอน'); getpost('l103','http://www.yonok.ac.th/burin/teaching.htm'); getpost('t104','ผลการเรียนระดับตรี-โท'); getpost('l104','http://www.yonok.ac.th/burin/gradereport.htm'); getpost('t105','ภาพสวย อ.เยาวลักษณ์'); getpost('l105','http://www.thaiall.com/actress/athcity.htm'); if ($_GET{'style'} <> "mini") { getpost('t106','ภาพสวย อ.เกศริน'); getpost('l106','http://www.thaiall.com/actress/nuithcity.htm'); getpost('t107','ตัวอย่างแฟ้มเกรด'); getpost('l107','http://www.yonok.ac.th/burin/bcom302462.xls'); getpost('t108','Resume อย่างละเอียด'); getpost('l108','http://www.yonok.ac.th/me/burin.htm'); getpost('t109',''); getpost('l109',''); getpost('t110',''); getpost('l110',''); getpost('t111',''); getpost('l111',''); getpost('t112',''); getpost('l112',''); getpost('t113',''); getpost('l113',''); getpost('t114',''); getpost('l114',''); getpost('t115',''); getpost('l115',''); getpost('heading2','งานสอน เป็นทางการ'); getpost('bgcolor2','#000040'); getpost('bordercolor2','white'); getpost('t201','Clipper programming'); getpost('l201','http://www.yonok.ac.th/burin/clipper.htm'); getpost('t202','Survey of software'); getpost('l202','http://www.thaiall.com/learn/bcom101.htm'); getpost('t203','Intro. to computer'); getpost('l203','http://www.thaiall.com/learn/bcom201.htm'); getpost('t204','Operating system'); getpost('l204','http://www.thaiall.com/learn/bcom302.htm'); getpost('t205','C programming'); getpost('l205','http://www.thaiall.com/tc'); getpost('t206','Java programming'); getpost('l206','http://www.thaiall.com/class'); getpost('t207',''); getpost('l207',''); getpost('t208',''); getpost('l208',''); getpost('t209',''); getpost('l209',''); getpost('t210',''); getpost('l210',''); getpost('t211',''); getpost('l211',''); getpost('t212',''); getpost('l212',''); getpost('t213',''); getpost('l213',''); getpost('t214',''); getpost('l214',''); getpost('t215',''); getpost('l215',''); getpost('heading3','แนะนำเว็บไซต์'); getpost('bgcolor3','#400000'); getpost('bordercolor3','white'); getpost('t301','world lecture hall'); getpost('l301','http://www.utexas.edu/world/lecture'); getpost('t302','thaiall.com'); getpost('l302','http://www.thaiall.com'); getpost('t303','google.com'); getpost('l303','http://www.google.com'); getpost('t304','sansarn.com'); getpost('l304','http://www.sansarn.com'); getpost('t305','วิทยาลัยโยนก'); getpost('l305','http://www.yonok.ac.th'); getpost('t306',''); getpost('l306',''); getpost('t307',''); getpost('l307',''); getpost('t308',''); getpost('l308',''); getpost('t309',''); getpost('l309',''); getpost('t310',''); getpost('l310',''); getpost('t311',''); getpost('l311',''); getpost('t312',''); getpost('l312',''); getpost('t313',''); getpost('l313',''); getpost('t314',''); getpost('l314',''); getpost('t315',''); } $vt = ""; $i = 0; $bgcolor = "#ffffdd"; while( list ($k,$v) = each($gv)) { $i = $i + 1; if ($i > 14) { $bgcolor = "#ddffdd"; } if ($_GET{'style'} <> "mini" || $i <= 27) { $vt = $vt . "<tr bgcolor=$bgcolor><td>$i</td><td align=right>$k</td>"; $vt = $vt . "<td><input name=$k size=65 value='$v'></td></tr>\n"; } } $m = "<dd>โปรแกรมนี้ช่วยอาจารย์โยนกสร้างเว็บเพจของตนเองได้ง่ายมาก อาจารย์เพียงแต่มีสิ่งต่าง ๆ ที่จะมาประกอบเป็นเว็บเพจของตนเอง ซึ่งทุกคนมักจะมีอยู่แล้วเช่น แผนการสอน ตัวอย่างแบบฝึกหัด เป็นต้น <ol><b>pattern นี้ได้ 2 option</b> <li><a href=pat01.php>Standard option</a> (112 inputs): หน้านี้หละครับ <li><a href=pat01.php?style=mini>Mini option</a> (27 inputs): สำหรับท่านที่อยากเห็น option น้อย ๆ <li><b>Dynamic option</b> : เป็นการสร้าง default option ที่เลือกสรรแล้ว แต่ตัวเลือกนี้ผมมอบหมายให้เพื่อร่วมงาน ไปหาภาพสวย ๆ จาก internet อาจต้องใช้เวลาสักพัก แต่ถ้าท่านมีภาพสวย ๆ ก็ทำเป็น pattern ของตนเอง แล้วส่งมาให้ผมเผยแพร่ก็ยินดีครับ </ol> <center><form action=http://www.yonok.ac.th/burin/pat01.php method=post> <input name=updated type=submit value=updated> <br>[ หลังกดปุ่มนี้สามารถ save as.. ผลลัพธ์ไปเป็นเว็บของท่านได้เลย ]<br> <table bgcolor=#ddffff>$vt</table> <textarea name=messages cols=80 rows=20> <pre><ul>ลบข้อความในนี้แล้วพิมพ์ใหม่สิครับ พอกดปุ่ม update ก็จะได้เว็บที่ต้องการ เพียงแต่ save as .. ก็ได้เว็บของคุณแล้ว ใช้ html ได้ด้วยนะครับ เช่น <font color=red>hello red</font> จะเห็นผลหลังกดปุ่ม updated Your message here ... line 1 line 2 line 3 .<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>. .<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>. </ul></pre></textarea></form>"; getpost('messages',$m); ?> <html><head><title><?=$gv{'title'} ?></title> <meta http-equiv=content-type content="text/html; charset=windows-874"> <meta name=keywords content="<?=$gv{'keywords'} ?>"> <meta name=description content="<?=$gv{'description'} ?>"> <style type="text/css"> body{scrollbar-base-color:gray;font-family:microsoft sans serif;font-size:10pt;color:black;} A:link{COLOR:red;} A:visited{COLOR:purple;} A:hover{COLOR:black;TEXT-DECORATION:underline;} TD{FONT-SIZE:10pt;FONT-FAMILY:microsoft sans serif;} </style> </head> <body bgcolor=white leftmargin=0 topmargin=0 background=<?=$gv{'background'} ?>> <table width=100% cellpadding=0 cellspacing=0 bgcolor=#800000 background=<?=$gv{'bghead'} ?>> <tr><td><img src=<?=$gv{'logo'} ?>></td><td align=center> <font color=white size=4 face="microsoft sans serif"><?=$gv{'name'} ?></font><br> <font color=#ddffff face="microsoft sans serif" size=0> <?=$gv{'addr1'} ?><br> <?=$gv{'addr2'} ?><br> <?=$gv{'addr3'} ?></font> </td><td width=90 align=center><img src=<?=$gv{'photo'} ?>></td></tr></table> <br> <table width=99% cellpadding=0 cellspacing=0 border=0> <tr><td width=150 valign=top><font color=white> <b><?=$gv{'heading1'} ?></b> <? for ($i=101;$i<=115;$i++) { if (strlen($gv{'t'.$i}) > 0) { ?> <table width=140 height=20 cellpadding=1 cellspacing=1 border=0 bgcolor=<?=$gv{'bordercolor1'} ?>><tr><td bgcolor=<?=$gv{'bgcolor1'} ?>> <img src=<?=$gv{'icon'} ?>> <a href=<?=$gv{'l'.$i} ?> style="{color=#ffffdd;text-decoration:none;}"> <font color=white size=0> <?=$gv{'t'.$i} ?></font></a></td></tr></table> <table height=2 cellspacing=0><tr><td></td></tr></table> <? } } ?> <br><b><?=$gv{'heading2'} ?></b> <? for ($i=201;$i<=215;$i++) { if (strlen($gv{'t'.$i}) > 0) { ?> <table width=140 height=20 cellpadding=1 cellspacing=1 border=0 bgcolor=<?=$gv{'bordercolor2'} ?>><tr><td bgcolor=<?=$gv{'bgcolor2'} ?>> <img src=<?=$gv{'icon'} ?>> <a href=<?=$gv{'l'.$i} ?> style="{color=#ffffdd;text-decoration:none;}"> <font color=white size=0> <?=$gv{'t'.$i} ?></font></a></td></tr></table> <table height=2 cellspacing=0><tr><td></td></tr></table> <? } } ?> <br><b><?=$gv{'heading3'} ?></b> <? for ($i=301;$i<=315;$i++) { if (strlen($gv{'t'.$i}) > 0) { ?> <table width=140 height=20 cellpadding=1 cellspacing=1 border=0 bgcolor=<?=$gv{'bordercolor3'} ?>><tr><td bgcolor=<?=$gv{'bgcolor3'} ?>> <img src=<?=$gv{'icon'} ?>> <a href=<?=$gv{'l'.$i} ?> style="{color=#ffffdd;text-decoration:none;}"> <font color=white size=0> <?=$gv{'t'.$i} ?></font></a></td></tr></table> <table height=2 cellspacing=0><tr><td></td></tr></table> <? } } ?> <?=$gv{'lastupdate'} ?> </td><td bgcolor=black width=1></td><td valign=top bgcolor=#dddddd> <table cellspacing=0 border=0 height=1 width=100%><tr bgcolor=black><td></td></tr></table> <! start ===============================================> <?=$gv{'messages'} ?> <! stop ===============================================> <table cellspacing=0 border=0 height=1 width=100%><tr bgcolor=black><td></td></tr></table> </td><td bgcolor=black width=1></td></tr></table> <br> <table width=100% cellpadding=0 cellspacing=0 bgcolor=#800000 background=<?=$gv{'bghead'} ?>> <tr><td align=center><font color=white><?=$gv{'footer'} ?></td></tr> </table> </body></html> |