1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Database area GUI cleanup

This commit is contained in:
Cameron
2013-03-06 14:53:20 -08:00
parent 89e2b88894
commit 4d5d99e37c

View File

@@ -127,11 +127,11 @@ class system_tools
'exportForm' => array('diz'=>DBLAN_58, 'label'=> DBLAN_58), 'exportForm' => array('diz'=>DBLAN_58, 'label'=> DBLAN_58),
'sc_override_scan' => array('diz'=>DBLAN_55, 'label'=> DBLAN_56), 'sc_override_scan' => array('diz'=>DBLAN_55, 'label'=> DBLAN_56),
'convert_to_utf8' => array('diz'=>'Convert Database to UTF-8','label'=>'Convert DB to UTF-8'), 'convert_to_utf8' => array('diz'=>'Convert Database to UTF-8','label'=>'Convert DB to UTF-8'),
'correct_perms' => array('diz'=>'Correct File and Directory perms','label'=>'Correct Perms') 'correct_perms' => array('diz'=>'Correct File and Directory permissions','label'=>'Correct Perms')
); );
$this->_options = multiarray_sort($this->_options, 'label');
if(isset($_POST['delplug'])) if(isset($_POST['delplug']))
{ {
$this->delete_plugin_entry($_POST['pref_type']); $this->delete_plugin_entry($_POST['pref_type']);
@@ -487,22 +487,31 @@ class system_tools
<col style='width: 40%' /> <col style='width: 40%' />
</colgroup> </colgroup>
<tbody>"; <tbody>";
$text = "<div>";
foreach($this->_options as $key=>$val) foreach($this->_options as $key=>$val)
{ {
$text .= "<div class='pull-left' style='width:50%;padding-bottom:10px'>
<a class='btn btn-large pull-left' style='margin-right:10px' href='".e_SELF."?mode=".$key."' title=\"".$val['label']."\">".ADMIN_EXECUTE_ICON."</a>
<h4 style='margin-bottom:3px'><a href='".e_SELF."?mode=".$key."' title=\"".$val['label']."\">".$val['label']."</a></h4><small>".$val['diz']."</small>
</div>";
/*
$text .= "<tr> $text .= "<tr>
<td>".$val['diz']."</td> <td>".$val['diz']."</td>
<td> <td>
<a href='".e_SELF."?mode=".$key."' title=\"".$val['label']."\">".ADMIN_EXECUTE_ICON."</a> <a class='btn btn-large' href='".e_SELF."?mode=".$key."' title=\"".$val['label']."\">".ADMIN_EXECUTE_ICON."</a>
". ".
// $frm->submit_image('db_execute['.$key.']', '1', 'execute', $val['label']). // $frm->submit_image('db_execute['.$key.']', '1', 'execute', $val['label']).
// $frm->radio('db_execute', $key).$frm->label($val['label'], 'db_execute', $key). // $frm->radio('db_execute', $key).$frm->label($val['label'], 'db_execute', $key).
" "
</td> </td>
</tr>\n"; </tr>\n";
*/
} }
/*
$text .= " $text .= "
</tbody> </tbody>
@@ -514,7 +523,7 @@ class system_tools
</fieldset> </fieldset>
</form> </form>
"; ";
*/
e107::getRender()->tablerender(DBLAN_10, $mes->render().$text); e107::getRender()->tablerender(DBLAN_10, $mes->render().$text);
} }