1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2024-11-30 05:24:09 +01:00
OwncloudBookmarksOfficial/templates/settings.php
2013-02-28 00:01:59 +01:00

33 lines
1.1 KiB
PHP

<?php
/**
* Copyright (c) 2011 Marvin Thomas Rabe <mrabe@marvinrabe.de>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
?>
<fieldset class="personalblock">
<legend><strong><?php p($l->t('Bookmarklet'));?></strong></legend>
<?php print_unescaped(bookmarklet());?><br />
</fieldset>
<form id="import_bookmark" action="<?php print_unescaped(OCP\Util::linkTo( "bookmarks", "ajax/import.php" ));?>"
method="post" enctype="multipart/form-data">
<fieldset class="personalblock">
<?php if(isset($_['error'])): ?>
<h3><?php p($_['error']['error']); ?></h3>
<p><?php p($_['error']['hint']); ?></p>
<?php endif; ?>
<legend><strong><?php p($l->t('Export & Import'));?></strong></legend>
<input type="button" id="bm_export" href="<?php print_unescaped(OCP\Util::linkTo('bookmarks', 'export.php')) ;?>" value="<?php p($l->t('Export')); ?>" />
<input type="file" id="bm_import" name="bm_import" size="5">
<button type="button" name="bm_import_btn" id="bm_import_submit"><?php p($l->t('Import')); ?></button>
<div id="upload"></div>
</fieldset>
</form>