diff options
Diffstat (limited to 'modules/organize/views')
-rw-r--r-- | modules/organize/views/organize.html.php | 43 | ||||
-rw-r--r-- | modules/organize/views/organize_album.html.php | 15 | ||||
-rw-r--r-- | modules/organize/views/organize_button_pane.html.php | 25 | ||||
-rw-r--r-- | modules/organize/views/organize_edit.html.php | 46 | ||||
-rw-r--r-- | modules/organize/views/organize_thumb_grid.html.php | 14 | ||||
-rw-r--r-- | modules/organize/views/organize_tree.html.php | 4 |
6 files changed, 147 insertions, 0 deletions
diff --git a/modules/organize/views/organize.html.php b/modules/organize/views/organize.html.php new file mode 100644 index 00000000..915b7446 --- /dev/null +++ b/modules/organize/views/organize.html.php @@ -0,0 +1,43 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<!-- ?= html::script("modules/organize/js/organize.js") ? --> +<script> + var item_id = <?= $item->id ?>; + var csrf = "<?= $csrf ?>"; + $("#doc3").ready(function() { + organize_dialog_init(); + $("#gMicroThumbContainer").scroll(function() { + get_more_data(); + }); + }); +</script> +<fieldset style="display: none"> + <legend><?= t("Organize %name", array("name" => $item->title)) ?></legend> +</fieldset> +<div id="doc3" class="yui-t6"> + <div id="hd" ref="<?= url::site("organize/header/__ITEM_ID__") ?>"> + <h2 id="gOrganizeAlbumTitle"><?= $item->title ?></h2> + <p id="gOrganizeAlbumDescription"><?= $item->description ?></p> + </div> + <div id="bd"> + <div id="yui-main"> + <div class="yui-b"> + <div class="yui-gf"> + <div id="gOrganizeTreeContainer" class="yui-u first" style="border: 1px solid"> + <?= $album_tree ?> + </div> + <div id="gMicroThumbContainer" class="yui-u" style="border: 1px solid" + ref="<?= url::site("organize/content/__ITEM_ID__?width=__WIDTH__&height=__HEIGHT__&offset=__OFFSET__") ?>"> + <ul id="gMicroThumbGrid"> + </ul> + </div> + </div> + </div> + </div> + <div id="gOrganizeEditContainer" class="yui-b" style="border: 1px solid"> + <?= $edit_form ?> + </div> + </div> + <div id="ft"> + <div class="gProgressBar" style="visibility: hidden" ></div> + </div> +</div> diff --git a/modules/organize/views/organize_album.html.php b/modules/organize/views/organize_album.html.php new file mode 100644 index 00000000..9f38a2cc --- /dev/null +++ b/modules/organize/views/organize_album.html.php @@ -0,0 +1,15 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<ul> + <li class="gOrganizeBranch ui-icon-left" ref="<?= $album->id ?>"> + <span id="gOrganizeIcon-<?= $album->id ?>" ref="<?= $album->id ?>" + class="ui-icon <?= $album_icon ?><? if (empty($album_icon)): ?> gBranchEmpty<? endif ?>">> </span> + <span id="gOrganizeBranch-<?= $album->id ?>" ref="<?= $album->id ?>" + class="<? if ($selected): ?>gBranchSelected <? endif ?>gBranchText"> + <?= $album->title ?> + </span> + <span id="gOrganizeChildren-<?= $album->id ?>" + class="<? if ($album_icon == "ui-icon-plus"): ?>gBranchCollapsed<? endif ?>"> + <?= $children ?> + <span> + </li> +</ul> diff --git a/modules/organize/views/organize_button_pane.html.php b/modules/organize/views/organize_button_pane.html.php new file mode 100644 index 00000000..82b7607d --- /dev/null +++ b/modules/organize/views/organize_button_pane.html.php @@ -0,0 +1,25 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> + +<? if (graphics::can("rotate")): ?> +<a class="gButtonLink ui-corner-all ui-state-default" href="#" ref="rotate_ccw" + title="<?= t("Rotate 90 degrees counter clockwise") ?>"> + <span class="ui-icon ui-icon-rotate-ccw"> + <?= t("Rotate 90 degrees counter clockwise") ?> + </span> +</a> + +<a class="gButtonLink ui-corner-all ui-state-default" href="#" ref="rotate_cw" + title="<?= t("Rotate 90 degrees clockwise") ?>"> + <span class="ui-icon ui-icon-rotate-cw"> + <?= t("Rotate 90 degrees clockwise") ?> + </span> +</a> +<? endif ?> + +<a class="gButtonLink ui-corner-all ui-state-default" href="#" ref="delete" + title="<?= t("Delete selection") ?>"> + <span class="ui-icon ui-icon-trash"> + <?= t("Delete selection") ?> + </span> +</a> + diff --git a/modules/organize/views/organize_edit.html.php b/modules/organize/views/organize_edit.html.php new file mode 100644 index 00000000..ebfbae2b --- /dev/null +++ b/modules/organize/views/organize_edit.html.php @@ -0,0 +1,46 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<div id="gOrganizeForm"> + <?= form::open(url::site("organize/update/__ITEM_ID__?csrf=__CSRF__&action=__ACTION__"), array("method" => "post")) ?> + <div id="gOrganizeFormThumbs"> + <div id="gOrganizeFormNoImage"> + <h3 style="text-align:center"><?= t("No Image Selected") ?></h3> + </div> + <div id="gOrganizeFormThumb" style="display: none"></div> + <div id="gOrganizeFormMultipleImages" style="display:none"> + <h3 style="text-align:center"><?= t("Multiple Images Selected") ?></h3> + </div> + </div> + + <div id="gOrganizeButtonPane" style="display: none"> + <?= $button_pane ?> + </div> + + <div id="gOrganizeFormInfo" style="display:none" + ref="<?= url::site("organize/detail/__ITEM_ID__") ?>"> + <table style="padding: 0;"> + <tbody> + <tr> + <td>Title:</td><td><span id="gOrganizeFormTitle"></span></td> + </tr> + <tr> + <td>Owner:</td><td><span id="gOrganizeFormOwner"></span></td> + </tr> + <tr> + <td>Date:</td><td><span id="gOrganizeFormDate"></span></td> + </tr> + <tr> + <td colspan="2">Description:</td> + </tr> + <tr> + <td colspan="2"><span id="gOrganizeFormDescription"> </span> + </tr> + </tbody> + </table> + </div> + + <span id="gOrganizeFormButtons"> + <?= form::submit(array("id" => "gOrganizePauseButton", "name" => "pause", "disabled" => true, "class" => "submit", "style" => "display:none"), t("Pause")) ?> + <?= form::submit(array("id" => "gOrganizeApplyButton", "name" => "apply", "disabled" => true, "class" => "submit"), t("Apply")) ?> + </span> + <?= form::close() ?> +</div>
\ No newline at end of file diff --git a/modules/organize/views/organize_thumb_grid.html.php b/modules/organize/views/organize_thumb_grid.html.php new file mode 100644 index 00000000..1cbc4241 --- /dev/null +++ b/modules/organize/views/organize_thumb_grid.html.php @@ -0,0 +1,14 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<script> + $(".gMicroThumb").click(toggle_select); +</script> +<? foreach ($children as $i => $child): ?> +<? $item_class = "gPhoto"; ?> +<? if ($child->is_album()): ?> + <? $item_class = "gAlbum"; ?> +<? endif ?> +<li id="gMicroThumb-<?= $child->id ?>" class="gMicroThumb <?= $item_class ?>"> + <?= $child->micro_thumb_tag(array("class" => "gThumbnail"), $thumbsize) ?> +</li> +<? endforeach ?> + diff --git a/modules/organize/views/organize_tree.html.php b/modules/organize/views/organize_tree.html.php new file mode 100644 index 00000000..d2cdd957 --- /dev/null +++ b/modules/organize/views/organize_tree.html.php @@ -0,0 +1,4 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<? foreach ($children as $i => $child): ?> +<? endforeach ?> + |