📄 products.php
字号:
<option value="4">Company Profiles</option>
</select>
<font class='normal'>
<input name="show_save" type="hidden" id="show_save" value="yes">
</font>
<input type="submit" name="Submit" value="Search">
<a href="advance_search.php">Advance Search</a> <br> </td>
</form>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td><font class="normal"> <a href="index.php">Home</a><? echo $catpath;?></font></td>
</tr>
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="titlestyle">
<tr>
<td align="center" valign="middle" class="subtitle" >→ <a href="cat_sell.php?cid=<?php echo $cid;?>">Sell Offers</a></td>
<td align="center" valign="middle" class="subtitle" >→ <a href="cat_buy.php?cid=<?php echo $cid;?>">Buy
Offers</a></td>
<td align="center" valign="middle" >↓
Products</td>
<td align="center" valign="middle" class="subtitle" >→
<a href="cat_profiles.php?cid=<?php echo $cid;?>">Companies</a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><font class="normal">Total <font class="red"> <strong>
<?php echo $rcount; ?>
</strong> </font> offers found matching your criteria</font></td>
</tr>
<tr>
<td><TABLE width="434" border=0 cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD width=87> </TD>
<TD width="347"> <font class="normal">
<?
if($pages>1)
{
if ($pg!=1)
{
?>
<a href="<? echo $_SERVER['PHP_SELF'];?>?pg=<?php echo ($pg-1).$strpass; ?>" >
<?
}
?>
Prev
<?
if ($pg!=1)
{
?>
</a>
<?php
}
?>
<B>
<?
if ($pages>1)
{
?>
</B>
<?php
if ($pg<=5)
{
$jmpcnt=1;
}
else
{
$jmpcnt=$pg-5;
}
$cnt=0;
while ( $jmpcnt<=$pages && ($cnt<=5) )
{
$cnt++;
if ($jmpcnt!=$pg)
{
?>
<a href="<? echo $_SERVER['PHP_SELF'];?>?pg=<?php echo "$jmpcnt$strpass"; ?>" >
<?
}
else
{
echo "<b>";
}
echo $jmpcnt;
if ($jmpcnt!=$pg)
{
?>
</a>
<?php
}else{
echo "</b>";
}
if ($jmpcnt<$pages)
echo " ";
?>
<?php
$jmpcnt = $jmpcnt + 1;
}
?>
</font> <font class="normal">
<?
}
if ( $pg!=$pages && $pages<>0)
{
?>
<a href="<? echo $_SERVER['PHP_SELF'];?>?pg=<?php echo ($pg+1); ?><?php echo "$strpass"; ?>" >
<?
}
?>
Next
<? if ($pg!=$pages && $pages<>0)
{
?>
</a>
<?
}
}
?>
</font> </TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
<?php if(isset($_SESSION["sbbleads_userid"]) && isset($_REQUEST["show_save"]) && ($rcount > 0))
{
?>
<tr>
<form name="save_search" id="save_search">
<td>
<div align="right">
<input name="sb_year1" type="hidden" id="sb_year" value="<?php echo (isset($_REQUEST["year1"]))?$_REQUEST["year1"]:''; ?>">
<input name="sb_month1" type="hidden" id="sb_month1" value="<?php echo (isset($_REQUEST["month1"]))?$_REQUEST["month1"]:''; ?>">
<input name="sb_day1" type="hidden" id="sb_day1" value="<?php echo (isset($_REQUEST["day1"]))?$_REQUEST["day1"]:''; ?>">
<input name="sb_year" type="hidden" id="sb_month" value="<?php echo (isset($_REQUEST["year"]))?$_REQUEST["year"]:''; ?>">
<input name="sb_month" type="hidden" id="sb_day" value="<?php echo (isset($_REQUEST["month"]))?$_REQUEST["month"]:''; ?>">
<input name="sb_day" type="hidden" id="sb_country" value="<?php echo (isset($_REQUEST["day"]))?$_REQUEST["day"]:''; ?>">
<input name="sb_country" type="hidden" id="sb_search_method4" value="<?php echo (isset($_REQUEST["country"]))?$_REQUEST["country"]:'0'; ?>">
<input name="sb_type" type="hidden" id="sb_search_method3" value="3">
<input name="sb_cid" type="hidden" id="sb_cid" value="<?php echo $cid; ?>">
<input name="sb_search_method" type="hidden" id="sb_search_method" value="<?php echo (isset($_REQUEST["search_method"]))?$_REQUEST["search_method"]:''; ?>">
<input name="sb_keyword" type="hidden" id="sb_keyword" value="<?php echo $keyword; ?>">
<input type="button" name="Submit2" value="Save Search Result" onClick="submit_form()">
</div>
</td></form>
</tr><?php
} //end if $_SESSION[]
?>
</table></td>
</tr>
<tr>
<td valign="top"><table width="90%" border="0" cellspacing="0" cellpadding="5" align="center">
<?
$cnt=0;
while (($offer=mysql_fetch_array($offer_query)) && ($cnt<$recperpage))
{
$images=mysql_fetch_array(mysql_query("select * from sbbleads_product_images where sb_offer_id=".$offer["sb_id"]." order by sb_id"));
$cnt++;
?>
<tr >
<td valign="top" > <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60" rowspan="3" align="center" valign="top">
<? if ($images) {echo "<a href=\"view_product.php?id=".$offer["sb_id"]."\" ><img $img_pmt border=0 src=\"$img_path" .$images["sb_img_url"]."\"></a>"; } else
{
?>
<img src="images/nopic.gif" <? echo $img_pmt; ?>>
<?
}?>
</td>
<td class="subtitle"><font class="normal"><a
href="view_product.php?id=<?php echo $offer["sb_id"];?>">
<?php
if (strlen ($offer["sb_title"])>50)
{
echo substr($offer["sb_title"], 0, strrpos( substr($offer["sb_title"], 0, 50),' ' ));
}
else
{
echo $offer["sb_title"];
}
?>
</a><font class="red"> [
<?
$cur=mysql_fetch_array(mysql_query("select * from sbbleads_currencies where sbcur_id=".$offer["sb_price_cur_id"]));
echo $cur["sbcur_symbol"];
?>
<?php echo $offer["sb_price"];?>]</font></font></td>
</tr>
<tr>
<td><font class="smalltext">Posted by <strong>
<?php
$mem=mysql_fetch_array(mysql_query("select * from sbbleads_members where sb_id=".$offer["sb_uid"]));
$profile=mysql_fetch_array(mysql_query("select * from sbbleads_companyprofiles where sb_uid=".$offer["sb_uid"]));
if ($profile) { echo $profile["sb_companyname"];}
else { echo $mem["sb_username"]; }
?>
</strong><font class="red"><strong>[
<?php
$level_query=mysql_query("select * from sbbleads_levels where sb_levelid=" .$mem["sb_memtype"]);
$level= mysql_fetch_array($level_query);
echo $level["sb_levelname"];
?>
]</strong></font> on <?php echo sb_date($offer["ondate"]);?>
</font></td>
</tr>
<tr>
<td valign="top"><font class="smalltext">
<?php
if (strlen (strip_tags($offer["sb_description"]))>100)
{
echo substr(strip_tags($offer["sb_description"]), 0, strrpos( substr(strip_tags($offer["sb_description"]), 0, 100),' ' )) . "..";
}
else
{
echo strip_tags($offer["sb_description"]);
}
?>
</font></td>
</tr>
</table></td>
</tr>
<?
}
?>
</table></td>
</tr>
</table>
<?
}// end main
include "template.php";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -