📄 comments.tpl.php
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>系统评论</title>
<script language="javascript" src="<?php echo $this->basedir;?>js/func.js"></script>
<style type="text/css">
<!--
body,td,th {
color: #333333;
font-size: 12px;
}
body {
background-color: #FFFFDF;
margin-left: 0px;
margin-top: 0px;
}
/*分页*/
.page{ height:23px; margin:0px;}
.page span{ display:block; float:left; padding:4px 10px 0 10px; height:19px;}
.page span.last{background-position: -1000px;}
.page span font{ font-size:12px;}
.page ul{ float:left; height:23px; margin-left:0px;}
.page ul li{ float:left; height:23px; margin-left:5px; text-align:center; list-style:none }
.page ul li.active{height:18px; width:22px;padding-top:3px; font-weight:bold}
.page ul li a,.page ul li a:visited{ display:block; height:18px; width:22px;padding-top:3px;}
.page ul li a:hover{ text-decoration:none;}
.page ul li.home{ width:auto !important; width:60px;}
.page ul li.home a,.page ul li.home a:visited{ width:auto; height:18px; line-height:18px; padding-left:5px;padding-right:5px;}
*+html .page ul li.home a,*+html .page ul li.home a:visited{ width:48px; height:15px; line-height:18px; padding:3px;}
.page ul li.previous10{ width:50px;}
.page ul li.previous10 a,.page ul li.previous10 a:visited{ width:48px; height:18px; padding-top:3px;}
*+html .page ul li.previous10 a,*+html .page ul li.previous10 a:visited{ width:48px; height:15px; padding-top:6px;}
.page ul li.previous{ width:50px;}
.page ul li.previous a,.page ul li.previous a:visited{ width:48px; height:18px; padding-top:3px;}
*+html .page ul li.previous a,*+html .page ul li.previous a:visited{ width:48px; height:15px; padding-top:6px;}
.page ul li.next{ width:50px;}
.page ul li.next a,.page ul li.next a:visited{ width:48px; height:18px; padding-top:3px;}
*+html .page ul li.next a,*+html .page ul li.next a:visited{ width:48px; height:15px; padding-top:6px;}
.page ul li.next10{ width:50px;}
.page ul li.next10 a,.page ul li.next10 a:visited{ width:48px; height:18px; padding-top:3px;}
*+html .page ul li.next10 a,*+html .page ul li.next10 a:visited{ width:48px; height:15px; padding-top:6px;}
.page ul li.lastly{ width:50px;}
.page ul li.lastly a,.page ul li.lastly a:visited{ width:48px; height:18px; padding-top:3px;}
*+html .page ul li.lastly a,*+html .page ul li.lastly a:visited{ width:48px; height:15px; padding:3px;}
/*分页*/
.page ul li.active{color:#333;background:url(page_bga.jpg);border:1px solid #FECA2F;}
.page ul li a,.page ul li a:visited{border:1px solid #ddd;background:url(page_bg.jpg)}
.page ul li a:hover{border:1px solid #FECA2F;background:url(page_bga.jpg);color:#333}
a:link {
text-decoration: none;
color: #333333;
}
a:visited {
text-decoration: none;
color: #666666;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style>
<script language="javascript">
window.onload=function(){
window.resizeTo(document.body.clientWidth,document.body.clientHeight);
iframeAutoFit();
}
function check(){
var frm = document.form1;
if (frm.content.value == ''){
alert('请填写评论内容');
frm.content.focus();
return false;
}
return true;
}
</script>
</head>
<body onLoad="iframeAutoFit()">
<form id="form1" name="form1" method="post" action="" onSubmit="return check();">
<table width="100%" border="1" align="center" cellpadding="5" cellspacing="0" bordercolor="#EFEFEF" style="border-collapse:collapse">
<tr>
<td height="20" background="<?php echo $this->basedir;?>templates/public/images/title_bg_1.gif"><STRONG>最新评论:</STRONG>共有<span style="color:red"><?php echo (int)$this->comments;?></span>位用户发布了评论</td>
</tr>
<?php if(count($this->comment)>0){foreach($this->comment as $rs){?>
<tr>
<td>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" style=" border:1px dotted #CCCCCC" class="s">
<tr>
<td valign="middle" bgcolor="#F7F7F7">发布人:<?php echo $rs['username'];?> 发布时间:{#date("Y-m-d H:i:s",$rs['addtime'])#}</td>
<td width="7%" bgcolor="#F7F7F7"><?php
if ($this->isadmin === true){?><a href="<?php echo $this->installdir;?>content/comment/delete/<?php echo $rs['id'];?>/">删除</a><?php }?></td>
</tr>
<tr>
<td colspan="2" valign="middle" bgcolor="#FFFFFF" style="text-indent:2em"><?php echo $rs['content'];?></td>
</tr>
</table></td>
</tr>
<?php }}else{echo '<tr><td align="center">暂无评论</td></tr>';}?>
<tr>
<td><?php echo $this->printpage;?></td>
</tr>
<tr>
<td background="<?php echo $this->basedir;?>templates/public/images/title_bg_1.gif"><strong>发布新评论:<?php echo $this->username;?></strong></td>
</tr>
<tr>
<td>
<label for="textarea">评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。 </label>
<textarea name="content" cols="60" rows="5" id="textarea"></textarea> </td>
</tr>
<tr>
<td><label for="Submit"></label>
<input type="submit" name="" value="发布评论" id="Submit">
<label>
<input type="button" name="Submit" value="关闭窗口" onClick="window.close();">
</label></td>
</tr>
</table>
<input type="hidden" name="movid" value="<?php echo $this->movid;?>" />
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -