index.tpl.php
来自「a short sketch about linux syntex lines.」· PHP 代码 · 共 398 行 · 第 1/2 页
PHP
398 行
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="generator" content="vodcms6.0.3">
<meta name="author" content="www.vodcms.com">
<meta name="keywords" content="<?php echo stripslashes($this->config['keywords']);?>">
<meta name="description" content="<?php echo stripslashes($this->config['contents']);?>">
<title><?php echo $this->config['title'];?></title>
<link rel="stylesheet" type="text/css" href="images/global.css">
<link rel="stylesheet" type="text/css" href="images/index.css">
<link rel="stylesheet" type="text/css" href="images/movie.css">
<script src="<?php echo $this->basedir;?>js/jquery.js" type="text/javascript"></script>
<script src="<?php echo $this->basedir;?>js/func.js"></script>
<script src="<?php echo $this->basedir;?>js/swf_noclick.js"></script>
</head>
<body>
<!--#include file="header.tpl.php"-->
<script type="text/javascript">
$(document).ready(function() {
// Initialise the table
//showBest();
var obj = document.getElementById('firstbest').rows.item(0).cells;
$(obj).each(function() {
$(this).click(function(){showBest(this)});
});
showBest(document.getElementById('lianzai')); //初始化默认推荐影片为连载区
});
function showBest(o){ //显示区域
//return false;
var obj = document.getElementById('firstbest').rows.item(0).cells;
for(i=0;i<obj.length;i++){
obj[i].className = '';
}
o.className = 'firstbested';
$('#best_data').html(o.lastChild.innerHTML);
}
</script>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="190" valign="top"><!--用户登录开始-->
<table width="189" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="195" height="27" valign="middle" class="in_user_01">用户登陆</td>
</tr>
<tr>
<td valign="top" class="in_user_02"><iframe scrolling="no" src="<?php echo $this->installdir;?>?mod=member&action=login" width="189" height="182" frameborder="0"></iframe></td>
</tr>
<tr>
<td background="images/index/index_user_02.jpg" height="3"></td>
</tr>
</table>
<!--登录结束--></td>
<td valign="top" align="center"><div style="border:1px solid #999999; padding:4px; width:464px;" id="flashbanner">
<script src="<?php echo $this->installdir;?>?mod=index&action=flash&size=464X200"></script>
</div></td>
<td width="279" valign="top" height="217"><!--站点公告-->
<table width="279" border="0" cellspacing="0" cellpadding="0" height="210">
<tr>
<td width="279" height="22" valign="bottom" background="images/index/index_08.jpg" style=" padding-left:39px;"><table width="25%" height="22" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>站点公告</td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top" class="in_05" height="168"><script src="<?php echo $this->basedir;?>js/note.js"></script></td>
</tr>
<tr>
<td height="3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="3" height="3" background="images/index/index_08_01.jpg"></td>
<td height="3" background="images/index/index_08_02.jpg"><img src="images/index/index_08_02.jpg" /></td>
<td width="3" background="images/index/index_08_03.jpg"></td>
</tr>
</table></td>
</tr>
</table>
<!--公告结束--></td>
</tr>
</table>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="190" valign="top"><table width="190" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/index/index_10.jpg"><table width="100%" height="28" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="50%" align="center" class="in_06_font_01">影视排行榜</td>
<td width="50%" valign="top"><table width="60" height="28" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" bgcolor="#F1F1F1">总排行</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
{vodcms:rs=display rows=7 order=click}
{if $rs['i'] == 1}
<tr>
<td valign="top" class="in_05"><table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="86" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50" height="70" align="center" ><a href="<?php echo $rs['link'];?>"><img class="in_06" src="<?php echo image::resize($rs['pic'], 50 , 70);?>" width="50" height="70" border="0" alt="<?php echo $rs['title'];?>" /></a></td>
<td width="10"> </td>
<td width="110" valign="top"><span class="in_10"><a href="<?php echo $rs['link'];?>" title="<?php echo $rs['title'];?>"><?php echo truncate($rs['title'],6,'...');?></a></span><br />
<?php echo truncate($rs['content'],20,'...');?></td>
</tr>
</table></td>
</tr>
{else}
<tr>
<td height="25" class="in_11"><table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25"><table width="16" height="13" border="0" cellpadding="0" cellspacing="0" background="images/index/index_12.jpg">
<tr>
<td align="center" class="in_06_font_01" style=" font-size:10px;font-weight: bold;"><?php echo $rs['i'];?></td>
</tr>
</table></td>
<td width="130"><a href="<?php echo $rs['link'];?>" title="<?php echo $rs['title'];?>"><?php echo truncate($rs['title'],6,'...');?></a></td>
<td width="19" class="in_12"><?php echo $rs['click'];?></td>
</tr>
</table></td>
</tr>
{/if}
{/rs:vodcms}
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="3" height="3"><img src="images/index/index_08_01.jpg" width="3" height="3" /></td>
<td style="background:url(images/index/index_08_02.jpg); height:3px;"><img src="images/index/index_08_02.jpg" width="2" height="3" /></td>
<td width="3"><img src="images/index/index_08_03.jpg" width="3" height="3" /></td>
</tr>
</table></td>
</tr>
</table></td>
<td valign="top" width="491"><table width="472" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="27" align="right" valign="bottom" style="background-image:url(images/index/index_09.jpg); background-repeat:no-repeat"><table height="24" border="0" cellpadding="0" cellspacing="0" id="firstbest">
<tr> {vodcms:rs1=channel rows=4 parentid=0}
<td width="63" align="center"><a style="cursor:pointer"><?php echo $rs1['category'];?></a>
<div class="none">
<!--新片推荐-->
<table>
<tr> {vodcms:rs=display category=".$rs1['id']." rows=4 parentid=0}
<td valign="top"><table width="15%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="246" align="center"><a href="<?php echo $rs['link'];?>"><img class="in_06" src="<?php echo image::resize($rs['pic'], 100 , 140);?>" width="100" height="140" border="0" /></a></td>
</tr>
<tr>
<td height="25" align="center" class="in_08"><a href="<?php echo $rs['link'];?>" title="<?php echo $rs['title'];?>"><?php echo truncate($rs['title'],7);?></a></td>
</tr>
<tr>
<td valign="top" class="in_09"> <?php echo truncate($rs['content'], 20 , '...');?></td>
</tr>
</table></td>
{/rs:vodcms} </tr>
</table>
<!--新片推荐结束-->
</div></td>
{/rs1:vodcms}
<td align="center" width="63" class="firstbested" id="lianzai"><a style="cursor:pointer">全部影片</a>
<div class="none">
<table>
<tr> {vodcms:rs=display rows=4 parentid=0 order=modifytime}
<td valign="top"><table width="15%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="246" align="center"><a href="<?php echo $rs['link'];?>"><img class="in_06" src="<?php echo image::resize($rs['pic'], 100 , 140);?>" width="100" height="140" border="0" /></a></td>
</tr>
<tr>
<td height="25" align="center" class="in_08"><a href="<?php echo $rs['link'];?>" title="<?php echo $rs['title'];?>"><?php echo truncate($rs['title'],8);?></a></td>
</tr>
<tr>
<td valign="top" class="in_09"> <?php echo truncate($rs['content'], 20 , '...');?></td>
</tr>
</table></td>
{/rs:vodcms} </tr>
</table>
</div></td>
<td width="10" align="center"> </td>
</tr>
</table></td>
</tr>
<tr>
<td class="in_05"><div id="best_data"><div style="background:url(<?php echo $this->config['basedir'];?>images/loading.gif); height:200px; width:300px; line-height:200px; background-repeat:no-repeat; background-position:center; text-align:center; padding-left:130px;">数据载入中...</div></div></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="3" height="3"><img src="images/index/index_08_01.jpg" width="3" height="3" /></td>
<td style="background:url(images/index/index_08_02.jpg); height:3px;"><img src="images/index/index_08_02.jpg" width="2" height="3" /></td>
<td width="3"><img src="images/index/index_08_03.jpg" width="3" height="3" /></td>
</tr>
</table></td>
</tr>
</table>
</td>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?