?
Path : /home/admin/domains/happytokorea.com/public_html/ |
Current File : /home/admin/domains/happytokorea.com/public_html/menu-left-test.php |
<? if($_POST['email'] <> ""){ if (!preg_match("/^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$/i", trim($_POST['email']))) { echo '<script type="text/javascript">alert("อีเมล์ไม่ถูกต้อง");</script>' ; }else{ $result=$db->Query("insert into advertise (name_advertise,link_advertise) values ('{$_POST['email']}','".date("D d / M / Y H:i:s")."')"); if($result){ $error="ลงทะเบียนรับข่าวโปรโมชั่น สำเร็จ"; echo "<SCRIPT>alert(\"$error\"); </SCRIPT>\n"; } } } ?> <div class="col-md-3 col-sm-3 col-xs-12 col-left"> <? $rs=$db->Query("SELECT * FROM banner WHERE bannerInfo = 1 and bannerRanking= 1"); $arr=mysql_fetch_array($rs); if($arr['bannerID'] <> ""){ ?> <div style="font-size: 24px;font-weight: bold;background-color: #01b5f0;color: #fff;text-align: center;-webkit-border-radius: 10px;-moz-border-radius: 10px;border-radius: 10px;padding: 5px 0;"> <? echo $arr['bannerName']; ?></div> <p> </p> <div class="info-banner"> <a href="<? echo $arr['bannerLink']; ?>"> <img src="backend/images/banner/<? echo $arr['bannerPictureName']; ?>" class="img-responsive" alt="<? echo $arr['bannerName']; ?>" width="100%"></a> </div> <? } ?> <div style="font-size: 24px;font-weight: bold;background-color: #01b5f0;color: #fff;text-align: center;-webkit-border-radius: 10px;-moz-border-radius: 10px;border-radius: 10px;padding: 5px 0;"> แฮปปี้โคเรียนิวส์</div> <p> </p> <div class="embed-responsive embed-responsive-16by9" style="text-align: center;"> <iframe class="embed-responsive-item" width="560" height="315" src="https://www.youtube.com/embed/rBO95YAkSec" title="K Food Wellness in Thailand" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> <!--<iframe class="embed-responsive-item" width="560" height="315" src="https://www.youtube.com/embed/OtfbW8RI4og" title="2021 K-POP" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>--> </div> <br> <? $rs=$db->Query("SELECT * FROM banner WHERE bannerInfo = 1 and bannerRanking= 0"); $arr=mysql_fetch_array($rs); if($arr['bannerID'] <> ""){ ?> <div class="info-banner"> <a href="<? echo $arr['bannerLink']; ?>"> <img src="backend/images/banner/<? echo $arr['bannerPictureName']; ?>" class="img-responsive" alt="<? echo $arr['bannerName']; ?>" width="100%"> <div class="text" style="padding-top:5px;"> <span><? echo $arr['bannerName']; ?></span> </div> </a> </div> <? } ?> <? $rs=$db->Query("SELECT * FROM banner WHERE bannerInfo = 1 and bannerRanking= 2"); $arr=mysql_fetch_array($rs); if($arr['bannerID'] <> ""){ ?> <div class="info-banner"> <a href="<? echo $arr['bannerLink']; ?>"> <img src="backend/images/banner/<? echo $arr['bannerPictureName']; ?>" class="img-responsive" alt="<? echo $arr['bannerName']; ?>" width="100%"> <div class="text" style="padding-top:5px;"> <span><? echo $arr['bannerName']; ?></span> </div> </a> </div> <? } ?> <? $rs=$db->Query("SELECT * FROM banner WHERE bannerInfo = 1 and bannerRanking= 3"); $arr=mysql_fetch_array($rs); if($arr['bannerID'] <> ""){ ?> <div class="info-banner"> <a href="<? echo $arr['bannerLink']; ?>"> <img src="backend/images/banner/<? echo $arr['bannerPictureName']; ?>" class="img-responsive" alt="<? echo $arr['bannerName']; ?>" width="100%"> <div class="text" style="padding-top:5px;"> <span><? echo $arr['bannerName']; ?></span> </div> </a> </div> <? } ?> <!-- <div class="info-banner"> <div class="news"> <div class="title">แฮปปี้โคเรียนิวส์</div> <? /*$rs=$db->Query("SELECT * FROM contents WHERE CatID = 133 AND ContentPublic = 1 ORDER BY ContentID DESC "); $arr=mysql_fetch_array($rs); $data=$db->getRow('contents_photo',"WHERE ContentID ='{$arr['ContentID']}' ORDER BY id_p DESC "); ?> <div class="pic"><a href="travel-detail.php?id=<?=$arr['ContentID'];?>"> <? preg_match_all('/<img[^>]+src=[\'"]([^\'"]+)[\'"][^>]*>/i', $arr['ContentDetail'], $image); if( $image[1][0]) $thumbnail=$image[1][0]; else { $datame=$db->getRow('contents_photo',"WHERE ContentID ='{$arr['ContentID']}' ORDER BY id_p ASC "); $thumbnail="../backend/images/ContentPhoto/".$datame['picture']; } ?> <img src="<?=$thumbnail;?>" class="img-responsive" alt="<?=$arr['ContentName'];?>"></a></div> <div class="text" style=""><a href="travel-detail.php?id=<?=$arr['ContentID'];?>"><span><?=$arr['ContentName'];?></span> <?=$arr['ContentTitle'];?></a></div> <? */?> </div>--> <? $rs=$db->Query("SELECT * FROM banner WHERE bannerInfo = 2 ORDER BY bannerRanking DESC "); $arr=mysql_fetch_array($rs); if($arr['bannerID'] <> ""){ ?> <div style="margin-top:20px;"> <a target="_blank" href="<? echo $arr['bannerLink']; ?>"><img src="backend/images/banner/<? echo $arr['bannerPictureName']; ?>" class="img-responsive" alt="<? echo $arr['bannerName']; ?>"></a> </div> <? } ?> <div style="margin-top:20px;"><img src="img/lineat.png" style="img-responsive" width="100%" /></div> <div style="margin-top:20px;"> <div class="fb-page" data-href="https://www.facebook.com/happytokorea/" data-tabs="timeline" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="https://www.facebook.com/happytokorea/" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/happytokorea/">Happy Korea by K.T.C.C</a></blockquote></div> </div> <div class="e-newsletter"> <form method="post" id="form1"> <div>ลงทะเบียนรับข่าวโปรโมชั่น <button type="submit" class="btn btn-default btn-md" style="font-size: 18px; border: 2px solid #fff; background-color: #e1e1e1;border-radius:10px;">submit</button></div> <div style="margin-top: 10px;"> <div class="form-group"> <input type="text" name="email" id="email" placeholder="e-mail" class="form-control" style="background-color: #0e9dd9; color:#fff; font-weight: normal;border-radius:10px; text-align: center;"/> </div> </div> </form> </div> <!--<div class="credit"> <img src="img/banner-credit.jpg" class="img-responsive" alt=""> </div> <div style="margin-top:20px;"> <div class="title" style="color:#000; text-align:center; font-size:28px; font-weight:bold;">VISITOR</div> <div style="text-align:center;"><div align="center"><a href="http://www.amazingcounters.com"><img border="0" src="http://cc.amazingcounters.com/counter.php?i=3208014&c=9624355" alt="AmazingCounters.com"></a></div></div> </div>--> </div>