function Settings::IsInList that tests if an option of a multi-select setting is set

This commit is contained in:
Michael Wyraz
2016-07-22 10:30:13 +02:00
parent a95233041e
commit 54e2f83b17
4 changed files with 33 additions and 16 deletions

View File

@@ -37,15 +37,15 @@ $header
</form>
<div id="charts" class="hidden">
<if !in_array('traffic.http',explode(',',Settings::Get('panel.customer_hide_options')))>
<if !Settings::IsInList('panel.customer_hide_options','traffic.http')>
<h3>HTTP {$lng['admin']['traffic']} ({$lng['traffic']['months']['total']} {$traffic_complete['http']})</h3>
<div id="httpchart" class="trafficchart"></div>
</if>
<if !in_array('traffic.ftp',explode(',',Settings::Get('panel.customer_hide_options')))>
<if !Settings::IsInList('panel.customer_hide_options','traffic.ftp')>
<h3>FTP {$lng['admin']['traffic']} ({$lng['traffic']['months']['total']} {$traffic_complete['ftp']})</h3>
<div id="ftpchart" class="trafficchart"></div>
</if>
<if !in_array('traffic.mail',explode(',',Settings::Get('panel.customer_hide_options')))>
<if !Settings::IsInList('panel.customer_hide_options','traffic.mail')>
<h3>Mail {$lng['admin']['traffic']} ({$lng['traffic']['months']['total']} {$traffic_complete['mail']})</h3>
<div id="mailchart" class="trafficchart"></div>
</if>

View File

@@ -31,15 +31,15 @@ $header
</tbody>
</table>
<div id="charts" class="hidden">
<if !in_array('traffic.http',explode(',',Settings::Get('panel.customer_hide_options')))>
<if !Settings::IsInList('panel.customer_hide_options','traffic.http')>
<h3>HTTP {$lng['admin']['traffic']} ({$lng['traffic']['months']['total']} {$traffic_complete['http']})</h3>
<div id="httpchart" class="trafficchart"></div>
</if>
<if !in_array('traffic.ftp',explode(',',Settings::Get('panel.customer_hide_options')))>
<if !Settings::IsInList('panel.customer_hide_options','traffic.ftp')>
<h3>FTP {$lng['admin']['traffic']} ({$lng['traffic']['months']['total']} {$traffic_complete['ftp']})</h3>
<div id="ftpchart" class="trafficchart"></div>
</if>
<if !in_array('traffic.mail',explode(',',Settings::Get('panel.customer_hide_options')))>
<if !Settings::IsInList('panel.customer_hide_options','traffic.mail')>
<h3>Mail {$lng['admin']['traffic']} ({$lng['traffic']['months']['total']} {$traffic_complete['mail']})</h3>
<div id="mailchart" class="trafficchart"></div>
</if>