if (confirm("Bạn có chắc muốn lưu những thay đổi thông tin cá nhân?")) window.location = url; return false; } </script> <?php if (isset($_GET["update"])) { $hoten = isset($_GET["hoten"]) ? $_GET["hoten"] : -1; $gioitinh = isset($_GET["gioitinh"]) ? $_GET["gioitinh"] : -1; $diachi = isset($_GET["diachi"]) ? $_GET["diachi"] : -1; $sdt1 = isset($_GET["sdt1"]) ? $_GET["sdt1"] : ""; $sdt2 = isset($_GET["sdt2"]) ? $_GET["sdt2"] : ""; $newpass = isset($_GET["newpass"]) ? $_GET["newpass"] : -1; $ngaycapnhat = date("Y-m-d"); UsersBUS::Update2($user["id"], $hoten, $gioitinh, $diachi, $sdt1, $sdt2, $newpass, $ngaycapnhat); header("Location:index.php?view=private_info"); } ?> <div id="toolbar"> <div class="tl"></div> <div class="tr"></div> <div class="tm"></div> <div class="mid"> <div class="title icon_info">Thông tin cá nhân: <span class="subTitle">[ Chỉnh sửa ]</span></div> <div class="icon"> <a href="index.php"> <img src="images/icon_32_cancel.png" /><br />Quay lại</a></div> <div class="icon"> <a href=""> <img src="images/icon_32_apply.png" onclick="return saveInfo();" /><br />Lưu</a></div>