|
|
|
สอบถามการให้แสดงข้อมูล โดยแบ่งเป็น 3 column ค่ะ จะทำอย่างไรค่ะ แนะนำด้วยคะ |
|
|
|
|
|
|
|
ถ้าต้องการให้แสดงข้อมูลแบบเป็น 3 column แล้วค่อยขึ้นหน้าใหม่ จะทำอย่างไรค่ะ
ขอคำแนะนำด้วยคะ
Code (PHP)
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<? echo $url_site; ?>component/vertical_menu/styles.css" />
<script type="text/javascript" src="<? echo $url_site; ?>component/vertical_menu/sliding_effect.js"></script>
<?
$page = $_GET['page'];
$url = "?module=product&pages=productall";
require_once("class/DateFunction.class.php");
require_once("class/String.class.php");
$datefunction = new DateFunction();
$string = new String();
echo $func->mbox_start(); // เปิดการทำงานของ Msgbox Style
$txtsearch = $_REQUEST['txtsearch'];
$pro_cate_id = $_REQUEST['pro_cate_id'];
$brand_id = $_REQUEST['brand_id'];
if(isset($brand_id) or isset($pro_type_id) or isset($txtsearch))
$boxsearch = 1;
else
$classblock = 'class="block_content"';
?>
<style type="text/css">
<!--
#head_txt { font-size:16px;
font-weight:bold;
padding-bottom:10px;
}
-->
</style>
<div class="block">
<div class="block_content">
<table width="62%" align="right" cellpadding="0" cellspacing="0" class="sortable">
<thead>
<tr>
<th width="378" align="left">ชื่อรายการสินค้า</th>
</tr>
</thead>
<tbody>
<?
$sql_search = "";
$link = "";
if($txtsearch!=""){
$sql_search .= " and pro_id like '%$txtsearch%' or pro_name_th like '%$txtsearch%' or pro_name_en like '%$txtsearch%' ";
$link .= "&txtsearch=$txtsearch";
}
if($pro_type_id!=""){
$sql_search .= " and pro_cate_id = '$pro_cate_id' ";
$link .= "&pro_cate_id=$pro_cate_id";
}
$sql1= "select pro_id from tb_product where 1=1 $sql_search";
$sql2= "select * from tb_product where 1=1 $sql_search order by pro_cate_id asc";
$result = $func->page_rank(10,$page,$sql1,$sql2);
while($fetch = mysql_fetch_array($result)){
$bgcolor = ($i++ % 2)? '#ffffff' : '#F4FBFF';
list($pid,$pname_th,$pname_en,$bid,$tid,$pdetail_th,$pdetail_en,$pro_length,$pprice,$sort,$new,$pro_lost,$lastupdate,$userupdate,$pro_cover_image) = $fetch;
$pro_cate_name_th = $dbfunc->getFiledvalue("tb_pro_cate","pro_cate_name_th"," pro_cate_id = '$tid' ");
$user_update = $user_func->getFullname($userupdate);
?>
<tr >
<td>
<? echo "<font style='font-size:16px;'><b>".$string->HightlighSearch($txtsearch,$pname_th,80)."</b></font><br>(<font size=1><b>".$string->HightlighSearch($txtsearch,$pname_en,80)."</b></font>)";
?>
</td>
</tr>
<? } ?>
</tbody>
</table>
<table width="100%" height="19" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right"><? echo $func->getFooter_rank_style($url.$link); ?></td>
</tr>
</table>
</div>
<!-- .block_content ends -->
</div> <!-- .block ends -->
ลองแล้วยังไม่ได้เลยค่ะ
Tag : PHP, MySQL, HTML/CSS, JavaScript, Action Script, Ajax
|
|
|
|
|
|
Date :
2012-08-06 09:12:30 |
By :
Baitong_ch |
View :
2375 |
Reply :
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|