Browse Source

connections for remote/old addresses are hidden

root 9 tháng trước cách đây
mục cha
commit
26dfd193c3

+ 1 - 1
html/admin/devices/switchport-conn.php

@@ -43,7 +43,7 @@ print_editdevice_submenu($page_url,$id,$device['device_type'],$user_info['login'
 
 
 <?php
 <?php
 
 
-$connections = get_records($db_link,"connections","device_id=$id ORDER BY port_id ASC");
+$connections = get_records_sql($db_link,"SELECT C.* FROM `connections` as C,`User_auth` as A WHERE A.id=C.auth_id AND A.deleted=0 AND C.device_id=$id ORDER BY C.port_id ASC");
 foreach ($connections as $key => $value) {
 foreach ($connections as $key => $value) {
 print "<tr align=center>\n";
 print "<tr align=center>\n";
 print "<td class=\"data\" style='padding:0'><input type=checkbox name=f_id[] value='{$value['id']}'></td>\n";
 print "<td class=\"data\" style='padding:0'><input type=checkbox name=f_id[] value='{$value['id']}'></td>\n";