view_album.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. OCP\Util::addStyle('gallery', 'styles');
  3. OCP\Util::addscript('gallery', 'albums');
  4. OCP\Util::addscript('gallery', 'album_cover');
  5. OCP\Util::addscript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
  6. OCP\Util::addscript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
  7. OCP\Util::addStyle( 'files_imageviewer', 'jquery.fancybox-1.3.4' );
  8. $l = OC_L10N::get('gallery');
  9. ?>
  10. <script type="text/javascript">
  11. $(document).ready(function() {
  12. $("a[rel=images]").fancybox({
  13. 'titlePosition': 'inside'
  14. });
  15. });
  16. </script>
  17. <div id="controls">
  18. <a href="?"><input type="button" value="<?php echo $l->t('Back');?>" /></a>
  19. <br/>
  20. </div>
  21. <div id="gallery_list" class="leftcontent">
  22. </div>
  23. <div id="gallery_images" class="rightcontent">
  24. <?php
  25. foreach ($_['photos'] as $a) {
  26. ?>
  27. <a rel="images" href="../../files/download.php?file=<?php echo urlencode($a); ?>"><img src="ajax/thumbnail.php?img=<?php echo urlencode($a) ?>"></a>
  28. <?php
  29. }
  30. ?>
  31. </div>
  32. <div id="dialog-confirm" title="<?php echo $l->t('Remove confirmation');?>" style="display: none">
  33. <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span><?php echo $l->t('Do you want to remove album');?> <span id="albumName"></span>?</p>
  34. </div>
  35. <div id="dialog-form" title="<?php echo $l->t('Change album name');?>" style="display:none">
  36. <form>
  37. <fieldset>
  38. <label for="name"><?php echo $l->t('New album name');?></label>
  39. <input type="text" name="name" id="name" class="text ui-widget-content ui-corner-all" />
  40. </fieldset>
  41. </form>
  42. </div>