$total = mysql_result(mysql_query("select COUNT(mabv) from baiviet where anhien=0 and loaibaiviet='truyenthong'"), 0); $numofpages = $total / $pp; if (!$p_now) { $page = 1; } else { $page = $p_now; } $limitvalue = $page * $pp - $pp; $sql = "select mabv, mota, tenbaiviet, urlhinh from baiviet where anhien=0 and loaibaiviet='truyenthong' order by mabv DESC LIMIT {$limitvalue}, {$pp}"; $query = mysql_query($sql); while ($row = mysql_fetch_assoc($query)) { // echo "<pre>"; // print_r($row['motangan']); // echo "</pre>"; // gan link than thien vao $link = ConvertUrl("?action=baiviet&mbv={$row['mabv']}"); if (trim($row['urlhinh']) != "") { $urlhinhanh = "images/hinhsanpham/" . $row['urlhinh']; } else { $urlhinhanh = "images/hinhsanpham/no-image.jpg"; } ?> <li> <p class="img_child_cat"><img src="<?php echo $urlhinhanh; ?> " alt="" title="" /></p> <h2><a class="name_child_cat" href="<?php echo $link;
echo '<span class="style_text_4">' . $r1['tenthongtinchinh'] . '</span>'; $pp = "6"; @($p_now = $_GET['page']); $total = mysql_result(mysql_query("select COUNT(mathongtinphu) from thongtinphu where anhien=0 AND mathongtinchinh=" . $mttc), 0); $numofpages = $total / $pp; if (!$p_now) { $page = 1; } else { $page = $p_now; } $limitvalue = $page * $pp - $pp; $sql = "select * from thongtinphu where anhien=0 AND mathongtinchinh=" . $mttc . " LIMIT {$limitvalue}, {$pp}"; $query = mysql_query($sql); while ($row = mysql_fetch_array($query)) { // gan link than thien vao $link = ConvertUrl("?action=ThongTin&mattp={$row['mathongtinphu']}&mattc={$mttc}"); if (trim($row['urlhinh']) != "") { $urlhinhanh = "images/hinhthongtin/" . $row['urlhinh']; } else { $urlhinhanh = "images/hinhthongtin/khongcohinh.jpg"; } ?> <table width="98%" cellspacing="0" cellpadding="0" border="0" class="KhungcatIterm"> <tbody> <tr> <td width="135" align="left" bgcolor="#ffffff"> <a href="<?php echo $link; ?> ">
<?php $sql_tintuc = "select * from baiviet where anhien='0' AND loaibaiviet='tintuc' order by mabv DESC LIMIT 0, 15"; $rs_tintuc = mysql_query($sql_tintuc); ?> <div class="header_rel_post">BÀI VIẾT LIÊN QUAN</div> <div class="ct_rel_post"> <ul class="ul_ct_rel_post"> <?php while ($r_tintuc = mysql_fetch_assoc($rs_tintuc)) { $link = ConvertUrl("?action=baiviet&mbv={$r_tintuc['mabv']}"); echo "<li><a href='{$link}'><h4>{$r_tintuc['tenbaiviet']}</h4></a></li>"; } ?> </ul> </div>
<div class="main_right"> <span class="style_text_2">THÔNG TIN</span> <ul> <?php $sql = "select * from thongtinchinh order by thutu DESC"; $query = mysql_query($sql); while ($row = mysql_fetch_array($query)) { // gan link than thien vao $link = ConvertUrl("?action=ThongTin&mttc={$row['mathongtinchinh']}"); // echo $link; echo "<li><a class='style_text_3 mg_left_70' href='{$link}'>{$row['tenthongtinchinh']}</a></li>"; } ?> </ul> </div>
<div class="main_right"> <span class="style_text_2">Sản phẩm</span> <ul> <?php $sql = "select * from loaisanpham order by thutu desc"; $query = mysql_query($sql); while ($row = mysql_fetch_array($query)) { // gan link than thien vao $link = ConvertUrl("?action=SanPham&mlsp={$row['maloaisanpham']}"); // echo $link; echo "<li><a class='style_text_3 mg_left_70' href='{$link}'>{$row['tenloaisanpham']}</a></li>"; } ?> </ul> </div>
echo cut_string(strip_tags($r_cuocsoncafe_f['tenbaiviet']), 60); ?> </a> </p> <p class="content_top_post"> <?php echo cut_string(strip_tags($r_cuocsoncafe_f['mota']), 250); ?> </p> </div> </div> <div id="bottom_nav"> <ul class="ul_bottom_nav"> <?php while ($r_cuocsoncafe = mysql_fetch_assoc($rs_cuocsoncafe)) { $link = ConvertUrl("?action=baiviet&mbv={$r_cuocsoncafe['mabv']}"); ?> <li><a title="<?php echo $r_cuocsoncafe[tenbaiviet]; ?> " href="<?php echo $link; ?> "><?php echo cut_string(strip_tags($r_cuocsoncafe[tenbaiviet]), 80); ?> </a></li> <?php } ?>
<div class="pp_left"> <h2 class="style_text_1">Hệ thống phân phối</h2> <ul> <?php $link_tuyendungmoi = ConvertUrl("?action=TuyenDung"); echo "<li><a href='{$link_tuyendungmoi}'>Tuyển dụng mới</a></li>"; $link_camnghinhanvien = ConvertUrl("?action=TuyenDung&mabv=131"); echo "<li><a href='{$link_camnghinhanvien}'>Nhân viên nghĩ sao về Hoàng Anh Phát</a></li>"; $link_visaochon = ConvertUrl("?action=TuyenDung&mabv=130"); echo "<li><a href='{$link_visaochon}'>Vì sao nên chọn Hoàng Anh Phát</a></li>"; ?> </ul> </div>
$total = mysql_result(mysql_query("select COUNT(masanpham) from sanpham where anhien=0 "), 0); $numofpages = $total / $pp; if (!$p_now) { $page = 1; } else { $page = $p_now; } $limitvalue = $page * $pp - $pp; $sql = "select masanpham, urlhinh, motangan, tensanpham from sanpham where anhien=0 order by thutu DESC LIMIT {$limitvalue}, {$pp}"; $query = mysql_query($sql); while ($row = mysql_fetch_assoc($query)) { // echo "<pre>"; // print_r($row['motangan']); // echo "</pre>"; // gan link than thien vao $link = ConvertUrl("?action=sanpham&idsp={$row['masanpham']}"); if (trim($row['urlhinh']) != "") { $urlhinhanh = "images/hinhsanpham/" . $row['urlhinh']; } else { $urlhinhanh = "images/hinhsanpham/khongcohinh.jpg"; } ?> <li> <p class="img_child_cat"><img src="<?php echo $urlhinhanh; ?> " alt="" title="" /></p> <h2><a class="name_child_cat" href="<?php echo $link;
<div class="main_right"> <span class="style_text_2">Hệ thống phân phối</span> <ul> <?php $link_dktrothanhnhaphanphoi = ConvertUrl("?action=PhanPhoi"); echo "<li><a class='style_text_3 mg_left_70' href='{$link_dktrothanhnhaphanphoi}'>Điều kiện trở thành nhà P.Phối</a></li>"; $link_phanphoitrongnuoc = ConvertUrl("?action=PhanPhoi&lpp=1"); echo "<li><a class='style_text_3 mg_left_70' href='{$link_phanphoitrongnuoc}'>Hệ thống phân phối trong nước</a></li>"; $link_phanphoingoainuoc = ConvertUrl("?action=PhanPhoi&lpp=2"); echo "<li><a class='style_text_3 mg_left_70' href='{$link_phanphoingoainuoc}'>Hệ thống phân phối Quốc tế</a></li>"; ?> </ul> </div>
echo '<span class="style_text_4">' . $r1['tenloaisanpham'] . '</span>'; $pp = "6"; @($p_now = $_GET['page']); $total = mysql_result(mysql_query("select COUNT(masanpham) from sanpham where anhien=0 AND maloaisanpham=" . $maloaisanpham), 0); $numofpages = $total / $pp; if (!$p_now) { $page = 1; } else { $page = $p_now; } $limitvalue = $page * $pp - $pp; $sql = "select masanpham, urlhinh, motangan, tensanpham from sanpham where anhien=0 AND maloaisanpham=" . $maloaisanpham . " order by thutu DESC LIMIT {$limitvalue}, {$pp}"; $query = mysql_query($sql); while ($row = mysql_fetch_array($query)) { // gan link than thien vao $link = ConvertUrl("?action=sanpham&idsp={$row['masanpham']}&malsp={$maloaisanpham}"); if (trim($row['urlhinh']) != "") { $urlhinhanh = "images/hinhsanpham/" . $row['urlhinh']; } else { $urlhinhanh = "images/hinhsanpham/khongcohinh.jpg"; } ?> <table width="98%" cellspacing="0" cellpadding="0" border="0" class="KhungcatIterm"> <tbody> <tr> <td width="135" align="left" bgcolor="#ffffff"> <a href="<?php echo $link; ?> ">
<table width="100%" border="1" bgcolor="#CEA257" cellspacing="0" style="text-align:center"> <td width="70%"><b>Vị trí tuyển dụng</b></td> <td width="20%"><b>Số lượng</b></td> <td width="10%"><b>Cập nhật</b></td></tr> <?php $sql = "select * from tuyendung"; $query = mysql_query($sql); while ($row = mysql_fetch_array($query)) { $date = new DateTime($row['ngaydang']); $ngaythang = $date->format('d.m.Y'); $linkchitiet = ConvertUrl("?action=tuyendung&mtd={$row['matuyendung']}"); // echo $linkchitiet; echo "<tr bgcolor=\"#ffffff\" onmouseout=\"this.style.backgroundColor='#ffffff';\" title=\" Xem chi tiết \" onclick=\"window.location='{$linkchitiet}'\" onmouseover=\"this.style.backgroundColor='#CCCCCC';this.style.cursor='pointer';\" style=\"background-color: rgb(255, 255, 255);\">"; echo "<td width=70%>" . $row['vitrituyendung'] . "</td>"; echo "<td width=20%>" . $row['soluong'] . "</td>"; echo "<td width=10%>" . $ngaythang . "</td>"; echo "</tr>"; } ?> </table> <?php } ?>