-
Notifications
You must be signed in to change notification settings - Fork 9
/
video.php
59 lines (55 loc) · 1.47 KB
/
video.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE HTML>
<html>
<head>
<title>Paathshaala Video</title>
<?php
include 'source.php';
include 'functions/ui.php';
echo $header;
?>
<link rel='stylesheet' href='css/video-js.css'>
<link rel='stylesheet' href='css/video.css'>
</head>
<body>
<div id='topbar'></div>
<img src="pics/load.gif" id='loading'/ style='display:none;'>
<div id='container'>
<?php echo $topBar;
echo $feedback; ?>
<div class='mainLeft'>
<div class='videodiv'></div>
<?php
if(isset($_GET['video'])){
echo "<span class='smallSubtitle'>Comments</span>";
echo "<div class='commentWarp'></div>";
echo $commentSubmit;
} else {
echo "Content not found :-(";
}
?>
</div> <!--/ main left -->
<div class='mainRight'><!-- main right --></div>
</div><!-- /container -->
<?php
echo $bottomBar;
echo $scripts;
echo $piwik;
?>
<script src='js/video.js' type='text/javascript'></script>
<script src='js/comment.js' type='text/javascript'></script>
<script type='text/javascript'>
function getActiveUser() {
<?php echo "return \"" .$_SESSION['uid']. "\"" ; ?> ;
}
$(document).ready(function() {
P.getVideo( <?php echo $_GET['video'] ?> );
/* Function calls to update the comments */
updateComment("/couch/comments/_design/comments/_view/commentbycid?key=\"<?php echo $_GET['video']; ?>\"");
getNewComment(function(changes){
//alert(changes.results[0].id);
updateComment("/couch/comments/_design/comments/_view/commentbyid?key=\""+changes.results[0].id+"\"");
});
});
</script>
</body>
</html>