2024-09-23 18:39:32 +00:00
|
|
|
|
|
|
|
<!-- jilo agents -->
|
|
|
|
<div class="card text-center w-75 mx-lef">
|
|
|
|
<p class="h4 card-header">Jilo Agents on platform <?= htmlspecialchars($platform_id) ?> (<?= htmlspecialchars($platformDetails[0]['name']) ?>)</p>
|
|
|
|
<div class="card-body">
|
|
|
|
<?php foreach ($agentDetails as $agent) { ?>
|
2024-09-30 09:22:53 +00:00
|
|
|
<p class="card-text text-left" style="text-align: left;">
|
|
|
|
agent id: <strong><?= htmlspecialchars($agent['id']) ?></strong>
|
|
|
|
agent type: <?= htmlspecialchars($agent['agent_type_id']) ?> (<strong><?= htmlspecialchars($agent['agent_description']) ?></strong>)
|
|
|
|
<br />
|
|
|
|
endpoint: <strong><?= htmlspecialchars($agent['url']) ?><?= htmlspecialchars($agent['agent_endpoint']) ?></strong>
|
|
|
|
<br />
|
2024-09-30 08:55:23 +00:00
|
|
|
<button onclick="fetchData('<?= htmlspecialchars($agent['id']) ?>', '<?= htmlspecialchars($agent['url']) ?>', '<?= htmlspecialchars($agent['agent_endpoint']) ?>')">fetch data</button>
|
|
|
|
<button onclick="fetchData('<?= htmlspecialchars($agent['id']) ?>', '<?= htmlspecialchars($agent['url']) ?>', '<?= htmlspecialchars($agent['agent_endpoint']) ?>', true)">force refresh</button>
|
2024-09-30 09:22:53 +00:00
|
|
|
</p>
|
2024-09-27 06:49:50 +00:00
|
|
|
<p>Result:</p>
|
2024-09-30 08:09:01 +00:00
|
|
|
<pre id="result<?= htmlspecialchars($agent['id']) ?>">click a button to fetch data from the agent.</pre>
|
2024-09-23 18:39:32 +00:00
|
|
|
|
|
|
|
<?php } ?>
|