1
sugar
todo module (PHP5)
  • 2009/5/15 18:27

  • sugar

  • Just popping in

  • Posts: 26

  • Since: 2003/8/24


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

2
trabis
Re: todo module (PHP5)
  • 2009/5/15 22:18

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


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);

3
bjuti
Re: todo module (PHP5)
  • 2009/5/15 22:19

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


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!

4
sugar
Re: todo module (PHP5)
  • 2009/5/16 3:25

  • sugar

  • Just popping in

  • Posts: 26

  • Since: 2003/8/24


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);
        }

5
btesec
Re: todo module (PHP5)
  • 2009/5/20 18:31

  • btesec

  • Friend of XOOPS

  • Posts: 623

  • Since: 2007/2/20


- 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

6
moss
Re: todo module (PHP5)
  • 2010/2/22 22:04

  • moss

  • Just popping in

  • Posts: 38

  • Since: 2009/10/28


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

thanks

Login

Username:
Password:

Lost Password? Register now!

Who's Online

77 user(s) are online (58 user(s) are browsing Support Forums)


Members: 0


Guests: 77


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits