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

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

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

revision 1.5.4.4, Wed Jul 23 19:37:49 2008 UTC revision 1.5.4.5, Mon Sep 1 08:50:21 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: stormperson.admin.inc,v 1.5.4.3 2008/07/23 16:25:58 robertogerola Exp $  // $Id: stormperson.admin.inc,v 1.5.4.4 2008/07/23 19:37:49 robertogerola Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 23  function stormperson_list() { Line 23  function stormperson_list() {
23    
24    $header = array(    $header = array(
25      array(      array(
26        'data' => t('Organization'),        'data' => storm_t('Organization', 'person'),
27        'field' => 'spe.organization_title',        'field' => 'spe.organization_title',
28      ),      ),
29      array(      array(
30        'data' => t('Name'),        'data' => storm_t('Name', 'person'),
31        'field' => 'n.title',        'field' => 'n.title',
32      ),      ),
33      array(      array(
34        'data' => t('Email'),        'data' => storm_t('Email', 'person'),
35        'field' => 'spe.email',        'field' => 'spe.email',
36      ),      ),
37      array(      array(
# Line 80  function stormperson_list_filter() { Line 80  function stormperson_list_filter() {
80    
81    $form['filter'] = array(    $form['filter'] = array(
82      '#type' => 'fieldset',      '#type' => 'fieldset',
83      '#title' => t('Filter'),      '#title' => storm_t('Filter', 'person'),
84      '#collapsible' => true,      '#collapsible' => true,
85      '#collapsed' => true,      '#collapsed' => true,
86    );    );
# Line 99  function stormperson_list_filter() { Line 99  function stormperson_list_filter() {
99    while ($organization = db_fetch_object($r)) {    while ($organization = db_fetch_object($r)) {
100      $organizations[$organization->nid] = $organization->title;      $organizations[$organization->nid] = $organization->title;
101    }    }
102    $organizations = array(0 => t('All')) + $organizations;    $organizations = array(0 => storm_t('All', 'person')) + $organizations;
103    $form['filter']['group1']['organization_nid'] = array(    $form['filter']['group1']['organization_nid'] = array(
104      '#type' => 'select',      '#type' => 'select',
105      '#title' => t('Organization'),      '#title' => storm_t('Organization', 'person'),
106      '#default_value' => $organization_nid,      '#default_value' => $organization_nid,
107      '#options' => $organizations,      '#options' => $organizations,
108    );    );
109    
110    $form['filter']['group1']['name'] = array(    $form['filter']['group1']['name'] = array(
111      '#type' => 'textfield',      '#type' => 'textfield',
112      '#title' => t('Name'),      '#title' => storm_t('Name', 'person'),
113      '#default_value' => $name,      '#default_value' => $name,
114      '#size' => 30,      '#size' => 30,
115    );    );
# Line 121  function stormperson_list_filter() { Line 121  function stormperson_list_filter() {
121    
122    $form['filter']['group2']['submit'] = array(    $form['filter']['group2']['submit'] = array(
123      '#type' => 'submit',      '#type' => 'submit',
124      '#value' => t('Filter'),      '#value' => storm_t('Filter', 'person'),
125      '#submit' => array('stormperson_list_filter_filter'),      '#submit' => array('stormperson_list_filter_filter'),
126    );    );
127    
128    $form['filter']['group2']['reset'] = array(    $form['filter']['group2']['reset'] = array(
129      '#type' => 'submit',      '#type' => 'submit',
130      '#value' => t('Reset'),      '#value' => storm_t('Reset', 'person'),
131      '#submit' => array('stormperson_list_filter_reset'),      '#submit' => array('stormperson_list_filter_reset'),
132    );    );
133    
134    $form['filter']['group2']['itemsperpage'] = array(    $form['filter']['group2']['itemsperpage'] = array(
135      '#type' => 'textfield',      '#type' => 'textfield',
136      '#title' => t('Items'),      '#title' => storm_t('Items', 'person'),
137      '#size' => 10,      '#size' => 10,
138      '#default_value' => $itemsperpage,      '#default_value' => $itemsperpage,
139      '#prefix' => '<div class="container-inline">',      '#prefix' => '<div class="container-inline">',

Legend:
Removed from v.1.5.4.4  
changed lines
  Added in v.1.5.4.5

  ViewVC Help
Powered by ViewVC 1.1.2