SOCMED/application/view/backup/profile.php
2020-01-02 21:48:25 +07:00

197 lines
8.3 KiB
PHP

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TEAM</title>
<!--style-->
<link rel="stylesheet" type="text/css" href="asset/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="asset/css/style.css" />
<link rel="stylesheet" type="text/css" href="asset/css/style2.css" />
<!--script-->
<script src="asset/js/jquery.js"></script>
<script src="asset/js/script.js"></script>
</head>
<body>
<!--nav-->
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="home.php" style="height:50px;padding:2px 15px;font-family:Modern;"><img src="asset/image/pic_0000_Group-1-copy.png" height="100%"/> Socmed Campus</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<div class="cari" style="margin-left:500px">
<form class="navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" size="30" id="search" style="width:320px;" class="form-control" placeholder="Search" onkeyup="lookup(this.value);">
</div>
<div id="suggestions"></div>
</form>
</div>
<ul class="nav navbar-nav navbar-right">
<li><a href="home.php"><img src="asset/image/home.png" width="20px" title="Home"></a></li>
<li><a href="<?php base_url ?>profile.php?id=<?php echo $_SESSION['username'] ?>"><img src="asset/image/profile.png" width="20px" title="Profile"></a></li>
<li><a href="community.php" id="com"><img src="asset/image/community.png" width="20px" title="Community"></a></li>
<li><a href="<?php base_url ?>home.php?action=logout" id="com"><img src="asset/image/logout.png" title="Logout" width="20px"></a></li>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<!--alert-->
<?php if(isset($_SESSION['notif-alert'])) { ?>
<div class="alert alert-warning notif" id="alert" style="height:100%;padding:3px;padding-left:6px;width:94%;"><?php echo $_SESSION['notif-alert'] ?></div>
<?php } ?>
<!--end alert-->
<!--content-->
<div class="row">
<div class="container">
<div class="col-lg-2">
<a href="#">
<div class="boxPhotoProfile" onclick="<?php echo SELF ?>">
<img style="width: 100%;" src="<?php echo $data['info']['avatar'] ?>" />
</div>
</a>
</div>
<div class="col-lg-7">
<div class="boxInfo">
<div class="container">
<div class="text">
<h3><b>Personal Information</b></h3>
<?php if($_SESSION['username']==$_GET['id']){ ?>
<h6><a href="profile.php?id=<?php echo $_GET['id']?>&action=edit">Edit</a></h6>
<?php } ?>
<h4><i><?php echo $data['info']['nama'] ?></i></h4>
<h4><i><?php echo $data['info']['Fakultas'] ?></i></h4>
<h4><i><?php echo $data['info']['Jurusan'] ?></i></h4>
<h4><i><?php echo "Class of ".$data['info']['Angkatan'] ?></i></h4>
<h4>
</div>
</div>
</div>
<div class="boxFriends">
<div class="container">
<div class="text">
<h3><b>Friendlist </b><small><b>(<?php echo $data['cFriend'] ?>)</b></small></h3>
<div class="thmb">
<?php if(isset($data['sFriend'])){ ?>
<a class="btn btn-primary" href="profile.php?action=addfriend&idprf=<?php echo $_GET['id']?>"><?php echo $data['sFriend'] ?></a>
<?php } ?>
<div class="container">
<?php while ($row = mysql_fetch_assoc($data['Friend'])) { ?>
<?php if($_GET['id']!=$row['username']){?>
<div class="col-lg-1"><a href="profile.php?id=<?php echo $row['username'] ?>"><img src="<?php echo $row['avatar']?>" alt="..." class="img-circle" title="<?php echo $row['nama'] ?>"></a></div>
<?php } ?>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="boxGrup">
<div class="container">
<div class="text">
<h3><b>Joined Community</b></h3>
</div>
<?php while ($row = mysql_fetch_assoc($data['comm'])) { ?>
<div class="row"><div class="row1"><img src="<?php echo $row['photo'] ?>" alt="..." class="img-circle"><i> Description</i></div></div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="container">
<div class="col-md-2">
<div class="emptybox"></div>
</div>
<div class="col-md-10">
<div class="boxStatus">
<div class="container">
<div class="text">
<h3><b>User Activity</b></h3>
</div>
<div class="row">
<div class="container">
<div class="col-lg-1">
<img src="<?php echo $data['info']['avatar'] ?>" alt="..." class="img-circle" width="80px" height="80px">
</div>
<div class="col-lg-9">
<div class="text1">
<h4><b><?php echo $data['info']['nama'] ?></b></h4>
</div>
<form role="form" action="profile.php?action=update" method="post">
<div class="col-lg-9">
<input type="status" name="status" class="form-control" id="status" placeholder="Enter status" width="10px">
<?php if (isset($_GET['id']) && ($_SESSION['username'] != $_GET['id'] )) { ?>
<input type="hidden" name="idu" value="<?php echo $_GET['id'] ?>">
<?php } ?>
</div>
<button type="submit" class="btn btn-primary">Update</button>
</form>
</div>
</div>
<?php while ($row = mysql_fetch_assoc($data['post'])) { ?>
<div class="row">
<div class="container">
<div class="col-lg-1">
<img src="<?php echo $row['avatar'] ?>" alt="..." class="img-circle" width="80px" height="80px">
</div>
<div class="col-lg-9">
<div class="text1">
<?php if(!empty($row['toUser'])){?>
<h4><b><?php echo $row['nama'].' </b>&#9658;<b> '.$data['info']['nama'] ?></b></h4>
<?php }else{ ?>
<h4><b><?php echo $data['info']['nama'] ?></b></h4>
<?php }?>
</div>
<div class="text">
<?php echo $row['status'] ?>
</div>
<div class="text">
<h6 style="color:blue"><?php echo $row['date'] ?></h6>
</div>
</div>
</div>
</div>
<?php } ?>
<div style="background-color:#f3f3f3;width:300px;text-align:center;">No More Post</div>
</div>
</div>
</div>
</div>
</div>
<!--footer-->
</br>
<div id="footer" style="background-color:#222;color:#fff;padding:10px;box-sizing:border-box;">
<div class="container">
<p class="text-muted">copyright by IFTeam</p>
</div>
</div>
<!--debug-->
<?php
if(isset($_SESSION['notif-warning'])) {
$row = count($_SESSION['notif-warning']);
$row++;
echo "<fieldset style='margin:10px;'><legend>SQL</legend><textarea class='form-control' rows='$row'>";
foreach($_SESSION['notif-warning'] as $value){echo $value.'&#13;&#10;'; }
echo '</textarea></fieldset>';
}
?>
</body>
</html>