<style>
.rec_pro ul li{ float: left;height: 170px;padding:0px; text-align: center;width: 130px; margin-left:8px;}
.rec_pro ul li img{width:130px;}
.read_more{background-image:url(image/default/arw_r.gif);background-repeat:no-repeat;background-position:left; padding-left:12px; margin-left:2em;}
.com_pic{float:right; width:250px; border:1px solid #CCCCCC;margin-left:10px;}
</style>
<div id="company">
  <div class="common_box">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" >
      <tr>
        <td class="guide_ba"><span><{$lang.company}></span></td>
      </tr>
      <tr>
        <td class="com_intro"><{if $com.img!=""}> <a href="shop.php?uid=<{$smarty.get.uid}>&action=profile&m=company"> <img class="com_pic" src="<{$com.img}>" /> </a> <{/if}>
          <{if $com.intro}>
          　<{$com.intro|strip_tags|truncate:1100}>... <br />
          	<a class="read_more" href="shop.php?uid=<{$smarty.get.uid}>&action=profile&m=company">Read more</a>
		  <{else}>
          	<div style="height:200px; line-height:200px;"><{$com.company}>没有填写介绍信息</div>
          <{/if}>
		  </td>
      </tr>
    </table>
  </div>
</div>
<div class="common_box">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" >
    <tr>
      <td class="guide_ba"><span><{$lang.rec_pro}></span></td>
    </tr>
    <tr>
      <td class="rec_pro"><ul>
          <{if $rec_pro}>
			  <{foreach item=list from=$rec_pro}>
			  <{if $list.title!=''}>
			  <li> <{if $list.pic }> <img src="<{$list.pic|explode_one:","}>"  alt="<{$list.title}>" />
				<{else}> <img src="image/default/nopic.gif"  alt="<{$list.title}>" /> <{/if}><br />
				<a target="_blank" href="<{$config.weburl}>/?m=offer&s=detail&id=<{$list.id}>"><{$list.title|truncate:35}> </a> </li>
			  <{/if}>
			  <{/foreach}>
          <{else}>
			  <{foreach item=list from=$new_pro}>
                  <{if $list.title!=''}>
                  <li>
                  	<{if $list.pic }>
                  		<img src="<{$list.pic|explode_one:","}>"  alt="<{$list.title}>" />
                    <{else}>
                        <img src="image/default/nopic.gif"  alt="<{$list.title}>" />
                    <{/if}><br />
                    <a target="_blank" href="<{$config.weburl}>/?m=offer&s=detail&id=<{$list.id}>"> <{$list.title|truncate:35}> </a>
                  </li>
                  <{/if}>
			  <{foreachelse}>
			  		<div style="height:300px; line-height:300px; text-align:center;">企业暂未上传产品</div>
			  <{/foreach}>  
          <{/if}>
        </ul></td>
    </tr>
  </table>
</div>
