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

Diff of /contributions/modules/storm/stormticket/stormticket.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: stormticket.admin.inc,v 1.8.4.3 2008/07/23 07:10:38 robertogerola Exp $  // $Id: stormticket.admin.inc,v 1.8.4.4 2008/07/23 19:37:50 robertogerola Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 44  function stormticket_list() { Line 44  function stormticket_list() {
44        'data' => ' ',        'data' => ' ',
45      ),      ),
46      array(      array(
47        'data' => t('Organization'),        'data' => storm_t('Organization', 'ticket'),
48        'field' => 'sti.organization_title',        'field' => 'sti.organization_title',
49      ),      ),
50      array(      array(
51        'data' => t('Project'),        'data' => storm_t('Project', 'ticket'),
52        'field' => 'sti.project_title',        'field' => 'sti.project_title',
53      ),      ),
54      array(      array(
55        'data' => t('Title'),        'data' => storm_t('Title', 'ticket'),
56        'field' => 'n.title',        'field' => 'n.title',
57      ),      ),
58      array(      array(
59        'data' => t('Date'),        'data' => storm_t('Date', 'ticket'),
60        'field' => 'n.created',        'field' => 'n.created',
61        'sort' => 'desc',        'sort' => 'desc',
62      ),      ),
63      array(      array(
64        'data' => t('Status'),        'data' => storm_t('Status', 'ticket'),
65        'field' => 'sti.ticketstatus',        'field' => 'sti.ticketstatus',
66      ),      ),
67      array(      array(
68        'data' => t('Priority'),        'data' => storm_t('Priority', 'ticket'),
69        'field' => 'sti.ticketpriority',        'field' => 'sti.ticketpriority',
70      ),      ),
71      array(      array(
# Line 137  function stormticket_list_filter() { Line 137  function stormticket_list_filter() {
137    
138    $form['filter'] = array(    $form['filter'] = array(
139      '#type' => 'fieldset',      '#type' => 'fieldset',
140      '#title' => t('Filter'),      '#title' => storm_t('Filter', 'ticket'),
141      '#collapsible' => true,      '#collapsible' => true,
142      '#collapsed' => true,      '#collapsed' => true,
143      '#theme' => 'stormticket_list_filter',      '#theme' => 'stormticket_list_filter',
# Line 156  function stormticket_list_filter() { Line 156  function stormticket_list_filter() {
156    while ($organization = db_fetch_object($r)) {    while ($organization = db_fetch_object($r)) {
157      $organizations[$organization->nid] = $organization->title;      $organizations[$organization->nid] = $organization->title;
158    }    }
159    $organizations = array(0 => t('All')) + $organizations;    $organizations = array(0 => storm_t('All', 'ticket')) + $organizations;
160    $form['filter']['group1']['organization_nid'] = array(    $form['filter']['group1']['organization_nid'] = array(
161      '#type' => 'select',      '#type' => 'select',
162      '#title' => t('Organization'),      '#title' => storm_t('Organization', 'ticket'),
163      '#default_value' => $organization_nid,      '#default_value' => $organization_nid,
164      '#options' => $organizations,      '#options' => $organizations,
165      '#attributes' => array('onchange' => "stormtask_organization_project_tasks(this, 'edit-project-nid', 'edit-task-nid', true, 'All')"),      '#attributes' => array('onchange' => "stormtask_organization_project_tasks(this, 'edit-project-nid', 'edit-task-nid', true, 'All')"),
# Line 174  function stormticket_list_filter() { Line 174  function stormticket_list_filter() {
174    while ($project = db_fetch_object($r)) {    while ($project = db_fetch_object($r)) {
175      $projects[$project->nid] = $project->title;      $projects[$project->nid] = $project->title;
176    }    }
177    $projects = array(0 => t('All')) + $projects;    $projects = array(0 => storm_t('All', 'ticket')) + $projects;
178    $form['filter']['group1']['project_nid'] = array(    $form['filter']['group1']['project_nid'] = array(
179      '#type' => 'select',      '#type' => 'select',
180      '#title' => t('Project'),      '#title' => storm_t('Project', 'ticket'),
181      '#default_value' => $project_nid,      '#default_value' => $project_nid,
182      '#options' => $projects,      '#options' => $projects,
183      '#process' => array('storm_dependent_select_process'),      '#process' => array('storm_dependent_select_process'),
# Line 193  function stormticket_list_filter() { Line 193  function stormticket_list_filter() {
193    while ($task = db_fetch_object($r)) {    while ($task = db_fetch_object($r)) {
194      $tasks[$task->nid] = $task->title;      $tasks[$task->nid] = $task->title;
195    }    }
196    $tasks = array(0 => t('All')) + $tasks;    $tasks = array(0 => storm_t('All', 'ticket')) + $tasks;
197    $form['filter']['group1']['task_nid'] = array(    $form['filter']['group1']['task_nid'] = array(
198      '#type' => 'select',      '#type' => 'select',
199      '#title' => t('Task'),      '#title' => storm_t('Task', 'ticket'),
200      '#default_value' => $task_nid,      '#default_value' => $task_nid,
201      '#options' => $tasks,      '#options' => $tasks,
202    );    );
# Line 208  function stormticket_list_filter() { Line 208  function stormticket_list_filter() {
208    
209    $form['filter']['group2']['ticketstatus'] = array(    $form['filter']['group2']['ticketstatus'] = array(
210      '#type' => 'select',      '#type' => 'select',
211      '#title' => t('Status'),      '#title' => storm_t('Status', 'ticket'),
212      '#default_value' => $ticketstatus,      '#default_value' => $ticketstatus,
213      '#options' => array('-' => t('all')) + $status_list,      '#options' => array('-' => storm_t('all', 'ticket')) + $status_list,
214    );    );
215    
216    $form['filter']['group2']['ticketpriority'] = array(    $form['filter']['group2']['ticketpriority'] = array(
217      '#type' => 'select',      '#type' => 'select',
218      '#title' => t('Priority'),      '#title' => storm_t('Priority', 'ticket'),
219      '#default_value' => $ticketpriority,      '#default_value' => $ticketpriority,
220      '#options' => array('-' => t('all')) + stormattribute_attributes_bydomain('ticket priority search'),      '#options' => array('-' => storm_t('all', 'ticket')) + stormattribute_attributes_bydomain('ticket priority search'),
221    );    );
222    
223    $form['filter']['group3'] = array(    $form['filter']['group3'] = array(
# Line 227  function stormticket_list_filter() { Line 227  function stormticket_list_filter() {
227    
228    $form['filter']['group3']['submit'] = array(    $form['filter']['group3']['submit'] = array(
229      '#type' => 'submit',      '#type' => 'submit',
230      '#value' => t('Filter'),      '#value' => storm_t('Filter', 'ticket'),
231      '#submit' => array('stormticket_list_filter_filter'),      '#submit' => array('stormticket_list_filter_filter'),
232    );    );
233    
234    $form['filter']['group3']['reset'] = array(    $form['filter']['group3']['reset'] = array(
235      '#type' => 'submit',      '#type' => 'submit',
236      '#value' => t('Reset'),      '#value' => storm_t('Reset', 'ticket'),
237      '#submit' => array('stormticket_list_filter_reset'),      '#submit' => array('stormticket_list_filter_reset'),
238    );    );
239    
240    $form['filter']['group3']['itemsperpage'] = array(    $form['filter']['group3']['itemsperpage'] = array(
241      '#type' => 'textfield',      '#type' => 'textfield',
242      '#title' => t('Items'),      '#title' => storm_t('Items', 'ticket'),
243      '#size' => 10,      '#size' => 10,
244      '#default_value' => $itemsperpage,      '#default_value' => $itemsperpage,
245      '#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