add shortcuts

empty param when click home
This commit is contained in:
quenousimporte 2024-03-06 22:21:08 +01:00
parent 2b376c0ab4
commit 6083f8ee26
2 changed files with 7 additions and 7 deletions

View File

@ -1,11 +1,11 @@
<form action="index.php" method="GET"> <form action="index.php" method="GET">
<div> <div>
<input type="submit" name="home" value="home" accesskey="h"> <input type="submit" name="home" value="home" accesskey="h">
<input type="submit" name="open" value="open"> <input type="submit" name="open" value="open" accesskey="o">
<input type="submit" name="search" value="search"> <input type="submit" name="search" value="search" accesskey="s">
<input type="submit" name="tags" value="tags"> <input type="submit" name="tags" value="tags" accesskey="t">
<input type="submit" name="clip" value="clip"> <input type="submit" name="clip" value="clip" accesskey="c">
<br> <br>
<input autocomplete="off" class="title" name="param" value="<?php echo $param; ?>"> <input autocomplete="off" class="title" name="param" value="<?php if (!isset($_GET['home']) && !isset($_POST['home'])) echo $param; ?>">
</div> </div>
</form> </form>

View File

@ -2,8 +2,8 @@
<div> <div>
<input type="submit" name="home" value="home" accesskey="h"> <input type="submit" name="home" value="home" accesskey="h">
<input type="submit" name="save" value="save" accesskey="s"> <input type="submit" name="save" value="save" accesskey="s">
<input type="submit" name="delete" value="delete"> <input type="submit" name="delete" value="delete" accesskey="d">
<input type="submit" name="preview" value="preview"> <input type="submit" name="preview" value="preview" accesskey="p">
<br> <br>
<input autocomplete="off" class="title" name="title" value="<? echo $title; ?>"> <input autocomplete="off" class="title" name="title" value="<? echo $title; ?>">
</div> </div>