BBnepal-Accounts/application/zoom/index.php

42 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2024-07-10 12:43:19 +00:00
<?php
include('config.php');
include('api.php');
?>
<html>
<head>
</head>
<body>
<h1>Schedule a Session</h1>
<form method = "POST" action = "">
<label>Start Date:</label><input type = "text" name = "start_date" />
<label>Time Date:</label><input type = "text" name = "start_time" />
<label>Topic</label><input type = "text" name = "topic" />
<input type = "submit" />
</form>
</body>
<?php
if(isset($_REQUEST['start_date']))
{
echo "<pre>";
$arr['topic']=$_REQUEST['topic'];
$arr['start_date']= date($_REQUEST['start_date'].''. $_REQUEST['start_time']);
$arr['duration']=30;
$arr['password']='test';
//$arr['type']='3'; /* 2 - scheduled...3 recurring meeting with no fixed time */
$result=createMeeting($arr);
print_r($result);
if(isset($result->id)){
echo "Join Meeting: <a href='".$result->join_url."' target = '_blank'><button>Join</button></a><br/>";
echo "Password: ".$result->password."<br/>";
echo "Start Time: ".$result->start_time."<br/>";
echo "Duration: ".$result->duration."<br/>";
}else{
echo '<pre>';
print_r($result);
}
}
?>
</html>