{source}

<?php

$stylelink="";
$stylelink .= '<link rel="stylesheet" href="/custom/transcode/css/mainTranscode.css">';
$stylelink .= '<link rel="stylesheet" href="/custom/transcode/css/buttonUploadFile.css">';
$stylelink .= '<link rel="stylesheet" href="/custom/transcode/css/fileList.css">';
$stylelink .= '<link rel="stylesheet" href="/custom/transcode/css/msgBox.css">';
$stylelink .= '<link rel="stylesheet" href="/custom/transcode/css/xmlParser.css">';
$stylelink .= '<link rel="stylesheet" href="/custom/transcode/css/panoTransco.css">';
$stylelink .= '<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">';
$stylelink .= '<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0"/>';
JFactory::getDocument()->addCustomTag($stylelink);
require_once(JPATH_ROOT.'/custom/global/php/Model.php');

//check si le user est logged
$user = JFactory::getUser();
if(is_null($user->username)||empty($_COOKIE['joomla_user_state'])){
$logged=false;
}else{
$logged=true;
include JPATH_ROOT.DS."custom".DS.'transcode'.DS.'php'.DS.'initUser.php';
}




?>

<div id="msgBox"></div>

<div id="mainContainer">
<div id="filesContainer">
<!-- Avatar and files -->
<div class="blocTitleContainer" id="fileTitleContainer">
<div class="blocTitle">
Your Subtitling Files
</div>
<div id="uploadFile">
<input type="file" name="upload" id="upload" style="display: none;">
<?php if($logged){ ?>
<label for="upload">
<div id="uploadFileButton">Upload a file</div>
</label>
<?php }else{ ?>
<a class="open-register-form" data-toggle="modal" href="#LoginForm">
<div id="notLoggedFileButton">Upload a file</div>
</a>

<?php } ?>

</div>
</div>

 

<div id="fileList">
<!--Sortable html table containing all the file of the user-->
</div>
</div>

 


<div id="previewGlobalContainer">
<!-- Preview -->
<div class="blocTitleContainer">
<div class="blocTitle">
Preview
</div>
</div>

 

<div id="previewScreen">
<table id="previewContainer">
</table>
</div>
</div>
</div>

 

<!-- JAVASCRIPT LINK -->
<script src=<?php echo '"https://'.$_SERVER['SERVER_NAME'].'/custom/transcode/js/mainfile.js"'; ?>></script>
<script src=<?php echo '"https://'.$_SERVER['SERVER_NAME'].'/custom/transcode/js/uploadFile.js"'; ?>></script>
<script src=<?php echo '"https://'.$_SERVER['SERVER_NAME'].'/custom/transcode/js/msgBox.js"'; ?>></script>
<script src=<?php echo '"https://'.$_SERVER['SERVER_NAME'].'/custom/transcode/js/deleteFile.js"'; ?>></script>
<script src=<?php echo '"https://'.$_SERVER['SERVER_NAME'].'/custom/transcode/js/xmlParser.js"'; ?>></script>
<script src=<?php echo '"https://'.$_SERVER['SERVER_NAME'].'/custom/transcode/js/transco.js"'; ?>></script>
<script src=<?php echo '"https://'.$_SERVER['SERVER_NAME'].'/custom/transcode/js/downloadFile.js"'; ?>></script>
<script src=<?php echo '"https://'.$_SERVER['SERVER_NAME'].'/custom/transcode/js/showpannel.js"'; ?>></script>
<script src=<?php echo '"https://'.$_SERVER['SERVER_NAME'].'/custom/transcode/js/payment.js"'; ?>></script>

{/source}