comments_index.tpl.php
来自「a short sketch about linux syntex lines.」· PHP 代码 · 共 96 行
PHP
96 行
<html>
<head>
<title>vodcms.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../../images/admin/public.css" rel="stylesheet" type="text/css" />
<link href="../../images/admin/style.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->basedir;?>js/jquery.js" language="javascript"></script>
<script src="<?php echo $this->basedir;?>js/jquery.tablednd.js" language="javascript"></script>
<script language="javascript">
$(document).ready(function() {
$("#ta tr").mouseover(function(){
$(this).addClass("over");
});
$("#ta tr").mouseout(function(){
$(this).removeClass("over");
});
$("#ta tr:even").addClass("double");
$('#mostrar').click(function(){$('#sh').toggle();});
/*全选*/
$("#checkall").click(function() {
$("input[@name='id[]']").each(function() {
$(this).attr("checked", $('#checkall').attr('checked'));
});
});
$("#all").click(function() {
$("input[@name='id[]']").each(function() {
$(this).attr("checked", $('#all').attr('checked'));
});
});
});
</script>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr align="center" valign="top">
<td width="*" align="center" valign="top">
<!-- ######### begin ######### -->
<div class="Block">
<div class="BlockBar">系统节目评论</div>
<form id="form1" name="form1" method="post" action="<?php echo $this->installdir;?>?mod=comments&action=post">
<table cellspacing="1" cellpadding="1" class="tab">
<tr class="sub align-center">
<td width="9%" class="align-center">编号</td>
<td width="13%">评论人</td>
<td width="9%">影片</td>
<td width="16%">发布时间</td>
<td width="34%">评论内容</td>
<td width="19%"><input name="checkall" type="checkbox" class="checkbox" id="checkall" value="checkbox" />全选/反选</td>
</tr>
<?php
if (count($this->connets)>0){
foreach($this->connets as $row){?>
<tr class="row">
<td class="align-center"><?php echo $row['id'];?></td>
<td class="align-center"><?php echo $row['username'];?></td>
<td class="align-center"><?php echo $row['movie'];?></td>
<td class="align-center"><?php echo date('Y-m-d H:i:s', $row['addtime']);?></td>
<td class="align-center"><?php echo $row['content'];?></td>
<td class="align-center"><label>
<input name="id[]" type="checkbox" class="checkbox" id="id[]" value="<?php echo $row['id'];?>" />
</label>
<a href="<?php echo $this->installdir;?>?mod=comments&action=delete&id=<?php echo $row['id'];?>" onClick="return confirm('确认删除吗?')">删除</a> <?php if($row['locked'] == 1){?><a href="<?php echo $this->installdir;?>?mod=comments&action=locked&id=<?php echo $row['id'];?>">待审核</a><?php }?></td>
</tr>
<?php }
}
else{
}?>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td width="82%">
<?php echo $this->printpage;?>
<div class="form-handle">
<label>
<input name="all" type="checkbox" class="checkbox" id="all" value="checkbox" />
全选
</label>
<select name="post" id="post">
<option value="locked">审核评论</option>
<option value="delete">批量删除</option>
</select>
<input type="submit" name="Submit3" value="操作" />
</div>
</td>
</tr></table></form>
</div>
</td>
</tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?