added the AP (access point) and IP address to machine database structure

This commit is contained in:
xdrm-brackets 2017-07-21 15:35:07 +02:00
parent 676ecc5720
commit f49a54c43d
2 changed files with 9 additions and 1 deletions

View File

@ -189,6 +189,8 @@
->select('name')
->select('token')
->select('unlock_code')
->select('ap')
->select('ip')
->orderby('id_machine', Rows::ORDER_ASC)
->unique()
->fetch();
@ -233,6 +235,8 @@
->select('name')
->select('token')
->select('unlock_code')
->select('ap')
->select('ip')
->orderby('name', Rows::ORDER_ASC)
->unique()
->fetch();
@ -277,6 +281,8 @@
->select('name')
->select('token')
->select('unlock_code')
->select('ap')
->select('ip')
->orderby('name', Rows::ORDER_ASC)
->unique()
->fetch();
@ -314,6 +320,8 @@
$machine = Table::get('machine')
->whereIdWarehouse($id_warehouse)
->select('id_machine')
->select('ap')
->select('ip')
->orderby('name', Rows::ORDER_ASC)
->select('name');

View File

@ -1,7 +1,7 @@
<input type='text' class='searchbar' placeholder='Recherche'>
{% for machine in f_machines() %}
<article class='inline-box' id='{{ machine.id_machine }}'>
<article class='inline-box' id='{{ machine.id_machine }}' title='{{ machine.ap | default('?') }} ({{ machine.ip | default('?') }})'>
<span class='state' data-state='{{ f_getstate(machine.id_machine) }}'></span>
<span class='title' style='color: {{ p_theme }}'>{{ machine.name }} <span>#{{ machine.name }}</span></span>