Ejemplo n.º 1
0
	</tr>
	<tr><td height="5px" colspan="2"></td></tr>
<?php 
}
?>
</table>

<table align="center" cellSpacing="0" cellPadding="0" width="98%" border="0">
<?php 
$rowPage = $_lang == "vn" ? "Tin" : "news";
$pagePage = $_lang == "vn" ? "Trang" : "Page";
$titleFirst = $_lang == "vn" ? "Đầu Tiên" : "First";
$titlePrevious = $_lang == "vn" ? "Về trước" : "Previous";
$titleNext = $_lang == "vn" ? "Tiếp theo" : "Next";
$titleLast = $_lang == "vn" ? "Cuối cùng" : "Last";
$pages = countPages($total, $per_page);
echo '<tr><td colspan="2" align="center"></td></tr>';
echo '<tr>';
echo '<td class="smallfont" align="right">' . $pagePage . ' : ';
$param = "";
if ($p > 1) {
    echo '<a class="aLink3" title="' . $titleFirst . '" href="./?frame=' . $_REQUEST['frame'] . '&id=' . $_REQUEST['id'] . '' . $param . '&p=0">[&lt;&lt;]</a> ';
}
if ($p > 0) {
    echo '<a class="aLink3" title="' . $titlePrevious . '" href="./?frame=' . $_REQUEST['frame'] . '&id=' . $_REQUEST['id'] . '' . $param . '&p=' . ($p - 1) . '">[&lt;]</a> ';
}
$from = $p - 10 > 0 ? $p - 10 : 0;
$to = $p + 10 < $pages ? $p + 10 : $pages;
for ($i = $from; $i < $to; $i++) {
    if ($i != $p) {
        echo '<a class="aLink3" href="./?frame=' . $_REQUEST['frame'] . '&id=' . $_REQUEST['id'] . '' . $param . '&p=' . $i . '">' . ($i + 1) . ' </a>';
Ejemplo n.º 2
0
<table width="98%" border="0" cellpadding="0" cellspacing="0">
   <tr>
        <td colspan="2" id="boder_button">&nbsp;</td>
   </tr>
   <tr><td height="5px"></td></tr>
</table>
<table align="center" cellSpacing=0 cellPadding=0 width="98%" border=0>
<?php 
    $newsPage = $_lang == "vn" ? "Sản phẩm" : "Products";
    $pagePage = $_lang == "vn" ? "Trang" : "Page";
    $titleFirst = $_lang == "vn" ? "Đầu Tiên" : "First";
    $titlePrevious = $_lang == "vn" ? "Về trước" : "Previous";
    $titleNext = $_lang == "vn" ? "Tiếp theo" : "Next";
    $titleLast = $_lang == "vn" ? "Cuối cùng" : "Last";
    $total = $total[0];
    $pages = countPages($total, $row * $col);
    echo '<tr><td colspan="2" align="center"></td></tr>';
    echo '<tr><td class="smallfont" align="left"><b>' . $total . '</b> ' . $newsPage . '</td>';
    echo '<td class="smallfont" align="right">' . $pagePage . ' : ';
    $param = "act=search&keyword={$keyword}";
    if ($p > 1) {
        echo '<a class="aLink3" title="' . $titleFirst . '" href="./?frame=' . $_REQUEST['frame'] . '&cat=' . $_REQUEST['cat'] . '&' . $param . '&p=0">[&lt;&lt;]</a> ';
    }
    if ($p > 0) {
        echo '<a class="aLink3" title="' . $titlePrevious . '" href="./?frame=' . $_REQUEST['frame'] . '&cat=' . $_REQUEST['cat'] . '&' . $param . '&p=' . ($p - 1) . '">[&lt;]</a> ';
    }
    $from = $p - 10 > 0 ? $p - 10 : 0;
    $to = $p + 10 < $pages ? $p + 10 : $pages;
    for ($i = $from; $i < $to; $i++) {
        if ($i != $p) {
            echo '<a class="aLink3" href="./?frame=' . $_REQUEST['frame'] . '&cat=' . $_REQUEST['cat'] . '&' . $param . '&p=' . $i . '">' . ($i + 1) . ' </a>';
Ejemplo n.º 3
0
function createPageView1($total, $link, $nitem, $itemcurrent, $step = 10, $lang)
{
    global $conf;
    $lang = $lang != '' ? $lang : $conf[1];
    if ($total < 1) {
        return false;
    }
    global $conn;
    global $whereStatus;
    $ret = "";
    $param = "";
    $pages = countPages($total, $nitem);
    if ($itemcurrent > 0) {
        $ret .= '<a title="' . UFIRST . '" href="' . $link . '0&lang=' . $lang . '" class="lslink">' . UFIRST . '</a> ';
    }
    if ($itemcurrent > 1) {
        $ret .= '<a title="' . UGOTOPREVIOUS . '" href="' . $link . ($itemcurrent - 1) . '&lang=' . $lang . '" class="lslink">' . UGOTOPREVIOUS . '</a> ';
    }
    $from = $itemcurrent - $step > 0 ? $itemcurrent - $step : 0;
    $from1 = $from > 4 ? $from - 4 : 0;
    $to = $itemcurrent + $step < $pages ? $itemcurrent + $step : $pages;
    for ($i = $from1; $i <= $to; $i++) {
        if ($i != $itemcurrent) {
            $ret .= '<a href="' . $link . $i . '" class="lslink">' . ($i + 1) . '</a> ';
        } else {
            $ret .= '<b> ' . ($i + 1) . ' </b> ';
        }
    }
    if ($itemcurrent < $pages - 2 && $pages > 1) {
        $ret .= '<a title="' . UNEXT . '" href="' . $link . ($itemcurrent + 1) . '">' . UNEXT . '</a> ';
    }
    if ($itemcurrent < $pages - 1) {
        $ret .= '<a title="' . UFINALLY . '" href="' . $link . ($pages - 1) . '">' . UFINALLY . '</a>';
    }
    return $ret;
}
Ejemplo n.º 4
0
<br /><br />

<div id="dashboard">

<div class="dash_box">
<div class="dash_box_top">Seiten &amp; Eintr&auml;ge</div>
<div class="dash_box_middle">
<ul>
<li><strong>Anzahl Seiten:</strong> <?php 
echo countPages();
?>
</li>
<li><strong>Anzahl Eintr&auml;ge Aktiv:</strong> <?php 
echo countAllLinks();
?>
</li>
<li><strong>Anzahl Neue Eintr&auml;ge:</strong> <?php 
echo countAllNewLinks();
?>
</li>
<li><strong>Anzahl Kostenlose Eintr&auml;ge:</strong> <?php 
echo countFreeLinks();
?>
</li>
<li><strong>Anzahl Premium Eintr&auml;ge:</strong> <?php 
echo countPremLinks();
?>
</li>
</ul>
</div>
</div>
function createPageView($total, $link, $nitem, $itemcurrent, $step = 10, $lang)
{
    global $conf;
    $lang = $lang != '' ? $lang : $conf[1];
    if ($total < 1) {
        return false;
    }
    global $conn;
    global $whereStatus;
    $ret = "";
    $param = "";
    $pages = countPages($total, $nitem);
    if ($itemcurrent >= 1) {
        $ret .= "<li class=\"pagnPrev\"> \n             \t\t<a title=\"Về trước\" id=\"pagnPrevLink\" class=\"pagnPrev\" href=\"" . $link . ($itemcurrent - 1) . "\"><font style=\"\">«Về trước</font></a></li>";
    } else {
        $ret .= "<li class=\"pagnDisabled name_xam\"><font><font style=\"\">«Về trước </font></font></li>";
    }
    $ret .= "\n\t\n\t\t<li class=\"pagnSep\"><font><font style=\"\"></font></font></li>    \n    \t<li class=\"pagnLead name_xam\"><font><font style=\"\"></font></font></li>\n\t";
    if ($itemcurrent > 6) {
        $ret .= "\n\t<li class=\"pagnLink\"><a href=\"" . $link . "0\"><font><font style=\"\">1</font></font></a> </li>\n\t<li class=\"pagnMore\"><font><font style=\"\"> ... </font></font></li>\n\t";
    }
    $from = $itemcurrent - $step > 0 ? $itemcurrent - $step : 0;
    $from1 = $from > 4 ? $from - 4 : 0;
    $to = $itemcurrent + $step < $pages ? $itemcurrent + $step : $pages;
    if ($to + 1 > $pages) {
        $to1 = $to - 1;
    } elseif ($to + 1 == $pages) {
        $to1 = $to;
    } else {
        $to1 = $to;
    }
    for ($i = $from1; $i <= $to1; $i++) {
        if ($i != $itemcurrent) {
            $ret .= "\n\t\n\t\t<li class=\"pagnLink\"><a href=\"" . $link . $i . "\"><font><font style=\"\">" . ($i + 1) . "</font></font></a> </li>\n\t";
        } else {
            $ret .= "\n\t\n\t\t<li class=\"pagnCur\"><font><font style=\"\">" . ($i + 1) . " </font></font></li>\n\t";
        }
    }
    if ($itemcurrent < $pages - 1 && $pages > 1) {
        $ret .= "\n\t<li class=\"pagnMore\"><font><font style=\"\"> ... </font></font></li>\n\t<li class=\"pagnSep\"><font><font style=\"\"></font></font></li> \n\t<li class=\"pagnNext\"> \n        \t    \t<a title=\"Tiếp theo\" id=\"pagnNextLink\" class=\"pagnNext\" href=\"" . $link . ($itemcurrent + 1) . "\"><font><font style=\"\">Tiếp theo»</font></font></a>\n         \t\t</li>";
    } else {
        $ret .= "\n\t\t<li class=\"pagnSep\"><font><font style=\"\"></font></font></li> \n\t\t<li class=\"pagnDisabled name_xam\"><font><font style=\"\">Tiếp theo»</font></font></li>";
    }
    return $ret;
}
Ejemplo n.º 6
0
function createPage($total, $link, $nitem, $itemcurrent, $step = 10)
{
    if ($total < 1) {
        return false;
    }
    global $conn;
    $ret = "";
    $param = "";
    $pages = countPages($total, $nitem);
    if ($itemcurrent > 0) {
        $ret .= '<a title="&#272;&#7847;u ti&ecirc;n" href="' . $link . '0" class="lslink">[&lt;&lt;]</a> ';
    }
    if ($itemcurrent > 1) {
        $ret .= '<a title="V&#7873; tr&#432;&#7899;c" href="' . $link . ($itemcurrent - 1) . '" class="lslink">[&lt;]</a> ';
    }
    $from = $itemcurrent - $step > 0 ? $itemcurrent - $step : 0;
    $to = $itemcurrent + $step < $pages ? $itemcurrent + $step : $pages;
    for ($i = $from; $i < $to; $i++) {
        if ($i != $itemcurrent) {
            $ret .= '<a href="' . $link . $i . '" class="lslink">' . ($i + 1) . '</a> ';
        } else {
            $ret .= '<b>' . ($i + 1) . '</b> ';
        }
    }
    if ($itemcurrent < $pages - 2 && $pages > 1) {
        $ret .= '<a title="Ti&#7871;p theo" href="' . $link . ($itemcurrent + 1) . '">[&gt;]</a> ';
    }
    if ($itemcurrent < $pages - 1) {
        $ret .= '<a title="Cu&#7889;i c&ugrave;ng" href="' . $link . ($pages - 1) . '">[&gt;&gt;]</a>';
    }
    return $ret;
}