xoops forums

sugar

Just popping in
Posted on: 2009/5/15 18:27
sugar
sugar (Show more)
Just popping in
Posts: 26
Since: 2003/8/24
#1

todo module (PHP5)

Refer http://www.pozdeev.com/mytinytodo/

online demo (admin mode)
http://www.1cm.tw/demo4/modules/todo/index.php

download
http://www.1cm.tw/demo4/common/todo_v1.zip

double click task to edit
drag task be change weight
module config can set more tag

trabis

Core Developer
Posted on: 2009/5/15 22:18
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#2

Re: todo module (PHP5)

Hum, seems very good.

Did not tested but this looks like security risk(sql injection):
$kwd = isset($_REQUEST['kwd']) ? $_REQUEST['kwd'] : '';
        
$compl = isset($_REQUEST['compl']) ? $_REQUEST['compl'] : '0';
        
        
$criteria = array();
        
        if (!empty(
$kwd)) {
            
$criteria[] = '(tag LIKE "%'.$kwd.'%" OR title LIKE "%'.$kwd.'%" OR note LIKE "%'.$kwd.'%")'
        }
        if (
$compl != 'all') {
            
$criteria[] = 'complete = '.$compl;
        }
        
        
$task_count $todo_handler->getCount($criteria);
        
$xoopsTpl->assign('task_count'$task_count);
        
        
$task_obj $todo_handler->getObjects($criteria);

bjuti

Just can't stay away
Posted on: 2009/5/15 22:19
bjuti
bjuti (Show more)
Just can't stay away
Posts: 871
Since: 2009/1/7 2
#3

Re: todo module (PHP5)

I like the idea! :) Very useful for "big" sites, or if you're working on great number of sites, to make 'todo' lists for any of them. Congrats!

sugar

Just popping in
Posted on: 2009/5/16 3:25
sugar
sugar (Show more)
Just popping in
Posts: 26
Since: 2003/8/24
#4

Re: todo module (PHP5)

thanks trabid

I change code be
$kwd = isset($_REQUEST['kwd']) ? trim($myts->stripSlashesGPC($_REQUEST['kwd'])) : '';
$compl = isset($_REQUEST['compl']) ? trim($myts->stripSlashesGPC($_REQUEST['compl'])) : '0';

        if (!empty(
$kwd)) {
            
$search_column = array('tag''title''note');
            
$search_sql '(';
            foreach (
$search_column as $column) {
                
$search_sql .= $column.' LIKE '.$xoopsDB->quoteString('%'.$kwd.'%').' OR ';
            }
            
$search_sql substr($search_sql0, -4);
            
$search_sql .= ')';
            
$criteria[] = $search_sql
        }
        if (
$compl != 'all') {
            
$criteria[] = 'complete = '.$xoopsDB->quoteString($compl);
        }

btesec

Friend of XOOPS
Posted on: 2009/5/20 18:31
btesec
btesec (Show more)
Friend of XOOPS
Posts: 623
Since: 2007/2/20
#5

Re: todo module (PHP5)

- When adding a task it does not confirm if task was added but if page is refreshed entries are displayed.
- The edit function does not bring up the edit page for the entry. would be good to assign tasks to other users.
- ability to send reminders to users

moss

Just popping in
Posted on: 2010/2/22 22:04
moss
moss (Show more)
Just popping in
Posts: 38
Since: 2009/10/28
#6

Re: todo module (PHP5)

Someone know where I can find this module... links is dead

thanks