<link href="<{$config.weburl}>/templates/<{$config.temp}>/css/<{$smarty.get.m}>.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="script/Validator.js"></script>
<script type="text/javascript" src="script/index.js"></script>
<script src="<{$config.weburl}>/script/jquery.niceforms.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$(".checkbox").dgStyle();
});
</script>
<div class="guide w">
    <a href="<{$config.weburl}>">Home</a>
    >
    Inquiry Basket
</div>
<div class="w">
	<div class="send">
    <{if $smarty.get.type==1}>
    Send mail success!
    <{else}>
  	<form id="login" name="login" action="" method="post" onSubmit="return Validator.Validate(this,3)">
    <table width="100%">
		<tr>
        	<td width="120" class="tit">Consulting Products:</td>
        	<td>
            	<div class="product">
                <{foreach item=list from=$receive}> 
                <p>
                    <a href="<{$config.weburl}>/?m=offer&s=detail&id=<{$list.id}>"><{$list.title}></a>
                    <input name="toid[]" type="hidden" value="<{$list.userid}>" />
                </p>
                <{/foreach}>
                </div>
            </td>    
        </tr>            
        <tr>
            <td class="tit">Title:</td>
            <td><input type="text" class="text" name="sub" id="sub" dataType="Require" msg="Please fill in the title" /></td>
        </tr>
        <tr>
            <td>Content:</td>
            <td>
            <script charset="utf-8" src="lib/kindeditor/kindeditor-min.js"></script>             
			<script>
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="con"]', {
					langType : 'en'
				});
			});
            </script>
            <textarea name="con" style="width:710px;height:400px;"></textarea>
            </td>
        </tr>
        <tr>
            <td>Inquiry Content:</td>
            <td>
            <{foreach item=list key=num from=$receive_type}>
            <label class="checkbox"><input name="receive_type[]" type="checkbox" value="<{$list}>" /><{$list}></label>
			<{/foreach}>
            </td>
        </tr>
        <tr>
            <td>Recovery time:</td>
            <td>
                <label class="checkbox"><input type="checkbox" name="ask_reply" value="1" id="checkbox" />
                Please reply to me before
                </label>
                <{html_select_date end_year='2025' month_format='%m' field_order='YMD' time=$time}>
            </td>
        </tr>
        <tr>
            <td>Verification code:</td>
            <td class="yzm">
                <input type='text' name='yzm' id="yzm" tabindex="3" class="text" dataType="Require" msg="Please fill in the verification code" />
                <img onclick="get_randfunc(this);" src='<{$config.weburl}>/includes/rand_func.php'/>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td><input type="submit" name="submit" value=" 发送 " /></td>
		</tr>
    </table>
    </form>
	<{/if}>
    </div>
</div>
