Skip to content

Instantly share code, notes, and snippets.

Created April 4, 2013 09:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/5309080 to your computer and use it in GitHub Desktop.
<?php
$Query = clsMembers::getSupplierByLimit(16, 0);
$SupplierList = $objDatabase->runStoredProcedure($Query);
if(count($SupplierList))
{
foreach($SupplierList as $Supplier)
{
echo '<li style="height:110px; width:275px; border-bottom: 1px solid #99CCFF;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="125px" style="padding-top: 15px; padding-left: 10px;">
<tr>
<td align="center" valign="top" rowspan="2" width="90px">
<a href="' . BASE_HOST . 'companies_details/' . $Supplier['MemberID'] . '/' . clsPresent::removeSpecialChars($Supplier['company_name']) . '.htm">
<img src="' . clsPresent::checkImageExistance(BASE_HOST . DEFAULT_COMPANY_LOGO_PATH . $Supplier['company_logo']) . '" class="classimg" width="80px" height="80px">
</a>
</td>
<td align="left" valign="top" class="content" width="200px" style="height: 15px;">
<a href="' . BASE_HOST . 'companies_details/' . $Supplier['MemberID'] . '/' . clsPresent::removeSpecialChars($Supplier['company_name']) . '.htm">' . ((strlen($Supplier['company_name']) > 30) ? (substr($Supplier['company_name'], 0, 27) . "...") : $Supplier['company_name']) . '</a>
</td>
</tr>
<tr>
<td align="left" valign="top" class="content" height="105px">
<span style="line-height: 15px;">
' . ((isset($Supplier['company_desc']) && $Supplier['company_desc'] != "") ? ((strlen($Supplier['company_desc']) > 130) ? (substr($Supplier['company_desc'], 0, 127) . "...") : $Supplier['company_desc']) : "") . '
</span>
</td>
</tr>
</table>
</li>';
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment