Improved image-buttons and colored image creation
This commit is contained in:
8
nat.php
8
nat.php
@@ -54,6 +54,10 @@ switch ($submit = form_get_action()) {
|
||||
|
||||
include("header.php");
|
||||
|
||||
|
||||
if ($action == ACT_DEFAULT):
|
||||
// ========== VARIANT: default behavior =======================================
|
||||
|
||||
$sql = "SELECT n.nat_id AS id, n.nat_type, n.nat_ext, n.nat_int,
|
||||
n.nat_ext_port AS port_ext, n.nat_int_port AS port_int,
|
||||
n.nat_description AS description,
|
||||
@@ -65,10 +69,8 @@ $sql = "SELECT n.nat_id AS id, n.nat_type, n.nat_ext, n.nat_int,
|
||||
$sth = $dbh->query($sql);
|
||||
$smarty->assign("nats", $sth->fetchAll());
|
||||
|
||||
$smarty->display("nat.tpl");
|
||||
|
||||
if ($action == ACT_DEFAULT):
|
||||
// ========== VARIANT: default behavior =======================================
|
||||
$smarty->display("nat.tpl");
|
||||
|
||||
|
||||
elseif ($action == ACT_ADD):
|
||||
|
||||
Reference in New Issue
Block a user