Theme Vnpec.com

Dima

Administrator
Staff member
http://vnpec.com

Trước khi rip
minhgiap3a.jpg


Sau Khi Rip

minhgiap3b.jpg


Download
 

o0Ngoc_kute0o

Thành viên mới
các bạn ơi mình mới online , chưa hiểu gì lắm có bạn nào tốt bụng thì chỉ mình với nhá . ban gái chỉ cho mình chút thì càng tốt hihihi:hyt25:
 

matbuon_ccbb

Thành viên mới
Theme quá đẹp! Nhưng mong minhgiap chỉ giúp 1 chút về cái theme này. Minh muốn phần thể hiện block trái có đóng khung như phần thể hiện block phải (từng block con tách nhau ra). Có hình minh họa đính kèm! Mong you giúp đỡ. Mình đã xem thử mà không biết phải làm sao.
 

Dima

Administrator
Staff member
phần thể hiện 2 bên block không khác nhau là mấy, bạn hãy mở file theme.php ra rồi so sánh, trong theme có ghi rõ từng phần đó.
Việc này không khó nhưng mình muốn bạn tự làm, đây mới chỉ là bắt đầu, nếu như bạn muốn làm cái lớn lao hơn.
 

matbuon_ccbb

Thành viên mới
Rất cảm ơn bạn về việc trả lời nhanh chóng. Phải nói thực mình cũng đã chọc ngoáy vào nhiều theme rồi, nên mình biết nó ở vị trí nào. Riêng cái theme này mình cũng đã so sánh với theme mặc định Nukevn nhưng không thấy nó khác gì mấy nên mới cần bạn chỉ bảo. Nếu được mong bạn giúp đỡ. Thanks!
 

Dima

Administrator
Staff member
Mở file theme.php

Tìm đến phần thể hiển block trái và phải
Tìm
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\">\n";
echo "<tr>\n";
echo "<tr height=\"30\">\n"
. " <td background=\"".INCLUDE_PATH."themes/minhgiap3/images/des.jpg\">\n";
if ($link != "") {
echo "&nbsp;&nbsp;<a class=\"A_white\" href=\"".$link."\">&nbsp;&nbsp;".$title."&nbsp;</a>";
}else{
echo "<font class=A_white><center>&nbsp;".$title."&nbsp;</center></font>";
}
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td height=\"1\"></td>\n";
echo "</tr>\n";

echo "<tr>\n";
echo "<td>\n";
echo "<table border=\"0\" width=\"100%\" cellpadding=\"3\" bgcolor=\"FFFFFF\" style=\"border-collapse: collapse\">\n";
echo "<tr>\n";
echo "<td>$content</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr><td height=\"2\"></td></tr>\n";
echo "</table>\n";
Thay bằng
echo "<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#C4D7FF\">\n";
echo "<tr>\n";
echo "<td height=\"19\">\n";
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\" height=\"19\">\n";
echo "<tr>\n";
echo "<td height=\"1\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"1\" height=\"1\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\">\n";
echo "<tr>\n";
echo "<td width=\"1\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"1\" height=\"1\"></td>\n";
echo "<tr height=\"30\">\n"
. " <td background=\"".INCLUDE_PATH."themes/minhgiap3/images/des.jpg\">\n";
if ($link != "") {
echo "&nbsp;&nbsp;<a class=\"A_white\" href=\"".$link."\">&nbsp;&nbsp;".$title."&nbsp;</a>";
}else{
echo "<font class=A_white><center>&nbsp;".$title."&nbsp;</center></font>";
}
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<table border=\"0\" width=\"100%\" cellpadding=\"3\" style=\"border-collapse: collapse\">\n";
echo "<tr>\n";
echo "<td>$content</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";

Tìm tiếp
echo "<td valign=\"top\" bgcolor=\"#CBE7FF\" width=\"2\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"2\" height=\"1\"></td>\n";
Xóa đi để làm mất cột màu xanh song song mới block.

Hoặc Copy và save lại file theme.php với đoạn mã dưới.
<?php

/************************************************************/
/* Nh?ng gam màu ch? ??o */
/************************************************************/

$bgcolor1 = "#FFFFFF";
$bgcolor2 = "#DBDEE3";
$bgcolor3 = "#E1E4E8";
$bgcolor4 = "#246494";
$textcolor1 = "#000000";
$textcolor2 = "#000000";

/************************************************************/
/* Xác l?p M? và ?óng b?ng */
/************************************************************/

function OpenTable() {
echo "<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"5\" bgcolor=\"#FFFFFF\" style=\"border-collapse: collapse\" bordercolor=\"#BBBBBB\"><tr><td>";
}
function OpenTablevn() {
echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#FFFFFF\" style=\"border-collapse: collapse\" bordercolor=\"#BBBBBB\"><tr><td>";
}
function CloseTable() {
echo"</td></tr></table>\n";
}

function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"10\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}

/************************************************************/
/* Th? hi?n tên module hi?n hành */
/************************************************************/

function mod_title() {
global $module_name, $adminfile, $home, $module_title, $page_title2;//TH04 / 18.07.06
if(defined('NV_ADMIN')) { $tentrang = "<a href=\"".$adminfile.".php\">".$module_title."</a>"; }
elseif($home==1) { $tentrang = "<a href=\"index.php\">".$module_title."</a>"; }
else {
$tentrang = "<a href=\"modules.php?name=$module_name\">$module_title</a>";
if($page_title2!="") $tentrang = "$tentrang &raquo; $page_title2";
}//END
echo "<table border=\"0\" width=\"100%\" cellpadding=\"3\" style=\"border-collapse: collapse\">\n";
echo "<tr>\n";
echo "<td><img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/mod_titl.gif\" width=\"8\" height=\"9\"> <b>$tentrang</b></td>\n";
echo "</tr>\n";
echo "</table>\n";
}

/************************************************************/
/* Th? hi?n tiêu ?? */
/************************************************************/


function title($text) {
OpenTable();
echo "<center><font class=\"title\"><b>$text</b></font></center>";
CloseTable();
echo "<br>";
}

/************************************************************/
/* Th? hi?n tên ch? ?? */
/************************************************************/

function categoryname($cat_name) {
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\">\n";
echo "<tr>\n";
echo "<td height=\"15\">\n";
echo"<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"
. " <TBODY>"
. " <TR>"
. " <TD width=620 background=".INCLUDE_PATH."themes/minhgiap3/images/Bar.jpg height=20>"
. " <P "
. " style=\"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 50px\"><B><FONT "
. " face=Verdana color=#FFC23B size=1><SPAN id=Label1 "
. " style=\"FONT-SIZE: 10pt\">$cat_name&nbsp;</SPAN></FONT></B></P></TD></TR></TBODY></TABLE>"
."";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td bgcolor=\"#D2D6D7\" height=\"1\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td height=\"3\"></td>\n";
echo "</tr>\n";
echo "</table>\n";
}

/************************************************************/
/* Th? hi?n ph?n ??u trang */
/************************************************************/

function themeheader() {
global $datafold, $adminfile, $module_title, $module_name, $name;
echo"<body bgcolor=\"#DFE2E3\" topmargin=\"0\" leftmargin=\"0\" rightmargin=\"0\" bottommargin=\"0\">\n\n";
echo "<table border=\"0\" width=\"786\" cellpadding=\"0\" style=\"border-collapse: collapse\" align=\"center\">\n";

echo "<tr>\n";
echo "<td>\n";
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\">\n";
echo "<tr>\n";
echo "<td background=\"".INCLUDE_PATH."themes/minhgiap3/images/kleft.gif\" width=\"6\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"6\" height=\"1\"></td>\n";
echo "<td>\n";
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" bgcolor=\"#FFFFFF\" style=\"border-collapse: collapse\">\n";
echo "<tr>\n";
echo "<td>\n";


echo"<table id=\"table1\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">"
. " <tbody><tr>"
. " <td background=\"VNPEC_files/bgleft.jpg\" height=\"220\" width=\"20%\"></td>"
. " <td align=\"center\" height=\"220\" valign=\"top\" width=\"976\">"
. " <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"976\">"
. " <tbody><tr>"
. " <td height=\"105\" width=\"976\">"
. " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"976\">"
. " <tbody><tr>"
. " <td rowspan=\"4\" height=\"105\" width=\"232\">"
. " <a href=\"http://www.vnpec.com/\"><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/header_01.jpg\" border=\"0\" height=\"105\" width=\"232\"></a></td>"
. " <td colspan=\"3\"><a href=\"http://www.vnpec.com/\"><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/header_02.jpg\" border=\"0\" height=\"59\" width=\"744\"></a></td>"
. " </tr>"
. " <tr>"
. " <td colspan=\"3\" bgcolor=\"#def2f9\" height=\"6\" width=\"744\"></td>"
. " </tr>"
. " <tr>"
. " <td bgcolor=\"#def2f9\" height=\"35\" width=\"5\"></td>"
. " <td background=\"".INCLUDE_PATH."themes/minhgiap3/images/header_05.jpg\" height=\"35\" width=\"734\">"
. " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"734\">"
. " <tbody><tr>"
. " <td align=\"right\" height=\"35\" width=\"91\"><a class=\"ca1\" href=\"http://vnpec.com/index.php?usv=aboutus\">Trang chá»§</a></td>"
. " <td align=\"right\" height=\"35\" width=\"91\"><a class=\"ca1\" href=\"http://vnpec.com/index.php?usv=aboutus\">Giới Thiệu</a></td>"
. " <td align=\"right\" height=\"35\" width=\"93\"><a class=\"ca1\" href=\"http://vnpec.com/index.php?usv=product\">Sản Phẩm</a></td>"
. " <td align=\"right\" height=\"35\" width=\"83\"><a class=\"ca1\" href=\"http://vnpec.com/domain.php\">Domain</a></td>"
. " <td align=\"right\" height=\"35\" width=\"85\"><a class=\"ca1\" href=\"http://vnpec.com/index.php?usv=hosting\">Hosting</a></td>"
. " <td align=\"right\" height=\"35\" width=\"85\"><a class=\"ca1\" href=\"http://vnpec.com/index.php?usv=hosting\">Shop</a></td>"
. " <td align=\"right\" height=\"35\" width=\"101\"><a class=\"ca1\" href=\"http://vnpec.com/index.php?usv=payment\">Thanh Toán</a></td>"
. " <td align=\"right\" height=\"35\" width=\"88\"><a class=\"ca1\" href=\"http://vnpec.com/index.php?usv=contact\">Liên Hệ</a></td>"
. " <td class=\"ca1\" height=\"30\" width=\"27\"></td>"
. " </tr>"
. " </tbody></table>"
. " </td>"
. " <td bgcolor=\"#def2f9\" height=\"35\" width=\"5\"></td>"
. " </tr>"
. " <tr>"
. " <td colspan=\"3\" bgcolor=\"#def2f9\" height=\"5\" width=\"744\"></td>"
. " </tr>"
. " </tbody></table>"
. " </td>"
. " </tr>"
. " <tr>"
. " <td bgcolor=\"#a6e3f9\" height=\"2\" width=\"976\"></td>"
. " </tr>"
. " <tr>"
. " <td bgcolor=\"#ecf7fb\" height=\"5\" width=\"976\"></td>"
. " </tr>"
. " <tr>"
. " <td height=\"29\" width=\"976\">"
. " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" height=\"29\" width=\"100%\">"
. " <tbody><tr>"
. " <td height=\"29\" width=\"3\">"
. " <img src=\"".INCLUDE_PATH."themes/minhgiap3/images/logo01.gif\" border=\"0\" height=\"29\" width=\"3\"></td>"
. " <td background=\"".INCLUDE_PATH."themes/minhgiap3/images/logo02.gif\" width=\"970\"></td>"
. " <td height=\"29\" width=\"3\">"
. " <img src=\"".INCLUDE_PATH."themes/minhgiap3/images/logo03.gif\" border=\"0\" height=\"29\" width=\"3\"></td>"
. " </tr>"
. " </tbody></table>"
. " </td>"
. " </tr>"
. " <tr>"
. " <td>"
. " <img src=\"".INCLUDE_PATH."themes/minhgiap3/images/vnpecse_05.jpg\" height=\"66\" width=\"976\"></td>"
. " </tr>"
. " <tr>"
. " <td height=\"5\" width=\"976\">"
. " <table id=\"table1\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">"
. " <tbody><tr>"
. " <td height=\"5\" width=\"3\"><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/logos01.gif\" border=\"0\" height=\"5\" width=\"3\"></td>"
. " <td background=\"".INCLUDE_PATH."themes/minhgiap3/images/logos02.gif\" width=\"970\"></td>"
. " <td height=\"5\" width=\"3\"><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/logos03.gif\" border=\"0\" height=\"5\" width=\"3\"></td>"
. " </tr>"
. " </tbody></table>"
."";


echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td height=\"6\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/nukevn/images/spacer.gif\" width=\"1\" height=\"2\"></td>\n";
echo "</tr>\n";
if ($module_name == "Forums") {
}else{
echo "<!-- phan than -->\n";
echo "<tr>\n";
echo "<td>\n";
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\">\n";
echo "<tr>\n";
if (!defined('NV_ADMIN')) {
echo "<!-- block trai -->\n";
echo "<td valign=\"top\" width=\"150\" bgcolor=\"#FFFFFF\">\n";
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\">\n";
echo "<tr>\n";
echo "<td>";
if (file_exists("".INCLUDE_PATH."themes/minhgiap3/menu.php")) {
include("".INCLUDE_PATH."themes/minhgiap3/menu.php");
} else {
echo "&nbsp;";
}
echo"</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td height=\"1\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"1\" height=\"1\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>";
blocks(left,$name);
echo"</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>&nbsp;</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "<!--// block trai -->\n";
echo "<td valign=\"top\" bgcolor=\"#CBE7FF\" width=\"2\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"2\" height=\"1\"></td>\n";
echo "<td valign=\"top\" width=\"2\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"2\" height=\"1\"></td>\n";
}
echo "<td valign=\"top\">\n";
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\">\n";
echo "<tr>\n";
echo "<td bgcolor=\"#EEEEEE\" height=\"20\">";
mod_title();
echo"</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td height=\"3\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>";
}
}

/************************************************************/
/* Th? hi?n ph?n d??i trang */
/************************************************************/

function themefooter() {
global $adminfile, $index, $module_name;
if ($module_name == "Forums") {
echo"</td></tr>";
}else{

echo"</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
if (!defined('NV_ADMIN') AND $index == 1) {
echo "<td valign=\"top\" width=\"4\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"4\" height=\"1\"></td>\n";
echo "<!-- block phai -->\n";
echo "<td valign=\"top\" width=\"170\">";
echo "<!-- batdau timkiem -->\n";
echo " <TABLE style=\"BORDER-COLLAPSE: collapse\" height=27 cellPadding=0 \n";
echo "width=\"170\" bgColor=#dddddd border=0>\n";
echo "<TBODY>\n";
echo "<TR>\n";
echo "<FORM action=modules.php?name=Search method=post>\n";
echo "<TD align=middle height=22><INPUT \n";
echo "onblur=\"if (this.value==''){this.value='Tìm kiếm';}\" \n";
echo "style=\"TEXT-ALIGN: center\" \n";
echo "onfocus=\"if (this.value=='Tìm kiếm') {this.value = '';}\" \n";
echo "maxLength=57 size=25 value=\"Tìm kiếm\" name=query></TD>\n";
echo "<TD align=left height=27><INPUT \n";
echo "style=\"BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px\" \n";
echo "type=image height=24 alt=\"Tìm kiếm\" width=24 \n";
echo "src=\"".INCLUDE_PATH."themes/minhgiap3/images/go.gif\" \n";
echo "value=\"Tìm kiếm\"></FORM>\n";
echo "<tr>\n";
echo "<td height=\"1\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"1\" height=\"1\"></td>\n";
echo "</tr>\n";
echo "<!-- ket thuc timkiem -->\n";

blocks(right,$module_name);
echo"</td>\n";
echo "<!--// block phai -->\n";
}
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<!-- het than -->\n";
}
echo "<tr>\n";
echo "<td height=\"2\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"1\" height=\"2\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"976\">"
. " <tbody><tr>"
. " <td colspan=\"19\" height=\"23\" width=\"976\"></td>"
. " </tr>"
. " <tr>"
. " <td height=\"44\" width=\"16\"></td>"
. " <td><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/it_03.jpg\" height=\"44\" width=\"100\"></td>"
. " <td height=\"44\" width=\"35\"></td>"
. " <td><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/it_05.png\" height=\"44\" width=\"57\"></td>"
. " <td height=\"44\" width=\"43\"></td>"
. " <td><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/it_07.png\" height=\"44\" width=\"93\"></td>"
. " <td height=\"44\" width=\"47\"></td>"
. " <td><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/it_09.png\" height=\"44\" width=\"53\"></td>"
. " <td height=\"44\" width=\"43\"></td>"
. " <td><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/it_11.png\" height=\"44\" width=\"78\"></td>"
. " <td height=\"44\" width=\"45\"></td>"
. " <td><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/it_13.png\" height=\"44\" width=\"70\"></td>"
. " <td height=\"44\" width=\"58\"></td>"
. " <td><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/it_15.png\" height=\"44\" width=\"44\"></td>"
. " <td height=\"44\" width=\"54\"></td>"
. " <td><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/it_17.png\" height=\"44\" width=\"49\"></td>"
. " <td height=\"44\" width=\"38\"></td>"
. " <td><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/it_19.png\" height=\"44\" width=\"45\"></td>"
. " <td height=\"44\" width=\"8\"></td>"
. " </tr>"
. " <tr>"
. " <td colspan=\"19\" height=\"15\" width=\"976\"></td>"
. " </tr>"
. " </tbody></table>"
."";

echo "</tr>\n";
echo "<tr>\n";

echo"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"976\">"
. " <tr>"
. " <td height=\"30\" width=\"976\">"
. " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">"
. " <tbody><tr>"
. " <td bgcolor=\"#0a506a\" height=\"1\"></td>"
. " </tr>"
. " <tr>"
. " <td bgcolor=\"#107b9c\" height=\"1\"></td>"
. " </tr>"
. " <tr>"
. " <td bgcolor=\"#0c5673\" height=\"28\">"
. " <table id=\"table2\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" height=\"28\" width=\"976\">"
. " <tbody><tr>"
. " <td height=\"28\" width=\"222\"></td>"
. " <td class=\"ca2\"><a class=\"ca2\" href=\"http://vnpec.com/index.php?usv=aboutus\"> Home </a>&nbsp; | "
. " <a class=\"ca2\" href=\"http://vnpec.com/index.php?usv=aboutus\"> Giới Thiệu</a>&nbsp; | "
. " <a class=\"ca2\" href=\"http://vnpec.com/index.php?usv=product\"> Sản Phẩm</a>&nbsp; |&nbsp; "
. " <a class=\"ca2\" href=\"http://vnpec.com/domain.php\"> Domain</a> |&nbsp; "
. " <a class=\"ca2\" href=\"http://vnpec.com/index.php?usv=hosting\"> Hosting</a> |&nbsp; "
. " <a class=\"ca2\" href=\"http://vnpec.com/index.php?usv=support\"> Trợ giúp</a> |&nbsp; "
. " <a class=\"ca2\" href=\"http://vnpec.com/index.php?usv=contact\"> Liên hệ</a>&nbsp;| "
. " <a class=\"ca2\" href=\"http://vnpec.com/index.php?usv=sitemap\"> Sơ Đồ Web</a></td>"
. " </tr>"
. " </tbody></table>"
. " </td>"
. " </tr>"
. " </tbody></table>"
. " </td>"
. " </tr>"
. " <tr>"
. " <td bgcolor=\"#09475d\" height=\"94\" width=\"976\">"
. " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"976\">"
. " <tbody><tr>"
. " <td colspan=\"3\" height=\"92\" valign=\"top\" width=\"976\">"
. " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"976\">"
. " <tbody><tr>"
. " <td height=\"14\" width=\"140\"></td>"
. " <td rowspan=\"2\" height=\"94\" width=\"83\">"
. " <td rowspan=\"2\" height=\"92\" valign=\"top\" width=\"753\">"
. " <table id=\"table1\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">"
. " <tbody><tr>"
. " <td height=\"8\"></td>"
. " </tr>"
. " <tr>"
. " <td class=\"ml\">"
. "Copyright © 2005 - 2007, Công ty Phát triển Phần mềm và Truyền thông VNPEC. "
. "<br>EMail: Info@vnpec.com - Yahoo: Vnpec@yahoo.com - Điện thoại: 04.633.9032. "
. "<br>Địa chỉ: Số 15 - Ngõ 191 - Minh Khai - Hai Bà Trưng - Hà Nội, All Rights Reserved <br>Rip by Minh Giáp - <a class=\"A_white\" href=\"http://hungyen24h.net\">Hưng Yên 24H</a> </td>"
. " </tr>"
. " </tbody></table>"
. " </td>"
. " </tr>"
. " <tr>"
. " <td align=\"right\" height=\"78\" valign=\"top\" width=\"140\"><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/logofooter.gif\" border=\"0\" height=\"56\" width=\"63\"></td>"
. " </tr>"
. " </tbody></table>"
. " </td>"
. " </tr>"
. " <tr>"
. " <td rowspan=\"2\" height=\"2\" width=\"3\"><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/footer01.jpg\" height=\"2\" width=\"3\"></td>"
. " <td height=\"1\" width=\"970\"></td>"
. " <td rowspan=\"2\" height=\"2\" width=\"3\"><img src=\"".INCLUDE_PATH."themes/minhgiap3/images/footer02.jpg\" height=\"2\" width=\"3\"></td>"
. " </tr>"
. " <tr>"
. " <td bgcolor=\"#0d4a60\" height=\"1\" width=\"970\"></td>"
. " </tr>"
. " </tbody></table>"
. "
";


echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "<td background=\"".INCLUDE_PATH."themes/minhgiap3/images/kright.gif\" width=\"6\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"6\" height=\"1\"></td>\n";
echo "</tr>\n";
echo "</table>\n";
}
echo"<script language=JavaScript>\n"
. "var today = new Date();\n"
. "var thisHours = today.getHours();\n"
. "var thisMinutes = today.getMinutes();\n"
. "var weekdayNames = ['Chủ nhật', 'Thứ hai', 'Thứ ba', 'Thứ tư', 'Thứ năm', 'Thứ sáu', 'Thứ bảy'];\n"
. "var monthNamesR = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'];\n"
. "var thisDay = today.getDay();\n"
. "var thisDate = today.getDate();\n"
. "var currMonth = today.getMonth();\n"
. "var currYear = today.getFullYear();\n"
. "if(today.getMinutes() < 10) {thisMinutes = \"0\" + today.getMinutes()};\n"
. "if(today.getHours() < 10) {thisHours = \"0\" + today.getHours()};\n\n"
. "function datetime() {\n"
. "document.write(weekdayNames[thisDay] + \", \" + thisDate + \"/\" + monthNamesR[currMonth] + \"/\" + currYear + \"\")\n"
. "}\n"
. "</script>\n\n";
/************************************************************/
/* Th? hi?n tin t?c trên trang nh?t */
/************************************************************/

function themeindex ($aid, $datetime, $title, $hometext, $story_pic, $notes, $story_link, $com_link, $tot_hits,$mau = 0) {
global $catnewshomeimg, $sizecatnewshomeimg, $newshome, $catnewshome, $datafold, $sitename, $print, $home;
$bg = ($mau%2==1) ? "bgcolor='#EEEEEE'" : "";
echo"<table border=\"0\" cellpadding=\"0\" style=\"border-collapse: collapse\" width=\"100%\"$bg><tr>";
if (($newshome ==1) AND ($catnewshome==1) AND (($home==1) || (isset($_GET['op']) AND $_GET['op']=="viewcat"))) {
echo"<td style=\"text-align: justify\" valign=\"top\">\n"
. "<p class=storytitle style=\"margin-top: 5px; margin-bottom: 2px\">$story_pic$title</p>\n"
. "<font class=grey style=\"margin-top: 2px; margin-bottom: 10px\">[$datetime]</font><br>\n"
. "<div><font class=indexhometext>$hometext</font>".$story_link."".$print."".$com_link."".$tot_hits."</div></td>\n";
if ($notes!="") {
echo"<td><img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"4\"></td>\n"
."<td style=\"border-left-style: solid; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px\"><img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"4\"></td>\n"
."<td valign=\"top\" width=\"30%\">$notes</td>\n";
}
} elseif (($newshome == 1) AND ($catnewshome==2) AND (($home==1) || (isset($_GET['op']) AND $_GET['op']=="viewcat"))) {
if ($notes!="") {
echo"<td valign=\"top\" width=\"30%\">$notes</td>\n"
."<td><img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"4\"></td>\n"
."<td style=\"border-left-style: solid; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px\"><img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"4\"></td>\n";
}
echo"<td style=\"text-align: justify\" valign=\"top\">\n"
. "<p class=storytitle style=\"margin-top: 5px; margin-bottom: 2px\">$story_pic$title</p>\n"
. "<font class=grey style=\"margin-top: 2px; margin-bottom: 10px\">[$datetime]</font><br>\n"
. "<div><font class=indexhometext>$hometext</font>".$story_link."".$print."".$com_link."".$tot_hits."</div></td>\n";
} else {
echo "<td valign=\"top\">\n";
echo "<table border=\"0\" cellpadding=\"1\" style=\"border-collapse: collapse\" width=\"100%\" cellspacing=\"1\"><tr>\n";
echo "<td colspan=\"2\"><p class=storytitle style=\"margin-top: 5px; margin-bottom: 2px\">$title</p>\n</td>\n</tr>\n<tr>\n";
if($catnewshomeimg=="left" && $story_pic!="") {
echo "<td valign=\"top\" width=\"$sizecatnewshomeimg\">".$story_pic."</td>\n";
}
echo"<td style=\"text-align: justify\" valign=\"top\">\n"
. "<font class=grey style=\"margin-top: 2px; margin-bottom: 10px\">[$datetime]</font><br>\n"
. "<font class=indexhometext>$hometext</font>".$print."".$com_link."".$tot_hits."".$story_link."</td>\n";
if($catnewshomeimg=="right" && $story_pic!="") {
echo "<td valign=\"top\" width=\"$sizecatnewshomeimg\">".$story_pic."</td>\n";
}
if($notes!="") {
echo "</tr><tr><td colspan=\"2\">$notes</td>\n";
}
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
}
echo"</tr></table>\n<br>\n";
}

/************************************************************/
/* Th? hi?n toàn b? bài vi?t */
/************************************************************/

function themearticle ($aid, $time, $title, $hometext, $bodytext, $notes, $story_pic, $source) {
echo"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"
. "<tr>\n<td class=\"indexhometext\"><div class=\"storytitle\">$title</div>\n"
. "<div class=\"grey\">$time</div>\n"
. "<p class=\"articlehometext\" align=\"justify\">$story_pic$hometext\n"
. "<p class=\"indexhometext\" align=\"justify\">$bodytext\n<br><br>";
if($notes!="") {
OpenTable();
echo $notes;
CloseTable();
}
echo "<p align=\"right\"><b>$aid</b> $source</td>\n"
. "</tr>\n"
. "</table>\n<br>\n<br>\n";
}

function themenewsst($title,$image,$hometext, $story_link) {
OpenTable();
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td valign=\"top\" style=\"text-align: justify\">";
echo "<p class=storytitle style=\"margin-top: 0px; margin-bottom: 5px\">$title</p>";
echo "$image<span class=indexhometext>$hometext</span> $story_link";
echo "</td></tr></table>";
CloseTable();
echo "<br>";
}

/************************************************************/
/* Th? hi?n blocks trái và ph?i */
/************************************************************/

function themesidebox($title, $content, $link) {
global $block_side;
if ($block_side == "l") {
echo "<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#C4D7FF\">\n";
echo "<tr>\n";
echo "<td height=\"19\">\n";
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\" height=\"19\">\n";
echo "<tr>\n";
echo "<td height=\"1\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"1\" height=\"1\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\">\n";
echo "<tr>\n";
echo "<td width=\"1\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"1\" height=\"1\"></td>\n";
echo "<tr height=\"30\">\n"
. " <td background=\"".INCLUDE_PATH."themes/minhgiap3/images/des.jpg\">\n";
if ($link != "") {
echo "&nbsp;&nbsp;<a class=\"A_white\" href=\"".$link."\">&nbsp;&nbsp;".$title."&nbsp;</a>";
}else{
echo "<font class=A_white><center>&nbsp;".$title."&nbsp;</center></font>";
}
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<table border=\"0\" width=\"100%\" cellpadding=\"3\" style=\"border-collapse: collapse\">\n";
echo "<tr>\n";
echo "<td>$content</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
}
else {
echo "<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#C4D7FF\">\n";
echo "<tr>\n";
echo "<td height=\"19\">\n";
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\" height=\"19\">\n";
echo "<tr>\n";
echo "<td height=\"1\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"1\" height=\"1\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\">\n";
echo "<tr>\n";
echo "<td width=\"1\">\n";
echo "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"1\" height=\"1\"></td>\n";
echo "<tr height=\"30\">\n"
. " <td background=\"".INCLUDE_PATH."themes/minhgiap3/images/des.jpg\">\n";
if ($link != "") {
echo "&nbsp;&nbsp;<a class=\"A_white\" href=\"".$link."\">&nbsp;&nbsp;".$title."&nbsp;</a>";
}else{
echo "<font class=A_white><center>&nbsp;".$title."&nbsp;</center></font>";
}
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<table border=\"0\" width=\"100%\" cellpadding=\"3\" style=\"border-collapse: collapse\">\n";
echo "<tr>\n";
echo "<td>$content</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
}

}

/************************************************************/
/* Th? hi?n blocks gi?a */
/************************************************************/

function themecenterbox($title, $content, $link) {
echo"<table border=\"0\" cellpadding=\"0\" style=\"border-collapse: collapse\" width=\"100%\"><tr><td width=\"10\">\n"
. "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_01.gif\" width=\"10\" height=\"31\"></td>\n"
. "<td background=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_02.gif\" align=\"center\" style=\"text-transform: uppercase\">\n";
if ($link != "") {
echo "<a class=\"A_white\" href=\"".$link."\">&nbsp;".$title."&nbsp;</a>";
}else{
echo "<font class=A_white>&nbsp;".$title."&nbsp;</font>";
}
echo "</td><td width=\"10\">\n"
. "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_03.gif\" width=\"10\" height=\"31\"></td></tr><tr>\n"
. "<td background=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_04.gif\">&nbsp;</td><td bgcolor=\"#FFFFFF\">$content</td>\n"
. "<td background=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_06.gif\">&nbsp;</td></tr><tr><td>\n"
. "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_07.gif\" width=\"10\" height=\"7\"></td>\n"
. "<td background=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_08.gif\">\n"
. "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"1\" height=\"1\"></td><td>\n"
. "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_09.gif\" width=\"10\" height=\"7\"></td></tr></table><br>\n";
}

/************************************************************/
/* Th? hi?n blocks gi?a 2 (N?u c?n) */
/************************************************************/

function themecenterbox2($title_2, $content_2) {
echo"<table border=\"0\" cellpadding=\"0\" style=\"border-collapse: collapse\" width=\"100%\"><tr><td width=\"10\">\n"
. "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_01.gif\" width=\"10\" height=\"31\"></td>\n"
. "<td background=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_02.gif\" align=\"center\" style=\"text-transform: uppercase\">\n"
. "<font class=A_white>$title_2</font></td><td width=\"10\">\n"
. "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_03.gif\" width=\"10\" height=\"31\"></td></tr><tr>\n"
. "<td background=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_04.gif\">&nbsp;</td><td bgcolor=\"#FFC23B\">$content_2</td>\n"
. "<td background=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_06.gif\">&nbsp;</td></tr><tr><td>\n"
. "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_07.gif\" width=\"10\" height=\"7\"></td>\n"
. "<td background=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_08.gif\">\n"
. "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/spacer.gif\" width=\"1\" height=\"1\"></td><td>\n"
. "<img border=\"0\" src=\"".INCLUDE_PATH."themes/minhgiap3/images/centerbl_09.gif\" width=\"10\" height=\"7\"></td></tr></table><br>\n";
}

?>

Cảm ơn sự nhiệt tình của bạn :t:
 

Dima

Administrator
Staff member
Trước đây mình cũng từng post bài kiểu như bạn để mong sự trợ giúp. Mình hiểu và cảm nhận được sự chờ đợi nó là như thế nào.
Nếu như mọi việc đã được giải quyết. Xin gửi lời chúc mừng đến bạn.

Rất vui vì được trợ giúp cho bạn :covu:
 
Bên trên