<style>
.contactBtn{background-color: #F1F1F1; display:inline-block; border-color: #FFF6D3 #DFD5AF #DFD5AF #FFF6D3; border-right: 1px solid #DFD5AF; border-style: solid; border-width: 1px;color:#FF9900; padding:1px 3px; margin-left:20px;}
.contactBtn:hover{background-color:#F0EBD6;}
.common_box .text_label{text-align:right; font-weight:bold;}
</style>
<div class="common_box">
  <script language="javascript" src="<{$config.weburl}>/script/my_lightbox.js"></script>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td bgcolor="#CCCCCC" colspan="2">企业信息</td>
    </tr>
    <tr>
      <td width="15%" class="text_label"><{$lang.area}></td>
      <td width="85%"><{if $com.country}><{$com.country}>·<{/if}><{$com.province }>·<{$com.city }> </td>
    </tr>
    <tr>
      <td class="text_label">公司地址</td>
      <td><a onclick="alertWin('Map','',500,300,'<{$config.weburl}>/templates/default/map.php?addr=<{$com.addr|urlencode}>');" href="javascript:void(0);"><{$com.addr }></a></td>
    </tr>
    <tr>
      <td class="text_label">公司传真</td>
      <td><{$com.fax}></td>
    </tr>
    <tr>
      <td class="text_label">公司邮编</td>
      <td><{$com.zip }></td>
    </tr>
    <tr>
      <td class="text_label"><{$lang.weburl}></td>
      <td><{if $com.url&&$com.url!='http://'}> <a target="_blank" href="javascript:window.location='<{$com.url }>'"><{$com.url }></a> <{/if}> </td>
    </tr>
    <tr>
      <td class="text_label"><{$lang.reg_time}> </td>
      <td><{$com.uptime|date_format}> </td>
    </tr>
     <tr>
      <td class="text_label">二维码</td>
      <td><img src="<{$config.weburl}>/uploadfile/phpqrcode/<{$smarty.get.uid}>.jpg" /></td>
    </tr>
  </table>
  <table align="center" width="100%" border="0">
  <tr bgcolor="#CCCCCC">
    <td>联系名称</td>
    <td>现任职位</td>
    <td>联系电话</td>
    <td>其它信息</td>
  </tr>
  <{foreach item=list from=$member}>
  <tr>
    <td><{$list.name}></td>
    <td><{$list.position}></td>
    <td><{$list.tel}></td>
    <td>QQ:<{$list.qq}><{if $list.skype}>, Skype:<{$list.skype}><{/if}></td>
  </tr>
  <{/foreach}>
</table>
  
</div>
<div class="common_box m1">
<{if $smarty.get.type==1}>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td style="text-align:center"><h1><{$lang.success}></h1></td>
    </tr>
  </table>
  <{elseif $smarty.get.type==2}>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td style="text-align:center"><h1><{$lang.fail}></h1></td>
    </tr>
  </table>
  <{elseif $smarty.get.type==3}>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td style="text-align:center"><h1><{$lang.yzm_er}></h1></td>
    </tr>
  </table>
  <{else}>
  <script type="text/javascript" src="script/Validator.js"></script>
  <form method="post" action="" onSubmit="return Validator.Validate(this,3)">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="2" class="guide_ba"><span><{$lang.leve_msg}></span></td>
      </tr>
      <tr>
        <td  colspan="2" align="left"  style="color:#999999"><{$lang.msg_notice}>
          
          <{if $smarty.cookies.USER==''}>
          <{$lang.mem_notice}>
          <{/if}> </td>
      </tr>
      <{if $tid}>
      <tr>
        <td  class="text_label" ><{$lang.about}></td>
        <td><{foreach item=list from=$res}>
          <{$list.pname}><br />
          <{/foreach}> </td>
      </tr>
      <{/if}>
      <tr>
        <td  class="text_label" ><{$lang.receive}></td>
        <td><{$com.company}> <{$com.contact}></td>
      </tr>
      <{if !$buid}>
      <tr>
        <td class="text_label"><{$lang.company}>*</td>
        <td><input type='text' name='company' value='' style="width:400px;" ></td>
      </tr>
      <tr>
        <td  class="text_label"><{$lang.country}></td>
        <td><select name="country" id="country" class="input" style="width:300px;">
            <{foreach item=list key=num from=$country}>
            <option value="<{$list.name}>"><{$list.name}></option>
            <{/foreach}>
          </select></td>
      </tr>
      <{/if}>
      <tr>
        <td width="15%"  class="text_label" ><{$lang.mail_title}>*</td>
        <td ><input type="text" value="<{$smarty.get.title}>" name="sub" style="width:400px;"  dataType="Require" msg="<{$lang.pls_title}>" />
        </td>
      </tr>
      <tr>
        <td width="15%" class="text_label" valign="top" ><{$lang.mail_con}>*</td>
        <td valign="middle" ><textarea name="con"  rows="10" style="width:400px;" dataType="Require" msg="<{$lang.pls_con}>"></textarea></td>
      </tr>
      <{if $smarty.cookies.USER==''}>
      <tr>
        <td width="15%"  class="text_label" ><{$lang.contact}>*</td>
        <td ><input name="name" type="text" style="width:400px;"  dataType="Require" msg="<{$lang.pls_name}>" />
        </td>
      </tr>
      <tr>
        <td  class="text_label" ><{$lang.email}>*</td>
        <td><input name="email" type="text" style="width:400px;" dataType="Require" msg="<{$lang.pls_email}>" />
        </td>
      </tr>
      <tr>
        <td  class="text_label" ><{$lang.tel}>*</td>
        <td><input name="tell" type="text" style="width:400px;" dataType="Require" msg="<{$lang.pls_tel}>" />
        </td>
      </tr>
      <{/if}>
      <tr>
        <td class="text_label" ><{$lang.yzm}>*</td>
        <td>
          <input name="yzm" type="text" style="width:60px; height:20px;" dataType="Require" msg="<{$lang.yzm}>" />
          <img style="vertical-align:top;" src='includes/rand_func.php' width="60" height="22"/>
        </td>
      </tr>
      <tr>
        <td width="15%" >&nbsp;</td>
        <td>
          <input type="hidden" name="contype" value="<{if $smarty.get.contype}><{$smarty.get.contype}><{else}>1<{/if}>" />
          <input type="hidden" name="tid" value="<{$tid}>" />
          <input type="submit" name="Submit" value="<{$lang.send_now}>" />
          <input name="submit" type="hidden" id="submit" value="submit" />
          <input name="toid" type="hidden"  value="<{$com.admin}>" />
          <input type="hidden"  name="tocontact" value="<{$com.email}>" />
        </td>
      </tr>
    </table>
  </form>
  <{/if}>
</div>