<buttontype="submit"onmouseover="fr_insline(<?=$nnats;?>, true)"onmouseout="fr_insline(<?=$nnats;?>, false)"name="move_<?=$i;?>_x"title="<?=gettext("move selected rules before this rule");?>"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-arrow-left"></span></button>
<buttontype="submit"name="move_<?=$i;?>_x"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected rules before this rule");?>"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-arrow-left"></span></button>
<ahref="firewall_nat_edit.php?id=<?=$i;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("edit this rule");?>"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-pencil"></span></a>
<ahref="firewall_nat.php?act=del&id=<?=$i;?>"onclick="return confirm('<?=gettext("Do you really want to delete this rule?");?>')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></a>
<ahref="firewall_nat.php?act=del&id=<?=$i;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("delete this rule");?>"onclick="return confirm('<?=gettext("Do you really want to delete this rule?");?>')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></a>
<ahref="firewall_nat_edit.php?dup=<?=$i;?>"class="btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("add new rule based on this one");?>"><spanclass="glyphicon glyphicon-plus"></span></a></td>
<buttonname="del_<?=$i;?>_x"type="submit"title="<?=gettext("delete selected rules");?>"onclick="return confirm('<?=gettext("Do you really want to delete the selected rules?");?>')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></button>
<buttonname="del_<?=$i;?>_x"type="submit"data-toggle="tooltip"data-placement="left"title="<?=gettext("delete selected rules");?>"onclick="return confirm('<?=gettext("Do you really want to delete the selected rules?");?>')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></button>
<ahref="firewall_nat_edit.php"class="btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("add new rule");?>"><spanclass="glyphicon glyphicon-plus"></span></a>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
@@ -378,9 +376,9 @@ $main_buttons = array(
...
@@ -378,9 +376,9 @@ $main_buttons = array(
</tfoot>
</tfoot>
</table>
</table>
</div>
<divclass="container-fluid">
<divclass="container-fluid">
<inputname="del"type="submit"title="<?=gettext("delete selected rules");?>"onclick="return confirm('<?=gettext("Do you really want to delete the selected rules?");?>')"class="btn btn-primary"value="Delete selected rules"/>
<inputname="del"type="submit"data-toggle="tooltip"data-placement="left"title="<?=gettext("delete selected rules");?>"onclick="return confirm('<?=gettext("Do you really want to delete the selected rules?");?>')"class="btn btn-primary"value="Delete selected rules"/>
<ahref="firewall_nat_1to1_edit.php?id=<?=$i;?>"class="btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("edit this mapping");?>"><spanclass="glyphicon glyphicon-pencil"></span></a>
<ahref="firewall_nat_1to1.php?act=del&id=<?=$i;?>"onclick="return confirm('<?=gettext("Do you really want to delete this rule?");?>')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></a>
<ahref="firewall_nat_1to1.php?act=del&id=<?=$i;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("delete this mapping");?>"onclick="return confirm('<?=gettext("Do you really want to delete this rule?");?>')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></a>
<ahref="firewall_nat_1to1_edit.php?dup=<?=$i;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("add new mapping based on this one");?>"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-plus"></span></a>
</td>
</td>
</tr>
</tr>
<?php
<?php
...
@@ -265,21 +264,21 @@ $main_buttons = array(
...
@@ -265,21 +264,21 @@ $main_buttons = array(
<?php
<?php
else:
else:
?>
?>
<buttonname="move_<?=$i;?>_x"type="submit"title="<?=gettext("move selected mappings to end");?>"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-arrow-left"></span></button>
<buttonname="move_<?=$i;?>_x"type="submit"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected mappings to end");?>"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-arrow-left"></span></button>
onclick="return confirm('<?=gettext("Do you really want to delete the selected mappings?");?>')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></button>
onclick="return confirm('<?=gettext("Do you really want to delete the selected mappings?");?>')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></button>
<ahref="system_certmanager.php?act=p12&id=<?=$i;?>"class="btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("export ca cert+user cert+user cert key in .p12 format");?>">
<spanclass="glyphicon glyphicon-download"></span>
</a>
<?phpif(!cert_in_use($cert['refid'])):?>
<ahref="system_certmanager.php?act=del&id=<?=$i;?>"class="btn btn-default btn-xs"onclick="return confirm('<?=gettext("Do you really want to delete this Certificate?");?>')"data-toggle="tooltip"data-placement="left"title="<?=gettext("delete cert");?>">
<ahref="system_certmanager.php?act=p12&id=<?=$i;?>"class="btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("export ca cert+user cert+user cert key in .p12 format");?>">
<spanclass="glyphicon glyphicon-download"></span>
</a>
<?phpif(!cert_in_use($cert['refid'])):?>
<ahref="system_certmanager.php?act=del&id=<?=$i;?>"class="btn btn-default btn-xs"onclick="return confirm('<?=gettext("Do you really want to delete this Certificate?");?>')"data-toggle="tooltip"data-placement="left"title="<?=gettext("delete cert");?>">
<?phpechogettext("No Certificates Found for this CRL.");?>
<?phpechogettext("No Certificates Found for this CRL.");?>
</td>
</td>
<tdclass="list"> </td>
</tr>
</tr>
<?phpelse:
<?phpelse:
foreach($crl['cert']as$i=>$cert):
foreach($crl['cert']as$i=>$cert):
$name=htmlspecialchars($cert['descr']);
$name=htmlspecialchars($cert['descr']);
?>
?>
<tr>
<tr>
<tdclass="listlr">
<td>
<?phpecho$name;?>
<?phpecho$name;?>
</td>
</td>
<tdclass="listlr">
<td>
<?phpecho$openssl_crl_status[$cert["reason"]];?>
<?phpecho$openssl_crl_status[$cert["reason"]];?>
</td>
</td>
<tdclass="listlr">
<td>
<?phpechodate("D M j G:i:s T Y",$cert["revoke_time"]);?>
<?phpechodate("D M j G:i:s T Y",$cert["revoke_time"]);?>
</td>
</td>
<tdclass="list">
<td>
<ahref="system_crlmanager.php?act=delcert&id=<?phpecho$crl['refid'];?>&certref=<?phpecho$cert['refid'];?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("Delete this certificate from the CRL ");?>"onclick="return confirm('<?=gettext("Do you really want to delete this Certificate from the CRL?");?>')"class="btn btn-default">
<ahref="system_crlmanager.php?act=delcert&id=<?phpecho$crl['refid'];?>&certref=<?phpecho$cert['refid'];?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("Delete this certificate from the CRL ");?>"onclick="return confirm('<?=gettext("Do you really want to delete this Certificate from the CRL?");?>')"class="btn btn-default btn-xs">
<spanclass="glyphicon glyphicon-remove"></span>
<spanclass="glyphicon glyphicon-remove"></span>
</a>
</a>
</td>
</td>
...
@@ -485,15 +483,22 @@ include("head.inc");
...
@@ -485,15 +483,22 @@ include("head.inc");
$ca_certs[]=$cert;
$ca_certs[]=$cert;
if(count($ca_certs)==0):?>
if(count($ca_certs)==0):?>
<tr>
<tr>
<tdclass="listlr"colspan="3">
<tdcolspan="4">
<?phpechogettext("No Certificates Found for this CA.");?>
<?phpechogettext("No Certificates Found for this CA.");?>
</td>
</td>
<tdclass="list"> </td>
</tr>
</tr>
<?phpelse:?>
<?phpelse:?>
<tr>
<thcolspan="4">
<?=gettext("Revoke a Certificate");?>
</th>
</tr>
<tr>
<tr>
<tdclass="listlr"colspan="3"align="center">
<td>
<b><?phpechogettext("Choose a Certificate to Revoke");?></b>: <selectname='certref'id='certref'class="formselect selectpicker"data-style="btn-default"data-live-search="true">
<b><?phpechogettext("Choose a Certificate to Revoke");?></b>: