sintonia/airtime_mvc/application/views/scripts/plupload/index.phtml

115 lines
4.3 KiB
PHTML
Raw Normal View History

<style type="text/css">
#plupload_files input[type="file"] {
font-size: 200px !important;
}
</style>
<script type="text/javascript">
var LIBRETIME_PLUPLOAD_MAX_FILE_SIZE = "<?php echo $this->uploadMaxSize; ?>";
</script>
2015-09-03 21:51:09 +02:00
<div id="upload_form" class="lib-content ui-widget ui-widget-content block-shadow padded content-pane wide-panel<?php if ($this->quotaLimitReached) { ?> hidden <?php } ?>">
<?php
$partitions = Application_Model_Systemstatus::GetDiskInfo();
$status = new StdClass;
$disk = $partitions[0];
$used = $disk->totalSpace-$disk->totalFreeSpace;
$total = $disk->totalSpace;
?>
<?php
$media_type_options = array();
$media_types = array(
'MUS' => 'Music',
'SID' => 'Station IDs',
'INT' => 'Intros',
'OUT' => 'Outros',
'SWP' => 'Sweepers',
'JIN' => 'Jingles',
'PRO' => 'Promos',
'SHO' => 'Shout Outs',
'NWS' => 'News',
'COM' => 'Commercials',
'ITV' => 'Interviews',
'VTR' => 'Voice Trackings',
);
?>
<?php
if (isset($_COOKIE['mt_upload'])) {
$mtsaved = $_COOKIE['mt_upload'];
} else {
// Use default media type
$mtsaved = "MUS";
}
?>
2015-08-27 21:44:59 +02:00
<div id="upload_wrapper">
<div id="media_type_selection">
<form>
<select id="select_type" class="form-control">
<?php
foreach ($media_types as $key => $mt) {
$selected = "";
if ($mtsaved == $key) {
$selected = "selected";
}
echo "<option value='$key' $selected>$mt</option>";
}
?>
</select>
</form>
</div>
<?php
foreach ($media_types as $key => $mt) {
if ($mtsaved == $key) {
$mtTitle = $mt;
}
}
?>
<H2><?php echo _("Upload")?> <span id="upload_type" style="color:#ff611f"><?php echo $mtTitle; ?></span></H2>
<form action="/rest/media" method="post" id="add-media-dropzone" class="dropzone dz-clickable">
<?php echo $this->form->getElement('csrf') ?>
<div class="dz-message">
<?php echo _("Drop files here or click to browse your computer.") ?>
</div>
</form>
<!--
<div id="filelist">Your browser doesn't have Flash, Silverlight or HTML5 support.</div>
<br />
 
<div id="container">
    <a id="pickfiles" href="javascript:;">[Select files]</a>
    <a id="uploadfiles" href="javascript:;">[Upload files]</a>
</div>
-->
2015-08-27 21:44:59 +02:00
<div id="uploads_disk_usage">
<div style="padding-bottom: 2px;">Storage</div>
<div class="disk_usage_progress_bar"></div>
<div class="disk_usage_percent_in_use"><?php echo sprintf("%01.1f%% ", $used/$total*100) . _("in use") ?></div>
<div class="disk_usage_used" style="width:<?php echo sprintf("%01.1f%%", min(100, $used/$total*100)) ?>;"></div>
2015-08-27 21:44:59 +02:00
<div style="margin-top: 17px; font-size: 12px;"><?php echo sprintf("%01.1fGB of %01.1fGB", $used/pow(2, 30), $total/pow(2, 30)); ?></div>
</div>
</div>
</div>
<div id="plupload_error">
<table></table>
</div>
2015-09-03 21:51:09 +02:00
<div id="recent_uploads_wrapper" class="lib-content ui-widget ui-widget-content block-shadow content-pane wide-panel">
<div id="recent_uploads" class="outer-datatable-wrapper padded">
2015-08-27 21:44:59 +02:00
<div id="recent_uploads_filter">
<form>
2015-08-27 21:44:59 +02:00
<input type="radio" name="upload_status" id="upload_status_all" checked /><label for="upload_status_all"><?php echo _("All")?></label>
<input type="radio" name="upload_status" id="upload_status_failed" /><label for="upload_status_failed"><?php echo _("Failed")?></label>
<input type="radio" name="upload_status" id="upload_status_pending" /><label for="upload_status_pending"><?php echo _("Pending")?></label>
</form>
</div>
<H2><?php echo _("Recent Uploads")?></H2>
2015-08-27 21:44:59 +02:00
<table id="recent_uploads_table" class="datatable lib-content ui-widget ui-widget-content block-shadow"
2015-08-10 18:23:22 +02:00
cellpadding="0" cellspacing="0"></table>
</div>
<div style="clear: both;"></div>
</div>