track type management
This commit is contained in:
parent
33928eaf73
commit
1d7d937a7f
29 changed files with 3082 additions and 74 deletions
|
@ -13,24 +13,14 @@
|
|||
$disk = $partitions[0];
|
||||
$used = $disk->totalSpace-$disk->totalFreeSpace;
|
||||
$total = $disk->totalSpace;
|
||||
?>
|
||||
|
||||
<?php
|
||||
$track_type_options = array();
|
||||
$track_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',
|
||||
);
|
||||
$tracktypes = Application_Model_Tracktype::getTracktypes();
|
||||
if(count($tracktypes) == 0) {
|
||||
$hasTracktypes = "disabled";
|
||||
$showTracktypesDropdown = false;
|
||||
} else {
|
||||
$hasTracktypes = "";
|
||||
$showTracktypesDropdown = true;
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if (isset($_COOKIE['tt_upload'])) {
|
||||
|
@ -45,28 +35,36 @@
|
|||
|
||||
<div id="track_type_selection">
|
||||
<form>
|
||||
<select id="select_type" class="form-control">
|
||||
<?php
|
||||
foreach ($track_types as $key => $tt) {
|
||||
$selected = "";
|
||||
if ($ttsaved == $key) {
|
||||
$selected = "selected";
|
||||
<?php
|
||||
if ($showTracktypesDropdown != false) { ?>
|
||||
<select id="select_type" class="form-control" <?php echo $hasTracktypes; ?>>
|
||||
<?php
|
||||
foreach ($tracktypes as $key => $tt) {
|
||||
$selected = "";
|
||||
if ($ttsaved == $tt['code']) {
|
||||
$selected = "selected";
|
||||
}
|
||||
$code = $tt['code'];
|
||||
$typename = $tt['type_name'];
|
||||
echo "<option value='$code' $selected>$typename</option>";
|
||||
}
|
||||
echo "<option value='$key' $selected>$tt</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
?>
|
||||
</select>
|
||||
<?php } ?>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
foreach ($track_types as $key => $tt) {
|
||||
if ($ttsaved == $key) {
|
||||
$ttTitle = $tt;
|
||||
if ($showTracktypesDropdown) {
|
||||
foreach ($tracktypes as $key => $tt) {
|
||||
if ($ttsaved == $key) {
|
||||
$ttTitle = $tt['type_name'];
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<H2><?php echo _("Upload")?> <span id="upload_type" style="color:#ff611f"><?php echo $ttTitle; ?></span></H2>
|
||||
<H2><?php echo _("Upload")?> <span id="upload_type" <?php echo $showTracktypesDropdown ? 'style="color:#ff611f"' : "" ?>>
|
||||
<?php echo $showTracktypesDropdown ? $ttTitle : "Tracks"; ?></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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue