<!-- #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;
}
.ay_new{
	width: 500px;
	background-color: #fafafa;
	padding: 10px 20px;
}
-->
</style>
<?php if(!empty($mpv[1])){?>
<a href="<?=url(RPGM.'newtopic/'.MID.'/')?>"><img src="<?=THEMEPATH?>img/add.png"  alt="<?=htmlmlang('新主题')?>" /></a> <a href="<?=url(RPGM.'edittopic/'.MID.'/'.$arg_0['pid'].'/')?>"><img  src="<?=THEMEPATH?>img/edit.png"  alt="<?=htmlmlang('编辑')?>" /></a>
<?php }?>
<h4 class="ay"><?=$arg_0['title']?><br />
            <span>
<?=$arg_0['items']['ychuang']?('<b>'.htmlmlang('原创').'</b>'):''?> <?=htmlmlang('作者')?>:<?=$arg_0['name']?> <?=htmlmlang('发布日期')?>:<?=$arg_0['post_time']?>
</span></h4> 
<div class="ay_hr"></div>
<p><?=$arg_0['doc']?></p>
<div class="ay_hr"></div>
<p style="font-size:125%"><?=tpl_ad(1)?><?=$arg_0['content']?>
<div class="clear"></div>
</p>

<!-- 评论 -->
<div class="ay_hr"></div>
<?php if($arg_0['comment']>0){?>

<h4 class="ay"><?=htmlmlang('评论')?></h4>
<div class="ay_hr"></div>

<?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($arg_0['comment']>5){?>
<h6 class="tr"><a href="<?=url(RPGM.'showc/'.MID.'/'.$arg_0['pid'].'/')?>"><?=htmlmlang('更多')?>...</a></h6>
<?php }?>
<?php }else{?>
<h3><?=htmlmlang('暂无评论')?>!</h3>
<?php }?>
<?php if(!empty($mpv[2])){?>
<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('提交')?>" type="submit" class="button"> 
    <input value="<?=htmlmlang('重置')?>" type="reset" class="button">
</div>
</form>
<?php }?>
