Viewing file: message.php (11.92 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include 'header.php';
$sql1 = "select * from user_details where user_id='$u_id'";
$result1 = $con->query($sql1);
$row1 = $result1->fetch_assoc();?>
<title>Messages | <?php echo $row1['name']; ?></title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
<body>
<style>
body{ padding: 0; margin: 0;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
}
h3 {
font-size: 1rem;
}
a {
color: #2d7788;
}
a:hover {
text-decoration: underline;
color: #1a454f;
-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
-ms-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
}
a:focus {
text-decoration: none;
}
p {
line-height: 1.5;
}
.wrapper_Outer {
position: relative;
font-family: 'Roboto', sans-serif !important;
height: 100%;
border: solid 1px #ccc;
float: left;
margin: 30px 0;
background: #FFF;
display: flex;
}
.wrapper_resume {
max-width: 1000px;
margin: 0 auto;
}
.sidebar-wrapper {
background: #32333a;
float: right;
width: 300px;
min-height: 100%;
color: #fff;
padding: 25px 0;
}
.main-wrapper {
background: #fff;
padding: 30px;
width: calc(100% - 360px);
min-height: 100%;
float: left;
}
.profileImg {
width: 165px;
height: 165px;
margin: 0 auto;
overflow: hidden;
border-radius: 100%;
border: 5px solid #FFF;
}
.profileImg img{ height: 165px; object-fit: cover; }
.sidebar-wrapper .subtitles {
font-weight: 400;
text-transform: uppercase;
border-left: 15px solid #ff9800;
float: left;
width: 100%;
padding: 7px 10px;
font-size: 18px;
letter-spacing: 0.2px;
margin: 10px 0 15px;
background: #65666d;
}
.sidebar-wrapper .list-style{ list-style: none; padding: 0; margin: 0; float: left; width: 100%; margin-left: 20px;}
.sidebar-wrapper .list-style li {
margin-bottom: 15px;
word-break: break-all;
float: left;
width: 100%;
line-height: 20px;
font-size: 14px;
font-weight: 300;
}
.sidebar-wrapper .list-style li:last-child{ margin-bottom: 0; }
.sidebar-wrapper .list-style li label{ display: block; margin-bottom: 5px; font-weight: 400 !important; font-size: 16px; letter-spacing: 0.2px; }
.sidebar-wrapper .list-style li .icons { font-size: 15px; float: left; width: 35px; }
.sidebar-wrapper .list-style li .conts{ float: left; width: calc(100% - 35px); font-weight: 300; }
.sidebar-wrapper a { color: #fff;}
.sidebar-wrapper .container-block {
padding: 15px 20px;
float: left;
width: calc(100% - 5px);
}
.main-wrapper p {
color: #444;
font-size: 14px;
}
.main-wrapper .section-title {
text-transform: uppercase;
font-size: 18px;
font-weight: 500;
color: #111;
position: relative;
margin: 10px 0;
letter-spacing: 0.2px;
border-left: 16px solid #ff9800;
background: #cccccc78;
padding: 7px 10px;
}
.download-resume{
font-size: 22px;
margin-left: 73%;
}
.main-wrapper .experiences-section .item {
margin-bottom: 30px;
}
.main-wrapper .upper-row {
margin: 0px;
font-size: 14px;
float: left;
width: calc(100% - 140px);
padding-bottom: 10px;
border-bottom: 1px solid #66666633;
}
.experiences-section .upper-row{ border-bottom:0; }
.meta .time_summary {
width: 140px;
float: left;
font-size: 14px;
color: #666;
font-weight: 400;
}
.upper-row .subs-title { margin: 0 0 10px; color: #333; }
.upper-row .details_sec {
margin: 5px 0;
color: #555;
font-size: 14px;
}
.section{ float: left; width: 100%; }
.details_sec.val_perc {
font-weight: 600;
font-size: 15px;
margin: 10px 0 5px;
}
.main-wrapper .meta {
float: left;
width: 100%;
margin: 10px 0;
}
.main-wrapper h1.name {
font-size: 40px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.2px;
margin: 40px 0 0;
padding: 0;
line-height: inherit;
}
.main-wrapper h2.designation {
color: #ff9800;
font-weight: 500;
font-size: 20px;
text-transform: uppercase;
letter-spacing: 0.2px;
margin: 0 0 73px;
padding: 5px 0;
}
.main-wrapper ul.summary {
margin: 0;
list-style: none;
padding: 5px 0 15px;
font-size: 14px;
color: #333;
}
.main-wrapper ul.summary li { margin: 0 0 10px; }
.fas.fa-phone {
transform: scaleX(-1);
}
td,th
{
padding: 10px;
}
</style>
<section class="project-banner">
<div class="container">
<div class="banner-sec">
<div class="projectheading btn_right">
<h3>Messages</h3>
<button class="btn backbtn" onClick="history.go(-1);">Back </button>
</div>
</div>
</div>
</section>
<div class="wrapper_resume">
<div class="wrapper_Outer" style="box-shadow: 0 6px 12px 0 rgb(0 0 0 / 27%), 0 10px 25px 0 rgb(0 0 0 / 25%);">
<table style="width: 1000px;">
<?php
if ($u_id) {
$u_id;
$noti="SELECT * FROM notifications where user_id= '$u_id' ";
$query1 = mysqli_query($con, $noti) or die("database error:" . mysqli_error($con));
$count = $query1->num_rows;
$total=0;
if ($count > 0)
{
?>
<!-- <table style="width: 1000px;"> -->
<tr>
<th>Date</th>
<th>Message</th>
</tr>
<?php
while ($row = $query1->fetch_assoc())
{
$count_new=0;
$id=$row['id'];
?>
<tr>
<td>
<?php
echo $msg=$row['date'];
?>
</td>
<td>
<?php
echo $msg=$row['message'];
?>
</td>
</tr>
<?php
}
?>
<!-- </table> -->
<?php
}
echo "<br>";
$u_id;
$noti="SELECT * FROM student_requests where student_id= '$u_id' ";
$query1 = mysqli_query($con, $noti) or die("database error:" . mysqli_error($con));
$count = $query1->num_rows;
$total=0;
if ($count > 0)
{
?>
<!-- <table style="width: 1000px;"> -->
<!-- <tr>
<th>Date</th>
<th>Message</th>
</tr> -->
<?php
while ($row = $query1->fetch_assoc())
{
$count_new=0;
$id=$row['id'];
?>
<tr>
<td>
<?php
echo $msg=$row['requested_date'];
?>
</td>
<td>
<?php
$requested_type=$row['request_type'];
if($requested_type==1)
{
$type="Leave Request";
}
if($requested_type==2)
{
$type="Class Change Request";
}
echo"Request Type : ". $type; echo "<br>";
echo"Message : ". $msg=$row['message'];
echo "<br>";
$approve_status=$row['approve_status'];
if($approve_status==1)
{
$status="Approved";
}
if($approve_status==0)
{
$status="Pending";
}
echo "Status : ";echo $status;
?>
</td>
</tr>
<?php
}
?>
<!-- </table> -->
<?php
}
}
?>
</table>
</div>
</div>
<script type="text/javascript" src="https://www.srishticampus.com/js/fontawesome.js"></script>
<?php
include 'footer.php';
?>
|