⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 category_index.tpl.php

📁 a short sketch about linux syntex lines.
💻 PHP
字号:
<html>
<head>
<title>系统后台</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" type="text/javascript"></script>
<script src="<?php echo $this->basedir;?>js/jquery.tablednd.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
    // Initialise the table
    $("#tbl").tableDnD({
		onDragClass:'rows',
		onDrop: function(table, row) {
            //alert($.tableDnD.serialize());
			$.get("<?php echo $this->installdir;?>?mod=category&action=modify&do=sort",$.tableDnD.serialize());
        }
	});
});
</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"><a href="<?php echo $this->installdir;?>?mod=category&action=index">分类列表</a><?php echo $this->location;?>(拖动表格行可对分类进行排序)</div>
		<table cellspacing="1" cellpadding="4" class="tab" id="tbl">
          <tr class="sub align-center nodrag">
            <td width="10%" class="align-center">编号</td>
            <td width="22%" class="align-center">分类名</td>
            <td width="11%" class="align-center">影片数</td>
            <td width="12%" class="align-center">分类合并</td>
            <td width="8%" class="align-center">状态</td>
            <td width="13%" class="align-center">生成页面</td>
            <td width="24%" class="align-center">管理</td>
          </tr>
          <?php
          if (count($this->category)>0){
          	foreach ($this->category as $rs){?>
			   <tr class="row" id="<?php echo $rs['id'];?>">
				<td class="align-center"><?php echo $rs['id'];?></td>
				<td><?php
				if ($rs['link']){?>
				<a target="_blank" href="<?php echo $rs['link'];?>/"><?php echo $rs['category'];?></a>
				<?php }else{?>
				<a  href="<?php echo $this->installdir;?>?mod=category&action=index&id=<?php echo $rs['id'];?>"><?php echo $rs['category'];?></a>
				<?php }?>
				[<?php echo $rs['nodes'];?>]</td>
				<td class="align-center"><?php echo $rs['moviecount'];?></td>
				<td class="align-center"><?php if(empty($rs['link'])){?><a href="<?php echo $this->installdir;?>?mod=category&action=modify&id=<?php echo $rs['id'];?>&do=move">合并</a><?php }?></td>
				<td class="align-center"><a href="<?php echo $this->installdir;?>?mod=category&action=modify&id=<?php echo $rs['id'];?>&do=locked"><?php echo $rs['locked'] ? '隐藏' : '启用';?></a></td>
				<td class="align-center"><?php if(empty($rs['link'])){?><a href="<?php echo $this->installdir;?>?mod=make&action=category&do=yes&id=<?php echo $rs['id'];?>">生成</a><?php }?></td>
				<td class="align-center"><?php if($rs['nodes']>0){?><a href="<?php echo $this->installdir;?>?mod=category&action=index&id=<?php echo $rs['id'];?>">浏览子类</a>&nbsp;<?php }?><a href="<?php echo $this->installdir;?>?mod=category&action=modify&id=<?php echo $rs['id'];?>">编辑</a> <a href="<?php echo $this->installdir;?>?mod=category&action=delete&id=<?php echo $rs['id'];?>" onclick="return confirm('确认删除吗')" >删除</a></td>
			  </tr>
			  <?php
          	}
          }else{
          	echo '<tr class="row align-center"><td colspan="7">没有找到任何记录!</td></tr>';
          }?>
          <tr class="row align-center nodrag"><td colspan="7"><a href="javascript:history.back()">返回上一页!</a></td></tr>
        </table>
	  </div>
      
      <div id="App-Version-Prompt" style="display:none;">
        <div class="space"></div>
        <div class="Block">
          <div class="BlockBar">版本更新信息</div>
          <div class="BlockContent" id="App-Version-Prompt-Body" style="padding:20px 5px 20px 5px; text-align:center; background:#FFFFCC;">loading...</div>
        </div>
      </div>
      <!-- ########## end ########## -->
    </td>
    <td width="5"></td>
    <td width="150" align="center" valign="top">
    <?php
	echo $this->render('menu');
	?>
     </td>
  </tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -