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

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

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

revision 1.9.4.5, Fri Jul 25 08:51:13 2008 UTC revision 1.9.4.6, Mon Sep 1 08:50:22 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: stormproject.admin.inc,v 1.9.4.4 2008/07/23 19:37:49 robertogerola Exp $  // $Id: stormproject.admin.inc,v 1.9.4.5 2008/07/25 08:51:13 robertogerola Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 22  function stormproject_list() { Line 22  function stormproject_list() {
22        'data' => ' ',        'data' => ' ',
23      ),      ),
24      array(      array(
25        'data' => t('Organization'),        'data' => storm_t('Organization', 'project'),
26        'field' => 'spr.organization_title',        'field' => 'spr.organization_title',
27        'sort' => 'asc',        'sort' => 'asc',
28      ),      ),
29      array(      array(
30        'data' => t('Title'),        'data' => storm_t('Title', 'project'),
31        'field' => 'n.title',        'field' => 'n.title',
32      ),      ),
33      array(      array(
34        'data' => t('Status'),        'data' => storm_t('Status', 'project'),
35        'field' => 'spr.projectstatus',        'field' => 'spr.projectstatus',
36      ),      ),
37      array(      array(
38        'data' => t('Priority'),        'data' => storm_t('Priority', 'project'),
39        'field' => 'spr.projectpriority',        'field' => 'spr.projectpriority',
40      ),      ),
41      array(      array(
# Line 106  function stormproject_list_filter() { Line 106  function stormproject_list_filter() {
106    
107    $form['filter'] = array(    $form['filter'] = array(
108          '#type' => 'fieldset',          '#type' => 'fieldset',
109          '#title' => t('Filter'),          '#title' => storm_t('Filter', 'project'),
110          '#collapsible' => TRUE,          '#collapsible' => TRUE,
111          '#collapsed' => TRUE,          '#collapsed' => TRUE,
112    );    );
# Line 122  function stormproject_list_filter() { Line 122  function stormproject_list_filter() {
122    }    }
123    $form['filter']['organization_nid'] = array(    $form['filter']['organization_nid'] = array(
124      '#type' => 'select',      '#type' => 'select',
125      '#title' => t('Organization'),      '#title' => storm_t('Organization', 'project'),
126      '#default_value' => $organization_nid,      '#default_value' => $organization_nid,
127      '#options' => array(0 => t('All')) + $organizations,      '#options' => array(0 => storm_t('All', 'project')) + $organizations,
128    );    );
129    
130    $form['filter']['group1'] = array(    $form['filter']['group1'] = array(
# Line 134  function stormproject_list_filter() { Line 134  function stormproject_list_filter() {
134    
135    $form['filter']['group1']['projectcategory'] = array(    $form['filter']['group1']['projectcategory'] = array(
136      '#type' => 'select',      '#type' => 'select',
137      '#title' => t('Category'),      '#title' => storm_t('Category', 'project'),
138      '#default_value' => $projectcategory,      '#default_value' => $projectcategory,
139      '#options' => array('-' => t('all')) + stormattribute_attributes_bydomain('Project category'),      '#options' => array('-' => storm_t('all', 'project')) + stormattribute_attributes_bydomain('Project category'),
140    );    );
141    
142    $form['filter']['group1']['projectstatus'] = array(    $form['filter']['group1']['projectstatus'] = array(
143      '#type' => 'select',      '#type' => 'select',
144      '#title' => t('Status'),      '#title' => storm_t('Status', 'project'),
145      '#default_value' => $projectstatus,      '#default_value' => $projectstatus,
146      '#options' => array('-' => t('all')) + $status_list,      '#options' => array('-' => storm_t('all', 'project')) + $status_list,
147    );    );
148    
149    $form['filter']['group1']['projectpriority'] = array(    $form['filter']['group1']['projectpriority'] = array(
150      '#type' => 'select',      '#type' => 'select',
151      '#title' => t('Priority'),      '#title' => storm_t('Priority', 'project'),
152      '#default_value' => $projectpriority,      '#default_value' => $projectpriority,
153      '#options' => array('-' => t('all')) + $priority_list,      '#options' => array('-' => storm_t('all', 'project')) + $priority_list,
154    );    );
155    
156    $form['filter']['group2'] = array(    $form['filter']['group2'] = array(
# Line 160  function stormproject_list_filter() { Line 160  function stormproject_list_filter() {
160    
161    $form['filter']['group2']['submit'] = array(    $form['filter']['group2']['submit'] = array(
162      '#type' => 'submit',      '#type' => 'submit',
163      '#value' => t('Filter'),      '#value' => storm_t('Filter', 'project'),
164      '#submit' => array('stormproject_list_filter_filter'),      '#submit' => array('stormproject_list_filter_filter'),
165    );    );
166    
167    $form['filter']['group2']['reset'] = array(    $form['filter']['group2']['reset'] = array(
168      '#type' => 'submit',      '#type' => 'submit',
169      '#value' => t('Reset'),      '#value' => storm_t('Reset', 'project'),
170      '#submit' => array('stormproject_list_filter_reset'),      '#submit' => array('stormproject_list_filter_reset'),
171    );    );
172    
173    $form['filter']['group2']['itemsperpage'] = array(    $form['filter']['group2']['itemsperpage'] = array(
174      '#type' => 'textfield',      '#type' => 'textfield',
175      '#title' => t('Items'),      '#title' => storm_t('Items', 'project'),
176      '#size' => 10,      '#size' => 10,
177      '#default_value' => $itemsperpage,      '#default_value' => $itemsperpage,
178      '#prefix' => '<div class="container-inline">',      '#prefix' => '<div class="container-inline">',

Legend:
Removed from v.1.9.4.5  
changed lines
  Added in v.1.9.4.6

  ViewVC Help
Powered by ViewVC 1.1.2