stream-setting.phtml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <div class="ui-widget ui-widget-content block-shadow simple-formblock clearfix padded-strong stream-config">
  2. <h2 <?php if($this->enable_stream_conf == "true"){?>style="float:left"<?php }?>><?php echo _("Stream Settings") ?></h2>
  3. <?php $baseUrl = Application_Common_OsPath::getBaseDir(); ?>
  4. <?php if($this->enable_stream_conf == "true"){?>
  5. <form method="post" id="stream_form" enctype="application/x-www-form-urlencoded">
  6. <button name="stream_save" id="stream_save" type="button" class="btn btn-small right-floated"><?php echo _("Save") ?></button>
  7. <?php echo $this->form->getElement('csrf') ?>
  8. <div style="clear:both"></div>
  9. <?php }?>
  10. <?php echo $this->statusMsg;?>
  11. <div style="float: left; margin-right: 10px; width: 490px; overflow: auto;">
  12. <fieldset class="padded stream-setting-global">
  13. <legend><?php echo _("Global Settings") ?></legend>
  14. <dl class="zend_form">
  15. <?php if($this->form->getElement('output_sound_device') != null){?>
  16. <dt id="hardwareOut-label">
  17. <label class="required">
  18. <?php echo $this->form->getElement('output_sound_device')->getLabel() ?> :
  19. </label>
  20. </dt>
  21. <dd id="hardwareOut-element">
  22. <?php echo $this->form->getElement('output_sound_device') ?>
  23. </dd>
  24. <dt id="hardwareOutType-label">
  25. <label class="required">
  26. <?php echo $this->form->getElement('output_sound_device_type')->getLabel() ?> :
  27. </label>
  28. </dt>
  29. <dd id="hardwareOutType-element">
  30. <?php echo $this->form->getElement('output_sound_device_type') ?>
  31. </dd>
  32. <?php } ?>
  33. <dt id="vorbisMetadata-label">
  34. <label class="required">
  35. <?php echo $this->form->getElement('icecast_vorbis_metadata')->getLabel() ?> :
  36. <span class='icecast_metadata_help_icon'></span>
  37. </label>
  38. </dt>
  39. <dd id="vorbisMetadata-element">
  40. <?php echo $this->form->getElement('icecast_vorbis_metadata') ?>
  41. </dd>
  42. <dt id="streamFormat-label">
  43. <label class="optional"><?php echo $this->form->getElement('streamFormat')->getLabel() ?></label>
  44. </dt>
  45. <br>
  46. <dd id="streamFormat-element" class="radio-inline-list">
  47. <?php $i=0;
  48. $value = $this->form->getElement('streamFormat')->getValue();
  49. ?>
  50. <?php foreach ($this->form->getElement('streamFormat')->getMultiOptions() as $radio) : ?>
  51. <label for="streamFormat-<?php echo $i ?>">
  52. <input type="radio" value="<?php echo $i ?>" id="streamFormat-<?php echo $i ?>" name="streamFormat" <?php if($i == $value){echo 'checked="checked"';}?> >
  53. <?php echo $radio ?>
  54. </input>
  55. </label>
  56. <?php $i = $i + 1; ?>
  57. <?php endforeach; ?>
  58. <?php if($this->form->getElement('streamFormat')->hasErrors()) : ?>
  59. <ul class='errors'>
  60. <?php foreach($this->form->getElement('streamFormat')->getMessages() as $error): ?>
  61. <li><?php echo $error; ?></li>
  62. <?php endforeach; ?>
  63. </ul>
  64. <?php endif; ?>
  65. </dd>
  66. <dt id="offAirMeta-label">
  67. <label>
  68. <?php echo $this->form->getElement('offAirMeta')->getLabel() ?> :
  69. </label>
  70. </dt>
  71. <dd id="offAirMeta-element">
  72. <?php echo $this->form->getElement('offAirMeta') ?>
  73. </dd>
  74. <dt id="enableReplayGain-label">
  75. <label>
  76. <?php echo $this->form->getElement('enableReplayGain')->getLabel() ?> :
  77. </label>
  78. </dt>
  79. <dd id="enableReplayGain-element">
  80. <?php echo $this->form->getElement('enableReplayGain') ?>
  81. </dd>
  82. <dt id="replayGainModifier-label" class="block-display">
  83. <label><?php echo $this->form->getElement('replayGainModifier')->getLabel() ?>:
  84. </label>
  85. <span id="rg_modifier_value" style="border: 0; color: #f6931f; font-weight: bold;">
  86. <?php echo $this->form->getElement('replayGainModifier')->getValue() ?>
  87. </span>
  88. <?php echo _("dB")?>
  89. </dt>
  90. <dd id="replayGainModifier-element" class="block-display">
  91. <?php echo $this->form->getElement('replayGainModifier') ?>
  92. <?php if($this->form->getElement('replayGainModifier')->hasErrors()) : ?>
  93. <ul class='errors'>
  94. <?php foreach($this->form->getElement('replayGainModifier')->getMessages() as $error): ?>
  95. <li><?php echo $error; ?></li>
  96. <?php endforeach; ?>
  97. </ul>
  98. <?php endif; ?>
  99. <div id="slider-range-max" style="width: 99%"></div>
  100. </dd>
  101. </dl>
  102. </fieldset>
  103. <?php echo $this->form->getSubform('live_stream_subform'); ?>
  104. </div>
  105. <div style="float: left; width: 600px;">
  106. <fieldset class="padded">
  107. <legend><?php echo _("Output Stream Settings") ?></legend>
  108. <?php
  109. for($i=1;$i<=$this->num_stream;$i++){
  110. echo $this->form->getSubform("s".$i."_subform");
  111. }
  112. ?>
  113. </fieldset>
  114. <?php if($this->enable_stream_conf == "true"){?>
  115. <br />
  116. <button name="stream_save" id="stream_save" type="button" class="btn btn-small right-floated"><?php echo _("Save") ?></button>
  117. <?php }?>
  118. </div>
  119. </form>
  120. </div>