Example #1
0
 // Lấy CSDL
 echo "<fieldset class='fieldset'>\n<legend href='#'><a href='#' style='color: #fff;'>Đề kiểm tra mới nhất <i>(" . @mysql_num_rows($query) . " đề kiểm tra)</i></a></legend>";
 while ($row2 = @mysql_fetch_array($query2)) {
     // Lấy cate1
     $sql11 = "SELECT * FROM `cate1` where `id`='" . $row2[id1] . "'";
     $query11 = @mysql_query($sql11);
     $row11 = @mysql_fetch_array($query11);
     // Lấy cate2
     $sql22 = "SELECT * FROM `cate2` where `id`='" . $row11[id2] . "'";
     $query22 = @mysql_query($sql22);
     $row22 = @mysql_fetch_array($query22);
     // Lấy cate3
     $sql33 = "SELECT * FROM `cate3` where `id`='" . $row22[id3] . "'";
     $query33 = @mysql_query($sql33);
     $row33 = @mysql_fetch_array($query33);
     echo "\n<table class='lololol' width='100%'>\n<tr>\n<td rowspan='3' align='center'>\n<img src='" . $row2['thumb'] . "' width='60' height='61' class='img2'>\n</td>\n<td class='title' colspan=2 width='100%'>\n<a href='./" . strtolower(str_filter($row2['title'])) . "." . $row2['id'] . ".php'><div class='more2'>Xem</div></a>\n<a href='./" . strtolower(str_filter($row2['title'])) . "." . $row2['id'] . ".php' style='font-size: 1.2em;' alt='" . $row2['title'] . "' title='" . $row2['title'] . "'><b>" . cu_t($row2[title], 50) . "</a></b>";
     if ($row2[rt] != 0) {
         echo "&nbsp;<img src='./images/blue-tick.png' width='18px' alt='Có thể làm thử đề kiểm tra' title='Có thể làm thử đề kiểm tra'>";
     }
     echo "\n</td>\n</tr>\n<tr>\n<td width='*'>\n<img src='./images/clock2.png' width='15px' style='margin-top: 0; margin-bottom: -2px'/>&nbsp;<i id='yeah'>" . ti_me($row2[time]) . "</i>\n</td>\n<td width='100px'>\n<img src='./images/eye.png' width='20px' style='margin-top: 0; margin-bottom: -5px'/>&nbsp;<span id='yeah'>" . $row2[view] . "</span>\n</td>\n</tr>\n<tr>\n<td width='*'>\n<img src='./images/list.png' width='16px' style='margin-top: 0; margin-bottom: -2px'/>&nbsp;<i id='yeah'><a href='./" . strtolower(str_filter($row33[title])) . "." . $row33[id] . "'>" . $row33[title] . "</a> > <a href='./" . strtolower(str_filter($row33[title])) . "/" . strtolower(str_filter($row22[title])) . "." . $row22[id] . "'>" . $row22[title] . "</a> > <a href='./" . strtolower(str_filter($row33[title])) . "/" . strtolower(str_filter($row22[title])) . "/" . strtolower(str_filter($row11[title])) . "." . $row11[id] . "'>" . $row11[title] . "</a></i></td>\n<td>\n<img src='./images/like.png' width='20px' style='margin-top: -5px; margin-bottom: -2px'/>&nbsp;<span id='yeah'>" . $row2[liked] . "</span>\n</td>\n</tr>\n</table>\n";
 }
 echo "</fieldset>";
 if ($page > 1) {
     echo "<ul class='pagination' align='center'>";
     $prev = $p - 1;
     $next = $p + 1;
     if ($p - 1 > 1) {
         echo "<li><b><a href='./latest_1' title='Trang đầu tiên - 1'>&laquo;</a></b></li>&nbsp;";
     }
     if ($p > 1) {
         echo "<li><b><a href='./latest_" . $prev . "' title='Trang trước - " . $prev . "' alt='Trang trước - " . $prev . "'><font face='arial'>◄</font></a></b></li>&nbsp;";
Example #2
0
     // Lấy CSDL
 }
 $query2 = @mysql_query($sql2);
 // Lấy CSDL
 while ($row2 = @mysql_fetch_array($query2)) {
     // Lấy test
     $sqlt = "SELECT * FROM `tests` where `id`='" . $row2[it] . "'";
     $queryt = @mysql_query($sqlt);
     $rowt = @mysql_fetch_array($queryt);
     $i++;
     if ($i % 2 == 0) {
         echo "<tr>";
     } else {
         echo "<tr class='odd'>";
     }
     echo "\n                                <td><a target='_blank' href='../" . strtolower(str_filter($rowt['title'])) . "." . $row2['id'] . ".test'>" . cu_t($rowt[title], 135) . "</a></td>\n                                <td class='action'><a target='_blank' href='../" . strtolower(str_filter($rowt['title'])) . "." . $row2['id'] . ".test' class='view'>Xem</a><a href='tdeltesth.php?id=" . $row2['id'] . "' class='delete'>Xóa</a></td>\n                            </tr>\n";
 }
 echo "</table></form><br/>";
 if ($page > 1) {
     if (isset($_GET['key'])) {
         echo "<ul class='pagination' align='center'>";
         $prev = $p - 1;
         $next = $p + 1;
         if ($p - 1 > 1) {
             echo "<li><b><a href='./ttesthistory.php?key=" . $_GET[key] . "' title='Trang đầu tiên - 1'>&laquo;</a></b></li>&nbsp;";
         }
         if ($p > 1) {
             echo "<li><b><a href='./ttesthistory.php?p=" . $prev . "&key=" . $_GET[key] . "' title='Trang trước - " . $prev . "' alt='Trang trước - " . $prev . "'><font face='arial'>◄</font></a></b></li>&nbsp;";
             echo "<li><b><a href='./ttesthistory.php?p=" . $prev . "&key=" . $_GET[key] . "' title='Trang " . $prev . "' alt='Trang " . $prev . "'>" . $prev . "</a></b></li>&nbsp;";
         }
         echo "<li><b><a title='Trang hiện tại' alt='Trang hiện tại' class='current'>" . $p . "</a></b></li>&nbsp;";
Example #3
0
			el.addClass('on').next().stop(false,true).slideDown(400);
		}else{
			$('.on').removeClass('on').next().stop(false,true).slideUp(400);
		}
	})
})(jQuery);
</script>
							<div class="clear"></div>
						</div>
						<div class="boxnav">
							<h3 class="titlenav">Đề kiểm tra được xem nhiều</a></h3>
							<?php 
$sqlmost = "SELECT * FROM `tests` order by `view` DESC LIMIT 0,6";
$querymost = @mysql_query($sqlmost);
while ($rowmost = @mysql_fetch_array($querymost)) {
    echo "\n\t\t\t\t\t\t\t<ul style='margin: 6px;'>\n\t\t\t\t\t\t\t<li style='padding-bottom: 4px;'>\n\t\t\t\t\t\t\t<table>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<a href='./" . strtolower(str_filter($rowmost['title'])) . "." . $rowmost['id'] . ".php'>\n\t\t\t\t\t\t\t<img src='" . $rowmost['thumb'] . "' width='40' height='40' class='img' style='margin-right: 5px;'>\n\t\t\t\t\t\t\t</a></td>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<a href='./" . strtolower(str_filter($rowmost['title'])) . "." . $rowmost['id'] . ".php'>\n\t\t\t\t\t\t\t<p style='font-size: 1.3em;'>\n\t\t\t\t\t\t\t" . cu_t($rowmost['title'], 90) . "\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t</ul>";
}
?>
							<div class="clear"></div>
						</div>
						<div class="boxnav">
							<h3 class="titlenav">Like us on Facebook</a></h3>
							<div class="fb-like-box" data-href="https://www.facebook.com/<?php 
echo settings("fb_id_page");
?>
" data-width="288" data-show-faces="true" data-stream="false" data-show-border="false" data-header="false"></div>
							<div class="clear"></div>
						</div>
						<div class="boxnav">
							<h3 class="titlenav">Thống kê</h3>
							<ul class="menunav">
Example #4
0
     if ($row2[tid] != 0) {
         $sqlvv = "SELECT * from `test_history` where `id`='" . $row2[tid] . "'";
         $queryvv = @mysql_query($sqlvv);
         $rowvv = @mysql_fetch_array($queryvv);
         $sqlt = "SELECT * from `tests` where `id`='" . $rowvv[it] . "'";
         $queryt = @mysql_query($sqlt);
         $rowt = @mysql_fetch_array($queryt);
         $link = "../" . strtolower(str_filter($rowt['title'])) . "." . $rowt['id'] . ".test";
     }
     $i++;
     if ($i % 2 == 0) {
         echo "<tr>";
     } else {
         echo "<tr class='odd'>";
     }
     echo "\n                                <td><a target='_blank' href='" . $link . "'>" . cu_t($row2[content], 135) . "</a></td>\n                                <td class='action'><a target='_blank' href='" . $link . "' class='view'>Xem</a><a href='editcmt.php?id=" . $row2['id'] . "' class='edit'>Sửa</a><a href='delcmt.php?id=" . $row2['id'] . "' class='delete'>Xóa</a></td>\n                            </tr>\n";
 }
 echo "</table></form><br/>";
 if ($page > 1) {
     if (isset($_GET['key'])) {
         echo "<ul class='pagination' align='center'>";
         $prev = $p - 1;
         $next = $p + 1;
         if ($p - 1 > 1) {
             echo "<li><b><a href='./cmtlist.php?key=" . $_GET[key] . "' title='Trang đầu tiên - 1'>&laquo;</a></b></li>&nbsp;";
         }
         if ($p > 1) {
             echo "<li><b><a href='./cmtlist.php?p=" . $prev . "&key=" . $_GET[key] . "' title='Trang trước - " . $prev . "' alt='Trang trước - " . $prev . "'><font face='arial'>◄</font></a></b></li>&nbsp;";
             echo "<li><b><a href='./cmtlist.php?p=" . $prev . "&key=" . $_GET[key] . "' title='Trang " . $prev . "' alt='Trang " . $prev . "'>" . $prev . "</a></b></li>&nbsp;";
         }
         echo "<li><b><a title='Trang hiện tại' alt='Trang hiện tại' class='current'>" . $p . "</a></b></li>&nbsp;";
Example #5
0
     $sql2 = "SELECT * FROM `tests` where `rt`=0 and `keyword` LIKE '%" . mysql_escape_string($_GET['key']) . "%' order by `id` DESC LIMIT " . $start . "," . $display;
     // Lấy CSDL
 } else {
     $sql2 = "SELECT * FROM `tests` where `rt`=0 order by `id` DESC LIMIT " . $start . "," . $display;
     // Lấy CSDL
 }
 $query2 = @mysql_query($sql2);
 // Lấy CSDL
 while ($row2 = @mysql_fetch_array($query2)) {
     $i++;
     if ($i % 2 == 0) {
         echo "<tr>";
     } else {
         echo "<tr class='odd'>";
     }
     echo "\n                                <td><a target='_blank' href='../" . strtolower(str_filter($row2['title'])) . "." . $row2['id'] . ".php'>" . cu_t($row2[title], 135) . "</a></td>\n                                <td class='action'><a target='_blank' href='../" . strtolower(str_filter($row2['title'])) . "." . $row2['id'] . ".php' class='view'>Xem</a><a href='tposttest2.php?id=" . $row2['id'] . "' class='edit'>Chọn</a></td>\n                            </tr>\n";
 }
 echo "</table></form><br/>";
 if ($page > 1) {
     if (isset($_GET['key'])) {
         echo "<ul class='pagination' align='center'>";
         $prev = $p - 1;
         $next = $p + 1;
         if ($p - 1 > 1) {
             echo "<li><b><a href='./tposttest.php?key=" . $_GET[key] . "' title='Trang đầu tiên - 1'>&laquo;</a></b></li>&nbsp;";
         }
         if ($p > 1) {
             echo "<li><b><a href='./tposttest.php?p=" . $prev . "&key=" . $_GET[key] . "' title='Trang trước - " . $prev . "' alt='Trang trước - " . $prev . "'><font face='arial'>◄</font></a></b></li>&nbsp;";
             echo "<li><b><a href='./tposttest.php?p=" . $prev . "&key=" . $_GET[key] . "' title='Trang " . $prev . "' alt='Trang " . $prev . "'>" . $prev . "</a></b></li>&nbsp;";
         }
         echo "<li><b><a title='Trang hiện tại' alt='Trang hiện tại' class='current'>" . $p . "</a></b></li>&nbsp;";
Example #6
0
     $sqlt = "SELECT * FROM `tests` where `id`='" . $row2[it] . "'";
     $queryt = @mysql_query($sqlt);
     $rowt = @mysql_fetch_array($queryt);
     // Lấy cate1
     $sql11 = "SELECT * FROM `cate1` where `id`='" . $rowt[id1] . "'";
     $query11 = @mysql_query($sql11);
     $row11 = @mysql_fetch_array($query11);
     // Lấy cate2
     $sql22 = "SELECT * FROM `cate2` where `id`='" . $row11[id2] . "'";
     $query22 = @mysql_query($sql22);
     $row22 = @mysql_fetch_array($query22);
     // Lấy cate3
     $sql33 = "SELECT * FROM `cate3` where `id`='" . $row22[id3] . "'";
     $query33 = @mysql_query($sql33);
     $row33 = @mysql_fetch_array($query33);
     echo "\n<table class='lololol' width='100%'>\n<tr>\n<td rowspan='3' align='center'>\n<img src='" . $rowt['thumb'] . "' width='60' height='61' class='img2'>\n</td>\n<td class='title' colspan=2 width='100%'>\n<a href='./bao-cao-lam-thu/" . strtolower(str_filter(account($row2[uid], username))) . "/" . strtolower(str_filter($rowt[title])) . "-" . $row2['id'] . "'><div class='more2'>Xem</div></a>\n<a href='./bao-cao-lam-thu/" . strtolower(str_filter(account($row2[uid], username))) . "/" . strtolower(str_filter($rowt[title])) . "-" . $row2['id'] . "' style='font-size: 1.2em;' alt='" . $rowt['title'] . "' title='" . $rowt['title'] . "'><b>" . cu_t($rowt[title], 50) . "</a></b>\n</td>\n</tr>\n<tr>\n<td width='*'>\nNgày làm: <i id='yeah'>" . ti_me($row2[time]) . "</i>\n</td>\n<td width='100px'>\nĐiểm: <i id='yeah'>" . $row2[score] . "</i>\n</td>\n</tr>\n<tr>\n<td width='*'>\nDanh mục: <i id='yeah'><a href='./" . strtolower(str_filter($row33[title])) . "." . $row33[id] . "'>" . $row33[title] . "</a> > <a href='./" . strtolower(str_filter($row33[title])) . "/" . strtolower(str_filter($row22[title])) . "." . $row22[id] . "'>" . $row22[title] . "</a> > <a href='./" . strtolower(str_filter($row33[title])) . "/" . strtolower(str_filter($row22[title])) . "/" . strtolower(str_filter($row11[title])) . "." . $row11[id] . "'>" . $row11[title] . "</a></i></td>\n<td>\nThời gian hoàn thành: " . $row2[comp] . " phút\n</td>\n</tr>\n</table>\n";
 }
 echo "</fieldset>";
 if ($page > 1) {
     echo "<ul class='pagination' align='center'>";
     $prev = $p - 1;
     $next = $p + 1;
     if ($p - 1 > 1) {
         echo "<li><b><a href='./danh-sach-bao-cao-lam-thu-moi-nhat' title='Trang đầu tiên - 1'>&laquo;</a></b></li>&nbsp;";
     }
     if ($p > 1) {
         echo "<li><b><a href='./danh-sach-bao-cao-lam-thu-moi-nhat_" . $prev . "' title='Trang trước - " . $prev . "' alt='Trang trước - " . $prev . "'><font face='arial'>◄</font></a></b></li>&nbsp;";
         echo "<li><b><a href='./danh-sach-bao-cao-lam-thu-moi-nhat_" . $prev . "' title='Trang " . $prev . "' alt='Trang " . $prev . "'>" . $prev . "</a></b></li>&nbsp;";
     }
     echo "<li><b><a title='Trang hiện tại' alt='Trang hiện tại' class='current'>" . $p . "</a></b></li>&nbsp;";
     if ($p < $page) {
Example #7
0
 // Lấy CSDL
 echo "<fieldset class='fieldset'>\n<legend href='#'><a href='#' style='color: #fff;'>Danh sách đề đã tải của " . account($id, username) . " <i>(" . @mysql_num_rows($query) . " đề kiểm tra)</i></a></legend>";
 while ($row2 = @mysql_fetch_array($query2)) {
     // Lấy cate1
     $sql11 = "SELECT * FROM `cate1` where `id`='" . $row2[id1] . "'";
     $query11 = @mysql_query($sql11);
     $row11 = @mysql_fetch_array($query11);
     // Lấy cate2
     $sql22 = "SELECT * FROM `cate2` where `id`='" . $row11[id2] . "'";
     $query22 = @mysql_query($sql22);
     $row22 = @mysql_fetch_array($query22);
     // Lấy cate3
     $sql33 = "SELECT * FROM `cate3` where `id`='" . $row22[id3] . "'";
     $query33 = @mysql_query($sql33);
     $row33 = @mysql_fetch_array($query33);
     echo "\n<table class='lololol' width='100%'>\n<tr>\n<td rowspan='3' align='center'>\n<img src='" . $row2['thumb'] . "' width='60' height='61' class='img2'>\n</td>\n<td class='title' colspan=2 width='100%'>\n<a href='./" . strtolower(str_filter($row2['title'])) . "." . $row2['id'] . ".php'><div class='more2'>Xem</div></a>\n<a href='./" . strtolower(str_filter($row2['title'])) . "." . $row2['id'] . ".php' style='font-size: 1.2em;'><b>" . cu_t($row2[title], 40) . "</b></a>\n</td>\n</tr>\n<tr>\n<td width='*'>\nNgày đăng: <i id='yeah'>" . ti_me($row2[time]) . "</i>\n</td>\n<td width='100px' rowspan='2'>\nLượt xem: <i id='yeah'>" . $row2[view] . "</i>\n</td>\n</tr>\n<tr>\n<td width='*'>\nDanh mục: <i id='yeah'><a href='./" . strtolower(str_filter($row33[title])) . "." . $row33[id] . "'>" . $row33[title] . "</a> > <a href='./" . strtolower(str_filter($row33[title])) . "/" . strtolower(str_filter($row22[title])) . "." . $row22[id] . "'>" . $row22[title] . "</a> > <a href='./" . strtolower(str_filter($row33[title])) . "/" . strtolower(str_filter($row22[title])) . "/" . strtolower(str_filter($row11[title])) . "." . $row11[id] . "'>" . $row11[title] . "</a></i></td>\n</tr>\n</table>\n";
 }
 echo "</fieldset>";
 if ($page > 1) {
     echo "<ul class='pagination' align='center'>";
     $prev = $p - 1;
     $next = $p + 1;
     if ($p - 1 > 1) {
         echo "<li><b><a href='./danh-sach-de-da-tai-cua-" . strtolower(str_filter(account($id, username))) . "-" . $id . "' title='Trang đầu tiên - 1'>&laquo;</a></b></li>&nbsp;";
     }
     if ($p > 1) {
         echo "<li><b><a href='./danh-sach-de-da-tai-cua-" . strtolower(str_filter(account($id, username))) . "-" . $id . "_" . $prev . "' title='Trang trước - " . $prev . "' alt='Trang trước - " . $prev . "'><font face='arial'>◄</font></a></b></li>&nbsp;";
         echo "<li><b><a href='./danh-sach-de-da-tai-cua-" . strtolower(str_filter(account($id, username))) . "-" . $id . "_" . $prev . "' title='Trang " . $prev . "' alt='Trang " . $prev . "'>" . $prev . "</a></b></li>&nbsp;";
     }
     echo "<li><b><a title='Trang hiện tại' alt='Trang hiện tại' class='current'>" . $p . "</a></b></li>&nbsp;";
     if ($p < $page) {