📄 share.tpl.php
字号:
<?php
// This is PHPDISK auto-generated file. Do NOT modify me.
if(!defined('IN_PHPDISK'))
exit('[PHPDisk] Access Denied');
?>
<?php
##
# Project: PHPDisk
# This is NOT a freeware, use is subject to license terms.
#
# Site: http://www.phpdisk.com
#
# $Id: share.tpl.php 250 2009-03-10 17:29:43Z along $
#
# Copyright (C) 2008-2009 PHPDisk Team. All Rights Reserved.
#
##
?>
<title><?=$lang['share_file_title']?> - <?=$settings['site_title']?> - Powered by PHPDisk Team</title>
<script type="text/javascript" src="includes/js/prototype.js"></script>
<script type="text/javascript" src="includes/js/common.js"></script>
<link href="<?=$tpl_dir?>/images/index.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php require_once template('front_top',TPL_NAME); ?>
<?php if($uid && count($folders_array) >0){ ?>
<div class="share_box">
<div class="l">
<div class="title"><a href="<?=urr("index","item=share&uid={$uid}")?>"><img src="images/user_icon.gif" align="absmiddle" border="0"> <?=$username?> <?=$lang['his_shares']?></a></div>
<ul>
<li> </li>
<?php
foreach($folders_array as $k => $v){
?>
<li class="<?=$v['li_class']?>"><a href="<?=urr("index","item=share&uid={$v['userid']}&fid={$v['folder_id']}")?>"><img src="images/<?=$v['folder_icon']?>.gif" align="absmiddle" border="0"> <?=$v['folder_name']?> (<?=$v['file_total']?>)</a></li>
<?php
}
unset($folders_array);
?>
</ul>
</div>
<div class="r">
<table width="100%" cellpadding="4" cellspacing="2" border="0">
<?php
if(count($files_array) >0){
?>
<tr>
<td width="60%" class="bold"><?=$lang['file_name']?></td>
<td width="100" class="bold" align="center"><?=$lang['file_time']?></td>
<td class="bold" align="center"><?=$lang['file_downs']?> / <?=$lang['file_views']?></td>
</tr>
<?php
foreach($files_array as $k => $v){
?>
<tr onMouseOver="this.className='alt_bg';" onMouseOut="this.className='';">
<td><a href="<?=urr("downfile","file_id={$v['file_id']}&file_key={$v['file_key']}")?>" title="<?=$lang['download']?>"><?=file_icon($v['file_extension'])?></a>
<?php if($v['is_image']){ ?>
<a href="<?=urr("viewfile","file_id={$v['file_id']}&file_key={$v['file_key']}")?>" id="m_<?=$k?>" onMouseOver="show_thumb('<?=$v['file_id']?>');show_menu('m_<?=$k?>','div_<?=$k?>','show','right');" onMouseOut="show_menu('m_<?=$k?>','div_<?=$k?>','hide','right')" target="_blank" title="<?=$v['file_name_all']?> <?=$v['file_size']?>"><?=$v['file_name']?></a><br />
<div id="div_<?=$k?>" class="menu_thumb"><img id="thb_<?=$v['file_id']?>" src="<?=$tpl_dir?>/images/ajax_loading.gif" /></div>
<?php }else{ ?>
<a href="<?=urr("viewfile","file_id={$v['file_id']}&file_key={$v['file_key']}")?>" target="_blank" title="<?=$v['file_name_all']?> <?=$v['file_size']?>"><?=$v['file_name']?></a>
<?php } ?>
</td>
<td align="center" class="txtgray"><?=$v['file_time']?></td>
<td align="center"><span class="txtblue"><?=$v['file_downs']?></span> / <span class="txtgreen"><?=$v['file_views']?></span></td>
</tr>
<?php
}
unset($files_array);
}else{
?>
<tr>
<td height="28" class="txtgray"><?=$lang['none_share_folder']?></td>
</tr>
<?php
}
?>
<tr>
<td colspan="6"><?=$page_nav?></td>
</tr>
</table>
</div>
</div>
<div class="clear"></div>
<?php }else{ ?>
<?php require_once PHPDISK_ROOT."modules/front_msg.inc.php"; ?>
<?php } ?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -