</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">[<<]</a> '; } if ($p > 0) { echo '<a class="aLink3" title="' . $titlePrevious . '" href="./?frame=' . $_REQUEST['frame'] . '&id=' . $_REQUEST['id'] . '' . $param . '&p=' . ($p - 1) . '">[<]</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>';
<table width="98%" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="2" id="boder_button"> </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">[<<]</a> '; } if ($p > 0) { echo '<a class="aLink3" title="' . $titlePrevious . '" href="./?frame=' . $_REQUEST['frame'] . '&cat=' . $_REQUEST['cat'] . '&' . $param . '&p=' . ($p - 1) . '">[<]</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>';
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; }
<br /><br /> <div id="dashboard"> <div class="dash_box"> <div class="dash_box_top">Seiten & Einträge</div> <div class="dash_box_middle"> <ul> <li><strong>Anzahl Seiten:</strong> <?php echo countPages(); ?> </li> <li><strong>Anzahl Einträge Aktiv:</strong> <?php echo countAllLinks(); ?> </li> <li><strong>Anzahl Neue Einträge:</strong> <?php echo countAllNewLinks(); ?> </li> <li><strong>Anzahl Kostenlose Einträge:</strong> <?php echo countFreeLinks(); ?> </li> <li><strong>Anzahl Premium Einträ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; }
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="Đầu tiên" href="' . $link . '0" class="lslink">[<<]</a> '; } if ($itemcurrent > 1) { $ret .= '<a title="Về trước" href="' . $link . ($itemcurrent - 1) . '" class="lslink">[<]</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ếp theo" href="' . $link . ($itemcurrent + 1) . '">[>]</a> '; } if ($itemcurrent < $pages - 1) { $ret .= '<a title="Cuối cùng" href="' . $link . ($pages - 1) . '">[>>]</a>'; } return $ret; }