replaced select with buttons
This commit is contained in:
parent
906d111f64
commit
278cd6b8ac
|
@ -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> ';
|
||||
}
|
||||
|
||||
echo '</select>';
|
||||
echo '</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue