webstream.phtml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <a href="#" class="close-round" id="lib_pl_close"></a>
  2. <div class="btn-toolbar spl-no-top-margin clearfix">
  3. <div class="btn-group pull-left">
  4. <button id="ws_new" class="btn dropdown-toggle" data-toggle="dropdown" aria-disabled="false">
  5. <?php echo _("New")?> <span class="caret"></span>
  6. </button>
  7. <ul class="dropdown-menu">
  8. <li id='lib-new-pl'><a href="#"><?php echo _("New Playlist") ?></a></li>
  9. <li id='lib-new-bl'><a href="#"><?php echo _("New Smart Block") ?></a></li>
  10. <li id='lib-new-ws'><a href="#"><?php echo _("New Webstream") ?></a></li>
  11. </ul>
  12. </div>
  13. <?php if (isset($this->obj)) : ?>
  14. <div class="btn-group pull-right">
  15. <button class="btn btn-inverse" type="submit" id="webstream_save" name="submit"><?php echo _("Save") ?></button>
  16. </div>
  17. <div class="btn-group pull-right">
  18. <button id="ws_delete" class="btn" <?php if ($this->action == "new"): ?>style="display:none;"<?php endif; ?>aria-disabled="false"><?php echo _("Delete") ?></button>
  19. </div>
  20. <?php endif; ?>
  21. </div>
  22. <?php if (isset($this->obj)) : ?>
  23. <input id="obj_id" type="hidden" value="<?php echo $this->obj->getId(); ?>"></input>
  24. <input id="obj_lastMod" type="hidden" value="<?php echo "1";//$this->obj->getLastModified('U'); ?>"></input>
  25. <input id="obj_type" type="hidden" value="webstream"></input>
  26. <div class="status" style="display:none;"></div>
  27. <div class="playlist_title">
  28. <div id="name-error" class="errors" style="display:none;"></div>
  29. <h3 id="ws_name">
  30. <a id="playlist_name_display" contenteditable="true"><?php echo $this->escape($this->obj->getName()); ?></a>
  31. </h3>
  32. <h4 id="ws_length"><?php echo $this->obj->getDefaultLength(); ?></h4>
  33. </div>
  34. <fieldset class="toggle" id="fieldset-metadate_change">
  35. <legend style="cursor: pointer;"><span class="ui-icon ui-icon-triangle-2-n-s"></span><?php echo _("View / edit description"); ?></legend>
  36. <dl class="zend_form">
  37. <dt id="description-label"><label for="description"><?php echo _("Description") ?></label></dt>
  38. <dd id="description-element">
  39. <textarea cols="80" rows="24" id="description" name="description"><?php echo $this->obj->getDescription(); ?></textarea>
  40. </dd>
  41. </dl>
  42. </fieldset>
  43. <dl class="zend_form">
  44. <dt id="submit-label" style="display: none;">&nbsp;</dt>
  45. <div id="url-error" class="errors" style="display:none;"></div>
  46. <dt id="streamurl-label"><label for="streamurl"><?php echo _("Stream URL:"); ?></label></dt>
  47. <dd id="streamurl-element">
  48. <input type="text" value="<?php echo $this->obj->getUrl(); ?>" size="40"/>
  49. </dd>
  50. <div id="length-error" class="errors" style="display:none;"></div>
  51. <dt id="streamlength-label"><label for="streamlength"><?php echo _("Default Length:"); ?></label></dt>
  52. <dd id="streamlength-element">
  53. <input type="text" value="<?php echo $this->obj->getDefaultLength() ?>"/>
  54. </dd>
  55. </dl>
  56. <?php else : ?>
  57. <div><?php echo _("No webstream") ?></div>
  58. <?php endif; ?>