Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
20_21-J09
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
20_21-J09
20_21-J09
Commits
d56881ed
Commit
d56881ed
authored
Nov 09, 2020
by
IT17186216_Chamath Ravindu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload room File
parent
533346ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
0 deletions
+70
-0
user/room.php
user/room.php
+70
-0
No files found.
user/room.php
0 → 100644
View file @
d56881ed
<div
class=
"col-lg-8"
>
<div
class=
"panel panel-default"
style=
"height:50px;"
>
<span
style=
"font-size:18px; margin-left:10px; position:relative; top:13px;"
><strong><span
id=
"user_details"
><span
class=
"glyphicon glyphicon-user"
></span><span
class=
"badge"
>
<?php
echo
mysqli_num_rows
(
$cmem
);
?>
</span></span>
<?php
echo
$chatrow
[
'chat_name'
];
?>
</strong></span>
<div
class=
"showme hidden"
style=
"position: absolute; left:-120px; top:20px;"
>
<div
class=
"well"
>
<strong>
Room Member/s:
</strong>
<div
style=
"height: 10px;"
></div>
<?php
$rm
=
mysqli_query
(
$conn
,
"select * from chat_member left join `user` on user.userid=chat_member.userid where chatroomid='
$id
'"
);
while
(
$rmrow
=
mysqli_fetch_array
(
$rm
)){
?>
<span>
<?php
$creq
=
mysqli_query
(
$conn
,
"select * from chatroom where chatroomid='
$id
'"
);
$crerow
=
mysqli_fetch_array
(
$creq
);
if
(
$crerow
[
'userid'
]
==
$rmrow
[
'userid'
]){
?>
<span
class=
"glyphicon glyphicon-user"
></span>
<?php
}
?>
<?php
echo
$rmrow
[
'uname'
];
?>
</span><br>
<?php
}
?>
</div>
</div>
<div
class=
"pull-right"
style=
"margin-right:10px; margin-top:7px;"
>
<?php
if
(
$chatrow
[
'userid'
]
==
$_SESSION
[
'id'
]){
?>
<a
href=
"index.php"
class=
"btn btn-primary"
><span
class=
"glyphicon glyphicon-arrow-left"
></span>
ආපසු
</a>
<a
href=
"#delete_room"
data-toggle=
"modal"
class=
"btn btn-danger"
>
සංවාදය ඉවත් කරන්න
</a>
<a
href=
"#add_member"
data-toggle=
"modal"
class=
"btn btn-primary"
>
සාමාජිකයන් ඇතුළත් කරන්න
</a>
<?php
}
else
{
?>
<a
href=
"index.php"
class=
"btn btn-primary"
><span
class=
"glyphicon glyphicon-arrow-left"
></span>
ආපසු
</a>
<a
href=
"#leave_room"
data-toggle=
"modal"
class=
"btn btn-warning"
>
ඉවත් වන්න
</a>
<?php
}
?>
</div>
</div>
<div>
<div
class=
"panel panel-default"
style=
"height: 400px;"
>
<div
style=
"height:10px;"
></div>
<span
style=
"margin-left:10px;"
>
IntelJr සංවාද වෙත සාදරයෙන් පිළිගනිමු
</span><br>
<!-- <span style="font-size:20px; margin-left:10px;"><i>Note: Avoid using foul language and hate speech to avoid banning of account</i></span>-->
<div
style=
"height:10px;"
></div>
<div
id=
"chat_area"
style=
"margin-left:10px; max-height:320px; overflow-y:scroll;"
>
</div>
</div>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"ටයිප් කරන්න..."
id=
"chat_msg"
>
<span
class=
"input-group-btn"
>
<button
class=
"btn btn-success"
type=
"submit"
id=
"send_msg"
value=
"
<?php
echo
$id
;
?>
"
>
<span
class=
"glyphicon glyphicon-comment"
></span>
යවන්න
</button>
</span>
</div>
</div>
</div>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment