'; echo '
'; echo ''; echo ''; echo ''; foreach (GetDeviceGroups() as $group) { echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } echo '
NameDescriptionPatternActions
'.$group['name'].''.$group['desc'].''.formatDeviceGroupPattern($group['pattern'], json_decode($group['params'])).''; echo " "; echo ""; echo '
'; } else { //if $group_count_check is empty, aka no group found, then display a message to the user. echo "
Looks like no groups have been created, let's create one now. Click on Create New Group to create one.

"; echo "
"; } if (!empty($group_count_check)) { //display create new node group when $group_count_check has a value so that the user can define more groups in the future. echo "
"; echo "
"; }