<!-- #include file="../../themes/default/~css.php" -->
<style type="text/css">
<!--
h4.ay{
color:#151515;
margin:0;
padding:10px 0;	
}
h4.ay a{
	text-decoration: none;
}

h4.ay span{
	color:#B3B3B3;
	font-size:75%;
	font-weight: normal;
}
h6.ay{
color:#151515;
margin:0;
padding:10px 0;	
}
h6.ay a{
	text-decoration: none;
}

h6.ay span{
	color:#B3B3B3;
	font-weight: normal;
}

.ay_hr{
	background:none repeat scroll 0 0 transparent;
border-top:1px solid #EBEBEB;
clear:both;
line-height:0;
margin:5px 0;
padding:0;
}

-->
</style>
<h4 class="ay"><?=$arg_0['title']?><br />
<span><?=htmlmlang('作者')?>:<?=$arg_0['name']?> <?=htmlmlang('发表于')?>:<?=$arg_0['post_time']?></span></h4>
<h4 class="ay"><?=htmlmlang('评论')?></h4>

<form action="<?=url(RPGM.'delcomment/'.MID.'/'.$arg_0['pid'].'/?ajax')?>" method="post" id="form2" onsubmit="return yun_submit(this.id,'<?=htmlmlang('要删除评论吗')?>?')">

<?php foreach($arg_1 as $k=>$v){?>
<div id="cid_<?=$k?>">
<h6 class="ay"><?=$v['author']?><br />
<span><?=htmlmlang('发表于')?>:<?=$v['post_time']?> <?php if(!empty($mpv[3])){?> | <a class="win" href="<?=url(RPGM.'editcomment/'.MID.'/'.$arg_0['pid'].'/'.$k.'/?win')?>"><?=htmlmlang('编辑')?></a> | <a onclick="yun_send('<?=url(RPGM.'delcomment/'.MID.'/'.$arg_0['pid'].'/'.$k.'/?ajax')?>','<?=htmlmlang('确定要删除吗')?>?');return false;" href="javascript:void(0)"><?=htmlmlang('删除')?></a> <?php }?></span></h6>
<p><?=$v['content']?></p>
<div class="ay_hr"></div>
</div>

<?php }?>
<?php if(!empty($mpv[3])){?> 
<div align="center">
    <input value="<?=htmlmlang('删除所选')?>" type="submit" class="button"> 
    <input value="<?=htmlmlang('reset')?>" type="reset" class="button">
    <input type="checkbox" onclick="CheckAll(this.form)" name="chkall"/><?=htmlmlang('全选')?>
  </div>
<?php }?>
</form>
<?=$arg_2?>
<?php if(!empty($mpv[2])){?>
<div class="ay_hr"></div>
<form class="ay_new" action="<?=url(RPGM.'newcomment/'.MID.'/'.$arg_0['pid'].'/?ajax')?>" method="post" enctype="multipart/form-data" id="form" onsubmit="return yun_submit(this.id)">
<h4><?=htmlmlang('发表评论')?></h4>
   <textarea name="content" id="editor1" style="width:100%;height:100px;"></textarea>
<div align="center">
    <input value="<?=htmlmlang('submit')?>" type="submit" class="button"> 
    <input value="<?=htmlmlang('reset')?>" type="reset" class="button">
</div>
</form>
<?php }?>
