2009-03-04 15:46:10 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2009-07-02 11:23:40 -07:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
var GET_CHILDREN_URL = "<?= url::site("server_add/children?path=__PATH__") ?>";
|
2009-07-23 16:58:26 -07:00
|
|
|
var START_URL = "<?= url::site("server_add/start?item_id={$item->id}&csrf=$csrf") ?>";
|
2009-04-09 19:32:12 +00:00
|
|
|
</script>
|
2009-07-02 11:23:40 -07:00
|
|
|
|
2009-03-04 15:46:10 +00:00
|
|
|
<div id="gServerAdd">
|
2009-07-09 10:00:16 -07:00
|
|
|
<h1 style="display: none;"><?= t("Add Photos to '%title'", array("title" => p::purify($item->title))) ?></h1>
|
2009-03-04 15:46:10 +00:00
|
|
|
|
|
|
|
|
<p id="gDescription"><?= t("Photos will be added to album:") ?></p>
|
|
|
|
|
<ul class="gBreadcrumbs">
|
2009-07-02 05:11:03 -07:00
|
|
|
<? foreach ($item->parents() as $parent): ?>
|
2009-07-02 11:23:40 -07:00
|
|
|
<li>
|
2009-07-09 10:00:16 -07:00
|
|
|
<?= p::purify($parent->title) ?>
|
2009-07-02 11:23:40 -07:00
|
|
|
</li>
|
2009-03-04 15:46:10 +00:00
|
|
|
<? endforeach ?>
|
2009-07-02 11:23:40 -07:00
|
|
|
<li class="active">
|
2009-07-09 10:00:16 -07:00
|
|
|
<?= p::purify($item->title) ?>
|
2009-07-02 11:23:40 -07:00
|
|
|
</li>
|
2009-03-04 15:46:10 +00:00
|
|
|
</ul>
|
|
|
|
|
|
2009-07-02 11:23:40 -07:00
|
|
|
<ul id="gServerAddTree" class="gCheckboxTree">
|
2009-03-04 15:46:10 +00:00
|
|
|
<?= $tree ?>
|
2009-07-02 11:23:40 -07:00
|
|
|
</ul>
|
|
|
|
|
|
2009-08-18 05:16:11 +08:00
|
|
|
<div id="gServerAddProgress" style="display: none">
|
2009-07-09 10:46:27 -07:00
|
|
|
<div class="gProgressBar"></div>
|
|
|
|
|
<div id="gStatus"></div>
|
|
|
|
|
</div>
|
2009-07-07 21:16:36 -07:00
|
|
|
|
2009-03-04 15:46:10 +00:00
|
|
|
<span>
|
2009-07-11 07:37:49 -07:00
|
|
|
<button id="gServerAddAddButton" class="ui-state-default ui-state-disabled ui-corner-all"
|
|
|
|
|
disabled="disabled">
|
|
|
|
|
<?= t("Add") ?>
|
|
|
|
|
</button>
|
|
|
|
|
|
2009-08-07 23:58:57 +08:00
|
|
|
<button id="gServerCloseButton" class="ui-state-default ui-corner-all">
|
2009-07-11 07:37:49 -07:00
|
|
|
<?= t("Close") ?>
|
|
|
|
|
</button>
|
2009-03-04 15:46:10 +00:00
|
|
|
</span>
|
2009-07-11 07:37:49 -07:00
|
|
|
|
2009-07-07 21:16:36 -07:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
$("#gServerAddAddButton").ready(function() {
|
|
|
|
|
$("#gServerAddAddButton").click(function(event) {
|
|
|
|
|
event.preventDefault();
|
|
|
|
|
$("#gServerAdd .gProgressBar").
|
|
|
|
|
progressbar().
|
2009-07-09 10:46:27 -07:00
|
|
|
progressbar("value", 0);
|
2009-08-18 05:16:11 +08:00
|
|
|
$("#gServerAddProgress").slideDown("fast", function() { start_add() });
|
2009-07-07 21:16:36 -07:00
|
|
|
});
|
2009-08-07 23:58:57 +08:00
|
|
|
$("#gServerCloseButton").click(function(event) {
|
|
|
|
|
$("#gDialog").dialog("close");
|
|
|
|
|
});
|
2009-07-07 21:16:36 -07:00
|
|
|
});
|
|
|
|
|
</script>
|
2009-07-11 07:23:31 -07:00
|
|
|
|
2009-03-04 15:46:10 +00:00
|
|
|
</div>
|