157
157
$ table ->set_header (7 , get_lang ('FieldChangeability ' ), false );
158
158
$ table ->set_header (8 , get_lang ('FieldFilter ' ), false );
159
159
$ table ->set_header (9 , get_lang ('Modify ' ), false );
160
+ $ table ->set_header (10 , '' , false );
160
161
$ table ->set_column_filter (5 , 'order_filter ' );
161
162
$ table ->set_column_filter (6 , 'modify_visibility ' );
162
163
$ table ->set_column_filter (7 , 'modify_changeability ' );
@@ -210,14 +211,14 @@ function order_filter($field_order,$url_params,$row)
210
211
$ return = '' ;
211
212
// the up icon only has to appear when the row can be moved up (all but the first row)
212
213
if ($ row [5 ]<>1 ) {
213
- $ return .= '<a href=" ' .api_get_self ().'?action=moveup&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ].'"> ' .Display::return_icon ('up.gif ' , get_lang ('Up ' )).'</a> ' ;
214
+ $ return .= '<a href=" ' .api_get_self ().'?action=moveup&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ].'# ' . $ row [ 0 ]. ' "> ' .Display::return_icon ('up.gif ' , get_lang ('Up ' )).'</a> ' ;
214
215
} else {
215
216
$ return .= Display::return_icon ('blank.gif ' ,'' ,array ('width ' =>'21px ' ));
216
217
}
217
218
218
219
// the down icon only has to appear when the row can be moved down (all but the last row)
219
220
if ($ row [5 ]<>$ number_of_extra_fields ) {
220
- $ return .= '<a href=" ' .api_get_self ().'?action=movedown&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ].'"> ' .Display::return_icon ('down.gif ' , get_lang ('Down ' )).'</a> ' ;
221
+ $ return .= '<a href=" ' .api_get_self ().'?action=movedown&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ].'# ' . $ row [ 0 ]. ' "> ' .Display::return_icon ('down.gif ' , get_lang ('Down ' )).'</a> ' ;
221
222
}
222
223
return $ return ;
223
224
}
@@ -230,7 +231,7 @@ function order_filter($field_order,$url_params,$row)
230
231
*/
231
232
function modify_visibility ($ visibility ,$ url_params ,$ row )
232
233
{
233
- return ($ visibility ?'<a href=" ' .api_get_self ().'?action=hide_field&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ].'"> ' .Display::return_icon ('visible.gif ' , get_lang ('Hide ' )).'</a> ' :'<a href=" ' .api_get_self ().'?action=show_field&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ].'"> ' .Display::return_icon ('invisible.gif ' , get_lang ('Show ' )).'</a> ' );
234
+ return ($ visibility ?'<a href=" ' .api_get_self ().'?action=hide_field&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ].'# ' . $ row [ 0 ]. ' "> ' .Display::return_icon ('visible.gif ' , get_lang ('Hide ' )).'</a> ' :'<a href=" ' .api_get_self ().'?action=show_field&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ]. ' # ' . $ row [ 0 ].'"> ' .Display::return_icon ('invisible.gif ' , get_lang ('Show ' )).'</a> ' );
234
235
}
235
236
/**
236
237
* Modify the changeability field to show links and icons
@@ -241,13 +242,13 @@ function modify_visibility($visibility,$url_params,$row)
241
242
*/
242
243
function modify_changeability ($ changeability ,$ url_params ,$ row )
243
244
{
244
- return ($ changeability ?'<a href=" ' .api_get_self ().'?action=freeze_field&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ].'"> ' .Display::return_icon ('right.gif ' , get_lang ('MakeUnchangeable ' )).'</a> ' :'<a href=" ' .api_get_self ().'?action=thaw_field&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ].'"> ' .Display::return_icon ('wrong.gif ' , get_lang ('MakeChangeable ' )).'</a> ' );
245
+ return ($ changeability ?'<a href=" ' .api_get_self ().'?action=freeze_field&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ].'# ' . $ row [ 0 ]. ' "> ' .Display::return_icon ('right.gif ' , get_lang ('MakeUnchangeable ' )).'</a> ' :'<a href=" ' .api_get_self ().'?action=thaw_field&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ]. ' # ' . $ row [ 0 ].'"> ' .Display::return_icon ('wrong.gif ' , get_lang ('MakeChangeable ' )).'</a> ' );
245
246
}
246
247
247
248
function modify_field_filter ($ changeability ,$ url_params ,$ row )
248
249
{
249
- return ($ changeability ?'<a href=" ' .api_get_self ().'?action=filter_off&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ].'"> ' .Display::return_icon ('right.gif ' , get_lang ('FilterOff ' )).'</a> ' :'' .
250
- '<a href=" ' .api_get_self ().'?action=filter_on&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ].'"> ' .Display::return_icon ('wrong.gif ' , get_lang ('FilterOn ' )).'</a> ' );
250
+ return ($ changeability ?'<a href=" ' .api_get_self ().'?action=filter_off&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ].'# ' . $ row [ 0 ]. ' "> ' .Display::return_icon ('right.gif ' , get_lang ('FilterOff ' )).'</a> ' :'' .
251
+ '<a href=" ' .api_get_self ().'?action=filter_on&field_id= ' .$ row [0 ].'&sec_token= ' .$ _SESSION ['sec_token ' ].'# ' . $ row [ 0 ]. ' "> ' .Display::return_icon ('wrong.gif ' , get_lang ('FilterOn ' )).'</a> ' );
251
252
}
252
253
253
254
function edit_filter ($ id , $ url_params , $ row ) {
0 commit comments