diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-21 02:28:19 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-21 02:28:19 +0000 |
commit | c2fa42cf6cf6a2742b2a40ef7fc46f95f7a734f3 (patch) | |
tree | fdb541eb6d7310ea7582a5aaaaf5bd8201f767d3 /modules/local_import/views | |
parent | af2f7f2c565519c177e9ef7d9848419936ddf8fb (diff) |
Implementation of local import module. Still need work on better
status messages.
Diffstat (limited to 'modules/local_import/views')
4 files changed, 73 insertions, 0 deletions
diff --git a/modules/local_import/views/local_import_admin.html.php b/modules/local_import/views/local_import_admin.html.php new file mode 100644 index 00000000..d53c5db8 --- /dev/null +++ b/modules/local_import/views/local_import_admin.html.php @@ -0,0 +1,10 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<div id="gLocalImportAdmin"> + <h2> + <?= t("Local Import Admininstration") ?> + </h2> + <div id="gAuthorizedPath"> + <?= $path_list ?> + </div> + <?= $add_form ?> +</div> diff --git a/modules/local_import/views/local_import_dir_list.html.php b/modules/local_import/views/local_import_dir_list.html.php new file mode 100644 index 00000000..08beba82 --- /dev/null +++ b/modules/local_import/views/local_import_dir_list.html.php @@ -0,0 +1,13 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<span><?= t("Authorized Paths") ?></span> +<ul id="gPathList"> +<? foreach ($paths as $id => $path): ?> + <li class="ui-icon-left"> + <span id="icon_<?= $id?>" class="gRemoveDir ui-icon ui-icon-trash"></span> + <?= $path ?> + </li> +<? endforeach ?> +</ul> +<div id="gNoImportPaths" <? if (!empty($paths)): ?>style="display:none"<? endif ?>> + <span class="gWarning"><?= t("No Authorized upload paths defined") ?></span> +</div> diff --git a/modules/local_import/views/local_import_tree.html.php b/modules/local_import/views/local_import_tree.html.php new file mode 100644 index 00000000..21d0095a --- /dev/null +++ b/modules/local_import/views/local_import_tree.html.php @@ -0,0 +1,22 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<script type="text/javascript"> +$("#<?= $uid ?>").ready(function() { + $("#<?= $uid ?> span.ui-icon").click(function(event) { + open_close_branch(this, event); + }); + + $("#<?= $uid ?> :checkbox").click(function(event) { + checkbox_click(this, event); + }); +}); +</script> +<ul id="<?= $uid ?>" class="gCheckboxTree"> + <? foreach ($data as $file => $file_info): ?> + <li class="<?= empty($file_info["is_dir"]) ? "gFile" : "gDirectory gCollapsed ui-icon-left" ?>"> + <? if (!empty($file_info["is_dir"])): ?> + <span class="ui-icon ui-icon-plus" ref="<?= $file_info["path"] ?>"></span> + <? endif ?> + <?= "<label>" . form::checkbox("checkbox", $file_info["path"]) . " $file</label>" ?> + </li> + <? endforeach ?> +</ul> diff --git a/modules/local_import/views/local_import_tree_dialog.html.php b/modules/local_import/views/local_import_tree_dialog.html.php new file mode 100644 index 00000000..f3a09f56 --- /dev/null +++ b/modules/local_import/views/local_import_tree_dialog.html.php @@ -0,0 +1,28 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<script type="text/javascript"> +$("#gLocalImport").ready(function() { + $("#gLocalImport :submit").click(function(event) { + do_import(this, event); + }); + $("#gImportProgress").progressbar({value:50}); +});</script> +<div id="gLocalImport"> + <h1 style="display: none;"><?= sprintf(t("Import Photos to '%s'"), $album_title) ?></h1> + + <p id="gDescription"><?= t("Photos will be imported to album:") ?></p> + <ul class="gBreadcrumbs"> + <? foreach ($parents as $parent): ?> + <li><?= $parent->title ?></li> + <? endforeach ?> + <li class="active"><?= $album_title ?></li> + </ul> + + <?= form::open($action, array("method" => "post"), $hidden) ?> + <div id="gLocalImportTree" > + <?= $tree ?> + </div> + <?= form::submit(array("id" => "gImportButton", "name" => "import", "disabled" => true), + t("Import")) ?> + <div id="gImportProgress"></div> + <?= form::close() ?> +</div> |