📄 b_trade.php
字号:
src="../images/home_search.gif" width=50 align=absMiddle border=0>
<A
href="http://page.alibaba.com.cn/buyer/turbine/template/buyer,OfferAdvSearch"><FONT
color=#ffffff>高级搜索</FONT></A><BR></TD></TR></FORM></TBODY></TABLE></TD></TR></TBODY></TABLE>
<SCRIPT language=javascript>
<!--
function doSubmit() {
var str = trim(document.search.keywords.value);
if (str == "" ){
alert("请输入关键字!");
return false;
} else {
if(document.search.postTime.value==0){
document.search.action ="http://page.alibaba.com.cn/buyer/turbine/template/buyer%2COfferSearch?keywords="+str;
}
document.search.submit();
}
}
function trim(inputString) {
if (typeof inputString != "string") { return inputString; }
var retValue = inputString;
var ch = retValue.substring(0, 1);
while (ch == " ") {
//检查字符串开始部分的空格
retValue = retValue.substring(1, retValue.length);
ch = retValue.substring(0, 1);
}
ch = retValue.substring(retValue.length-1, retValue.length);
while (ch == " ") {
//检查字符串结束部分的空格
retValue = retValue.substring(0, retValue.length-1);
ch = retValue.substring(retValue.length-1, retValue.length);
}
while (retValue.indexOf(" ") != -1) {
//将文字中间多个相连的空格变为一个空格
retValue = retValue.substring(0, retValue.indexOf(" ")) + retValue.substring(retValue.indexOf(" ")+1, retValue.length);
}
return retValue;
}
//-->
</SCRIPT>
<BR>
<!--section 2-->
<TABLE
style="BORDER-RIGHT: #c2c2c2 1px solid; BORDER-TOP: #c2c2c2 1px solid; BORDER-LEFT: #c2c2c2 1px solid; BORDER-BOTTOM: #c2c2c2 1px solid"
cellSpacing=0 cellPadding=2 width=750 bgColor=#efefef border=0>
<TBODY>
<TR>
<TD height=30 width="153">供应信息 </TD>
<TD align=right width="589">显示:<a href=info.php>所有供求信息</a> <a href=seller.php>求购信息</a></TD>
</TR>
</TBODY>
</TABLE>
<!--section 3-->
<TABLE cellSpacing=0 cellPadding=0 width=750 border=0>
<TBODY>
<TR>
<TD><!-- loop -->
<?
$tablename = "c_catalog";
$total_records=minax_cat($rc, $tablename, $catalog_id);
$catid_min=$total_records[0]["catid_min"];
$catid_max=$total_records[0]["catid_max"];
$catid=$catalog_id;
if ($start_page == NULL)
$start_page = 1;
$records_p = 20;
$infotype=1;
$tablename = "info";
$products_info = list_info5($rc,$tablename,$start_page,$records_p,$catid_min,$catid_max,$infotype);
for ($i=0; $i < sizeof($products_info); $i++)
{
if ($products_info[$i]["img"] <> "")
$img = "(图)";
else
$img = "";
$tempdate = $products_info[$i]["uptime"];
$todate = substr($tempdate,0,4)."年".substr($tempdate,4,2)."月".substr($tempdate,6,2);
$content=$products_info[$i]["content"];
if(strlen($content)>160)
$content=substr($content,0,158)."...";
$userid = $products_info[$i]["userid"];
$user_info = read_userid($rc, $userid);
$province= $user_info[0]["province"];
$city = $user_info[0]["city"];
$addr=$province.$city;
$company=$user_info[0]["company"];
$catalog_id=$products_info[$i]["catid"];
$total_records=read_cat4($rc, $tablename, $catalog_id);
$cat=$total_records[0]["catalog"];
?>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="PADDING-LEFT: 15px" width=619 bgColor=#ffffff
rowSpan=2><IMG height=4 src="../images/shim.gif" width=1><BR><BR>
<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
<TBODY>
<TR>
<TD class=C vAlign=top align=left><A class=L
href="feedback.php?infoid=<? echo $products_info[$i]["infoid"]; ?>"
target=_blank><B><? echo $products_info[$i]["title"]; ?></b><? echo $img; ?></A> <FONT class=s
color=#666666><? echo $todate; ?></FONT><BR><IMG height=3
src="../images/shim.gif" width=1><BR><FONT class=C
color=#009999>[<? echo $addr ?>]</FONT> <A
href=""
target=_blank><? echo $company ?></A> <BR>
<BR><? echo $content ?>
<NOBR><A
href="feedback.php?infoid=<? echo $products_info[$i]["infoid"]; ?>"
target=_blank>详细信息</A> <IMG height=15
src="../images/shim.gif" width=1> <BR><IMG height=9
src="../images/point_cat.gif" width=11 align=absMiddle>所在类别:
<? echo $catalog ?></A>
<SMALL>></SMALL>
<A href="b_offerlist.php?catalog_id=<? echo $catalog_id ?>&catalog=<? echo $catalog ?>&parent=<? echo $cat ?>"
><? echo $cat ?></A>
</NOBR></TD></TR></TBODY></TABLE><BR></TD>
<TD width=1 rowSpan=2><IMG height=1 src="../img/shim.gif"
width=1> </TD></TR>
<TR></TR></TBODY></TABLE>
<?
}
?>
<!-- end loop --></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=1 width=750 bgColor=#fcdfb4 border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=4 width="100%" bgColor=#fef8e2
border=0><TBODY>
<TR>
<TD class=M noWrap align=middle>
<?
$tablename = "info";
$total_records = total_info5($rc,$tablename,$catid_min,$catid_max,$infotype);
if ($total_records%$records_p == 0)
$pages = $total_records/$records_p;
else
$pages = ($total_records-($total_records%$records_p))/$records_p + 1;
if ($start_page > 1){
?>
<a href="b_trade.php?catalog_id=<? echo $catid ?>&catalog=<? echo $catalog ?>&start_page=<? echo $start_page-1 ?>"><img src="http://img.china.alibaba.com/images/seller/more03.gif" width="11" height="10" border="0" align="absmiddle">上一页</a>
<?
}
if($pages>1){
$end_page=$pages-5;
if($start_page<=5)
$i_start=1;
else{
// if(($pages-$start_page)<10)
// $i_start=$start_page-(10-($pages-$start_pgae));
// else
$i_start=$start_page-5;
}
if($start_page<6){
if($pages<10)
$i_end=$pages;
else
$i_end=10;
}
else{
if($start_page<$end_page)
$i_end=$start_page+5;
else
$i_end=$pages;
}
for ($i=$i_start;$i<=$i_end;$i++) {
print " <b><a href=$filename?catalog_id=$catid&catalog=$catalog&start_page=$i>$i</a></b> ";
print " ";
}
}
if ($start_page < $pages){
?>
<a href="b_trade.php?catalog_id=<? echo $catid ?>&catalog=<? echo $catalog ?>&start_page=<? echo $start_page+1 ?>">下一页<img src="http://img.china.alibaba.com/images/seller/more02.gif" width="11" height="10" border="0" align="absmiddle"></a>
<?
}
$list_start=($start_page-1)*20+1;
$list_end=$list_start+19;
?>
</td>
</tr>
<tr>
<td align=center nowrap class="C">
共 <? echo $total_records; ?> 条供应信息,共 <? echo $pages ?> 页,当前显示为第 <? echo $start_page ?> 页 第<? echo $list_start; ?> - <? echo $list_end; ?> 条信息
</td>
</tr>
</TBODY></TABLE></TD></TR></TBODY></TABLE><BR><BR><BR>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD bgColor=#dddddd><IMG height=2 src="../images/shim.gif"
width=2></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=10 width="100%" border=0>
<TBODY>
<TR>
<TD bgColor=#f1f1f1>
<table cellspacing=0 cellpadding=0 width=740 align=center border=0>
<tbody>
<tr>
<td class=LL align=center width="90%"><span
style="FONT-SIZE: 12px">版权所有:外贸无忧. Copyright ©1997-2003 www.ec51.com All
Rights Reserved.经营许可证编号:粤ICP证 <font color=red>030148</font><br>
服务电话:+86-755-26092307 传真:+86-755-26099007 MSN:ec51@msn.com QQ:39759266
</span></td>
</tr>
</tbody>
</table>
<CENTER></CENTER>
<CENTER></CENTER></TR></TBODY></TABLE></CENTER></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -