ソースを参照

cosmetic fixes

Roman Dmitriev 2 年 前
コミット
1efb3b55f1

+ 2 - 2
html/admin/customers/editsubnet.php

@@ -97,9 +97,9 @@ $subnet_info = get_record_sql($db_link, $sSQL);
 <td><td><b><?php echo WEB_network_subnet; ?></b></td>
 <?php 
 $cl = "data";
-print "<td class=\"$cl\"><input type=\"text\" name='s_subnet' value='".$row['subnet']."' size='18'></td>\n";
+print "<td class=\"$cl\"><input type=\"text\" name='s_subnet' value='".$subnet_info['subnet']."' size='18'></td>\n";
 ?>
-<td><button class="button_right" name='s_save' value='save'><?php print WEB_btn_save; ?></button></td></tr>
+<td><button name='s_save' value='save'><?php print WEB_btn_save; ?></button></td></tr>
 
 <td><td><b><?php echo WEB_cell_comment; ?></b></td>
 <?php print "<td colspan=2 class=\"data\"><input type=\"text\" name='s_comment[" . $subnet_info['id'] . "]' value='".$subnet_info['comment']."'></td>\n"; ?></tr>

+ 1 - 2
html/admin/customers/index-subnets.php

@@ -57,8 +57,7 @@ print_control_submenu($page_url);
     <div>
         <?php print WEB_network_create . "&nbsp:<input type=\"text\" name='s_create_subnet' value=''>"; ?>
         <input type="submit" name="s_create" value="<?php echo WEB_btn_add; ?>">
-        <button class="button_right" name='s_save' value='save'><?php print WEB_btn_save; ?></button>
-        <input type="submit" onclick="return confirm('<?php print WEB_btn_delete; ?>?')" name="s_remove" value="<?php print WEB_btn_remove; ?>">
+        <input class="button_right" type="submit" onclick="return confirm('<?php print WEB_btn_delete; ?>?')" name="s_remove" value="<?php print WEB_btn_remove; ?>">
     </div>
         <b><?php echo WEB_network_org_title; ?></b> <br>
         <table class="data">