<?php session_start(); include '../model/diary_model.php'; include '../model/comment_model.php'; include '../model/notify_model.php'; include '../model/user_model.php'; include_once '../model/friend_model.php'; include_once '../model/like_model.php'; $l = new LikeModel(); $t = new DIaryModel(); $diary = array(array()); $diary = $t->getDiaryOfHomePage($_SESSION['id']); $c = new CommentModel(); $n = new NotifyModel(); $m = new NotifyModel(); $f = new FriendModel(); ?> <?php include_once 'header.php'; ?> </div> <?php $url = 'home_page.php'; //include 'show_comment.php'; $i = 0; $page = ''; foreach ($diary as $temp) { if ($temp != NULL) { include 'get_list_diary.php'; }
<?php // bai dang lay tu thong bao session_start(); include '../model/diary_model.php'; include '../model/comment_model.php'; include '../model/notify_model.php'; include '../model/user_model.php'; include '../model/like_model.php'; include '../model/friend_model.php'; $f = new FriendModel(); $l = new LikeModel(); $t = new DIaryModel(); $c = new CommentModel(); $n = new NotifyModel(); $m = new NotifyModel(); $u = new userModel(); $diary_id = $_GET['diary_id']; $diary = $t->getDiary($diary_id); $id_notify = $_GET['id_nf']; $m->notifyReed($id_notify); include 'header.php'; $i = 0; ?> </div> </div> <div class="container"> <?php if ($diary == NULL) { echo '<div class="well">'; echo 'bai dang khong hop le </div>';
<?php session_start(); include '../model/diary_model.php'; include '../model/comment_model.php'; include '../model/notify_model.php'; include '../model/user_model.php'; include '../model/like_model.php'; include '../model/friend_model.php'; $f = new FriendModel(); $l = new LikeModel(); $t = new DIaryModel(); $diary = array(array()); $diary = $t->getDiaryOfUserfriend($_SESSION['id']); $c = new CommentModel(); $n = new NotifyModel(); $m = new NotifyModel(); $u2 = new UserModel(); $u = new UserModel(); $typeseach = $_GET['type']; ?> <?php //include_once 'header.php'; ?> <!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>My Diary</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1">