Make 'Add NAS' function in the nas admin page more easily accessible
authorkkalev <kkalev>
Thu, 2 Sep 2004 16:28:50 +0000 (16:28 +0000)
committerkkalev <kkalev>
Thu, 2 Sep 2004 16:28:50 +0000 (16:28 +0000)
dialup_admin/Changelog
dialup_admin/htdocs/nas_admin.php3

index 38e56c4..dd1d365 100644 (file)
@@ -22,6 +22,7 @@ Ver 1.75:
 * Move a few header() calls after including config.php3 so that we have access to the relevant
   variables.
 * Make pagesize 'all' work again. Bug found by apellido jr., wilfredo p.
+* Make 'Add NAS' function in the nas admin page more easily accessible
 Ver 1.72:
 * Move the xlat function to a separate file in lib/xlat.php3
 * Add a lib/sql/nas_list.php3 to also get the nas list from sql (naslist.conf still works)
index 6a6b5e9..1175805 100644 (file)
@@ -34,7 +34,7 @@ EOM;
 }
 
 
-if ($clear_fields == 1)
+if ($clear_fields == 1 || ($do_it == 0 && $select_nas == 0))
        $selected_nas = $readonly = '';
 else
        $readonly = 'readonly';
@@ -264,9 +264,9 @@ EOM;
 <br>
 <select name=action size=1>
 <?php
-if ($clear_fields == 1)
+if ($clear_fields == 1 || ($do_it == 0 && $select_nas == 0))
        echo "<option value=\"add_nas\">Add NAS\n";
-else
+if ($clear_fields == 0)
        echo <<<EOM
 <option value="change_nas">Change NAS Info
 <option value="del_nas">Delete Selected NAS