รบกวน เซียน PHP ช่วยหน่อยครับ(ภาค3)

เริ่มโดย Godfather, 20 สิงหาคม 2007, 15:43:02

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

Godfather

ขอบคุณ คุณ Kennn  มากเลยครับได้ความรู้เกี่ยวกับ PHP มากเลยครับ ได้เข้าใจอะไรหลายๆอย่าง ตัวผมเองก็พอจะมีความรู้เรื่อง Html  บ้าง นิดหน่อย แต่ PHP นี่บอดสนิท  เดี๋ยวคงต้องไปศึกษาเพิ่มเติม คุณ Kennn พอช่วยแนะนำหนังสือ หรือเวบ ที่สอนเรื่อง PHP หน่อยได้เปล่าครับ จะได้ศึกษาและทำความเข้าใจ

ผมเชื่อว่าหลายๆคนคงได้ความรู้จากการตั้งกระทู้นี้
ขอบคุณครับ :)
[Color = Red]ท่านที่ ว่างงานอยู่กำลังมองหางาน หรือ ท่านที่ต้องการรายได้เสริม เชิญทางนี้ครับ [Color]http://www.thaiseoboard.com/index.php/topic,65120.0.html

Godfather

คุณ Kennn ครับ ในหน้า main ตรงแทบ title bar ข้อความคือ Made@Thailand  แต่ พอคลิกเข้าไปในส่วนต่างๆไม่ว่าจะเป็น ในหน้าสินค้า หรือส่วนอื่น ยังคงเป็น Oscommerce ไม่ทราบว่าผมต้องไปแก้ที่ไหนครับ
ขอบคุณครับ
[Color = Red]ท่านที่ ว่างงานอยู่กำลังมองหางาน หรือ ท่านที่ต้องการรายได้เสริม เชิญทางนี้ครับ [Color]http://www.thaiseoboard.com/index.php/topic,65120.0.html

janeos

ผมแนะนำให้ลองทำเว็บที่เป็น static html หรือ php แบบง่ายๆ มาเล่นๆดูก่อนซัก 1 web หน่ะครับ

เริ่มต้นด้วย OSCommerce เลย ผมว่ามันหนักไปหน่อย ซึ่งอาจจะทำให้ท้อได้ครับ

แล้วยิ่งไอ้ oscommerce นี่ โครงสร้างโปรแกรมมันมั่วมากๆเลยอ่ะ ไม่มีการจัดการระบบ template, module หรือ plugin ต่างๆให้เป็นระบบเลย
ผมมาซึ้งเอาตอนทำ web อันนี้แหละครับ --> เสื้อผ้าเด็ก
ทำมาเป็นเดือนแล้ว ถึงวันนี้ยังไม่เสร็จเลย

แอบโฆษณาให้เค้าซักหน่อย 555  ;D
[direct=http://www.siamseeker.com]ข่าว[/direct]  [direct=http://www.dunweb.net]ดันเว็บ[/direct] [direct=http://www.dunweb.net]โปรโมทเว็บ[/direct],

kennn


อ้างถึง
ขอบคุณ คุณ Kennn  มากเลยครับได้ความรู้เกี่ยวกับ PHP มากเลยครับ ได้เข้าใจอะไรหลายๆอย่าง ตัวผมเองก็พอจะมีความรู้เรื่อง Html  บ้าง นิดหน่อย แต่ PHP นี่บอดสนิท  เดี๋ยวคงต้องไปศึกษาเพิ่มเติม คุณ Kennn พอช่วยแนะนำหนังสือ หรือเวบ ที่สอนเรื่อง PHP หน่อยได้เปล่าครับ จะได้ศึกษาและทำความเข้าใจ

ผมนึกถึงตอนที่เริ่มฝึกเขียนเว็ปใหม่ๆ เริ่มแรกผมได้มีโอกาสไปเรียนสร้างเว็ปด้วยภาษา HTML โชคดีที่การเรียนในคราวนั้นมันเข้าสมองผมเป็นอย่างดี ผมรู้จักหัดประยุกต์ใช้โค้ดต่างๆ ทั้งคิดเอง ทั้งดู Source ของคนอื่น ต่อมาเริ่มรู้จักภาษา ASP เพราะอาจารย์ที่สอนเค้าทำให้ดูเล่นๆในการสร้างฟอร์มแล้วส่งข้อมูล ผมเลยลองเรียนรู้ด้วยตนเองจากหนังสือ กว่าจะเข้าใจก้อปาไปเกือบ 6 เดือน เคล็ดลับทำให้เราเข้าใจได้เร็วคือ ทำ work shop (ตัวอย่างตามหนังสือ หรือ ตัวอย่างตามเว็ปต่างๆ) แล้วก็เข้าแนวทางเดิมคือ ลองประยุกต์ดัดแปลงให้เป็นในแบบที่เราต้องการ ตอนนั้นผมเริ่มหาหนังสืออ่านเยอะขึ้น เจอร้านหนังสือที่ไหนผมมักจะเข้าไปอ่านและเก็บข้อมูลไว้แล้วเอากลับมาลองใช้ (ผมงกครับไม่ค่อยชอบเสียตังซื้อ) พอทำ work shop เยอะมากขึ้น ประยุกต์ใช้มากขึ้น ผมก้อยิ่งเข้าถึงเนื้อหาที่แท้จริงมากขึ้น คือ เวลาเราประยุกต์ใช้งานในแบบของเราเอง เราจะเกิดข้อสงสัยมากมายว่า เราต้องการแบบนี้จะต้องเขียนโค้ดอย่างไร เมื่อเจอปัญหาผมก้อมักจะเข้าเว็ปบอร์ด แล้วเราจะหาเว็ปบอร์ด ASP จากไหนละ ผมก้อใช้ Google search หาครับ Board ASP , สอน ASP อื่นๆอีกมากมาย ตอนหลังได้คำตอบจากเว็ปบอร์ดช้าผมก้อจะอาศัย Google เลยครับ สมมุติคุณสงสัยว่า "isset" ไว้ทำอะไร ผมก้อใส่ลงไปในช่องว่า php isset ค้นหาที่ประเทศไทยด้วยก้อได้ ผมก้อจะได้คำตอบที่เร็วขึ้น พอผมเริ่มทำแบบนี้ ผมกลับมาติดการเข้าเนตแทนที่จะเข้าร้านหนังสือครับ เรียกว่าความรู้อยู่ใกล้ๆเรานี่เอง ต่อมาผมก้อเริ่มทิ้ง ASP มาหา VB ผมก็ซื้อหนังสือมาสักเล่มนึง แล้วก้ออาศัย Google ในการหาคำตอบ กับ Source code พอเริ่มคล่องผมก้อมาหัดเขียน PHP ผมก็ทำตาม Step เดิม ผมก้อจะมีหนังสืออยู่เล่มนึงเหมือนกัน ผมแนะนำว่าปัจจุบันจะซื้อเล่มไหนก็ได้ที่มันเล่มหนาๆใหญ่ๆไปเลยนะ สาระมีเกือบครบถ้วนเหมือนกันซะส่วนใหญ่ อาจจะต่างกันที่ Work shop คุณอาจจะเลือกหนังสือที่มี Work shop ที่เจ๋งๆเก็บไว้ก้อได้ อย่างน้อยเราก้อเอามาต่อยอดได้ เอาเป็นว่าจากที่ผมได้ search คำว่า "สอน php" มันทำให้ผมเข้าใจอะไรขึ้นเยอะและไม่ต้องหาซื้อหนังสือมาหลายเล่ม แถมอยากจะศึกษาภาษาโปรแกรมอะไรเพิ่มเติมต่อไปผมก้อทำได้

ปล.ผมไม่รู้จะแนะนำเว็ปไหนให้คุณดี เพราะผมคิดว่าคนเรามักจะชอบเนื้อหาที่สนใจต่างกัน คุณอาจจะชอบเว็ปที่คุณค้นหามาได้เองก็เป็นได้เพราะคุณอ่านเว็ปนั่นแล้วเข้าใจ แต่ผมไม่ขัดความต้องการครับ http://www.phpthailand.com


อ้างถึง
คุณ Kennn ครับ ในหน้า main ตรงแทบ title bar ข้อความคือ Made@Thailand  แต่ พอคลิกเข้าไปในส่วนต่างๆไม่ว่าจะเป็น ในหน้าสินค้า หรือส่วนอื่น ยังคงเป็น Oscommerce ไม่ทราบว่าผมต้องไปแก้ที่ไหนครับ
ขอบคุณครับ

ผมเข้าไปดูในเว็ปแล้วนะครับ ไม่รู้ว่าอยู่ตรงส่วนไหน ยังไงเอารูปให้ดูหน่อยได้มะครับจะได้ตอบถูก
[direct=https://www.strikeprofx.com/th/]StrikeProFx โบรกเกอร์ Forex ฝาก-ถอนรวดเร็ว[/direct]
[direct=https://www.strikeprofx.com/]StrikeProFx Best Forex Broker Fast Deposit&Withdraw[/direct]

Godfather

ขอบคุณ มากครับที่แนะนำเวบให้ เดี๋ยวสิ้นเดือนเข้ากรุงเทพคงต้องไปหาหนังสือมาอ่านสักเล่มล่ะ

อันนี้เป็นรูปหน้าแรก Title Bar ปกติ ก็ขึ้นเป็น Made@Thailand


ส่วนหน้าตัวสินค้า หรือ หน้าอื่นยังคงเป็น Oscommerce


ขอบคุณครับ

[Color = Red]ท่านที่ ว่างงานอยู่กำลังมองหางาน หรือ ท่านที่ต้องการรายได้เสริม เชิญทางนี้ครับ [Color]http://www.thaiseoboard.com/index.php/topic,65120.0.html

kennn

การเปลี่ยน Title ของ OScommerce ถ้าเป็นภาษา EN (default) มันจะมีส่วนให้เราแก้ไขได้อยู่แล้วในส่วนของ Admin ครับ ผมไม่แน่ใจว่าอยู่ในส่วนที่ชื่อ My Store หรือป่าวจำชื่อไม่ได้ แล้วจะมีส่วนของ Title ให้แก้ครับ

แต่ถ้าเป็นภาษาอื่น ส่วนมากจะต้องไปแก้ที่ไฟล์ของแต่ละภาษาครับ โดยไปที่

includes\languages\ไฟล์ภาษาที่ต้องการเปลี่ยน Title แล้วดู code บรรทัดที่มีประโยคนี้

page title
define('TITLE', STORE_NAME);

ตรง STORE_NAME เป็นตัวแปรที่เก็บค่ามาจากฐานข้อมูลนะครับ หากต้องการเปลี่ยนเป็นข้อความของเราต้องใส่เครื่องหมาย " " กำกับข้อความด้วย

EX.

page title
define('TITLE', "Made@Thailand");

ขอย้ำนะครับว่า ถ้าเป็นภาษา EN ให้ไปแก้ในส่วนของ Admin ดีกว่าเพราะมันจะง่ายในการ Manage เวลาที่เราต้องการแก้ไขในภายหน้า

[direct=https://www.strikeprofx.com/th/]StrikeProFx โบรกเกอร์ Forex ฝาก-ถอนรวดเร็ว[/direct]
[direct=https://www.strikeprofx.com/]StrikeProFx Best Forex Broker Fast Deposit&Withdraw[/direct]

Godfather

ได้ล่ะครับ ขอบคุณมากๆ
อย่างนี้เราก็สามารถเพิ่มข้อความให้ยาวกว่านี้ได้ใช่ป่ะครับ
ได้ความรู้มากๆเลย

ถามต่อ(ยิ่งทำยิ่งมันมือ)
1.ตรงแถบด้านบนตรงแถบเมนู (TOP >> Catalog)
ผมอยากเปลี่ยนคำว่า TOP เป็น Home
2.ถ้าผมจะใส่โค๊ดปฎิทินทางด้านซ้ายต่อจากรูปPayPal ผมต้องเอาโค๊ดไปแทรกที่ไฟล์อะไรครับ
3.Background ด้านในที่ยังขาวอยู่ ถ้าผมจะใส่ Background ต้องแก้ที่ไหน
ขอบคุณครับ
[Color = Red]ท่านที่ ว่างงานอยู่กำลังมองหางาน หรือ ท่านที่ต้องการรายได้เสริม เชิญทางนี้ครับ [Color]http://www.thaiseoboard.com/index.php/topic,65120.0.html

Godfather

นาฬิกา และปฏิทิน แบบเวบนี้ ครับ (ไฟล์นามสุก .swf ครับ)http://www.forensic.police.go.th/region11/index.html
[Color = Red]ท่านที่ ว่างงานอยู่กำลังมองหางาน หรือ ท่านที่ต้องการรายได้เสริม เชิญทางนี้ครับ [Color]http://www.thaiseoboard.com/index.php/topic,65120.0.html

Godfather

[Color = Red]ท่านที่ ว่างงานอยู่กำลังมองหางาน หรือ ท่านที่ต้องการรายได้เสริม เชิญทางนี้ครับ [Color]http://www.thaiseoboard.com/index.php/topic,65120.0.html

kennn

อ้างถึง
1.ตรงแถบด้านบนตรงแถบเมนู (TOP >> Catalog)
ผมอยากเปลี่ยนคำว่า TOP เป็น Home

ตรงนี้ก้อเข้าไปดูในส่วนของไฟล์ Languge ของแต่ละภาษานะครับ ในส่วนของ define('HEADER_TITLE_TOP', 'Top'); แก้ตรงคำว่า Top นะครับ ไล่ลงมาก้อจะเป็นส่วนของคำว่า Catalog แก้เอาตามใจชอบครับ

อ้างถึง
2.ถ้าผมจะใส่โค๊ดปฎิทินทางด้านซ้ายต่อจากรูปPayPal ผมต้องเอาโค๊ดไปแทรกที่ไฟล์อะไรครับ
นาฬิกา และปฏิทิน แบบเวบนี้ ครับ (ไฟล์นามสุก .swf ครับ)http://www.forensic.police.go.th/region11/index.html

แทรกที่ไฟล์ column_right.php ครับ เพิ่มอย่างไร ให้กลับไปดูวิธีใส่ Track&trace ที่ถูกต้องครับ ใส่คล้ายๆกัน เพียงแต่เปลี่ยนจาก Tag Link เป็น code นาฬิกาแทน หรือ เป็น code calendar แทน



code calendar

<!-- Begin
var now = new Date();
var month_array = new Array("january","february","march","April","May","June","July","August","September","October","November","December");
document.write("<form name=date_list><table bgcolor=#C8C8FF><tr style='font-family:MS Sans Serif;font-size:8pt;'><td style='font-family:MS Sans Serif;font-size:8pt;'>");
document.write("<select name=month onchange=change_month(this.options.selectedIndex)>");
for(i=0;i<month_array.length;i++)
{
if (now.getMonth() != i)
{document.write ("<option value="+i+">"+month_array[i]);}
else
{document.write ("<option value="+i+" selected>"+month_array[i]);}

}
document.write("</select>");
document.write("</td><td>");
document.write ("<select name=year onchange=change_year(this.options[this.options.selectedIndex])>");
for(i=1950;i<3000;i++)
{
if (now.getYear() != i)
{document.write("<option value="+i+">"+i);}
else
{document.write("<option value="+i+" selected>"+i);}
}
document.write("</select></td></tr><tr style='font-family:MS Sans Serif;font-size:8pt;'><td colspan=2><center>");

document.write("<table bgcolor=white border=0 cellspacing = 0 cellpading = 0 width=100%><tr style='font-family:MS Sans Serif;font-size:8pt;' bgcolor=#006699 align=center>");
document.write("<td><font color=yellow>M</font></td><td><font color=pink>T</td><td><font color=#00ff66>W</td><td><font color=orange>Th</td><td><font color=#CCF2FF>F</td><td ><font color=violet>S</td><td ><font color=red>S</td>");
document.write("</tr><tr style='font-family:MS Sans Serif;font-size:8pt;'>");
for(j=0;j<6;j++)
{
for(i=0;i<7;i++)
{
document.write("<td style='font-family:MS Sans Serif;font-size:8pt;' align=center id=d"+i+"r"+j+"></td>")
}
document.write("</tr>");
}

document.write("</table>");

document.write("</center></from></td></tr></table>");

var show_date = new Date();

function set_cal(show_date)
{
begin_day = new Date (show_date.getYear(),show_date.getMonth(),1);
begin_day_date = begin_day.getDay();
end_day = new Date (show_date.getYear(),show_date.getMonth()+1,1);
count_day = (end_day - begin_day)/1000/60/60/24;
input_table(begin_day_date,count_day);
}
set_cal(show_date);

function input_table(begin,count)
{
init();
j=0;
if (begin!=0){i=begin-1;}else{i=6}
for (c=1;c<count+1;c++)
{
colum_name = eval("d"+i+"r"+j);
if ((now.getDate() == c)&&(show_date.getMonth() == now.getMonth())&&(show_date.getYear() == now.getYear())) {colum_name.style.backgroundColor = "#ff3399";colum_name.style.color = "white";};
colum_name.innerText = c;
i++;
if (i==7){i=0;j++;}
}
}

function init()
{
for(j=0;j<6;j++)
{
for(i=0;i<7;i++)
{
colum_name = eval("d"+i+"r"+j);
colum_name.innerText = "-";
colum_name.style.backgroundColor ="";
colum_name.style.color ="";
}
}
}

function change_month(sel_month)
{
show_date = new Date(show_date.getYear(),sel_month,1);
set_cal(show_date);
}

function change_year(sel_year)
{
sel_year = sel_year.value;
show_date = new Date(sel_year,show_date.getMonth(),1);
set_cal(show_date);
}
// End -->


*** ใส่โค้ดนี้ก่อนเครื่องหมายปิด Tag PHP(?>)





code clock

<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj5" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="139" height="135">
<param name="movie" value="clockcalendarwhite.swf">
<param name="quality" value="High">
<param name="wmode" value="transparent">
<embed src="clockcalendarwhite.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj5" width="139" height="135" quality="High" wmode="transparent"></object>

*** embed src  ให้ใส่เป็น path ที่ถูกต้อง ที่คุณจะเก็บไฟล์ .swf ไว้ เช่น
ไฟล์ชื่อ clockcalendarwhite.swf เก็บไฟล์นี้ไว้ใน folder SWF path ที่ถูกต้องก็จะเป็น
<embed src="SWF/clockcalendarwhite.swf"



อ้างถึง
3.Background ด้านในที่ยังขาวอยู่ ถ้าผมจะใส่ Background ต้องแก้ที่ไหน
ขอบคุณครับ

ตรงนี้ให้เข้าไปดูในส่วนของ stylesheet.css ในบรรทัด

BODY {
  background: #ffffff url(images/taradBG449.jpg);
  color: #575757;
  margin: 10px;
}

ที่จริงมีรูปภาพเป็น Blackground อยู่แล้ว แต่รูปภาพ Blackground ถูก Blackground ในส่วนของ Table ที่เป็นสีขาว(#ffffff) ทับไว้อยู่จึงมองไม่เห็น หากต้องการให้ Blackground ที่เป็นสีขาวอยู่ เป็นรูปภาพอย่างเดียวก้อตัด code #ffffff ทิ้งไป แต่ถ้าหากต้องการให้เป็นสีอื่น ก้อแทนโค้ดสีเข้าไปในโค้ด #ffffff  ถ้าใช้ Dreamweaver เป็นก้อเปลี่ยนง่ายครับ
[direct=https://www.strikeprofx.com/th/]StrikeProFx โบรกเกอร์ Forex ฝาก-ถอนรวดเร็ว[/direct]
[direct=https://www.strikeprofx.com/]StrikeProFx Best Forex Broker Fast Deposit&Withdraw[/direct]

EThaiZone

สู้ๆ มาให้กำลังใจ

ผมไม่ค่อยเล่น osc เลยไม่รู้จะตอบยังไง  :P

minute1

อ้างถึงจาก: janeos ใน 23 สิงหาคม 2007, 15:51:02
ผมแนะนำให้ลองทำเว็บที่เป็น static html หรือ php แบบง่ายๆ มาเล่นๆดูก่อนซัก 1 web หน่ะครับ

เริ่มต้นด้วย OSCommerce เลย ผมว่ามันหนักไปหน่อย ซึ่งอาจจะทำให้ท้อได้ครับ

แล้วยิ่งไอ้ oscommerce นี่ โครงสร้างโปรแกรมมันมั่วมากๆเลยอ่ะ ไม่มีการจัดการระบบ template, module หรือ plugin ต่างๆให้เป็นระบบเลย
ผมมาซึ้งเอาตอนทำ web อันนี้แหละครับ --> เสื้อผ้าเด็ก
ทำมาเป็นเดือนแล้ว ถึงวันนี้ยังไม่เสร็จเลย

แอบโฆษณาให้เค้าซักหน่อย 555  ;D

สนับสนุนความคิดเห็น janeos  โครงสร้างมันมั่วมาก คนพัฒนา plugin แยะมากรักษามาตรฐานไม่อยู่ ผมเคยมาบ่นเรื่อง customize osCommerce ทีหนึ่งแล้วที่นี่แหละ

Customize ครั้งแรกพอได้ พอเจอ requirement รอบสองนี่แทบคลั่ง เพราะ code มันเละตั้งแต่รอบแรกแล้ว

ถ้าไม่คิดจะอัพเดทก็ไม่เป็นไรครับ พยายามต่อไปครับ  8)

แต่ผมยอมแพ้บายครับ ไม่ชอบ Back Office ใช้ยากคนใช้บ่นกันทุกราย มาขอให้เราแก้ให้ แต่จนปัญญาจริงๆ
เพราะอากาศเปลี่ยนแปลงบ่อย ดูแลสุขภาพให้ดีนะครับ...ดูแลให้ดี ทั้งสุขภาพกาย และ สุขภาพใจ[direct=http://enablue.googlepages.com/][/direct][direct=http://infectionwatch.blogspot.com/][/direct][direct=http://weddingchrome.blogspot.com/][/direct][direct=http://smilecity.edicypages.com/][/direct]

Godfather

อ้างถึงจาก: minute1 ใน 24 สิงหาคม 2007, 14:46:33
อ้างถึงจาก: janeos ใน 23 สิงหาคม 2007, 15:51:02
ผมแนะนำให้ลองทำเว็บที่เป็น static html หรือ php แบบง่ายๆ มาเล่นๆดูก่อนซัก 1 web หน่ะครับ

เริ่มต้นด้วย OSCommerce เลย ผมว่ามันหนักไปหน่อย ซึ่งอาจจะทำให้ท้อได้ครับ

แล้วยิ่งไอ้ oscommerce นี่ โครงสร้างโปรแกรมมันมั่วมากๆเลยอ่ะ ไม่มีการจัดการระบบ template, module หรือ plugin ต่างๆให้เป็นระบบเลย
ผมมาซึ้งเอาตอนทำ web อันนี้แหละครับ --> เสื้อผ้าเด็ก
ทำมาเป็นเดือนแล้ว ถึงวันนี้ยังไม่เสร็จเลย

แอบโฆษณาให้เค้าซักหน่อย 555  ;D

สนับสนุนความคิดเห็น janeos  โครงสร้างมันมั่วมาก คนพัฒนา plugin แยะมากรักษามาตรฐานไม่อยู่ ผมเคยมาบ่นเรื่อง customize osCommerce ทีหนึ่งแล้วที่นี่แหละ

Customize ครั้งแรกพอได้ พอเจอ requirement รอบสองนี่แทบคลั่ง เพราะ code มันเละตั้งแต่รอบแรกแล้ว

ถ้าไม่คิดจะอัพเดทก็ไม่เป็นไรครับ พยายามต่อไปครับ  8)

แต่ผมยอมแพ้บายครับ ไม่ชอบ Back Office ใช้ยากคนใช้บ่นกันทุกราย มาขอให้เราแก้ให้ แต่จนปัญญาจริงๆ

ขอบคุณสำหรับคำแนะนำนะครับ
คือความจริงแล้วผมก็ทำ บนเครื่องด้วย ทำบนเวบด้วย ทำไปพร้อมกันเลย และยัง Backup ข้อมูลไว้เผื่อฉุกเฉินด้วย คงไม่น่าจะมีอะไรผิดพลาด ผิดก็ยังมี Backup
[Color = Red]ท่านที่ ว่างงานอยู่กำลังมองหางาน หรือ ท่านที่ต้องการรายได้เสริม เชิญทางนี้ครับ [Color]http://www.thaiseoboard.com/index.php/topic,65120.0.html

minute1

ถ้าอยากศึกษา coding แบบเป็นระบบระเบียบ ลองไปศึกษา OpenCart ดูครับตัวนี่เข้าใจง่าย
โครงสร้างเป็น MVC แต่ว่ามันพึ่งเริ่มมาไม่นาน ต้องอาศัยความรู้ในการ Coding แยะพอสมควร Bug ก็แยะ
แต่โครงสร้าง Clear เข้าใจง่ายครับ ผมมีโปรเจกหนึ่งกำลังใช้ตัวนี้อยู่ ยังไม่เสร็จดีเท่าไร

ตัวนี้เป็น Open source ยังไงก็สนับสนุนเขา Daniel เขาหน่อยก็แล้วกัน ผมว่าจะ Donate เขาเหมือนกัน
รอลูกค้าจ่ายตังค์ก่อน  ;D ;D   
เพราะอากาศเปลี่ยนแปลงบ่อย ดูแลสุขภาพให้ดีนะครับ...ดูแลให้ดี ทั้งสุขภาพกาย และ สุขภาพใจ[direct=http://enablue.googlepages.com/][/direct][direct=http://infectionwatch.blogspot.com/][/direct][direct=http://weddingchrome.blogspot.com/][/direct][direct=http://smilecity.edicypages.com/][/direct]

kennn

Oscommerce ผมก้อว่าเค้าวางการ manage source ไม่ค่อยดีเท่าไหร่ แต่ถ้าจะเปิดเว็ปขายของสักเว็ป ผมสนับสนุน OScommerce เต็มที่เลยนะครับ อย่างน้อยก้อยังมีการป้องกันมากกว่า Open source แบบอื่นๆ ผมเล่นมาหลายตัวมาก แต่ละตัวก้อ manage source ยากต่างกันไป ไอ้ที่ง่ายก็ง่ายซะจนไม่น่าใช้ ผมว่า OScommerce ก้อเป็นทางเลือกที่ดีครับ เพราะมี module ต่างๆให้ใช้มากมาย ถ้าเล่นเป็นนะ เช่น ส่งsmsหลังจากลูกค้าจบorder , Tree menu category , ฯลฯ แต่ที่สำคัญความปลอดภัยครับ
[direct=https://www.strikeprofx.com/th/]StrikeProFx โบรกเกอร์ Forex ฝาก-ถอนรวดเร็ว[/direct]
[direct=https://www.strikeprofx.com/]StrikeProFx Best Forex Broker Fast Deposit&Withdraw[/direct]

Godfather

งง ครับ
ตอนนี้ผม copy code ที่ทำวันก่อนมาไว้ที่ column_right.php และเปลี่ยนชื่อ Box  เป็น Calendar&Clock แล้ว

โค๊ดคือ
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
   <td class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt="" width="11" height="26"></td>
   <td width="100%" class="infoBoxHeading">Calendar&Clock</td>
   <td class="infoBoxHeading" nowrap><img src="images/infobox/corner_right.gif" border="0" alt="" width="11" height="26"></td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
   <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
   <td class="boxText"><a href="http://track.thailandpost.co.th/trackinternet/Default.aspx"><img src="images/Track&trance.gif" alt="Track&Trace" align="center" border="0" target="_blank"/></a></td>
 </tr>
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
 </tr>
</table>
</td>
</tr>

แล้วผมต้องเอาโค๊ดไปแทรกตรงไหนครับรบกวนช่วยไฮไลท์สีให้เห็นหน่อยครับ
ขอบคุณครับ
[Color = Red]ท่านที่ ว่างงานอยู่กำลังมองหางาน หรือ ท่านที่ต้องการรายได้เสริม เชิญทางนี้ครับ [Color]http://www.thaiseoboard.com/index.php/topic,65120.0.html

kennn

อ้างถึง

<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt="" width="11" height="26"></td>
    <td width="100%" class="infoBoxHeading">Calendar&Clock</td>
    <td class="infoBoxHeading" nowrap><img src="images/infobox/corner_right.gif" border="0" alt="" width="11" height="26"></td>
  </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
  <tr>
    <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
  </tr>
  <tr>
    <td class="boxText">
<a href="http://track.thailandpost.co.th/trackinternet/Default.aspx"><img src="images/Track&trance.gif" alt="Track&Trace" align="center" border="0" target="_blank"/></a>
</td>
  </tr>
  <tr>
    <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
  </tr>
</table>
</td>
  </tr>
</table>
</td>
</tr>


แทรกตรงบรรทัดสีแดงนะครับ อันนี้หมายถึง Tag Link ไงครับ  :-\

แต่โค้ด Calendar ที่ผมให้ไปมันเป็น javascript เลยต้องใส่แบบนี้ครับ

อ้างถึง

Calendar Table

<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt="" width="11" height="26"></td>
    <td width="100%" class="infoBoxHeading">Calendar&Clock</td>
    <td class="infoBoxHeading" nowrap><img src="images/infobox/corner_right.gif" border="0" alt="" width="11" height="26"></td>
  </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
  <tr>
    <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
  </tr>
  <tr>
    <td class="boxText">
<SCRIPT language=JavaScript>
<!-- Begin
var now = new Date();
var month_array = new Array("january","february","march","April","May","June","July","August","September","October","November","December");
document.write("<form name=date_list><table  bgcolor=#C8C8FF><tr style='font-family:MS Sans Serif;font-size:8pt;'><td style='font-family:MS Sans Serif;font-size:8pt;'>");
document.write("<select name=month onchange=change_month(this.options.selectedIndex)>");
for(i=0;i<month_array.length;i++)
{
if (now.getMonth() != i)
{document.write ("<option value="+i+">"+month_array[i]);}
else
{document.write ("<option value="+i+" selected>"+month_array[i]);}

}
document.write("</select>");
document.write("</td><td>");
document.write ("<select name=year onchange=change_year(this.options[this.options.selectedIndex])>");
for(i=1950;i<3000;i++)
{
if (now.getYear() != i)
{document.write("<option value="+i+">"+i);}
else
{document.write("<option value="+i+" selected>"+i);}
}
document.write("</select></td></tr><tr style='font-family:MS Sans Serif;font-size:8pt;'><td colspan=2><center>");

document.write("<table bgcolor=white border=0 cellspacing = 0 cellpading = 0 width=100%><tr style='font-family:MS Sans Serif;font-size:8pt;' bgcolor=#006699 align=center>");
document.write("<td><font  color=yellow>M</font></td><td><font  color=pink>T</td><td><font color=#00ff66>W</td><td><font color=orange>Th</td><td><font color=#CCF2FF>F</td><td ><font color=violet>S</td><td ><font color=red>S</td>");
document.write("</tr><tr style='font-family:MS Sans Serif;font-size:8pt;'>");
for(j=0;j<6;j++)
{
for(i=0;i<7;i++)
{
   document.write("<td  style='font-family:MS Sans Serif;font-size:8pt;' align=center id=d"+i+"r"+j+"></td>")
}
document.write("</tr>");
}

document.write("</table>");

document.write("</center></from></td></tr></table>");

var show_date = new Date();

function set_cal(show_date)
{
begin_day = new Date (show_date.getYear(),show_date.getMonth(),1);
begin_day_date = begin_day.getDay();
end_day = new Date (show_date.getYear(),show_date.getMonth()+1,1);
count_day = (end_day - begin_day)/1000/60/60/24;
input_table(begin_day_date,count_day);
}
set_cal(show_date);

function input_table(begin,count)
{
init();
j=0;
if (begin!=0){i=begin-1;}else{i=6}
for (c=1;c<count+1;c++)
{
colum_name = eval("d"+i+"r"+j);
if ((now.getDate() == c)&&(show_date.getMonth() == now.getMonth())&&(show_date.getYear() == now.getYear())) {colum_name.style.backgroundColor = "#ff3399";colum_name.style.color = "white";};
colum_name.innerText =  c;
i++;
if (i==7){i=0;j++;}
}
}

function init()
{
for(j=0;j<6;j++)
{
for(i=0;i<7;i++)
{
colum_name = eval("d"+i+"r"+j);
colum_name.innerText =  "-";
colum_name.style.backgroundColor ="";
colum_name.style.color ="";
}
}
}

function change_month(sel_month)
{
show_date = new Date(show_date.getYear(),sel_month,1);
set_cal(show_date);
}

function change_year(sel_year)
{
sel_year = sel_year.value;
show_date = new Date(sel_year,show_date.getMonth(),1);
set_cal(show_date);
}
//  End -->
</SCRIPT>

</td>
  </tr>
  <tr>
    <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
  </tr>
</table>
</td>
  </tr>
</table>
</td>
</tr>

*** เปลี่ยนสีกรอบเอาเองนะครับ code สี อยู่ใน source เนี่ยแหละครับลองแก้เองนะ



ต่อมาแถวของ Clock อันนี้เป็น Tag ของการใส่ Flash

อ้างถึง

Clock Table

<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt="" width="11" height="26"></td>
    <td width="100%" class="infoBoxHeading">Calendar&Clock</td>
    <td class="infoBoxHeading" nowrap><img src="images/infobox/corner_right.gif" border="0" alt="" width="11" height="26"></td>
  </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
  <tr>
    <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
  </tr>
  <tr>
    <td class="boxText">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj5" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="139" height="135">
<param name="movie" value="
clockcalendarwhite.swf ">
<param name="quality" value="High">
<param name="wmode" value="transparent">
<embed src="clockcalendarwhite.swf" pluginspage="http://w>
ww.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj5" width="139" height="135" quality="High" wmode="transparent"></object>
</td>
  </tr>
  <tr>
    <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
  </tr>
</table>
</td>
  </tr>
</table>
</td>
</tr>

*** ตรงส่วนที่เป็นไฮไลสีน้ำเงินให้ใส่ Path(ที่อยู่ของไฟล์) กับชื่อไฟล์ ให้ถูกต้องนะครับ

อันนี้ไฟล์ clockcalendarwhite.swf
http://sv4.gushare.com/file.php?file=c11b34370da1c051fd88ff1d2f21de04


[direct=https://www.strikeprofx.com/th/]StrikeProFx โบรกเกอร์ Forex ฝาก-ถอนรวดเร็ว[/direct]
[direct=https://www.strikeprofx.com/]StrikeProFx Best Forex Broker Fast Deposit&Withdraw[/direct]

Godfather

อ่าได้ล่ะครับ ผมเอาแต่โค๊ดนาฬิกาด้านล่างที่เป็นไฟล์นามสกุล .swf ถ้าคลิกที่ตัวหนังสือมันจะเปลี่ยนเป็นปฏิทิน
แต่ที่นี่ ตรงตัวหนังสือ(ใต้นาฬิกา นี่เปลี่ยนเป็นสีอื่นนี่ทำไงครับ)

http://www.madeatthailand.biz/ ลองเข้าไปดูได้ครับ

กว่าจะได้ต้องรบกวนคุณ Kennn หลายรอบ
อย่างนี้ต้องขอคาราวะ 3 จอก
ขอบคุณคร๊าบบบบบ
[Color = Red]ท่านที่ ว่างงานอยู่กำลังมองหางาน หรือ ท่านที่ต้องการรายได้เสริม เชิญทางนี้ครับ [Color]http://www.thaiseoboard.com/index.php/topic,65120.0.html

kennn

ตัวหนังสือเปลี่ยนไม่ได้ครับ เพราะมันเป็น Code ที่อยู่ในไฟล์ swf

เอ่อ ... clock ไม่อยู่ตรงกลางของ Box นะครับ ใส่ Propertie ให้มันด้วยนะครับ

อ้างถึง

Clock Table

<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt="" width="11" height="26"></td>
    <td width="100%" class="infoBoxHeading">Calendar&Clock</td>
    <td class="infoBoxHeading" nowrap><img src="images/infobox/corner_right.gif" border="0" alt="" width="11" height="26"></td>
  </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
  <tr>
    <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
  </tr>
  <tr>
    <td class="boxText" align="center">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj5" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="139" height="135">
<param name="movie" value="clockcalendarwhite.swf ">
<param name="quality" value="High">
<param name="wmode" value="transparent">
<embed src="clockcalendarwhite.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj5" width="139" height="135" quality="High" wmode="transparent"></object>
</td>
  </tr>
  <tr>
    <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
  </tr>
</table>
</td>
  </tr>
</table>
</td>
</tr>

[direct=https://www.strikeprofx.com/th/]StrikeProFx โบรกเกอร์ Forex ฝาก-ถอนรวดเร็ว[/direct]
[direct=https://www.strikeprofx.com/]StrikeProFx Best Forex Broker Fast Deposit&Withdraw[/direct]

Godfather

เขียนโค๊ดสีแดงเพิ่มเข้าไปใช่มั้ยครับ
ถ้าใช่ เวลาแสดงผลหน้าเวบก็มีคำนั้นคิดมาด้วย อะครับ
[Color = Red]ท่านที่ ว่างงานอยู่กำลังมองหางาน หรือ ท่านที่ต้องการรายได้เสริม เชิญทางนี้ครับ [Color]http://www.thaiseoboard.com/index.php/topic,65120.0.html