<!--<?php
require_once(uTemplate::printEot('header'));
require_once(uTemplate::printEot('user_appleft'));
print<<<EOT
-->
<div class="contUser">
    <div class="p15">
			<h4 class="site"><img src="u/images/module/lightbulb.png" align="absmiddle" class="mr10" /><span>孔明燈</span></h4>           	
        <div class="navC">
            <ul>
                <li class="current"><a  href="apps.php?q=kmd"  hidefocus="true">我的孔明燈</a></li>
                <li><a href="apps.php?q=kmd&a=record" hidefocus="true">購買記錄</a></li>
            </ul>
			<span class="btn_add fl"><span><button onclick="window.location.href='{$basename}a=buy1';">購買孔明燈</button></span></span>
        </div>
        
		<div class="p15 cc">
					<ol class="steps pr">
						<li><em>1</em>填寫推廣信息</li>
						<li class="current"><em>2</em>填寫基本資料</li>
						<li><em>3</em>支付</li>
					</ol>
				</div>
				<div class="p10">
				<form action="{$basename}a=buy3" method="post" onSubmit="return checkUserinfo();">
				<input type="hidden" name="tid" id="tid" value="{$tid}" />
				<input type="hidden" name="sid" id="sid" value="{$sid}" />
					<table width="100%">
						<tr class="tr3">
							<td width="90" class="tar">真實姓名︰</td>
							<td width="200"><input name="realname" value="{$userInfo['realname']}" id="realname" type="text" class="input mr5 input_wa"/><span class="s1">*</span></td>
							<td><span class="gray">用于孔明燈審核聯系使用，請務必填寫正確</span></td>
						</tr>
						<tr class="tr3">
							<td class="tar">手機號碼︰</td>
							<td><input name="tel" id="tel" value="{$userInfo['tel']}" type="text" class="input mr5 input_wa"/><span class="s1">*</span></td>
							<td><span class="gray">用于孔明燈審核聯系使用，請務必填寫正確</span></td>
						</tr>
						<tr class="tr3">
							<td class="tar">發票抬頭︰</td>
							<td><input name="invoice" value="{$userInfo['invoice']}" id="invoice" type="text" class="input mr5 input_wa"/></td>
							<td><span class="gray">公司填寫企業名稱，個人填寫姓名</span></td>
						</tr>
						<tr class="tr3">
							<td class="tar">聯系地址︰</td>
							<td><input name="address" value="{$userInfo['address']}" id="address" type="text" class="input mr5 input_wa"/></td>
							<td><span class="gray">填寫正確的聯系地址，用于發票寄送</span></td>
						</tr>
					</table>
					<div class="tac p10"><span class="bt"><span><button  onclick="window.location.href='{$basename}a=buy1&tid={$tid}&sid={$sid}';return false;" >上一步</button></span></span><span class="btn"><span><button type='submit'>下一步</button></span></span></div>
				</form>
				</div>
        
    </div>
</div> 
<script type="text/javascript">
function checkUserinfo(){
	var realname = getObj('realname').value;	
	var tel = getObj('tel').value;		
	if(realname==""){
		showDialog('error','請填寫真實姓名！');
		return false;
	}else if(tel==""){
		showDialog('error','請填寫手機號碼！');
		return false;
	}else{
		return true;
	}
}
</script>
<!--
EOT;
require_once(uTemplate::printEot('footer'));
?>