blob: 912e69b6ad8d54d9a3719ad0d5ba4b1e358110e4 (
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
49
50
51
52
53
54
55
56
57
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
<script type="text/javascript">
var GET_CHILDREN_URL = "<?= url::site("server_add/children?path=__PATH__") ?>";
var START_URL = "<?= url::site("server_add/start?item_id={$item->id}&csrf=$csrf") ?>";
</script>
<div id="gServerAdd">
<h1 style="display: none;"><?= t("Add Photos to '%title'", array("title" => SafeString::purify($item->title))) ?></h1>
<p id="gDescription"><?= t("Photos will be added to album:") ?></p>
<ul class="gBreadcrumbs">
<? foreach ($item->parents() as $parent): ?>
<li>
<?= SafeString::purify($parent->title) ?>
</li>
<? endforeach ?>
<li class="active">
<?= SafeString::purify($item->title) ?>
</li>
</ul>
<ul id="gServerAddTree" class="gCheckboxTree">
<?= $tree ?>
</ul>
<div id="gServerAddProgress" style="display: none">
<div class="gProgressBar"></div>
<div id="gStatus"></div>
</div>
<span>
<button id="gServerAddAddButton" class="ui-state-default ui-state-disabled ui-corner-all"
disabled="disabled">
<?= t("Add") ?>
</button>
<button id="gServerCloseButton" class="ui-state-default ui-corner-all">
<?= t("Close") ?>
</button>
</span>
<script type="text/javascript">
$("#gServerAddAddButton").ready(function() {
$("#gServerAddAddButton").click(function(event) {
event.preventDefault();
$("#gServerAdd .gProgressBar").
progressbar().
progressbar("value", 0);
$("#gServerAddProgress").slideDown("fast", function() { start_add() });
});
$("#gServerCloseButton").click(function(event) {
$("#gDialog").dialog("close");
});
});
</script>
</div>
|