| 1 |
<?php |
<?php |
| 2 |
// $Id: stormorganization.admin.inc,v 1.7.4.2 2008/07/22 13:19:09 robertogerola Exp $ |
// $Id: stormorganization.admin.inc,v 1.7.4.3 2008/08/25 09:04:45 robertogerola Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 19 |
|
|
| 20 |
$header = array( |
$header = array( |
| 21 |
array( |
array( |
| 22 |
'data' => t('Name'), |
'data' => storm_t('Name', 'organization'), |
| 23 |
'field' => 'n.title', |
'field' => 'n.title', |
| 24 |
'sort' => 'ASC', |
'sort' => 'ASC', |
| 25 |
), |
), |
| 26 |
array( |
array( |
| 27 |
'data' => t('Country'), |
'data' => storm_t('Country', 'organization'), |
| 28 |
'field' => 'sor.country', |
'field' => 'sor.country', |
| 29 |
'sort' => '', |
'sort' => '', |
| 30 |
), |
), |
| 110 |
|
|
| 111 |
$form['filter'] = array( |
$form['filter'] = array( |
| 112 |
'#type' => 'fieldset', |
'#type' => 'fieldset', |
| 113 |
'#title' => t('Filter'), |
'#title' => storm_t('Filter', 'organization'), |
| 114 |
'#collapsible' => TRUE, |
'#collapsible' => TRUE, |
| 115 |
'#collapsed' => TRUE, |
'#collapsed' => TRUE, |
| 116 |
'#weight' => -20, |
'#weight' => -20, |
| 118 |
|
|
| 119 |
$form['filter']['country'] = array( |
$form['filter']['country'] = array( |
| 120 |
'#type' => 'select', |
'#type' => 'select', |
| 121 |
'#title' => t('Country'), |
'#title' => storm_t('Country', 'organization'), |
| 122 |
'#default_value' => $country, |
'#default_value' => $country, |
| 123 |
'#options' => array(0 => t('All')) + stormattribute_attributes_bydomain('Country'), |
'#options' => array(0 => storm_t('All', 'organization')) + stormattribute_attributes_bydomain('Country'), |
| 124 |
); |
); |
| 125 |
|
|
| 126 |
$form['filter']['name'] = array( |
$form['filter']['name'] = array( |
| 127 |
'#type' => 'textfield', |
'#type' => 'textfield', |
| 128 |
'#title' => t('Name'), |
'#title' => storm_t('Name', 'organization'), |
| 129 |
'#default_value' => $name, |
'#default_value' => $name, |
| 130 |
'#autocomplete_path' => 'storm/organizations/autocomplete', |
'#autocomplete_path' => 'storm/organizations/autocomplete', |
| 131 |
); |
); |
| 155 |
); |
); |
| 156 |
|
|
| 157 |
$options = array ( |
$options = array ( |
| 158 |
'-' => t('-'), |
'-' => storm_t('-', 'organization'), |
| 159 |
'no' => t('no'), |
'no' => storm_t('no', 'organization'), |
| 160 |
'yes' => t('yes') |
'yes' => storm_t('yes', 'organization') |
| 161 |
); |
); |
| 162 |
$form['filter']['group0']['iscustomer'] = array( |
$form['filter']['group0']['iscustomer'] = array( |
| 163 |
'#type' => 'select', |
'#type' => 'select', |
| 164 |
'#options' => $options, |
'#options' => $options, |
| 165 |
'#title' => t('Is customer'), |
'#title' => storm_t('Is customer', 'organization'), |
| 166 |
'#default_value' => $iscustomer, |
'#default_value' => $iscustomer, |
| 167 |
); |
); |
| 168 |
|
|
| 169 |
$form['filter']['group0']['isprovider'] = array( |
$form['filter']['group0']['isprovider'] = array( |
| 170 |
'#type' => 'select', |
'#type' => 'select', |
| 171 |
'#options' => $options, |
'#options' => $options, |
| 172 |
'#title' => t('Is provider'), |
'#title' => storm_t('Is provider', 'organization'), |
| 173 |
'#default_value' => $isprovider, |
'#default_value' => $isprovider, |
| 174 |
); |
); |
| 175 |
|
|
| 176 |
$form['filter']['group0']['isactive'] = array( |
$form['filter']['group0']['isactive'] = array( |
| 177 |
'#type' => 'select', |
'#type' => 'select', |
| 178 |
'#options' => $options, |
'#options' => $options, |
| 179 |
'#title' => t('Is active'), |
'#title' => storm_t('Is active', 'organization'), |
| 180 |
'#default_value' => $isactive, |
'#default_value' => $isactive, |
| 181 |
); |
); |
| 182 |
|
|
| 187 |
|
|
| 188 |
$form['filter']['group1']['submit'] = array( |
$form['filter']['group1']['submit'] = array( |
| 189 |
'#type' => 'submit', |
'#type' => 'submit', |
| 190 |
'#value' => t('Filter'), |
'#value' => storm_t('Filter', 'organization'), |
| 191 |
'#submit' => array('stormorganization_list_filter_filter'), |
'#submit' => array('stormorganization_list_filter_filter'), |
| 192 |
); |
); |
| 193 |
|
|
| 194 |
$form['filter']['group1']['reset'] = array( |
$form['filter']['group1']['reset'] = array( |
| 195 |
'#type' => 'submit', |
'#type' => 'submit', |
| 196 |
'#value' => t('Reset'), |
'#value' => storm_t('Reset', 'organization'), |
| 197 |
'#submit' => array('stormorganization_list_filter_reset'), |
'#submit' => array('stormorganization_list_filter_reset'), |
| 198 |
); |
); |
| 199 |
|
|
| 200 |
$form['filter']['group1']['itemsperpage'] = array( |
$form['filter']['group1']['itemsperpage'] = array( |
| 201 |
'#type' => 'textfield', |
'#type' => 'textfield', |
| 202 |
'#title' => t('Items'), |
'#title' => storm_t('Items', 'organization'), |
| 203 |
'#size' => 10, |
'#size' => 10, |
| 204 |
'#default_value' => $itemsperpage, |
'#default_value' => $itemsperpage, |
| 205 |
'#prefix' => '<div class="container-inline">', |
'#prefix' => '<div class="container-inline">', |