mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
commit
77ec6d5d38
@ -664,13 +664,13 @@ include("head.inc");
|
||||
<td width="78%">
|
||||
<select name="type" class="selectpicker" data-live-search="true" data-size="5" >
|
||||
<?php
|
||||
$type_options = array('Pass', 'Block', 'Reject');
|
||||
$type_options = array('Pass' => gettext('Pass'), 'Block' => gettext('Block'), 'Reject' => gettext('Reject'));
|
||||
if (!empty($pconfig['floating'])) {
|
||||
$type_options[] = 'Match';
|
||||
$type_options['Match'] = gettext('Match');
|
||||
}
|
||||
foreach ($type_options as $type): ?>
|
||||
foreach ($type_options as $type => $type_translated): ?>
|
||||
<option value="<?=strtolower($type);?>" <?= strtolower($type) == strtolower($pconfig['type']) ? "selected=\"selected\"" :""; ?>>
|
||||
<?=$type;?>
|
||||
<?=$type_translated;?>
|
||||
</option>
|
||||
<?php
|
||||
endforeach; ?>
|
||||
@ -1124,7 +1124,7 @@ include("head.inc");
|
||||
<td><a id="help_for_sourceos" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Source OS");?></td>
|
||||
<td>
|
||||
<select name="os" class="selectpicker" data-live-search="true" data-size="5" data-width="auto">
|
||||
<option value="" <?= empty($pconfig['os']) ? "selected=\"selected\"" : ""; ?>>Any</option>
|
||||
<option value="" <?= empty($pconfig['os']) ? "selected=\"selected\"" : ""; ?>><?= gettext('Any') ?></option>
|
||||
<?php
|
||||
foreach ($ostypes as $ostype): ?>
|
||||
<option value="<?=$ostype;?>" <?= $ostype == $pconfig['os'] ? "selected=\"selected\"" : ""; ?>>
|
||||
|
||||
@ -81,7 +81,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("Bridge"));
|
||||
include("head.inc");
|
||||
|
||||
$main_buttons = array(
|
||||
array('href'=>'interfaces_bridge_edit.php', 'label'=>'Add'),
|
||||
array('href'=>'interfaces_bridge_edit.php', 'label'=>gettext('Add')),
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
@ -72,7 +72,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("GIF"));
|
||||
include("head.inc");
|
||||
|
||||
$main_buttons = array(
|
||||
array('href'=>'interfaces_gif_edit.php', 'label'=>'Add'),
|
||||
array('href'=>'interfaces_gif_edit.php', 'label'=>gettext('Add')),
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
@ -72,7 +72,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("GRE"));
|
||||
include("head.inc");
|
||||
|
||||
$main_buttons = array(
|
||||
array('href'=>'interfaces_gre_edit.php', 'label'=>'Add'),
|
||||
array('href'=>'interfaces_gre_edit.php', 'label'=>gettext('Add')),
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
@ -77,7 +77,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("LAGG"));
|
||||
include("head.inc");
|
||||
|
||||
$main_buttons = array(
|
||||
array('href'=>'interfaces_lagg_edit.php', 'label'=>'Add'),
|
||||
array('href'=>'interfaces_lagg_edit.php', 'label'=>gettext('Add')),
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
@ -73,7 +73,7 @@ $pgtitle = gettext("Interfaces: PPPs");
|
||||
include("head.inc");
|
||||
|
||||
$main_buttons = array(
|
||||
array('href'=>'interfaces_ppps_edit.php', 'label'=>'Add'),
|
||||
array('href'=>'interfaces_ppps_edit.php', 'label'=>gettext('Add')),
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
@ -80,7 +80,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("QinQ"));
|
||||
include("head.inc");
|
||||
|
||||
$main_buttons = array(
|
||||
array('href'=>'interfaces_qinq_edit.php', 'label'=>'Add'),
|
||||
array('href'=>'interfaces_qinq_edit.php', 'label'=>gettext('Add')),
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
@ -78,7 +78,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("VLAN"));
|
||||
include("head.inc");
|
||||
|
||||
$main_buttons = array(
|
||||
array('href'=>'interfaces_vlan_edit.php', 'label'=>'Add'),
|
||||
array('href'=>'interfaces_vlan_edit.php', 'label'=>gettext('Add')),
|
||||
);
|
||||
|
||||
|
||||
|
||||
@ -68,7 +68,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("Wireless"));
|
||||
include("head.inc");
|
||||
|
||||
$main_buttons = array(
|
||||
array('href'=>'interfaces_wireless_edit.php', 'label'=>'Add'),
|
||||
array('href'=>'interfaces_wireless_edit.php', 'label'=>gettext('Add')),
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
@ -204,9 +204,9 @@ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enabl
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?=gettext("Interface"); ?></th>
|
||||
<th>Sort by</th>
|
||||
<th>Filter</th>
|
||||
<th>Display</th>
|
||||
<th><?= gettext('Sort by') ?></th>
|
||||
<th><?= gettext('Filter') ?></th>
|
||||
<th><?= gettext('Display') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -221,18 +221,18 @@ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enabl
|
||||
?>
|
||||
</select></td>
|
||||
<td><select id="sort" name="sort" class="form-control" style="z-index: -10;" onchange="document.form1.submit()">
|
||||
<option value="">Bw In</option>
|
||||
<option value="out"<?php if ($cursort == "out") echo " selected=\"selected\"";?>>Bw Out</option>
|
||||
<option value=""><?= gettext('Bw In') ?></option>
|
||||
<option value="out"<?php if ($cursort == "out") echo " selected=\"selected\"";?>><?= gettext('Bw Out') ?></option>
|
||||
</select></td>
|
||||
<td><select id="filter" name="filter" class="form-control" style="z-index: -10;" onchange="document.form1.submit()">
|
||||
<option value="local"<?php if ($curfilter == "local") echo " selected=\"selected\"";?>>Local</option>
|
||||
<option value="remote"<?php if ($curfilter == "remote") echo " selected=\"selected\"";?>>Remote</option>
|
||||
<option value="all"<?php if ($curfilter == "all") echo " selected=\"selected\"";?>>All</option>
|
||||
<option value="local"<?php if ($curfilter == "local") echo " selected=\"selected\"";?>><?= gettext('Local') ?></option>
|
||||
<option value="remote"<?php if ($curfilter == "remote") echo " selected=\"selected\"";?>><?= gettext('Remote') ?></option>
|
||||
<option value="all"<?php if ($curfilter == "all") echo " selected=\"selected\"";?>><?= gettext('All') ?></option>
|
||||
</select></td>
|
||||
<td><select id="hostipformat" name="hostipformat" class="form-control" style="z-index: -10;" onchange="document.form1.submit()">
|
||||
<option value="">IP Address</option>
|
||||
<option value="hostname"<?php if ($curhostipformat == "hostname") echo " selected";?>>Host Name</option>
|
||||
<option value="fqdn"<?php if ($curhostipformat == "fqdn") echo " selected=\"selected\"";?>>FQDN</option>
|
||||
<option value=""><?= gettext('IP Address') ?></option>
|
||||
<option value="hostname"<?php if ($curhostipformat == "hostname") echo " selected";?>><?= gettext('Host Name') ?></option>
|
||||
<option value="fqdn"<?php if ($curhostipformat == "fqdn") echo " selected=\"selected\"";?>><?= gettext('FQDN') ?></option>
|
||||
</select></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user