Commit 5076ce90 authored by Marius Burkard's avatar Marius Burkard

- removed inline-styling from list files for active/inactive switches

- fixed escaping in lists
parent 2e2f1dc4
......@@ -180,7 +180,8 @@ class listform_actions {
$rec['_'.$key.'_'] = (strtolower($rec[$key]) == 'y')?'x16/tick_circle.png':'x16/cross_circle.png';
}
//* substitute value for select field
$rec[$key] = $app->functions->htmlentities(@$field['value'][$rec[$key]]);
if(isset($field['datasource']) && $field['datasource']) $rec[$key] = $app->functions->htmlentities(@$field['value'][$rec[$key]]);
else $rec[$key] = @$field['value'][$rec[$key]];
}
}
}
......
......@@ -54,7 +54,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "name",
......@@ -82,7 +82,7 @@ $liste["item"][] = array( 'field' => "customer_viewable",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "master_directive_snippets_id",
'datatype' => "BOOLEAN",
......
......@@ -54,7 +54,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
'datatype' => "VARCHAR",
......
......@@ -18,7 +18,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array("y" => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", "n" => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array("y" => $app->lng('yes_txt'), "n" => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
'datatype' => "INTEGER",
......
......@@ -63,7 +63,7 @@ $liste['item'][] = array( 'field' => 'mail_server',
'prefix' => '%',
'suffix' => '%',
'width' => '',
'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('1' => $app->lng('yes_txt'), '0' => $app->lng('no_txt')));
$liste['item'][] = array( 'field' => 'web_server',
'datatype' => 'VARCHAR',
......@@ -72,7 +72,7 @@ $liste['item'][] = array( 'field' => 'web_server',
'prefix' => '%',
'suffix' => '%',
'width' => '',
'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('1' => $app->lng('yes_txt'), '0' => $app->lng('no_txt')));
$liste['item'][] = array( 'field' => 'dns_server',
'datatype' => 'VARCHAR',
......@@ -81,7 +81,7 @@ $liste['item'][] = array( 'field' => 'dns_server',
'prefix' => '%',
'suffix' => '%',
'width' => '',
'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('1' => $app->lng('yes_txt'), '0' => $app->lng('no_txt')));
$liste['item'][] = array( 'field' => 'file_server',
'datatype' => 'VARCHAR',
......@@ -90,7 +90,7 @@ $liste['item'][] = array( 'field' => 'file_server',
'prefix' => '%',
'suffix' => '%',
'width' => '',
'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('1' => $app->lng('yes_txt'), '0' => $app->lng('no_txt')));
$liste['item'][] = array( 'field' => 'db_server',
'datatype' => 'VARCHAR',
......@@ -99,7 +99,7 @@ $liste['item'][] = array( 'field' => 'db_server',
'prefix' => '%',
'suffix' => '%',
'width' => '',
'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('1' => $app->lng('yes_txt'), '0' => $app->lng('no_txt')));
$liste['item'][] = array( 'field' => 'vserver_server',
'datatype' => 'VARCHAR',
......@@ -108,7 +108,7 @@ $liste['item'][] = array( 'field' => 'vserver_server',
'prefix' => '%',
'suffix' => '%',
'width' => '',
'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('1' => $app->lng('yes_txt'), '0' => $app->lng('no_txt')));
$liste['item'][] = array( 'field' => 'xmpp_server',
'datatype' => 'VARCHAR',
......@@ -117,6 +117,6 @@ $liste['item'][] = array( 'field' => 'xmpp_server',
'prefix' => '%',
'suffix' => '%',
'width' => '',
'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('1' => $app->lng('yes_txt'), '0' => $app->lng('no_txt')));
?>
......@@ -95,7 +95,7 @@ $liste["item"][] = array( 'field' => "virtualhost",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste['item'][] = array( 'field' => 'virtualhost_port',
......
......@@ -18,7 +18,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste['item'][] = array( 'field' => 'server_id',
'datatype' => 'INTEGER',
......
......@@ -54,7 +54,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "repo_name",
'datatype' => "VARCHAR",
......
......@@ -60,7 +60,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('1' => $app->lng('yes_txt'), '0' => $app->lng('no_txt')));
$liste['item'][] = array( 'field' => 'username',
'datatype' => 'VARCHAR',
......
......@@ -63,7 +63,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "circle_name",
'datatype' => "VARCHAR",
......
......@@ -33,7 +33,7 @@
<td><input class="form-control" type="text" name="search_customer_no" value="{tmpl_var name='search_customer_no'}" /></td>
<td><input class="form-control" type="text" name="search_username" value="{tmpl_var name='search_username'}" /></td>
<td><input class="form-control" type="text" name="search_city" value="{tmpl_var name='search_city'}" /></td>
<td><select class="form-control" name="search_country">{tmpl_var name='search_country'}</select></td>
<td><select class="form-control flags" name="search_country">{tmpl_var name='search_country'}</select></td>
<tmpl_if name="has_robot"><td><select class="form-control" name="search_validation_status">{tmpl_var name='search_validation_status'}</select></td></tmpl_if>
<td class="text-right">
<button type="button" class="btn btn-default formbutton-default formbutton-narrow" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" data-submit-form="pageForm" data-form-action="client/client_list.php"><span class="icon icon-filter"></span></button>
......
......@@ -32,7 +32,7 @@
<td><input class="form-control" type="text" name="search_customer_no" value="{tmpl_var name='search_customer_no'}" /></td>
<td><input class="form-control" type="text" name="search_username" value="{tmpl_var name='search_username'}" /></td>
<td><input class="form-control" type="text" name="search_city" value="{tmpl_var name='search_city'}" /></td>
<td><select class="form-control" name="search_country">{tmpl_var name='search_country'}</select></td>
<td><select class="form-control flags" name="search_country">{tmpl_var name='search_country'}</select></td>
<td class="text-right">
<button type="button" class="btn btn-default formbutton-default formbutton-narrow" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" data-submit-form="pageForm" data-form-action="client/reseller_list.php"><span class="icon icon-filter"></span></button>
</td>
......
......@@ -55,7 +55,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('Y' => $app->lng('yes_txt'), 'N' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -59,7 +59,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('Y' => $app->lng('yes_txt'), 'N' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -59,7 +59,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('Y' => $app->lng('yes_txt'), 'N' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -55,7 +55,7 @@ $liste["item"][] = array( 'field' => "visible",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('Y' => $app->lng('yes_txt'), 'N' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "name",
......
......@@ -22,9 +22,9 @@ class list_action extends listform_actions {
$rec = parent::prepareDataRow($rec);
$rec['active'] = "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>";
$rec['active'] = "Yes";
if ($rec['backup_interval'] === 'none') {
$rec['active'] = "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>";
$rec['active'] = "No";
$rec['backup_copies'] = 0;
}
$recBackup = $app->db->queryOneRecord('SELECT COUNT(backup_id) AS backup_count FROM mail_backup WHERE mailuser_id = ?', $rec['mailuser_id']);
......
......@@ -54,7 +54,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "source",
......
......@@ -54,7 +54,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "source",
......
......@@ -54,7 +54,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
......
......@@ -55,7 +55,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
......
......@@ -59,7 +59,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
if($_SESSION['s']['user']['typ'] == 'admin') {
......
......@@ -54,7 +54,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "source",
......
......@@ -54,7 +54,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "source",
......
......@@ -54,7 +54,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -54,7 +54,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -54,7 +54,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('1' => $app->lng('yes_txt'), '0' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -55,7 +55,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -87,7 +87,7 @@ $liste["item"][] = array( 'field' => "autoresponder",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "postfix",
'datatype' => "VARCHAR",
......@@ -96,7 +96,7 @@ $liste["item"][] = array( 'field' => "postfix",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "disablesmtp",
'datatype' => "VARCHAR",
......@@ -105,7 +105,7 @@ $liste["item"][] = array( 'field' => "disablesmtp",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('n' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'y' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('n' => $app->lng('yes_txt'), 'y' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "disableimap",
'datatype' => "VARCHAR",
......@@ -114,7 +114,7 @@ $liste["item"][] = array( 'field' => "disableimap",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('n' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'y' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('n' => $app->lng('yes_txt'), 'y' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "disablepop3",
'datatype' => "VARCHAR",
......@@ -123,6 +123,6 @@ $liste["item"][] = array( 'field' => "disablepop3",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('n' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'y' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('n' => $app->lng('yes_txt'), 'y' => $app->lng('no_txt')));
?>
......@@ -54,7 +54,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -54,7 +54,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -65,7 +65,7 @@ $liste["item"][] = array( 'field' => "virus_lover",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('Y' => $app->lng('yes_txt'), 'N' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "spam_lover",
......@@ -75,7 +75,7 @@ $liste["item"][] = array( 'field' => "spam_lover",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('Y' => $app->lng('yes_txt'), 'N' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "banned_files_lover",
......@@ -85,7 +85,7 @@ $liste["item"][] = array( 'field' => "banned_files_lover",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('Y' => $app->lng('yes_txt'), 'N' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "bad_header_lover",
......@@ -95,7 +95,7 @@ $liste["item"][] = array( 'field' => "bad_header_lover",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('Y' => $app->lng('yes_txt'), 'N' => $app->lng('no_txt')));
......
......@@ -54,7 +54,7 @@ $liste["item"][] = array( 'field' => "local",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('Y' => $app->lng('yes_txt'), 'N' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -54,7 +54,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -59,7 +59,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
if($_SESSION['s']['user']['typ'] == 'admin') {
......
......@@ -22,9 +22,9 @@ class list_action extends listform_actions {
$rec = parent::prepareDataRow($rec);
$rec['active'] = "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>";
$rec['active'] = "Yes";
if ($rec['backup_interval'] === 'none') {
$rec['active'] = "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>";
$rec['active'] = "No";
$rec['backup_copies'] = 0;
}
......
......@@ -55,7 +55,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -59,7 +59,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "remote_access",
'datatype' => "VARCHAR",
......@@ -68,7 +68,7 @@ $liste["item"][] = array( 'field' => "remote_access",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "type",
'datatype' => "VARCHAR",
......
......@@ -55,7 +55,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -55,7 +55,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -55,7 +55,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -55,7 +55,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
'value' => array('y' => $app->lng('yes_txt'), 'n' => $app->lng('no_txt')));
$liste["item"][] = array( 'field' => "server_id",
......
......@@ -57,7 +57,7 @@ $liste["item"][] = array( 'field' => "active",
'prefix' => "",
'suffix' => "",