<!-----------------------------------------------
- WeBid Version:
- 1.2.*
- Todo List Install Instructions
------------------------------------------------>
Version 1.1 change notes
added update ToDo records, simply just click the wrench and edit you todo notes.
added fonts awesome icons to make cross theme compatible.
added Titles
added expand and collapsing of ToDo descriptions, help keep the page height to minimum.
individually listed notes, notes can be highlighted with a yellow star to stand out for your attention, notes can be easily deleted if you have finished with them with a click of the red trash can..
-- place this in your Admin themes header.tpl --
-- open /admin/loggedin.inc.php --PHP:<!-- ToDo List Styling -->
<link rel="stylesheet" type="text/css" href="{SITEURL}themes/{THEME}/css/todolist.css"/>
<!-- Fonts Awesome CDN -->
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<!-- ToDo List JavaScript -->
<script src="{SITEURL}themes/{THEME}/js/todolist.js"></script>
-- After This --
PHP:if (checklogin()) {
header("location: login.php");
exit;
} else {
// update admin notes
if (isset($_POST['anotes'])) {
$query = "UPDATE " . $DBPrefix . "adminusers SET notes = :admin_note WHERE id = :admin_id";
$params = array();
$params[] = array(':admin_note', $_POST['anotes'], 'str');
$params[] = array(':admin_id', $_SESSION['WEBID_ADMIN_IN'], 'int');
$db->query($query, $params);
}
-- paste this in --
open each of these files found in your Admin Theme.PHP:if (isset($_SESSION['WEBID_ADMIN_NUMBER']) && isset($_SESSION['WEBID_ADMIN_IN']) && isset($_SESSION['WEBID_ADMIN_PASS'])) {
$itemsQuery = "SELECT id, titlename, name, done, created FROM " . $DBPrefix . "todo WHERE user = :user";
$params = array();
$params[] = array(':user', $_SESSION['WEBID_ADMIN_IN'], 'int');
$db->query($itemsQuery, $params);
$items = $db->fetchall() ;
foreach($items as $item){
$template->assign_block_vars('todo_list', array(
'ID' => $item['id'],
'TITLENAME' => $item['titlename'],
'NAME' => $item['name'],
'DONE' => $item['done'],
'IFDONE' => ($item['done'] == 1),
'IFNOTDONE' => (!$item['done'] == 1),
'ISDONE' => ($item['done'] ? ' done' : ''),
'CREATED' => $item['created']
));
}
}
home.tpl
help.tpl
sidebar-settings.tpl
sidebar-fees.tpl
sidebar-interface.tpl
sidebar-banners.tpl
sidebar-users.tpl
sidebar-auctions.tpl
sidebar-contents.tpl
sidebar-stats.tpl
sidebar-tools.tpl
-------------- find this -----------
-- and replace with this in all theme files listed above --PHP:<form name="anotes" action="" method="post">
<textarea rows="15" name="anotes" class="form-control">{ADMIN_NOTES}</textarea>
<input type="hidden" name="csrftoken" value="{_CSRFTOKEN}">
<br/>
<button class="btn btn-primary" type="submit" name="act">{L_007}</button>
</form>
----Import the table to your database----PHP:
<div class="list">
<!-- BEGIN todo_list-->
<div class="item{todo_list.ISDONE}">
<div class="todoheader"><h4>{todo_list.TITLENAME}</h4></div>
<div class="tododate">Created: {todo_list.CREATED}</div>
<!-- IF todo_list.IFNOTDONE -->
<a id="changeTodo" href="EntryToDo.php?as=done&item={todo_list.ID}"><i title="Click to highlight" class="fa fa-star-o iconsstar" aria-hidden="true"></i></a>
<!-- ENDIF -->
<!-- IF todo_list.IFDONE -->
<a href="EntryToDo.php?as=notdone&item={todo_list.ID}"><i title="Click to undone highlight" class="fa fa-star iconsstar" aria-hidden="true" style="color:#ffcc00!important;"></i></a>
<!-- ENDIF -->
<a href="EntryToDo.php?as=delete&item={todo_list.ID}"><i title="Click to delete" class="fa fa-trash iconsplus" aria-hidden="true"></i></a>
<div class="todoexpand"><span>Expand</span></div>
<span class="todotext">{todo_list.NAME}</span><span class="todoid">ToDoID: {todo_list.ID}</span>
<span class="todoup"><i title="Click to update" class="fa fa-wrench" aria-hidden="true"></i></span>
<div class="update">
<form class="form" action="EntryToDo.php" method="post">
<div class="form-container">
<input type='hidden' name='todoID' value="{todo_list.ID}" />
<input name="updatetodotitle" id="titlename" type="text" value="{todo_list.TITLENAME}" class="form-input" />
<input name="updatename" id="name" type="text" class="form-input" value="{todo_list.NAME}" />
</div>
<button type="submit" class="btn" name="updateEntry" id="addEntry" value="Update Entry" >+</button>
</form>
</div>
</div>
<!-- END todo_list -->
</div>
<form class="form" action="EntryToDo.php" method="post">
<div class="form-container">
<input name="todotitle" id="titlename" type="text" class="form-input" placeholder="Title"/>
<input name="name" id="name" type="text" class="form-input" placeholder="What to do!"/>
</div>
<button type="submit" class="btn" name="addEntry" id="addEntry" value="Add New Entry" >+</button>
</form>
The Table setup for this is in the webid_todo.sql. you can import to your database.
-- copy the files to there required directories --
todolist.css needs copied to your themes css dir. /themes/{YOUR ADMIN THEME}/css/
todolist.js needs copied to your themes js folder /themes/{YOUR ADMIN THEME}/js/
EntryToDo.php needs copied to the admin dir /admin/
If you have followed the guide correctly you should now have a lovely new ToDo list in your admin panel. dont forget to have a coffee once you have finishedlol

Admin To Do List NotePad WeBid 1.2.* ONLY
ToDo List for the admin panel, help you keep on top of plans, bugfixes or maybe your coffee breaks.