📄 urls.php
字号:
<?php
if(!defined('IN_ONEZ') || !defined('IN_ADMIN')) {
exit('Access Denied');
}
include("header.php");?>
<table border="0" cellspacing="1" align="center" class="list">
<tr align="center">
<th width="10%">用户名称</th>
<th width="8%">状态</th>
<th width="40%">网页</th>
<th width="10%">点击次数</th>
<th width="16%">添加时间</th>
<th width="16%">操作</th>
</tr>
<?
$status=array('-1'=>'<font color=red>冻结</font>','0'=>'<font color=red>未审核</font>','1'=>'<font color=green>正常</font>');
foreach($urls[0] as $rs){
$id=$rs['id'];
?>
<tr align="center">
<td height="20"><?=$rs["username"]?></td>
<td><?=$status[$rs["status"]]?></td>
<td align="left"><?=$rs["weburl"]?></td>
<td><?=$rs["hits"]?></td>
<td><?=date('Y-m-d H:i:s',$rs["addtime"])?></td>
<td>
<?if($rs["status"]!=1){?><a href="javascript:onez('status',<?=$id?>,1)"><?=$rs["status"]==0?'审核':'解封'?></a> - <?}?>
<?if($rs["status"]!=-1){?><a href="javascript:onez('status',<?=$id?>,-1)">冻结</a> - <?}?>
<!--<a href="?action=users_edit&id=<?=$id?>">编辑 - </a>-->
<a href="javascript:onez('del',<?=$id?>)">删除</a>
</td>
</tr>
<?}?>
</table>
</form>
<table width='90%' height=2><tr ><td></td></tr></table>
<!--页码开始-->
<?=$urls[1]?>
<!--页码结束-->
<script type="text/javascript">
function $(id){
return document.getElementById(id);
}
function onez(ntype,id,s){
if(ntype=='del'){
if(confirm('您确定要删除吗?')){
window.location.href='save.php?action=urls_del&ac=<?=$_GET['action']?>&page=<?=$_GET['page']?>&id='+id;
}
}else if(ntype=='status'){
window.location.href='save.php?action=urls_setstatus&ac=<?=$_GET['action']?>&page=<?=$_GET['page']?>&s='+s+'&id='+id;
}
}
</script>
<?include("footer.php");?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -