I would say google, if you haven't already, but I only found a few in a quick search:
http://www.vdesignourweb.com/cmsphps...dminpanel.html (basic)
http://www.phpwebcommerce.com/shopping-cart-admin.php (better)
That's a start, but further would be thinking about what will the admin look like, user actions, then build a simple panel
Code:
Login page - page=login
- if valid set session variable
- redirect to admin page - page=admin
Admin page
- shows list of admin functions
-- add page - page=admin?action=add-page
---- blank form
---- if valid on submit, enter into db
-- list of current pages to edit/delete - page=admin?action=view-pages
---- if edit, go to form populated with db values - page=admin?action=edit-page&id=1
---- if valid on submit, update db
---- if delete, delete from db - page=admin?action=delete-page&id=1
-- user info - page=admin?action=edit-user&id=1
----- show form with user infomation
----- if valid on submit, update db
- user logout - page=logout
----- destroy session
----- redirect to login/home page
Admin functions can be called via switch statement based on the url
Here I put possible urls to give you an idea on how this could look - also basic sql for each:
page=admin?action=add-page - on valid submit :
Code:
insert into pages values(x,y,z)
page=admin?action=view-pages :
Code:
select * from pages
page=admin?action=edit-page&id=1 :
Code:
select * from pages where id = 1
page=admin?action=delete-page&id=1 :
Code:
delete from pages where id = 1
Bookmarks