Factorize code and add display php array serialized for printer and networkequipments