/[drupal]/contributions/modules/storm/stormtask/stormtask.admin.inc
ViewVC logotype

Diff of /contributions/modules/storm/stormtask/stormtask.admin.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.8.4.4, Wed Jul 23 19:37:50 2008 UTC revision 1.8.4.5, Mon Sep 1 08:50:22 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: stormtask.admin.inc,v 1.8.4.3 2008/07/23 07:10:38 robertogerola Exp $  // $Id: stormtask.admin.inc,v 1.8.4.4 2008/07/23 19:37:50 robertogerola Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 17  function stormtask_tasks($project) { Line 17  function stormtask_tasks($project) {
17    
18    $header = array(    $header = array(
19      array(      array(
20        'data' => t('Description'),        'data' => storm_t('Description', 'task'),
21      ),      ),
22      array(      array(
23        'data' => t('Category'),        'data' => storm_t('Category', 'task'),
24      ),      ),
25      array(      array(
26        'data' => t('Status'),        'data' => storm_t('Status', 'task'),
27      ),      ),
28      array(      array(
29        'data' => t('Priority'),        'data' => storm_t('Priority', 'task'),
30      ),      ),
31      array(      array(
32        'data' => storm_icon_add_node($i, $params),        'data' => storm_icon_add_node($i, $params),
# Line 79  function stormtask_tasks_filter() { Line 79  function stormtask_tasks_filter() {
79    
80    $form['filter'] = array(    $form['filter'] = array(
81          '#type' => 'fieldset',          '#type' => 'fieldset',
82          '#title' => t('Filter'),          '#title' => storm_t('Filter', 'task'),
83          '#collapsible' => TRUE,          '#collapsible' => TRUE,
84          '#collapsed' => TRUE,          '#collapsed' => TRUE,
85    );    );
# Line 91  function stormtask_tasks_filter() { Line 91  function stormtask_tasks_filter() {
91    
92    $form['filter']['group1']['taskcategory'] = array(    $form['filter']['group1']['taskcategory'] = array(
93      '#type' => 'select',      '#type' => 'select',
94      '#title' => t('Category'),      '#title' => storm_t('Category', 'task'),
95      '#default_value' => $taskcategory,      '#default_value' => $taskcategory,
96      '#options' => array('-' => t('all')) + $category_list,      '#options' => array('-' => storm_t('all', 'task')) + $category_list,
97    );    );
98    
99    $form['filter']['group1']['taskstatus'] = array(    $form['filter']['group1']['taskstatus'] = array(
100      '#type' => 'select',      '#type' => 'select',
101      '#title' => t('Status'),      '#title' => storm_t('Status', 'task'),
102      '#default_value' => $taskstatus,      '#default_value' => $taskstatus,
103      '#options' => array('-' => t('all')) + $status_list,      '#options' => array('-' => storm_t('all', 'task')) + $status_list,
104    );    );
105    
106    $form['filter']['group1']['taskpriority'] = array(    $form['filter']['group1']['taskpriority'] = array(
107      '#type' => 'select',      '#type' => 'select',
108      '#title' => t('Priority'),      '#title' => storm_t('Priority', 'task'),
109      '#default_value' => $taskpriority,      '#default_value' => $taskpriority,
110      '#options' => array('-' => t('all')) + $priority_list,      '#options' => array('-' => storm_t('all', 'task')) + $priority_list,
111    );    );
112    
113    $form['filter']['group2'] = array(    $form['filter']['group2'] = array(
# Line 117  function stormtask_tasks_filter() { Line 117  function stormtask_tasks_filter() {
117    
118    $form['filter']['group2']['submit'] = array(    $form['filter']['group2']['submit'] = array(
119      '#type' => 'submit',      '#type' => 'submit',
120      '#value' => t('Filter'),      '#value' => storm_t('Filter', 'task'),
121      '#submit' => array('stormtask_tasks_filter_filter'),      '#submit' => array('stormtask_tasks_filter_filter'),
122    );    );
123    
124    $form['filter']['group2']['reset'] = array(    $form['filter']['group2']['reset'] = array(
125      '#type' => 'submit',      '#type' => 'submit',
126      '#value' => t('Reset'),      '#value' => storm_t('Reset', 'task'),
127      '#submit' => array('stormtask_tasks_filter_reset'),      '#submit' => array('stormtask_tasks_filter_reset'),
128    );    );
129    
# Line 171  function stormtask_list() { Line 171  function stormtask_list() {
171    
172    $header = array(    $header = array(
173      array(      array(
174        'data' => t('Organization'),        'data' => storm_t('Organization', 'task'),
175        'field' => 'sta.organization_title',        'field' => 'sta.organization_title',
176      ),      ),
177      array(      array(
178        'data' => t('Project'),        'data' => storm_t('Project', 'task'),
179        'field' => 'sta.project_title',        'field' => 'sta.project_title',
180      ),      ),
181      array(      array(
182        'data' => t('Title'),        'data' => storm_t('Title', 'task'),
183        'field' => 'n.title',        'field' => 'n.title',
184      ),      ),
185      array(      array(
186        'data' => t('Category'),        'data' => storm_t('Category', 'task'),
187        'field' => 'sta.taskcategory',        'field' => 'sta.taskcategory',
188      ),      ),
189      array(      array(
190        'data' => t('Status'),        'data' => storm_t('Status', 'task'),
191        'field' => 'sta.taskstatus',        'field' => 'sta.taskstatus',
192      ),      ),
193      array(      array(
194        'data' => t('Priority'),        'data' => storm_t('Priority', 'task'),
195        'field' => 'sta.taskpriority',        'field' => 'sta.taskpriority',
196      ),      ),
197      array(      array(
# Line 280  function stormtask_list_filter() { Line 280  function stormtask_list_filter() {
280    
281    $form['filter'] = array(    $form['filter'] = array(
282      '#type' => 'fieldset',      '#type' => 'fieldset',
283      '#title' => t('Filter'),      '#title' => storm_t('Filter', 'task'),
284      '#collapsible' => true,      '#collapsible' => true,
285      '#collapsed' => true,      '#collapsed' => true,
286    );    );
# Line 299  function stormtask_list_filter() { Line 299  function stormtask_list_filter() {
299    while ($organization = db_fetch_object($r)) {    while ($organization = db_fetch_object($r)) {
300      $organizations[$organization->nid] = $organization->title;      $organizations[$organization->nid] = $organization->title;
301    }    }
302    $organizations = array(0 => t('All')) + $organizations;    $organizations = array(0 => storm_t('All', 'task')) + $organizations;
303    $form['filter']['group1']['organization_nid'] = array(    $form['filter']['group1']['organization_nid'] = array(
304      '#type' => 'select',      '#type' => 'select',
305      '#title' => t('Organization'),      '#title' => storm_t('Organization', 'task'),
306      '#default_value' => $organization_nid,      '#default_value' => $organization_nid,
307      '#options' => $organizations,      '#options' => $organizations,
308      '#attributes' => array('onchange' => "stormproject_organization_projects(this, 'edit-project-nid', true, 'All')"),      '#attributes' => array('onchange' => "stormproject_organization_projects(this, 'edit-project-nid', true, 'All')"),
# Line 317  function stormtask_list_filter() { Line 317  function stormtask_list_filter() {
317    while ($project = db_fetch_object($r)) {    while ($project = db_fetch_object($r)) {
318      $projects[$project->nid] = $project->title;      $projects[$project->nid] = $project->title;
319    }    }
320    $projects = array(0 => t('All')) + $projects;    $projects = array(0 => storm_t('All', 'task')) + $projects;
321    $form['filter']['group1']['project_nid'] = array(    $form['filter']['group1']['project_nid'] = array(
322      '#type' => 'select',      '#type' => 'select',
323      '#title' => t('Project'),      '#title' => storm_t('Project', 'task'),
324      '#default_value' => $project_nid,      '#default_value' => $project_nid,
325      '#options' => $projects,      '#options' => $projects,
326      '#process' => array('storm_dependent_select_process'),      '#process' => array('storm_dependent_select_process'),
# Line 333  function stormtask_list_filter() { Line 333  function stormtask_list_filter() {
333    
334    $form['filter']['group2']['taskcategory'] = array(    $form['filter']['group2']['taskcategory'] = array(
335      '#type' => 'select',      '#type' => 'select',
336      '#title' => t('Category'),      '#title' => storm_t('Category', 'task'),
337      '#default_value' => $taskcategory,      '#default_value' => $taskcategory,
338      '#options' => array('-' => t('all')) + $category_list,      '#options' => array('-' => storm_t('all', 'task')) + $category_list,
339    );    );
340    
341    $form['filter']['group2']['taskstatus'] = array(    $form['filter']['group2']['taskstatus'] = array(
342      '#type' => 'select',      '#type' => 'select',
343      '#title' => t('Status'),      '#title' => storm_t('Status', 'task'),
344      '#default_value' => $taskstatus,      '#default_value' => $taskstatus,
345      '#options' => array('-' => t('all')) + $status_list,      '#options' => array('-' => storm_t('all', 'task')) + $status_list,
346    );    );
347    
348    $form['filter']['group2']['taskpriority'] = array(    $form['filter']['group2']['taskpriority'] = array(
349      '#type' => 'select',      '#type' => 'select',
350      '#title' => t('Priority'),      '#title' => storm_t('Priority', 'task'),
351      '#default_value' => $taskpriority,      '#default_value' => $taskpriority,
352      '#options' => array('-' => t('all')) + $priority_list,      '#options' => array('-' => storm_t('all', 'task')) + $priority_list,
353    );    );
354    
355    $form['filter']['group3'] = array(    $form['filter']['group3'] = array(
# Line 359  function stormtask_list_filter() { Line 359  function stormtask_list_filter() {
359    
360    $form['filter']['group3']['submit'] = array(    $form['filter']['group3']['submit'] = array(
361      '#type' => 'submit',      '#type' => 'submit',
362      '#value' => t('Filter'),      '#value' => storm_t('Filter', 'task'),
363      '#submit' => array('stormtask_list_filter_filter'),      '#submit' => array('stormtask_list_filter_filter'),
364    );    );
365    
366    $form['filter']['group3']['reset'] = array(    $form['filter']['group3']['reset'] = array(
367      '#type' => 'submit',      '#type' => 'submit',
368      '#value' => t('Reset'),      '#value' => storm_t('Reset', 'task'),
369      '#submit' => array('stormtask_list_filter_reset'),      '#submit' => array('stormtask_list_filter_reset'),
370    );    );
371    
372    $form['filter']['group3']['itemsperpage'] = array(    $form['filter']['group3']['itemsperpage'] = array(
373      '#type' => 'textfield',      '#type' => 'textfield',
374      '#title' => t('Items'),      '#title' => storm_t('Items', 'task'),
375      '#size' => 10,      '#size' => 10,
376      '#default_value' => $itemsperpage,      '#default_value' => $itemsperpage,
377      '#prefix' => '<div class="container-inline">',      '#prefix' => '<div class="container-inline">',

Legend:
Removed from v.1.8.4.4  
changed lines
  Added in v.1.8.4.5

  ViewVC Help
Powered by ViewVC 1.1.2