Files
gallery3/modules/server_add/views/server_add_tree_dialog.html.php
Bharat Mediratta 495c76f729 Eliminate temporary variables by passing the $item into the view and
making API calls on the item.
2009-07-02 05:11:03 -07:00

31 lines
1.2 KiB
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<script>
var FATAL_ERROR = "<?= t("Fatal Error") ?>";
var FILE_IMPORT_WARNING = "<?= t("Add from server warning") ?>";
$("#gServerAdd").ready(function() {
init_server_add_form();
});
</script>
<div id="gServerAdd">
<h1 style="display: none;"><?= t("Add Photos to '%title'", array("title" => p::clean($item->title))) ?></h1>
<p id="gDescription"><?= t("Photos will be added to album:") ?></p>
<ul class="gBreadcrumbs">
<? foreach ($item->parents() as $parent): ?>
<li><?= p::clean($parent->title) ?></li>
<? endforeach ?>
<li class="active"><?= p::clean($item->title) ?></li>
</ul>
<?= form::open(url::abs_site("__ARGS__/{$id}__TASK_ID__?csrf=$csrf"), array("method" => "post")) ?>
<div id="gServerAddTree" >
<?= $tree ?>
</div>
<span>
<?= form::submit(array("id" => "gServerPauseButton", "name" => "add", "disabled" => true, "class" => "submit", "style" => "display:none"), t("Pause")) ?>
<?= form::submit(array("id" => "gServerAddButton", "name" => "add", "disabled" => true, "class" => "submit"), t("Add")) ?>
</span>
<?= form::close() ?>
<div class="gProgressBar" style="visibility: hidden" ></div>
</div>