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-07 21:16:36 -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-02 05:11:03 -07:00
|
|
|
<h1 style="display: none;"><?= t("Add Photos to '%title'", array("title" => p::clean($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>
|
|
|
|
|
<?= p::clean($parent->title) ?>
|
|
|
|
|
</li>
|
2009-03-04 15:46:10 +00:00
|
|
|
<? endforeach ?>
|
2009-07-02 11:23:40 -07:00
|
|
|
<li class="active">
|
|
|
|
|
<?= p::clean($item->title) ?>
|
|
|
|
|
</li>
|
2009-03-04 15:46:10 +00:00
|
|
|
</ul>
|
|
|
|
|
|
2009-07-07 21:16:36 -07:00
|
|
|
<?= form::open(url::abs_site("server_add/start/$item->id"), array("method" => "post")) ?>
|
2009-07-02 11:23:40 -07:00
|
|
|
<?= access::csrf_form_field(); ?>
|
|
|
|
|
<ul id="gServerAddTree" class="gCheckboxTree">
|
2009-03-04 15:46:10 +00:00
|
|
|
<?= $tree ?>
|
2009-07-02 11:23:40 -07:00
|
|
|
</ul>
|
|
|
|
|
|
2009-07-07 21:16:36 -07:00
|
|
|
<div class="gProgressBar" style="display: none"></div>
|
|
|
|
|
|
2009-03-04 15:46:10 +00:00
|
|
|
<span>
|
2009-07-07 21:16:36 -07:00
|
|
|
<input id="gServerAddAddButton" class="submit ui-state-disabled" disabled="disabled"
|
|
|
|
|
type="submit" value="<?= t("Add") ?>">
|
2009-03-04 15:46:10 +00:00
|
|
|
</span>
|
|
|
|
|
<?= form::close() ?>
|
2009-07-07 21:16:36 -07:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
$("#gServerAddAddButton").ready(function() {
|
|
|
|
|
$("#gServerAddAddButton").click(function(event) {
|
|
|
|
|
event.preventDefault();
|
|
|
|
|
$("#gServerAdd .gProgressBar").
|
|
|
|
|
progressbar().
|
|
|
|
|
progressbar("value", 0).
|
|
|
|
|
slideDown("fast", function() { start_add() });
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2009-03-04 15:46:10 +00:00
|
|
|
</div>
|