if (count($hostList) > 0) { foreach ($hostList as $hostList_item) { $domain = get_url_domain($hostList_item["HTTP_REFERER"]); if ($domain == "unknow") { $domain = get_url_domain($hostList_item["location"]); } ?> <div class="main-item main-item-host"> <div class="main-item-name pull-left cursor-pointer"> <input style="margin: 0;" type="checkbox" class="s_checkbox" value="<?php echo $hostList_item["ip"]; ?> "> <a href="<?php echo pmx_geturl_hostdetail($hostList_item["id"]); ?> " target="_blank"><?php echo esc_html($hostList_item["ip"]); ?> ( <?php echo esc_html($domain); ?> )</a> </div> <div class="main-item-body pull-left"> <div class="location" ip="<?php echo esc_html($hostList_item["ip"]); ?>
?> " onclick="return confirm('Are sure to delete the session you selected ?');">DEL</a></td> <td><select class="form-control"> <?php $ipSIDList = (new pmxHosts())->getSIDList($hostDetail['ip']); if (count($ipSIDList) > 0) { foreach ($ipSIDList as $ipSIDList_item) { $domain = get_url_domain($ipSIDList_item["HTTP_REFERER"]); if ($domain == "unknow") { $domain = get_url_domain($ipSIDList_item["location"]); } ?> <option href="<?php echo pmx_geturl_hostdetail($ipSIDList_item["id"]); ?> " title="<?php echo esc_html($ipSIDList_item['sid']); ?> " <?php echo $ipSIDList_item["id"] == $id ? "selected" : ""; ?> >(<?php echo $ipSIDList_item['status'] == 1 ? "Online" : "Offline"; ?> : <?php echo esc_html($domain); ?>