| Author |
Message |
|
num
|
Post subject: dragon_html category version 1.3 Final นะจ๊ะ Posted: 15 Mar 2009, 21:15 |
|
Joined: 28 Jan 2009, 11:28 Posts: 304
|
เวอร์ชั่น 1.3 Final http://jquery.jitwitya.com/DragonHtmlCa ... 3Final.zipเวอร์ชั่นนี้ 1.3Final ที่เปลี่ยนคือ เปลี่ยนเยอะมากจำไม่ได้ใส่อะไรเข้าไปบ้าง =================================== เวอร์ชั่น 1.2.2 http://www.ziddu.com/download/4580159/D ... 2.rar.htmlเวอร์ชั่นก่อนพอใช้ไปสักพักแล้วมาสังเกตเห็นว่ามันเรียงลำดับไม่ได้นี่หว่า เห็นโปรแกรมทำงานไม่ได้แล้วอึดอัดเลยแก้ใหม่ซะเลย เวอร์ชั่นนี้ นอกจากแก้ให้เรียงลำดับได้ แล้วยังเพิ่ม cache ข้อมูลจากตารางลง text file แล้วก็ สามารถเปลี่ยน query ที่ใช้ดึงข้อมูลจากตาราง และสามารถแกไขรูปแบบ tree และ breadcrumb โดยใช้ callback function ครับ  กว่าจะทำเสร็จเกือบเด้ด ท่าน Dr.Yes เอาไปไว้ที่ลิงค์ให้หน่อยคร้าบ ...........ผ่านวันเดียวเองมีเวอร์ชั่นใหม่อีกแระ จะบอกให้ Dr.Yes เอาลิงค์ไปแปะอีกก็เกรงใจ  แปะไว้ตรงนี้ก่อนละกัน เวอร์ชั่น 1.2.1 คลาส callback สามารถอ้างอิงกลับไปหา คลาส category ได้ด้วย ทำให้ในคลาส callback สามารถเรียกใช้ function ต่างๆ ใน class category ได้ครับแหะๆ เจอ error อีก 1 ตัว  แก้เสร็จแล้วดังนั้น version ใหม่ต้องเป็น 1.2.2 http://www.ziddu.com/download/4580159/D ... 2.rar.html
_________________ In your life, There's no such a thing as you can do it or you can't!! but, it's a matter of 'doing it or not doing it!! the talent of hard work the first step to the nex level, i think is courageously stepping into the unknown
Last edited by num on 18 Mar 2009, 09:32, edited 8 times in total.
|
|
| |
The following user would like to thank num for this post:
|
|
 |
|
 |
|
Dr.Yes
|
Post subject: Re: dragon_html category version 1.2 Posted: 15 Mar 2009, 22:03 |
|
 |
| Site Admin |
 |
Joined: 19 Jan 2009, 12:33 Posts: 324 Location: สะพานสูง, กรุงเทพฯ
|
เพิ่มในหน้า Download แล้วครับ 
_________________ "I'm not a doctor", said Dr.Yes"What we have done for ourselves alone, dies with us; What we have done for others and the world, remains and is immortal", Albert Pike1 2 3
|
|
| |
The following user would like to thank Dr.Yes for this post:
|
|
 |
|
 |
|
num
|
Post subject: Re: dragon_html category version 1.2 Posted: 15 Mar 2009, 22:22 |
|
Joined: 28 Jan 2009, 11:28 Posts: 304
|
ขอบคุณครับ แต่ตอนนี้มันมี 4 field แล้วนะ 
_________________ In your life, There's no such a thing as you can do it or you can't!! but, it's a matter of 'doing it or not doing it!! the talent of hard work the first step to the nex level, i think is courageously stepping into the unknown
|
|
| |
The following user would like to thank num for this post:
|
|
 |
|
 |
|
danya
|
Post subject: Re: dragon_html category version 1.2 Posted: 15 Mar 2009, 22:37 |
|
Joined: 19 Jan 2009, 13:04 Posts: 402 Location: อยู่ที่ไหนก็ได้...โตแล้ว
|
ไปเพิ่มฟิลด์ display_order เปล่า อิอิอิ... ผมขอถามหน่อยอะ... ตรงทำดรอบดาว์นลิสท์ ถ้ามันมีหลายๆ ชั้น ลงไป 5-6 ชั้น มันไม่เปลืองคิวรี่เหรอครับ เว็บผม กำหนดไวเแค่ 3 ชั้น... แต่ผมไม่รู้ว่า ของพี่หนุ่มเขียนยังไง ดูโค้ดแล้วปวดหัว สไตล์ใคร สไตล์มันจริงๆ 
_________________ ขอบคุณซักคำ มันยากเกินไปไช่ไหม!!!...
|
|
| |
The following user would like to thank danya for this post:
|
|
 |
|
 |
|
danya
|
Post subject: Re: dragon_html category version 1.2 Posted: 15 Mar 2009, 22:39 |
|
Joined: 19 Jan 2009, 13:04 Posts: 402 Location: อยู่ที่ไหนก็ได้...โตแล้ว
|
ผมทำแบบนี้อะ... กำหนดไว้ 3 ชั้นพอ 555+ Code:
function getForumDropDownList($forumID)
{
global $db;
global $CONFIG;
$SQL = $db->query("SELECT forum_id, title FROM forum WHERE parentid = -1 AND forumStatus = 'show' ORDER BY displayorder");
if ( $db->numrows($SQL) <> 0)
{
while ( $row = $db->fetch_array($SQL))
{
$selected = "";
if ($forumID == $row['forum_id']) $selected = "selected";
$dropDownList .= "<option value='' " . $selected ."> " . $row['title'] . "</option>";
$pSQL = $db->query("SELECT forum_id, title FROM forum WHERE parentid = " . $row['forum_id'] . " AND forumStatus = 'show' ORDER BY displayorder");
if ( $db->numrows($pSQL) <> 0)
{
while ( $pForum = $db->fetch_array($pSQL))
{
$selected = "";
if ($forumID == $pForum['forum_id']) $selected = "selected";
$dropDownList .= "<option value='" . $pForum['forum_id'] . "' " . $selected ."> |---" . $pForum['title'] . "</option>";
$fSQL = $db->query("SELECT forum_id, title FROM forum WHERE parentid = " . $pForum['forum_id'] . " AND forumStatus = 'show' ORDER BY displayorder");
if ( $db->numrows($fSQL) <> 0)
{
while ( $fForum = $db->fetch_array($fSQL))
{
$selected = "";
if ($forumID == $fForum['forum_id']) $selected = "selected";
$dropDownList .= "<option value='" . $fForum['forum_id'] . "' " . $selected ."> |---" . $fForum['title'] . "</option>";
}
}
}
}
}
}
return $dropDownList;
}
_________________ ขอบคุณซักคำ มันยากเกินไปไช่ไหม!!!...
|
|
| |
The following user would like to thank danya for this post:
|
|
 |
|
 |
|
num
|
Post subject: Re: dragon_html category version 1.2 Posted: 15 Mar 2009, 22:55 |
|
Joined: 28 Jan 2009, 11:28 Posts: 304
|
ไม่เปลือง query หรอก ที่เขียนไว้มัน query เดียวอะ ที่เปลืองอาจจะเป็นเปลือง memory นิดหน่อย เพราะโหลดมาใส่ใน array ทั้งตารางเลย 
_________________ In your life, There's no such a thing as you can do it or you can't!! but, it's a matter of 'doing it or not doing it!! the talent of hard work the first step to the nex level, i think is courageously stepping into the unknown
|
|
| |
The following user would like to thank num for this post:
|
|
 |
|
 |
|
num
|
Post subject: Re: dragon_html category version 1.3 Final นะจ๊ะ Posted: 19 Jul 2009, 19:15 |
|
Joined: 28 Jan 2009, 11:28 Posts: 304
|
|
_________________ In your life, There's no such a thing as you can do it or you can't!! but, it's a matter of 'doing it or not doing it!! the talent of hard work the first step to the nex level, i think is courageously stepping into the unknown
|
|
| |
The following user would like to thank num for this post:
|
|
 |
|
 |
|
Dr.Yes
|
Post subject: Re: dragon_html category version 1.3 Final นะจ๊ะ Posted: 20 Jul 2009, 10:14 |
|
 |
| Site Admin |
 |
Joined: 19 Jan 2009, 12:33 Posts: 324 Location: สะพานสูง, กรุงเทพฯ
|
|
เอาลงไปแล้น
ไฟล์ใหญ่มากมาย
_________________ "I'm not a doctor", said Dr.Yes"What we have done for ourselves alone, dies with us; What we have done for others and the world, remains and is immortal", Albert Pike1 2 3
|
|
| |
The following user would like to thank Dr.Yes for this post:
|
|
 |
|
 |
|
num
|
Post subject: Re: dragon_html category version 1.3 Final นะจ๊ะ Posted: 20 Jul 2009, 19:37 |
|
Joined: 28 Jan 2009, 11:28 Posts: 304
|
Dr.Yes wrote: เอาลงไปแล้น
ไฟล์ใหญ่มากมาย ขอบคุณคร้าบ ไฟล์โปรแกรมที่เขียนแค่ 100k แต่พอดีใส่ Ext-JS เข้าไปด้วยอะ แหะๆ 
_________________ In your life, There's no such a thing as you can do it or you can't!! but, it's a matter of 'doing it or not doing it!! the talent of hard work the first step to the nex level, i think is courageously stepping into the unknown
|
|
| |
The following user would like to thank num for this post:
|
|
 |
|
 |
|