<div class="tool_bar"> <?php $sqlb = "select * from tb_air WHERE country_id = '".$country_id."' "; $resultb = mysql_query($sqlb); while ($rowb = mysql_fetch_array($resultb) ){ ?> <div class="m_bar"> <? if($rowb['month_id']=='1') { echo '<img src="images/m1.png" width="23" height="12" />';} else {echo '<img src="images/m1_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($rowb['month_id']=='2') { echo '<img src="images/m2.png" width="23" height="12" />';} else {echo '<img src="images/m2_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($rowb['month_id']=='3') { echo '<img src="images/m3.png" width="23" height="12" />';} else {echo '<img src="images/m3_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($rowb['month_id']=='4') { echo '<img src="images/m4.png" width="23" height="12" />';} else {echo '<img src="images/m4_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($rowb['month_id']=='5') { echo '<img src="images/m5.png" width="23" height="12" />';} else {echo '<img src="images/m5_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($rowb['month_id']=='6') { echo '<img src="images/m6.png" width="23" height="12" />';} else {echo '<img src="images/m6_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($rowb['month_id']=='7') { echo '<img src="images/m7.png" width="23" height="12" />';} else {echo '<img src="images/m7_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($rowb['month_id']=='8') { echo '<img src="images/m8.png" width="23" height="12" />';} else {echo '<img src="images/m8_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($rowb['month_id']=='9') { echo '<img src="images/m9.png" width="23" height="12" />';} else {echo '<img src="images/m9_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($rowb['month_id']=='10') { echo '<img src="images/m10.png" width="23" height="12" />';} else {echo '<img src="images/m10_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($rowb['month_id']=='11') { echo '<img src="images/m10.png" width="23" height="12" />';} else {echo '<img src="images/m11_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($rowb['month_id']=='12') { echo '<img src="images/m12.png" width="23" height="12" />';} else {echo '<img src="images/m12_1.png" width="23" height="12" />';} ?></div><? }?> </div>
<div class="tool_bar"> <?php $sqlb = "select * from tb_air WHERE country_id = '".$country_id."' "; $resultb = mysql_query($sqlb); $status = array(); while ($rowb = mysql_fetch_array($resultb) ){ if($rowb['month_id']=='1') { $status[1] = 1; }else if($rowb['month_id']=='2') { $status[2] = 1; }else if($rowb['month_id']=='3') { $status[3] = 1; }else if($rowb['month_id']=='4') { $status[4] = 1; }else if($rowb['month_id']=='5') { $status[5] = 1; }else if($rowb['month_id']=='6') { $status[6] = 1; }else if($rowb['month_id']=='7') { $status[7] = 1; }else if($rowb['month_id']=='8') { $status[8] = 1; }else if($rowb['month_id']=='9') { $status[9] = 1; }else if($rowb['month_id']=='10') { $status[10] = 1; }else if($rowb['month_id']=='11') { $status[11] = 1; }else if($rowb['month_id']=='12') { $status[12] = 1; } } ?> <div class="m_bar"> <? if($status[1]=='1') { echo '<img src="images/m1.png" width="23" height="12" />';} else {echo '<img src="images/m1_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($status[2]=='1') { echo '<img src="images/m2.png" width="23" height="12" />';} else {echo '<img src="images/m2_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($status[3]=='1') { echo '<img src="images/m3.png" width="23" height="12" />';} else {echo '<img src="images/m3_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($status[4]=='1') { echo '<img src="images/m4.png" width="23" height="12" />';} else {echo '<img src="images/m4_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($status[5]=='1') { echo '<img src="images/m5.png" width="23" height="12" />';} else {echo '<img src="images/m5_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($status[6]=='1') { echo '<img src="images/m6.png" width="23" height="12" />';} else {echo '<img src="images/m6_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($status[7]=='1') { echo '<img src="images/m7.png" width="23" height="12" />';} else {echo '<img src="images/m7_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($status[8]=='1') { echo '<img src="images/m8.png" width="23" height="12" />';} else {echo '<img src="images/m8_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($status[9]=='1') { echo '<img src="images/m9.png" width="23" height="12" />';} else {echo '<img src="images/m9_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($status[10]=='1') { echo '<img src="images/m10.png" width="23" height="12" />';} else {echo '<img src="images/m10_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($status[11]=='1') { echo '<img src="images/m10.png" width="23" height="12" />';} else {echo '<img src="images/m11_1.png" width="23" height="12" />';} ?></div> <div class="m_bar"> <? if($status[12]=='1') { echo '<img src="images/m12.png" width="23" height="12" />';} else {echo '<img src="images/m12_1.png" width="23" height="12" />';} ?></div>
<div class="tool_bar"> <?php $sqlb = "select * from tb_air WHERE country_id = '".$country_id."' "; $resultb = mysql_query($sqlb); while ($rowb = mysql_fetch_array($resultb) ){ $mon = (int)$rowb['month_id']; for($i=1;$i<=12;$i++){ echo '<div class="m_bar">'; if( $i === $mon ){ echo '<img src="images/m'.$i.'.png" width="23" height="12" />'; } else { echo '<img src="images/m'.$i.'_1.png" width="23" height="12" />'; } echo '</div>'; } } ?> </div>
<div class="tool_bar"> <?php $arrMon = array(); $sqlb = "select * from tb_air WHERE country_id = '".$country_id."' "; $resultb = mysql_query($sqlb); while ($rowb = mysql_fetch_array($resultb) ){ $mon = (int)$rowb['month_id']; $arrMon[] = $mon; } //วนลูป 12 เดือน for($i=1;$i<=12;$i++){ echo '<div class="m_bar">'; if( in_array($i, $arrMon) ){ echo '<img src="images/m'.$i.'.png" width="23" height="12" />'; } else { echo '<img src="images/m'.$i.'_1.png" width="23" height="12" />'; } echo '</div>'; } ?> </div>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง