<div class="m">
	<div class="mt">Contact Information</div>
	<div class="mc info clearfix">
  		<h2><{$com.contact}></h2>
		<div class="i-info clearfix">
            <dl class="clearfix"><dt>Job Title:</dt><dd><{$com.position}></dl>
            <dl class="clearfix"><dt>Telephone:</dt><dd><{$com.tel}></dl>
            <dl class="clearfix"><dt>Location:</dt><dd><{$com.country}> <{$com.province}> <{$com.city}></dl>
		</div>
    </div>
</div>

<div class="m">
	<div class="mt">Company Contact Information </div>
	<div class="mc info clearfix">
  		<h2><{$com.company}></h2>
		<div class="mt10 clearfix">
            <dl class="clearfix"><dt>Zip:</dt><dd><{$com.zip}></dd></dl>
        	<dl class="clearfix"><dt>Fax:</dt><dd><{$com.fax}></dd></dl>
            <dl class="clearfix"><dt>Location:</dt><dd><{$com.country}> <{$com.province}> <{$com.city}>  <{$com.addr}></dd></dl>
   			<dl class="clearfix"><dt>Website:</dt><dd><a href="<{$com.url}>"><{$com.url}></a></dd></dl>
		</div>
    </div>
</div>

<div class="m">
	<div class="mt">Email to this supplier</div>
	<div class="mc clearfix">
    <{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="1" cellpadding="0" class="contact">
		<tr>
            <td colspan="2" align="left">
            	<{$lang.msg_notice}>
                <{if $smarty.cookies.USER==''}>
                    <{$lang.mem_notice}>
                <{/if}>
            </td>
        </tr>
        <{if $tid}>
        <tr>
            <td align="right"><{$lang.about}></td>
            <td>
            <{foreach item=list from=$res}>
				<{$list.pname}><br />
            <{/foreach}>
            </td>
        </tr>
        <{/if}>
        <tr>
            <td  width="80" align="right">To:</td>
            <td><{$com.company}> <{$com.contact}></td>
        </tr>
        <{if !$buid}>
        <tr>
            <td align="right">* From:</td>
            <td><input type='text' name='company' value='' ></td>
		</tr>
		<tr>
            <td align="right"><{$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 align="right">*<{$lang.mail_title}></td>
            <td><input type="text" value="<{$smarty.get.title}>" name="sub"  dataType="Require" msg="<{$lang.pls_title}>" />
        	</td>
        </tr>
		<tr>
            <td align="right">*Message</td>
            <td valign="middle" ><textarea name="con" rows="10" dataType="Require" msg="<{$lang.pls_con}>"></textarea></td>
        </tr>
        <{if $smarty.cookies.USER==''}>
        <tr>
            <td align="right">*<{$lang.contact}></td>
            <td ><input name="name" type="text"  dataType="Require" msg="<{$lang.pls_name}>" />
            </td>
        </tr>
        <tr>
            <td align="right">*<{$lang.email}></td>
            <td><input name="email" type="text" dataType="Require" msg="<{$lang.pls_email}>" />
            </td>
        </tr>
        <tr>
            <td align="right">*<{$lang.tel}></td>
            <td><input name="tell" type="text" dataType="Require" msg="<{$lang.pls_tel}>" />
            </td>
        </tr>
        <{/if}>
        <tr>
            <td align="right">*<{$lang.yzm}></td>
            <td>
            <input name="yzm" type="text" style="width:60px;" dataType="Require" msg="<{$lang.yzm}>" />
            <img align="absmiddle" src='includes/rand_func.php' height="30"/>
            </td>
   		</tr>
        <tr>
            <td>&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>
</div>