Set to media type on upload. Music being default.
This commit is contained in:
parent
d5b04b30cc
commit
3338e9289a
5 changed files with 84 additions and 2 deletions
|
@ -14,8 +14,59 @@
|
|||
$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";
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="upload_wrapper">
|
||||
<H2>Upload Audio Files</H2>
|
||||
|
||||
<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">
|
||||
|
@ -53,7 +104,7 @@
|
|||
<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>
|
||||
</form>
|
||||
</div>
|
||||
<H2><?php echo _("Recent Uploads")?></H2>
|
||||
<table id="recent_uploads_table" class="datatable lib-content ui-widget ui-widget-content block-shadow"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue