nextcloud/apps/gallery/templates/index.php

68 lines
2.8 KiB
PHP
Raw Normal View History

<?php
2011-09-26 00:32:08 +04:00
OC_Util::addStyle('gallery', 'styles');
2011-10-01 13:26:47 +04:00
OC_Util::addScript('gallery', 'albums');
2012-03-11 19:49:21 +04:00
OC_Util::addScript('gallery', 'scanner');
2011-09-26 00:32:08 +04:00
OC_Util::addScript('gallery', 'album_cover');
2012-03-04 21:28:41 +04:00
OC_Util::addStyle('files', 'files');
OC_Util::addScript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
OC_Util::addScript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
OC_Util::addStyle( 'files_imageviewer', 'jquery.fancybox-1.3.4' );
2012-01-15 15:11:04 +04:00
$l = new OC_L10N('gallery');
2011-09-26 00:32:08 +04:00
?>
<div id="controls">
2012-03-11 19:49:21 +04:00
<div id="scan">
<div id="scanprogressbar"></div>
<input type="button" class="start" value="<?php echo $l->t('Rescan');?>" onclick="javascript:scanForAlbums();" />
<input type="button" class="stop" style="display:none" value="<?php echo $l->t('Stop');?>" onclick="javascript:Scanner.stop();" />
<input type="button" id="g-settings-button" value="<?php echo $l->t('Settings');?>" onclick="javascript:settings();"/>
</div>
<div id="g-album-navigation">
2012-03-17 16:30:18 +04:00
<div class="crumb last" style="background-image:url('<?php echo OC::$WEBROOT;?>/core/img/breadcrumb.png')">
2012-03-11 19:49:21 +04:00
<a href="javascript:returnToElement(0);">main</a>
</div>
</div>
<div id="g-album-loading" class="crumb" style="display:none">
<img src="img/loading.gif">
</div>
2011-09-26 00:32:08 +04:00
</div>
<div id="gallery_list">
</div>
2012-01-30 22:36:33 +04:00
<div id="dialog-confirm" title="<?php echo $l->t('Remove confirmation');?>" style="display: none">
2012-03-11 19:49:21 +04:00
<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>
2012-01-30 22:36:33 +04:00
</div>
<div id="dialog-form" title="<?php echo $l->t('Change album name');?>" style="display:none">
<form>
<fieldset>
2012-03-11 19:49:21 +04:00
<label for="name"><?php echo $l->t('New album name');?></label>
2012-01-30 22:36:33 +04:00
<input type="text" name="name" id="name" class="text ui-widget-content ui-corner-all" />
</fieldset>
</form>
</div>
<div id="g-dialog-settings" title="<?php echo $l->t('Settings');?>" style="display:none">
<form>
2012-03-11 19:49:21 +04:00
<fieldset><?php $root = OC_Preferences::getValue(OC_User::getUser(), 'gallery', 'root', '/'); $order = OC_Preferences::getValue(OC_User::getUser(), 'gallery', 'order', 'ASC');?>
<label for="name"><?php echo $l->t('Scanning root');?></label>
<input type="text" name="g-scanning-root" id="g-scanning-root" class="text ui-widget-content ui-corner-all" value="<?php echo $root;?>" /><br/>
2012-03-11 19:49:21 +04:00
<label for="sort"><?php echo $l->t('Default sorting'); ?></label>
<select id="g-display-order">
<option value="ASC"<?php echo $order=='ASC'?'selected':'';?>><?php echo $l->t('Ascending'); ?></option>
<option value="DESC"<?php echo $order=='DESC'?'selected':'';?>><?php echo $l->t('Descending'); ?></option>
</select><br/>
<!--
2012-03-11 19:49:21 +04:00
<label for="sort"><?php echo $l->t('Thumbnails size'); ?></label>
<select>
<option value="100">100px</option>
<option value="150">150px</option>
<option value="200">200px</option>
</select>
-->
</fieldset>
</form>
</div>