level 1
天灵盖IT
楼主
<foreach name="arr" item="vo">
<tr>
<td width="99" height="22" align="center" bgcolor="#FFFFFF">
<a href="#"> {$vo.use_username}</a><img src="/yongchun/Public/homeimages/01.gif">
</td>
<td bgcolor="#FFFFFF">
{$vo.mes_content}
<p align="right">
<small>{$vo.mes_id}楼</small>
<small> {$vo.mes_time|date=*Y-m-d*,###}</small>
<input type="button" value="回复" onclick="show()">
<a href="{:U(*del_replay*)}?mes_id={$vo.mes_id}" onclick="return confirm(*是否删除?*);"><input type="button" value="删除"/></a>
<div style="display:none" id="div1" align="center"">
<form id="form1" name="form1" method="post" action="" >
<textarea name="replay" cls="100" rows="3" id="replay" style="border:d2d3d9 solid 1px; width:450px; height:40px;" rows="10" cols="45">
</textarea>
<input type="submit" name="button1" value="发表" onclick="show()">
</form>
</div>
<script>
function show()
{
var value=document.getElementById(*div1*).style.display;
if(value=="none")
{
document.getElementById(*div1*).style.display="block";
}
else document.getElementById(*div1*).style.display="none";
}
</script>
</p>
</td>
</tr>
</foreach>
2014年11月18日 15点11分
1
<tr>
<td width="99" height="22" align="center" bgcolor="#FFFFFF">
<a href="#"> {$vo.use_username}</a><img src="/yongchun/Public/homeimages/01.gif">
</td>
<td bgcolor="#FFFFFF">
{$vo.mes_content}
<p align="right">
<small>{$vo.mes_id}楼</small>
<small> {$vo.mes_time|date=*Y-m-d*,###}</small>
<input type="button" value="回复" onclick="show()">
<a href="{:U(*del_replay*)}?mes_id={$vo.mes_id}" onclick="return confirm(*是否删除?*);"><input type="button" value="删除"/></a>
<div style="display:none" id="div1" align="center"">
<form id="form1" name="form1" method="post" action="" >
<textarea name="replay" cls="100" rows="3" id="replay" style="border:d2d3d9 solid 1px; width:450px; height:40px;" rows="10" cols="45">
</textarea>
<input type="submit" name="button1" value="发表" onclick="show()">
</form>
</div>
<script>
function show()
{
var value=document.getElementById(*div1*).style.display;
if(value=="none")
{
document.getElementById(*div1*).style.display="block";
}
else document.getElementById(*div1*).style.display="none";
}
</script>
</p>
</td>
</tr>
</foreach>
