replaced select with buttons

This commit is contained in:
Roland Gruber 2011-12-27 21:06:32 +00:00
parent 906d111f64
commit 278cd6b8ac
1 changed files with 3 additions and 5 deletions

View File

@ -202,7 +202,6 @@ class QueryRender extends PageRender {
# If Mass Actions Enabled
if ($_SESSION[APPCONFIG]->getValue('mass','enabled')) {
$mass_actions = array(
' ' => '',
_('delete') => 'mass_delete',
_('edit') => 'mass_edit'
);
@ -379,12 +378,11 @@ class QueryRender extends PageRender {
printf('<tr class="%s">',++$j%2 ? 'odd' : 'even');
printf('<td><input type="checkbox" name="allbox" value="1" onclick="CheckAll(1,\'massform_\',%s);" /></td>',$counter);
printf('<td colspan="%s">',2+count(explode(',',$ado)));
echo '<select name="cmd" onchange="if (this.value) submit();" style="font-size: 12px">';
foreach ($mass_actions as $action => $display)
printf('<option value="%s">%s</option>',$display,$action);
foreach ($mass_actions as $display => $action) {
echo '<button type="submit" name="cmd" value="' . $action . '">' . $display . '</button>&nbsp;&nbsp;';
}
echo '</select>';
echo '</td>';
echo '</tr>';
}