rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 669c502ae223f92d2169956502576d7b28140612
parent ce836a8eb2df3897879f3d9043ca0e68a095cca2
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 16 May 2015 13:34:07 +0200

fix buuton

Diffstat:
Mthemes/jumbotron/admin_pages/posts.php | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/themes/jumbotron/admin_pages/posts.php b/themes/jumbotron/admin_pages/posts.php @@ -16,7 +16,7 @@ echo "<td>$id</td>"; echo "<td>$post_title</td>"; echo "<td></td>"; - echo "<td><a formaction=\"posts.php?function=edit&id=$id\" title=\"Edit\">Edit</a> <span class=\"glyphicon glyphicon-pencil\" aria-hidden=\"true\"></span> | <a formaction=\"posts.php?function=delete&id=$id\" title=\"Delete\">Delete</a> <span class=\"glyphicon glyphicon-trash\" aria-hidden=\"true\"></span></td>"; + echo "<td><button style=\"background-color: transparent;text-decoration: underline;border: none;color: blue;cursor: pointer;\" formaction=\"posts.php?function=edit\" title=\"Edit\">Edit</button> <span class=\"glyphicon glyphicon-pencil\" aria-hidden=\"true\"></span> | <button style=\"background-color: transparent;text-decoration: underline;border: none;color: blue;cursor: pointer;\" formaction=\"posts.php?function=delete\" title=\"Delete\">Delete</button> <span class=\"glyphicon glyphicon-trash\" aria-hidden=\"true\"></span></td>"; echo "</tr>"; $x = $x+1; $id = $id+1; @@ -30,7 +30,7 @@ if(!empty($_GET['function'])){ $get_function = $_GET['function']; $get_id = $_GET['id']; if($get_function="edit"){ - + }else{ deletePost($get_id); }