[x] ปิดหน้าต่างนี้
Powered by KokoStuDio.NeT @V.3
Untitled
  • HOME
  • HOSTING
  • DOMAIN
  • RESELLER
  • ORDER
  • PAYMENT
  • CONTACT
  • LOGIN
  • HOTLINE 
08-663-96298(TRUE)
08-3382-3296(AIS)
 
 

 
  

พัฒนาโปรแกรม
Function ที่ใช้ร่วมกับระบบสมาชิก V 1.2

เสาร์ ที่ 12 เดือน กรกฏาคม พ.ศ.2551

บทความที่ 12 ความนิยม: 1.5 จาก 5 ดาว (11 ผู้ร่วมโหวด )




 

ให้เอา function ไปใส่ไว้ใน \include\function.in.php

function showerror($showmsg) { 
 echo" <table width=\"400\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
  <tr>
    <td><div align=\"left\">
      <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">
        <tbody>
          <tr>
            <td width=\"20\"><img id=\"b1_r1_c1\" height=\"15\" alt=\"\" 
                  src=\"images/main/b1_r1_c1.gif\" width=\"20\" border=\"0\" /></td>
            <td background=\"images/main/b1_top_bg.gif\"><img src=\"images/main/b1_top_bg.gif\" alt=\"\" name=\"b1_r1_c3\" width=\"10\" 
                  height=\"15\" 
                  border=\"0\" id=\"b1_r1_c3\" /></td>
            <td width=\"19\"><img id=\"b1_r1_c4\" height=\"15\" alt=\"\" 
                  src=\"images/main/b1_r1_c4.gif\" width=\"19\" 
              border=\"0\" /></td>
          </tr>
        </tbody>
      </table>
      <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">
        <tbody>
          <tr>
            <td width=\"10\" background=\"images/main/b1_r2_c1.gif\" 
                  height=\"100%\"><img id=\"b1_r2_c1\" height=\"10\" alt=\"\" 
                  src=\"images/main/b1_r2_c1.gif\" width=\"10\" border=\"0\" /></td>
            <td valign=\"top\" width=\"100%\" background=\"images/main/b1_ct_bg.gif\" 
                height=\"100%\"><div align=\"center\">
              <table cellspacing=\"0\" cellpadding=\"0\" width=\"98%\" border=\"0\">
                <tbody>
                  <tr>
                    <td><table width=\"100%\" cellspacing=\"5\">
                      <tr>
                        <td><div align=\"center\"><strong><img 
                  src=\"images/loader.gif\" alt=\"\" name=\"b1_r4_c1\" width=\"24\" height=\"24\" border=\"0\" id=\"b1_r4_c1\" /><br />
                          <br />
                          $showmsg</strong><br />
                        </div></td>
                      </tr>
                    </table></td>
                  </tr>
                </tbody>
              </table>
            </div></td>
            <td width=\"10\" background=\"images/main/b1_r2_c5.gif\" 
                  height=\"100%\"><img id=\"b1_r2_c5\" height=\"10\" alt=\"\" 
                  src=\"images/main/b1_r2_c5.gif\" width=\"10\" 
              border=\"0\" /></td>
          </tr>
        </tbody>
      </table>
      <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">
        <tbody>
          <tr>
            <td width=\"20\"><img id=\"b1_r4_c1\" height=\"15\" alt=\"\" 
                  src=\"images/main/b1_r4_c1.gif\" width=\"20\" border=\"0\" /></td>
            <td background=\"images/main/b1_foot_bg.gif\"><img id=\"b1_r4_c3\" 
                  height=\"15\" alt=\"\" src=\"images/main/b1_foot_bg.gif\" width=\"10\" 
                  border=\"0\" /></td>
            <td width=\"19\"><img id=\"b1_r4_c4\" height=\"15\" alt=\"\" 
                  src=\"images/main/b1_r4_c4.gif\" width=\"19\" 
              border=\"0\" /></td>
          </tr>
        </tbody>
      </table>
    </div></td>
  </tr>
</table>";
} // end fuction checktel

//************************************************************************************
======================================

function displaydate($x) {
 $thai_m=array("มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฏาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม");
 $date_array=explode("-",$x);
 $y=$date_array[0];
 $m=$date_array[1]-1;
 $d=$date_array[2];

 $m=$thai_m[$m];
 $y=$y+543;

 $displaydate="$d $m $y";
 return $displaydate;
} // end function displaydate

function checkemail($checkemail) { 
 if(ereg( "^[^@ ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|net|com|gov|mil|org|edu|int)$",$checkemail) )  {
  return true; 
 } else {
  return false; 
 }
} // end fuction checkemail

function checktel($checktel) { 
 if(ereg( "[0-9]",$checktel) )  {
  return true; 
 } else {
  return false; 
 } 
} // end fuction checktel


 


 



เข้าชม : 1391


พัฒนาโปรแกรม 5 อันดับล่าสุด

      Function ที่ใช้ร่วมกับระบบสมาชิก V 1.2 12 / ก.ค. / 2551
      ระบบเฉพาะสมาชิกเท่านั้นที่เข้าได้ 12 / ก.ค. / 2551


Untitled Document

  Narongrit Dot Net เว็บเพื่อความคิดสร้างสรรค์-:- Infinity  Dream -:- ความฝันที่ไม่มีวันสิ้นสุด -:- 

  
ชื่อผู้ใช้ :
รหัสผ่าน :
manesz
5 ก.ย. 2553
birdv1
2 ก.ย. 2553
nufc1980
29 ส.ค. 2553
สมาชิกทั้งหมด 674 ท่าน
nutthavp,1 ม.ค. 2513 เวลา 07:00:00
สมาชิกออนไลน์
© สงวนลิขสิทธิ์ พ.ศ. 2550 โดย โกโก้สตูดิโอ ดอท เน็ท
132/1 ม.8 ซ.สุขสวัสดิ์ ต.โพธิ์กลาง อ.เมือง จ.นครราชสีมา 30000