add-show-rebroadcast-absolute.phtml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <fieldset id="add_show_rebroadcast_absolute">
  2. <dl>
  3. <dt id="add_show_hosts_rebroadcast_day-label" class="block-display">
  4. <label for="add_show_rebroadcast_day" class="optional"><?php echo _("Choose Days:"); ?></label>
  5. </dt>
  6. <dd id="add_show_rebroadcast_day-element" class="block-display clearfix">
  7. <ul class="formrow-repeat">
  8. <?php for($i=1; $i<=10; $i++): ?>
  9. <li <?php if(($i > 1)
  10. && ($this->element->getElement('add_show_rebroadcast_date_absolute_'.$i)->getValue() == ""
  11. && $this->element->getElement('add_show_rebroadcast_time_absolute_'.$i)->getValue() == "")){echo 'style=display:none';} ?>>
  12. <?php echo $this->element->getElement('add_show_rebroadcast_date_absolute_'.$i) ?>
  13. <span class="inline-text">@</span>
  14. <?php echo $this->element->getElement('add_show_rebroadcast_time_absolute_'.$i) ?>
  15. <?php if($i > 1): ?>
  16. <a class="ui-button ui-button-icon-only ui-widget ui-state-default" id="remove_rebroadcast_absolute_<?php echo $i ?>">
  17. <span class="ui-icon ui-icon-closethick"></span>
  18. <span class="ui-button-text"><?php echo _("Remove") ?></span>
  19. </a>
  20. <?php endif; ?>
  21. <?php if(($this->element->getElement('add_show_rebroadcast_date_absolute_'.$i)->hasErrors())
  22. || ($this->element->getElement('add_show_rebroadcast_time_absolute_'.$i)->hasErrors())) : ?>
  23. <ul class='errors'>
  24. <?php $errors = array_merge(
  25. $this->element->getElement('add_show_rebroadcast_date_absolute_'.$i)->getMessages(),
  26. $this->element->getElement('add_show_rebroadcast_time_absolute_'.$i)->getMessages()
  27. );
  28. ?>
  29. <?php foreach($errors as $error): ?>
  30. <li><?php echo $error; ?></li>
  31. <?php endforeach; ?>
  32. </ul>
  33. <?php endif; ?>
  34. </li>
  35. <?php endfor; ?>
  36. </ul>
  37. <a class="ui-button ui-button-icon-only ui-widget ui-state-default add_absolute_rebroadcast_day">
  38. <span class="ui-icon ui-icon-plusthick"></span>
  39. <span class="ui-button-text"><?php echo _("Add") ?></span>
  40. </a>
  41. </dd>
  42. </dl>
  43. </fieldset>