summaryrefslogtreecommitdiff
path: root/modules/organize/views/organize_dialog.html.php
blob: 858c794c1e571f83715853e7cc5f1d9095922d54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php defined("SYSPATH") or die("No direct script access.") ?>
<script type="text/javascript">
  var move_url = "<?= url::site("organize/move_to/__ALBUM_ID__?csrf=$csrf") ?>";
  var rearrange_url = "<?= url::site("organize/rearrange/__TARGET_ID__/__BEFORE__?csrf=$csrf") ?>";
  var sort_order_url = "<?= url::site("organize/sort_order/__ALBUM_ID__/__COL__/__DIR__?csrf=$csrf") ?>";
  var tree_url = "<?= url::site("organize/tree/__ALBUM_ID__") ?>";
</script>
<div id="g-organize" class="g-dialog-panel">
  <h1 style="display:none"><?= t("Organize %name", array("name" => html::purify($album->title))) ?></h1>
  <div id="bd">
    <div class="yui-gf">
      <div class="yui-u first">
        <h3><?= t("Albums") ?></h3>
      </div>
      <div id="g-action-status" class="yui-u">
        <div class="g-info"><?= t("Drag and drop photos to re-order or move between albums") ?></div>
      </div>
    </div>
    <div id="g-organizeContentPane" class="yui-gf">
      <div id="g-organizeTreeContainer" class="yui-u first">
        <ul id="g-organize-albumTree">
          <?= $album_tree ?>
        </ul>
      </div>
      <div id="g-organizeDetail" class="yui-u">
        <div id="g-organize-microthumb-panel"
             ref="<?= url::site("organize/album/__ITEM_ID__/__OFFSET__") ?>">
          <ul id="g-organize-microthumb-grid">
            <?= $micro_thumb_grid ?>
          </ul>
        </div>
        <div id="g-organizeControls">
          <a id="g-organizeClose" href="#" ref="done"
             class="g-button ui-corner-all ui-state-default"><?= t("Close") ?></a>
          <form>
            <?= t("Sort order") ?>
            <?= form::dropdown(array("id" => "g-organize-sort-column"), album::get_sort_order_options(), $album->sort_column) ?>
            <?= form::dropdown(array("id" => "g-organize-sort-order"), array("ASC" => "Ascending", "DESC" => "Descending"), $album->sort_order) ?>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>

<script type="text/javascript">
  $("#g-organize").ready($.organize.init);
</script>