Changeset 1111 for trunk/www/index.php


Ignore:
Timestamp:
03/19/10 18:29:25 (2 years ago)
Author:
wefgef
Message:

Added task ratings functionality and changed the task edit related pages UI.

  • Replaced all the edit links in a task page with a single edit link.
  • All the task related edit pages are grouped together using tabs.
  • Created a task ratings page
  • Included a script to create/update necessary database tables.

REVIEW URL http://reviewboard.infoarena.ro/r/140/

Includes changes from http://reviewboard.infoarena.ro/r/137/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/index.php

    r1109 r1111  
    8989} 
    9090 
    91 // Task detail editor 
    92 else if ($urlstart == 'admin' && getattr($pagepath, 1) == 'problema') { 
    93     require_once(IA_ROOT_DIR.'www/controllers/task.php'); 
    94     $obj_id = implode("/", array_slice($pagepath, 2)); 
    95     $action = request('action'); 
    96     if ($action == 'tag-edit') { 
    97         controller_task_tag($obj_id); 
    98     } else { 
    99         controller_task_details($obj_id); 
    100     } 
     91// Task edit parameters 
     92else if ($urlstart == 'problema' && $action == 'task-edit-params') { 
     93    require_once(IA_ROOT_DIR.'www/controllers/task.php'); 
     94    $task_id = implode("/", array_slice($pagepath, 1)); 
     95    controller_task_details($task_id); 
     96} 
     97 
     98// Task edit tags 
     99else if ($urlstart == 'problema' && $action == 'task-edit-tags') { 
     100    require_once(IA_ROOT_DIR.'www/controllers/task.php'); 
     101    $task_id = implode("/", array_slice($pagepath, 1)); 
     102    controller_task_tag($task_id); 
     103} 
     104 
     105// Task edit ratings 
     106else if ($urlstart == 'problema' && $action == 'task-edit-ratings') { 
     107    require_once(IA_ROOT_DIR.'www/controllers/task.php'); 
     108    $task_id = implode("/", array_slice($pagepath, 1)); 
     109    controller_task_ratings($task_id); 
    101110} 
    102111 
Note: See TracChangeset for help on using the changeset viewer.