<?php   
    $running_year = $this->crud->getInfo('running_year');
    $zoomVersion  = $this->db->get_where('settings', array('type' => 'zoom_version'))->row()->description;
    $posts = $this->db->get_where('activity' , array('activity_id' => base64_decode($live_id)))->result_array();
    foreach ($posts as $row):
?>
<!DOCTYPE html>
    <head>
        <meta charset="utf-8"/>
        <title><?php echo $this->db->get_where('settings' , array('type' => 'system_name'))->row()->description;?> - <?php echo $this->db->get_where('settings' , array('type' => 'system_title'))->row()->description;?></title>
        <link href="<?php echo base_url();?>public/uploads/<?php echo $this->crud->getInfo('favicon');?>" rel="icon">
        <link rel="stylesheet" href="<?php echo base_url();?>public/style/cms/css/zoom.css">
        <link type="text/css" rel="stylesheet" href="https://source.zoom.us/<?php echo $zoomVersion;?>/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>
        <script src="https://source.zoom.us/<?php echo $zoomVersion;?>/lib/vendor/react.min.js"></script>
        <script src="https://source.zoom.us/<?php echo $zoomVersion;?>/lib/vendor/react-dom.min.js"></script>
        <script src="https://source.zoom.us/<?php echo $zoomVersion;?>/lib/vendor/redux.min.js"></script>
        <script src="https://source.zoom.us/<?php echo $zoomVersion;?>/lib/vendor/redux-thunk.min.js"></script>
        <script src="https://source.zoom.us/<?php echo $zoomVersion;?>/lib/vendor/jquery.min.js"></script>
        <script src="https://source.zoom.us/<?php echo $zoomVersion;?>/lib/vendor/lodash.min.js"></script>
        <script src="https://source.zoom.us/zoom-meeting-<?php echo $zoomVersion;?>.min.js"></script>
        <script type="text/javascript">
            var zoomKey    = '<?php echo $this->db->get_where('settings', array('type' => 'zoom_key'))->row()->description;?>';
            var meetID     = '<?php echo $row['meet_id']?>';
            var userName   = '<?php echo $this->crud->get_name('teacher', $this->session->userdata('login_user_id'));?>';
            var meetPWD    = '<?php echo $row['meet_password']?>';
            var leaveURL   = '<?php echo base_url();?>teacher/subject_dashboard/<?php echo base64_encode($row['class_id']."-". $row['section_id']."-". $row['subject_id']);?>';
            var userMail   = '<?php echo $this->db->get_where('teacher', array('teacher_id' => $this->session->userdata('login_user_id')))->row()->email;?>';
            var zoomSecret ='<?php echo $this->db->get_where('settings', array('type' => 'zoom_secret'))->row()->description;?>';
        </script>
        <script src="<?php echo base_url();?>public/style/cms/js/zoom.js"></script>
    </body>
</html>
<?php endforeach;?>