Example #1
0
        echo '<section class="monitis_monitors">';
        $mons = $monitors["data"];
        for ($i = 0; $i < count($mons); $i++) {
            $item = $mons[$i];
            if (isset($item['external']) && count($item['external']) > 0 || isset($item["internal"]) && count($item["internal"]) > 0) {
                echo '<h3>' . $item["groupname"] . ' - ' . $item["name"] . '</h3>';
                $isMonitor = true;
            }
            if (isset($item['external']) && count($item['external']) > 0) {
                echo '<figure>' . monitis_embed_module($item['external'][0]['publickey'], 770, 350) . '</figure>';
                $isMonitor = true;
            }
            $int = $item["internal"];
            if (isset($int) && count($int) > 0) {
                for ($j = 0; $j < count($int); $j++) {
                    echo '<figure>' . monitis_embed_module($int[$j]['publickey'], 770, 350) . '</figure>';
                    $isMonitor = true;
                }
            }
        }
        if ($isMonitor == false) {
            echo '<div>No monitors for active products or they are not available</div>';
        }
        echo "</section>";
    } else {
        echo '<div>' . $monitors["msg"] . '</div>';
    }
} else {
    //echo '<div>'.$MLANG['not_login'].'</div>';
    echo '<div>' . $MLANG['not_login'] . '</div>';
}
Example #2
0
"><?php 
                echo $MLANG['activate_monitoring'];
                ?>
</a></li>
						<?php 
            }
            ?>
						</ul>
						</div>
					</div>
					
				</header>
				
				<figure>
				<?php 
            echo monitis_embed_module($monitor['publickey'], 770, 350);
            ?>
				</figure>

				<form method="post" id="rulesForm<?php 
            echo $monitor_id;
            ?>
">
				
					<input type="hidden" name="monitor_name" value='<?php 
            echo $item["name"];
            ?>
' />
					<input type="hidden" name="settings" value='<?php 
            echo $settingProduct;
            ?>
Example #3
0
                <button class="btn btn-mini monitis-monitor-make-not-available monitis_link_button">Make not available to clients</button>
                <?php 
                } else {
                    ?>
                <button class="btn btn-mini btn-success monitis-monitor-make-available monitis_link_button">Make availlable to clients</button>
                <?php 
                }
                ?>
            </div>
            <div class="monitis-monitor-buttons-actions">
                <button class="btn btn-mini monitis-monitor-edit">Edit</button>
                <button class="btn btn-mini btn-danger monitis-monitor-delete">Delete</button>
            </div>
        </div>
        <?php 
                echo monitis_embed_module($drive['publickey'], 800, 350);
                ?>
    </div>
    <?php 
            }
            ?>
    <?php 
        }
        ?>
    <?php 
    }
    ?>
    <?php 
}
?>
</div>