-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
170 lines (141 loc) · 5.73 KB
/
index.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?php
require_once 'config.php';
require_once 'class-db.php';
@session_start();
if (isset($_SESSION['id']) && isset($_SESSION['type'])) {
if ($_SESSION['type'] == 1) {
$db = new DB;
$res = $db->getuserbyid($_SESSION['id']);
$name = "";
if ($res->num_rows == 1) {
$row = $res->fetch_assoc();
$name = $row['Name'];
}
?>
<!DOCTYPE html>
<head>
<title>POTENZA ZOOM</title>
<meta charset="utf-8" />
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.9.0/css/bootstrap.css" />
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.9.0/css/react-select.css" />
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
</head>
<body>
<style>
#zmmtg-root {
background-color: transparent !important;
position: relative !important;
}
.sdk-select {
height: 34px;
border-radius: 4px;
}
.websdktest button {
float: right;
margin-left: 5px;
}
#nav-tool {
margin-bottom: 0px;
}
#show-test-tool {
position: absolute;
top: 100px;
left: 0;
display: block;
z-index: 99999;
}
#display_name {
width: 250px;
}
#websdk-iframe {
width: 700px;
height: 500px;
border: 1px;
border-color: red;
border-style: dashed;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
left: 50%;
margin: 0;
}
</style>
<div>
<div class="container">
<hr>
<h1>Admin Start Meeting Page</h1>
<hr>
<div>
<table class="table" id="meeting">
<tr>
<th>Topic</th>
<th>Meeting Id</th>
<th>Password</th>
<th>Join Meeting</th>
</tr>
</table>
</div>
<!--/.navbar-collapse -->
</div>
</div>
<div class="vertical-scrollable row text-center">
<iframe height=" 300" width="600" title="Iframe Example" name="theFrame" allowfullscreen></iframe>
</div>
<script src="https://source.zoom.us/1.9.0/lib/vendor/react.min.js"></script>
<script src="https://source.zoom.us/1.9.0/lib/vendor/react-dom.min.js"></script>
<script src="https://source.zoom.us/1.9.0/lib/vendor/redux.min.js"></script>
<script src="https://source.zoom.us/1.9.0/lib/vendor/redux-thunk.min.js"></script>
<script src="https://source.zoom.us/1.9.0/lib/vendor/lodash.min.js"></script>
<script src="https://source.zoom.us/zoom-meeting-1.9.0.min.js"></script>
<script src="js/tool.js"></script>
<script src="js/vconsole.min.js"></script>
<script src="js/index.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
var name = "<?php echo $name; ?>";
var base_uri = "<?php echo BASE_URI; ?>";
var api = "<?php echo API_KEY; ?>";
var api_secret = "<?php echo SECRET_KEY; ?>";
</script>
<script>
var url_get = base_uri + "/getallmeeting.php";
$.ajax({
type: "POST",
url: url_get,
dataType: 'json',
success: function(result) {
$.each(result, function(i, item) {
$('#meeting').append("<tr><td>" + item.topic + "</td><td>" + item.meeting_id + "</td><td>" + item.passcode + "</td><td> <button type='button' name=" + item.id + " class='btn btn-primary getmeeting' id=" + item.id + " >Start Meeting</button></td></tr>");
console.log(item);
});
}
});
$(document).ready(function() {
$(document).on('click', '.getmeeting', function() {
var val = $(this).attr('id');
var url_get = base_uri + "/getmeeting.php";
$.ajax({
type: "POST",
data: {
'id': val
},
url: url_get,
dataType: 'json',
success: function(result) {
console.log(result);
websdkready(result.meeting_id, result.passcode, 1, name);
}
});
});
});
</script>
</body>
</html>
<?php
}
} else {
header('location:login.php', true);
}
?>