<!--<?php print <<<EOT
-->
<div align="center"><a href="./"><img src="../img/fo2.jpg" alt="免费网络烧香拜佛" width="980" height="125" /></a></div>

<table width="980" border="0" align="center" bgcolor="#FFFFFF" cellspacing="1" cellpadding="0">
  <tbody>
  <tr> 
    <td width="220" valign="top">
<a href="http://www.tlfjw.com"><img src="../img/220.gif" width="220" height="56" border="0" /></a>
<!--
EOT;
$listname = "拜佛常识";
$txtsou = "where $sql_tbl[newsletter].avail = 'Y'";

$rnd = rand();
$txtorderby = "ORDER BY RAND(NOW()+$rnd)";

$intjilu = 20;
include ('../template/netgou/topnews.htm');
print <<<EOT
-->
	</td>
    <td width="760" valign="top"> 
<table width="100%" border="0" class="biaoge" cellspacing="0" cellpadding="0" background="../img/wh18.jpg">
  <tbody>
  <tr>
    <td class="biaoge_biaoti" colspan="2" align="center">我要烧香</td>
  </tr>
<form action='sxadd.php' method=post name=hxgdform onSubmit='return chktask(this)'>
<INPUT type='hidden' name='mode' value='add'>
<INPUT type='hidden' name='username' value='$username'>
<INPUT type='hidden' name='uid' value='$uid'>
  <tr>
    <td class="biaoge_tdright">佛像选择：</td>
    <td class="biaoge_td"> 
	
<table width="100%" border="0">
  <tbody>
  <tr>
    <td>  
<select onchange="document.images['sxfoimg'].src=options[selectedIndex].value;" size="18" name="sxfoimg">
  <option value="img/1.jpg" selected="selected" >释迦牟尼佛</option>
  <option value="img/2.jpg">阿弥陀佛</option>
  <option value="img/3.jpg">药师佛</option>
  <option value="img/4.jpg">普贤菩萨</option>
  <option value="img/5.jpg">文殊师利菩萨</option>
  <option value="img/6.jpg">观世音菩萨</option>
  <option value="img/7.jpg">地藏王菩萨</option>
  <option value="img/8.jpg">弥勒菩萨</option>
  <option value="img/9.jpg">大势至菩萨</option>
  <option value="img/10.jpg">准提菩萨</option>
  <option value="img/11.jpg">韦驮菩萨</option>
  <option value="img/12.jpg">无边身如来</option>
  <option value="img/13.jpg">宝性如来</option>
  <option value="img/14.jpg">波头摩胜如来</option>
  <option value="img/15.jpg">师子吼如来</option>
  <option value="img/16.jpg">拘留孙佛</option>
  <option value="img/17.jpg">毗婆尸佛</option>
  <option value="img/18.jpg">宝胜如来</option>
  <option value="img/19.jpg">宝相如来</option>
  <option value="img/20.jpg">袈裟幢如来</option>
  <option value="img/21.jpg">大通山王如来</option>
  <option value="img/22.jpg">净月佛</option>
  <option value="img/23.jpg">山王佛</option>
  <option value="img/24.jpg">智胜佛</option>
  <option value="img/25.jpg">净名王佛</option>
  <option value="img/26.jpg">智成就佛</option>
  <option value="img/27.jpg">无上佛</option>
  <option value="img/28.jpg">妙声佛</option>
  <option value="img/29.jpg">满月佛</option>
  <option value="img/30.jpg">月面佛</option>
</select><img id="sxfoimg" src="img/1.jpg" width="217" height="253" alt="诸佛菩萨" />
    </td>
  </tr>
  </tbody>
</table>

	</td>
  </tr>
  <tr>
    <td width="160" class="biaoge_tdright">选择供品：</td>
    <td width="600" class="biaoge_td">
	
<table width="100%" border="0">
  <tbody>
  <tr>
	<td><input type="radio" name="sxgp" value="img/g5.gif"  checked="checked"/></td>
	<td><img src="img/g5.gif" width="190" height="100" /></td>
	<td><input type="radio" name="sxgp" value="img/g2.gif" /></td>
	<td><img src="img/g2.jpg" width="190" height="100" /></td>
	<td><input type="radio" name="sxgp" value="img/g4.gif" /></td>
	<td><img src="img/g4.gif" width="190" height="100" /></td>
  </tr>
  <tr>
	<td width="16"><input type="radio" name="sxgp" value="img/g1.gif"/></td>
	<td width="190"><img src="img/g1.jpg" width="190" height="100" /></td>
	<td width="16"><input type="radio" name="sxgp" value="img/g3.gif" /></td>
	<td width="190"><img src="img/g3.jpg" width="190" height="100" /></td>
	<td width="16"><input type="radio" name="sxgp" value="img/g6.gif" /></td>
	<td width="190"><img src="img/g6.jpg" width="190" height="100" /></td>
  </tr>
  </tbody>
</table>

    </td>
  </tr>
  <tr>
    <td class="biaoge_tdright">施主名字：</td>
    <td class="biaoge_td"><input type="text" name="sxname" id="sxname" size="20" maxlength="32" value="$userinfo[hxname]" /></td>
  </tr>
<!--
EOT;
$fselected = ($userinfo[hxsex] == 'f')?"selected":"";
$mselected = ($userinfo[hxsex] == 'm')?"selected":"";
$hxgd = ($userinfo[hxgd] <> "")?$userinfo[hxgd]:"愿以此功德。庄严佛净土。
上报四重恩。下济三途苦。
若有见闻者。悉发菩提心。
尽此一报身。同生极乐国。";
print <<<EOT
-->
  <tr>
    <td class="biaoge_tdright">施主性别：</td>
    <td class="biaoge_td"><select id="sxsex" name="sxsex"><option value=f $fselected>信女</option><option value=m $mselected>善男</option></select></td>
  </tr>
  <tr>
    <td class="biaoge_tdright">施主年龄：</td>
    <td class="biaoge_td"><input type="text" name="sxage" id="sxage" size="20" maxlength="32" value="$userinfo[hxage]" /></td>
  </tr>
  <tr>
    <td class="biaoge_tdright">施主地址：</td>
    <td class="biaoge_td"><input type="text" name="sxaddress" size="20" maxlength="32" value="$userinfo[hxaddress]" /></td>
  </tr>
  <tr>
    <td class="biaoge_tdright">回向功德：</td>
    <td class="biaoge_td">
  
<table width="100%" border="0">
  <tbody>
  <tr>
    <td width="200"><textarea name="hxgd" id="hxgd" rows="10" cols="38">$hxgd</textarea></td>
    <td width="350" valign="top">
<SCRIPT language=JavaScript src="../include/hxgd.js"></SCRIPT>
<!--
EOT;
include ('../template/netgou/huixiang.htm');
print <<<EOT
-->
	</td>
  </tr>
  </tbody>
</table>

	</td>
  </tr>
  <tr>
    <td colspan="2" align="center" height="30"><input type="submit" value="我要烧香">
	<input type="reset" value="清除输入">
	</td>
  </tr>
</form>
</tbody>
</table>
<SCRIPT language=JavaScript src="../img/AC_RunActiveContent.js"></SCRIPT>
<SCRIPT type=text/javascript>
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0','height','80','width','760','src','../img/amtf101','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','../img/amtf101' ); //end AC code
</SCRIPT>
	</td> 
  </tr>
  </tbody>
</table>
<script language=JavaScript1.2>
function chktask(formct){
	
	if (formct.sxname.value=='' ){
		alert('施主名字为空，请填写施主名字');
		return false; 
	}
	
	if (formct.sxage.value=='' ){
		alert('施主年龄为空，请填写施主年龄');
		return false; 
	}
	
	if (formct.sxaddress.value=='' ){
		alert('施主地址为空，请填写施主地址');
		return false; 
	}
	
	if (formct.hxgd.value=='' ){
		alert('回向功德为空，请填写回向功德');
		return false; 
	}
	
}
</script>
<!--
EOT;
?>-->