Пример #1
0
                echo $v['file_description'];
                ?>
</span>
	<?php 
            }
            ?>
	</td>
	<td><a href="<?php 
            echo $v[a_user_view];
            ?>
"><?php 
            echo $v[username];
            ?>
</a></td>
	<td><?php 
            echo get_cate_path($v['cate_id']);
            ?>
</td>
	<td align="center"><?php 
            echo $v['status_txt'];
            ?>
</td>
	<td align="center"><?php 
            echo $v['file_size'];
            ?>
</td>
	<td align="center" class="txtgray"><?php 
            echo $v['file_time'];
            ?>
</td>
	<td align="center" class="txtgray"><?php 
Пример #2
0
    } else {
        ?>
<div class="file_box">
	<h3 class="file_tit"><?php 
        echo file_icon($file['file_extension'], 'filetype_32', 'absbottom');
        echo $file['file_name'];
        ?>
</h3>
	<div class="fb_l">
		<table width="100%" cellpadding="4" cellspacing="0" align="center" class="td_line f14">
		<tr>
			<td colspan="2"><?php 
        echo __('file_category');
        ?>
: <?php 
        echo get_cate_path($file[cate_id]);
        ?>
</td>
		</tr>
		<tr>
			<td width="50%"><?php 
        echo __('upload_user');
        ?>
: <?php 
        echo $file['username'];
        ?>
</td>
			<td><?php 
        echo __('file_size');
        ?>
: <?php 
Пример #3
0
function get_cate_path($cate_id)
{
    global $db, $tpf;
    $rs = $db->fetch_one_array("select pid,cate_id,cate_name from {$tpf}categories where cate_id='{$cate_id}'");
    $str = '';
    if ($rs['pid'] != 0) {
        $str .= get_cate_path($rs['pid']);
    }
    $str .= $rs['cate_name'] ? '<a href="' . urr("public", "cate_id=" . $rs[cate_id]) . '" target="_blank">' . $rs['cate_name'] . '</a>&raquo;' : '';
    unset($rs);
    return $str ? $str : '&nbsp;';
}