public.php 1.08 KB
<div id="notification-container">
	<div id="notification" style="display: none;"></div>
</div>
<div id="documents-content">
	<?php if (isset($_['hasPassword'])): ?>
		<?php if (isset($_['wrongpw'])): ?>
			<div class="push"></div>
			<div class="warning"><?php p($l->t('Wrong password. Please retry.')) ?></div>
		<?php endif; ?>
		<form method="post">
			<input type="text" name="password" placeholder="<?php p($l->t('Password')) ?>" />
			<input type="submit" name="submit" value="<?php p($l->t('OK')) ?>" />
		</form>
	<?php endif; ?>
	<?php if (isset($_['document'])): ?>
		<form>
			<input type="text" name="memberName" placeholder="<?php p($l->t('Please enter your nickname')) ?>" />
			<button id="odf-join"><?php p($l->t('Join')) ?></button>
		</form>
		<input type="hidden" name="document" value ="<?php p($_['document']) ?>" />
	<?php endif; ?>
	<?php if (isset($_['notFound'])): ?>
		<div class="push"></div>
		<div class="warning"><?php p($l->t('This link has been expired or is never existed. Please contact the person who shared it with you for details.')) ?></div>
	<?php endif; ?>
</div>