website/tesses.cf/footer.php

88 lines
3.3 KiB
PHP
Executable File

<dialog id="email_dialog" class="email_dialog">
<h6>Send anonymous email</h6>
<div class="row">
<form class="col s12" method="POST" action="/mail_send.php">
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">account_circle</i>
<input id="icon_prefix" type="text" class="validate" name="name" value="<?php
if(isset($_SERVER['PHP_AUTH_USER'])) {echo $_SERVER["PHP_AUTH_USER"];} else {echo "anonymous";} ?>">
<label for="icon_prefix">Name (can be anonymous)</label>
</div>
<div class="input-field col s12">
<i class="material-icons prefix">mode_edit</i>
<textarea id="icon_prefix2" class="materialize-textarea" name="message"></textarea>
<label for="icon_prefix2">Message</label>
</div>
</div>
<button class="btn waves-effect waves-light rightalign" type="submit" name="action">Send
<i class="material-icons right">send</i>
</button>
<a class="waves-effect waves-teal btn-flat rightalign" href="javascript:hideDialog();">Cancel</a>
</form>
</div>
</dialog><br>
<style>
.email_dialog
{
position: absolute;
top: 5rem;
}
.rightalign
{
float: right;
}
</style>
<script>
const dlg = document.getElementById("email_dialog");
function showDialog()
{
dlg.show();
}
function hideDialog()
{
dlg.close();
}
</script>
</main>
<footer class="page-footer">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">Tesses</h5>
<p class="grey-text text-lighten-4">This is my self hosted site<br>My name is Mike Nolan<br><?php
?></p>
</div>
<div class="col l4 offset-l2 s12">
<h5 class="white-text">Links</h5>
<ul>
<li><a class="grey-text text-lighten-3" href="https://github.com/tesses50">My GitHub</a></li>
<li><a class="grey-text text-lighten-3" href="http://tesses4you.ml/">My Other Site</a>| <a class="grey-text text-lighten-3" href="https://tesses.ml/">This server</a></li>
<!-- <li><a class="grey-text text-lighten-3" href="javascript:showDialog();">Send anonymous Email</a></li>-->
<li><a class="grey-text text-lighten-3" href="mailto:mike.nolan@tutanota.com">Send email to mike.nolan@tutanota.com</a></li>
<li><a class="grey-text text-lighten-3" href="//blog.tesses.cf">My Blog</a></li>
<!-- <li><a class="grey-text text-lighten-3" href="#!">Link 3</a></li>
<li><a class="grey-text text-lighten-3" href="#!">Link 4</a></li>-->
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
©2021 - <?php echo date("Y"); ?> Tesses
<?php if(isset($_SERVER['PHP_AUTH_USER'])) { echo "<a class=\"grey-text text-lighten-4 right\">". $_SERVER['PHP_AUTH_USER'] . "@tesses.cf</a>"; } ?>
</div>
</div>
</footer>
<script type="text/javascript" src="/js/materialize.min.js"></script>
</body>
</html>