コード例 #1
0
$downs = array();
prpCore::get_reviews($get, 'dl_mtime DESC', 0, $prp->settings['side_latest'], true, $downs, false);
echo '
<p>
	' . $locale['PRP300'] . '
</p>
<ul>';
//<table width='100%' cellspacing='0' cellpadding='0'>\n";
foreach ($downs as $data) {
    echo '
	<li><a href="' . INFUSIONS . 'reviews_panel/review.php' . '?did=' . $data['id'] . '" title="' . $data['name'] . '">' . trimlink($data['name'], 18) . '</a></li>';
}
echo '
</ul>';
$downs = array();
prpCore::get_reviews($get, 'dl_count DESC', 0, $prp->settings['side_top'], true, $downs, false);
echo '
<p>
' . str_replace('%s', $prp->settings['side_top'], $locale['PRP301']) . '
</p>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>';
foreach ($downs as $data) {
    echo '
<tr>
	<td><a href="' . INFUSIONS . 'reviews_panel/review.php?did=' . $data['id'] . '" title="' . $data['name'] . '">' . trimlink($data['name'], 18) . '</a></td>
	<td align="right">' . prpCore::format_number($data['reviews']) . '</td>
</tr>';
}
echo '
コード例 #2
0
ファイル: review.php プロジェクト: simplyianm/clububer
        if ($prp->settings['hide_cats']) {
            fallback("error.php?type=access");
        }
        show_info('<img src="icons/lock.png" alt="' . $locale['prp_locked'] . '" /> ' . str_replace('%s', getgroupname($access_group), $locale['PRP215']));
    }
}
/***************************************************************************
 *  DOWNLOADS                                                              *
 ***************************************************************************/
if (is_null($access_group) && !$review->id && (!isset($catid) || $catid != 0)) {
    $rowstart = 0;
    if (isset($_GET['rowstart']) && isNum($_GET['rowstart'])) {
        $rowstart = $_GET['rowstart'];
    }
    $downs = array();
    if (isset($catid)) {
        $get = array('type' => 'cat', 'data' => $catid);
    } else {
        $get = array('type' => 'none');
    }
    $count = prpCore::get_reviews($get, $prp_sorting, $rowstart, $prp->settings['per_page'], false, $downs);
    $link = FUSION_SELF . "?" . (isset($catid) ? "catid={$catid}&amp;" : "");
    prp_render_downs($downs, $rowstart, $prp->settings['per_page'], $count, $link);
    unset($downs);
}
if (is_null($access_group) && $review->id) {
    include 'did.php';
} else {
    closetable();
}
require_once 'include/die.php';
コード例 #3
0
ファイル: search.php プロジェクト: simplyianm/clububer
 */
opentable($prp->settings['title']);
prp_menu();
echo '<hr />';
//$highlight = "<span class='poll'>\\1</span>";
echo '
<form action="search.php" method="get">
<input type="text" size="24" maxlength="24" name="stext" class="textbox" value="' . $stext . '" />
<input type="submit" value="' . $locale['PRP040'] . '" class="button" /><br />
' . $locale['prp_search'] . ': ' . $search_type . '
</form>';
//
if (strlen($stext) >= 3) {
    $downs = array();
    $get = array('type' => $stype, 'data' => $stext);
    $count = prpCore::get_reviews($get, 'dl_name ASC', $rowstart, $prp->settings['per_page'], false, $downs);
    echo '
<p>
<strong>' . $locale['PRP182'] . ': </strong>' . $stext . '
</p>
<p>
' . sprintf($locale['prp_reviews_found'], $count) . '
</p>';
    if ($count) {
        $link = FUSION_SELF . '?stext=' . $stext . '&amp;stype=' . $stype . '&amp;';
        prp_render_downs($downs, $rowstart, $prp->settings['per_page'], $count, $link);
    }
} else {
    echo '<p>' . $locale['PRP180'] . '</p>';
}
closetable();