rajven 3 ani în urmă
părinte
comite
46fe697c3e
2 a modificat fișierele cu 24 adăugiri și 12 ștergeri
  1. 14 8
      html/admin/devices/edit_l3int.php
  2. 10 4
      html/inc/languages/russian.php

+ 14 - 8
html/admin/devices/edit_l3int.php

@@ -50,19 +50,23 @@ if (isset($_POST["s_create"])) {
 unset($_POST);
 
 require_once ($_SERVER['DOCUMENT_ROOT']."/inc/header.php");
+print_device_submenu($page_url);
 
 ?>
 <div id="cont">
 <br>
-<form name="def" action="edit_l3int.php" method="post">
-<b>Список L3 интерфейсов <?php print_url($device_info['device_name'],"/admin/devices/editdevice.php?id=$id"); ?></b> <br>
+<?php print "<form name=def action='edit_l3int.php?id=".$id."' method=post>"; ?>
+<?php print WEB_list_l3_interfaces."<b>"; print_url($device_info['device_name'],"/admin/devices/editdevice.php?id=$id"); ?>
+</b> <br>
 <table class="data">
 <tr align="center">
 	<td></td>
 	<td width=30><b>id</b></td>
-	<td><b>Название</b></td>
-	<td><b>Тип</b></td>
-	<td><input type="submit" onclick="return confirm('Удалить?')" name="s_remove" value="Удалить"></td>
+	<td><b><?php echo WEB_cell_name; ?></b></td>
+	<td><b><?php echo WEB_cell_type; ?></b></td>
+	<td>
+	<input type="submit" onclick="return confirm('<?php print WEB_msg_delete; ?>?')" name="s_remove" value="<?php print WEB_btn_remove; ?>">
+	</td>
 </tr>
 <?php
 $t_l3_interface = get_records($db_link,'device_l3_interfaces',"device_id=$id ORDER BY name");
@@ -72,14 +76,16 @@ foreach ( $t_l3_interface as $row ) {
     print "<td class=\"data\"><input type=\"hidden\" name='n_id[]' value='{$row['id']}'>{$row['id']}</td>\n";
     print "<td class=\"data\"><input type=\"text\" name='s_name[]' value='{$row['name']}'></td>\n";
     print "<td class=\"data\">"; print_qa_l3int_select('s_type[]',$row['interface_type']); print "</td>\n";
-    print "<td class=\"data\"><button name='s_save[]' value='{$row['id']}'>Сохранить</button></td>\n";
+    print "<td class=\"data\"><button name='s_save[]' value='{$row['id']}'>".WEB_btn_save."</button></td>\n";
     print "</tr>\n";
     }
 ?>
 <tr>
-<td colspan=4>Добавить интерфейс :<?php print "<input type=\"text\" name='s_create_name' value=''";?>
+<td colspan=4><?php print WEB_l3_interface_add; print "&nbsp:<input type=\"text\" name='s_create_name' value=''";?>
+</td>
+<td>
+<input type="submit" name="s_create" value="<?php echo WEB_btn_add; ?>">
 </td>
-<td><input type="submit" name="s_create" value="Добавить"></td>
 </tr>
 </table>
 </form>

+ 10 - 4
html/inc/languages/russian.php

@@ -121,6 +121,7 @@ define("WEB_msg_now","Сейчас");
 define("WEB_msg_forbidden","Запрещено");
 define("WEB_msg_traffic_blocked","Блок по трафику");
 define("WEB_msg_internet","Интернет");
+define("WEB_msg_delete","Удалить");
 
 /* select items */
 define("WEB_select_item_yes","Да");
@@ -231,10 +232,11 @@ define("WEB_cell_link","Линк");
 define("WEB_cell_traf","Запись трафика");
 define("WEB_cell_acl","dhcp acl");
 define("WEB_cell_le","Правил");
-define("WEB_ceil_login_quote_month","Квота на логин, месяц");
-define("WEB_ceil_ip_quote_month","Квота на адрес, месяц");
-define("WEB_ceil_login_quote_day","Квота на логин, день");
-define("WEB_ceil_ip_quote_day","Квота на адрес, день");
+define("WEB_cell_login_quote_month","Квота на логин, месяц");
+define("WEB_cell_ip_quote_month","Квота на адрес, месяц");
+define("WEB_cell_login_quote_day","Квота на логин, день");
+define("WEB_cell_ip_quote_day","Квота на адрес, день");
+define("WEB_cell_type","Тип");
 
 /* lists name */
 define("WEB_list_ou","Список групп");
@@ -340,4 +342,8 @@ define("WEB_public_month_traffic","за месяц, (Вх/Исх)");
 define("WEB_model_vendor","Производитель");
 define("WEB_nagios_template","Шаблон Нагиос");
 
+/* edit_l3int */
+define("WEB_list_l3_interfaces","Список L3 интерфейсов");
+define("WEB_l3_interface_add","Добавить интерфейс");
+
 ?>