diff options
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/entries.html | 8 | ||||
-rw-r--r-- | tpl/home.html | 4 | ||||
-rw-r--r-- | tpl/login.html | 4 | ||||
-rw-r--r-- | tpl/view.html | 7 |
4 files changed, 13 insertions, 10 deletions
diff --git a/tpl/entries.html b/tpl/entries.html index c74bc346..648e1ce9 100644 --- a/tpl/entries.html +++ b/tpl/entries.html | |||
@@ -2,13 +2,13 @@ | |||
2 | <div id="entry-{$value.id}" class="entrie mb2"> | 2 | <div id="entry-{$value.id}" class="entrie mb2"> |
3 | <span class="content"> | 3 | <span class="content"> |
4 | <h2 class="h6-like"> | 4 | <h2 class="h6-like"> |
5 | <a href="view.php?id={$value.id}">{$value.title}</a> | 5 | <a href="index.php?&view=view&id={$value.id}">{$value.title}</a> |
6 | </h2> | 6 | </h2> |
7 | <div class="tools"> | 7 | <div class="tools"> |
8 | <ul> | 8 | <ul> |
9 | <li><a title="toggle mark as read" class="tool archive {if="$value.is_read == '0'"}archive-off{/if}" onclick="toggle_archive(this, {$value.id}, '<?php echo Session::getToken(); ?>')"><span></span></a></li> | 9 | <li><a title="toggle mark as read" class="tool archive {if="$value.is_read == '0'"}archive-off{/if}" onclick="toggle_archive(this, {$value.id})"><span></span></a></li> |
10 | <li><a title="toggle favorite" class="tool fav {if="$value.is_fav == '0'"}fav-off{/if}" onclick="toggle_favorite(this, {$value.id}, '<?php echo Session::getToken(); ?>')"><span></span></a></li> | 10 | <li><a title="toggle favorite" class="tool fav {if="$value.is_fav == '0'"}fav-off{/if}" onclick="toggle_favorite(this, {$value.id})"><span></span></a></li> |
11 | <li><form method="post" onsubmit="return confirm('Are you sure?')" style="display: inline;"><input type="hidden" name="token" id="token" value="<?php echo Session::getToken(); ?>" /><input type="hidden" id="action" name="action" value="delete" /><input type="hidden" id="id" name="id" value="{$value.id}" /><input type="submit" class="delete" title="toggle delete" /></form></li> | 11 | <li><form method="post" onsubmit="return confirm('Are you sure?')" style="display: inline;"><input type="hidden" name="token" id="token" value="<?php echo Session::getToken(); ?>" /><input type="hidden" id="action" name="action" value="delete" /><input type="hidden" id="view" name="view" value="{$view}" /><input type="hidden" id="id" name="id" value="{$value.id}" /><input type="submit" class="delete" title="toggle delete" /></form></li> |
12 | </ul> | 12 | </ul> |
13 | </div> | 13 | </div> |
14 | </span> | 14 | </span> |
diff --git a/tpl/home.html b/tpl/home.html index 216f39b9..6fb9444c 100644 --- a/tpl/home.html +++ b/tpl/home.html | |||
@@ -6,7 +6,7 @@ | |||
6 | <li><a href="?logout" title="Logout">logout</a></li> | 6 | <li><a href="?logout" title="Logout">logout</a></li> |
7 | </ul> | 7 | </ul> |
8 | <ul id="sort"> | 8 | <ul id="sort"> |
9 | <li><img src="img/up.png" onclick="sort_links('{$view}', 'ia', '{'<?php echo Session::getToken(); ?>'}');" title="by date asc" /> by date <img src="img/down.png" onclick="sort_links('{$view}', 'id', '<?php echo Session::getToken(); ?>');" title="by date desc" /></li> | 9 | <li><img src="img/up.png" onclick="sort_links('{$view}', 'ia');" title="by date asc" /> by date <img src="img/down.png" onclick="sort_links('{$view}', 'id');" title="by date desc" /></li> |
10 | <li><img src="img/up.png" onclick="sort_links('{$view}', 'ta', '<?php echo Session::getToken(); ?>');" title="by title asc" /> by title <img src="img/down.png" onclick="sort_links('{$view}', 'td', '<?php echo Session::getToken(); ?>');" title="by title desc" /></li> | 10 | <li><img src="img/up.png" onclick="sort_links('{$view}', 'ta');" title="by title asc" /> by title <img src="img/down.png" onclick="sort_links('{$view}', 'td');" title="by title desc" /></li> |
11 | </ul> | 11 | </ul> |
12 | <div id="content"> \ No newline at end of file | 12 | <div id="content"> \ No newline at end of file |
diff --git a/tpl/login.html b/tpl/login.html index bf0f4fa6..d3139ab3 100644 --- a/tpl/login.html +++ b/tpl/login.html | |||
@@ -1,3 +1,4 @@ | |||
1 | {include="head"} | ||
1 | <form method="post" action="?login" name="loginform"> | 2 | <form method="post" action="?login" name="loginform"> |
2 | <fieldset> | 3 | <fieldset> |
3 | <h2>login to your poche</h2> | 4 | <h2>login to your poche</h2> |
@@ -18,4 +19,5 @@ | |||
18 | </fieldset> | 19 | </fieldset> |
19 | <input type="hidden" name="returnurl" value="<?php echo htmlspecialchars($referer);?>"> | 20 | <input type="hidden" name="returnurl" value="<?php echo htmlspecialchars($referer);?>"> |
20 | <input type="hidden" name="token" value="<?php echo Session::getToken(); ?>"> | 21 | <input type="hidden" name="token" value="<?php echo Session::getToken(); ?>"> |
21 | </form> \ No newline at end of file | 22 | </form> |
23 | {include="footer"} \ No newline at end of file | ||
diff --git a/tpl/view.html b/tpl/view.html index 1191bd82..4b8ce60f 100644 --- a/tpl/view.html +++ b/tpl/view.html | |||
@@ -23,9 +23,10 @@ | |||
23 | </div> | 23 | </div> |
24 | <div class="tools"> | 24 | <div class="tools"> |
25 | <ul> | 25 | <ul> |
26 | <li><a title="toggle mark as read" class="tool archive {if="$is_read == '0'"}archive-off{/if}" onclick="toggle_archive(this, {$id}, '<?php echo Session::getToken(); ?>')"><span></span></a></li> | 26 | <li><a title="toggle mark as read" class="tool archive {if="$is_read == '0'"}archive-off{/if}" onclick="toggle_archive(this, {$id})"><span></span></a></li> |
27 | <li><a title="toggle favorite" class="tool fav {if="$is_fav == '0'"}fav-off{/if}" onclick="toggle_favorite(this, {$id}, '<?php echo Session::getToken(); ?>')"><span></span></a></li> | 27 | <li><a title="toggle favorite" class="tool fav {if="$is_fav == '0'"}fav-off{/if}" onclick="toggle_favorite(this, {$id})"><span></span></a></li> |
28 | <li><form method="post" onsubmit="return confirm('Are you sure?')" style="display: inline;" action="index.php"><input type="hidden" name="token" id="token" value="<?php echo Session::getToken(); ?>" /><input type="hidden" id="action" name="action" value="delete" /><input type="hidden" id="id" name="id" value="{$id}" /><input type="submit" class="delete" title="toggle delete" /></form></li> | 28 | <li><form method="post" onsubmit="return confirm('Are you sure?')" style="display: inline;" action="index.php"><input type="hidden" name="token" id="token" value="<?php echo Session::getToken(); ?>" /><input type="hidden" id="view" name="view" value="index" /><input type="hidden" id="action" name="action" value="delete" /><input type="hidden" id="id" name="id" value="{$id}" /><input type="submit" class="delete" title="toggle delete" /></form></li> |
29 | <li><a href="?logout" title="Logout">logout</a></li> | ||
29 | </ul> | 30 | </ul> |
30 | </div> | 31 | </div> |
31 | <header class="mbm"> | 32 | <header class="mbm"> |