Skip to content

Commit

Permalink
Fix export
Browse files Browse the repository at this point in the history
Fix #70
  • Loading branch information
tsmr committed Jan 27, 2024
1 parent e2c77af commit fc0901d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions inc/report.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function displayReport(&$result, $PluginAddressingAddressing, $ping_status = [])
$ping_link = "<a href=\"#\" data-bs-toggle='modal' data-bs-target='#ping$rand'>
<i class='fas fa-terminal fa-1x pointer' style='color: orange' title='" . __("IP ping", 'addressing') . "'></i></a>";
echo Search::showItem($output_type, "$ping_link ", $item_num, $row_num, "class='center'");
if (isset($params) && count($params) > 0) {
if (isset($params) && count($params) > 0 && $output_type == Search::HTML_OUTPUT) {
echo Ajax::createIframeModalWindow('ping' . $rand,
PLUGIN_ADDRESSING_WEBDIR . "/ajax/addressing.php?action=ping&ip=" . $params['ip'],
['title' => __s('IP ping', 'addressing'),
Expand Down Expand Up @@ -283,7 +283,7 @@ function displayReport(&$result, $PluginAddressingAddressing, $ping_status = [])
$reserv = "<a href=\"#\" data-bs-toggle='modal' data-bs-target='#reservation$rand'>
<i class='fas fa-clipboard fa-2x pointer' style='color: #d56f15' title='" . __("Reserve IP", 'addressing') . "'></i></a>";
echo Search::showItem($output_type, "$reserv ", $item_num, $row_num, "style='background-color:#e0e0e0' class='center'");
if (isset($params) && count($params) > 0) {
if (isset($params) && count($params) > 0 && $output_type == Search::HTML_OUTPUT) {
echo Ajax::createIframeModalWindow('reservation' . $rand,
PLUGIN_ADDRESSING_WEBDIR . "/ajax/addressing.php?action=showForm&ip=" . $params['ip'] . "&id_addressing=" . $params['id_addressing'] . "&rand=" . $params['rand'],
['title' => __s('IP reservation', 'addressing'),
Expand Down Expand Up @@ -339,7 +339,7 @@ function displayReport(&$result, $PluginAddressingAddressing, $ping_status = [])
$reserv = "<a href=\"#\" data-bs-toggle='modal' data-bs-target='#reservation$rand'>
<i class='fas fa-clipboard fa-2x pointer' style='color: #d56f15' title='" . __("Reserve IP", 'addressing') . "'></i></a>";
echo Search::showItem($output_type, "$reserv ", $item_num, $row_num, "style='background-color:#e0e0e0' class='center'");
if (isset($params) && count($params) > 0) {
if (isset($params) && count($params) > 0 && $output_type == Search::HTML_OUTPUT) {
echo Ajax::createIframeModalWindow('reservation' . $rand,
PLUGIN_ADDRESSING_WEBDIR . "/ajax/addressing.php?action=showForm&ip=" .
$params['ip'] . "&id_addressing=" . $params['id_addressing'] . "&rand=" . $params['rand'],
Expand Down Expand Up @@ -447,7 +447,7 @@ function updateFA$rand() {
$ping_link = "<a href=\"#\" data-bs-toggle='modal' data-bs-target='#ping$rand'>
<i class='fas fa-terminal fa-1x pointer' style='color: orange' title='" . __("IP ping", 'addressing') . "'></i></a>";
echo Search::showItem($output_type, "$ping_link ", $item_num, $row_num, "class='center'");
if (isset($params) && count($params) > 0) {
if (isset($params) && count($params) > 0 && $output_type == Search::HTML_OUTPUT) {
echo Ajax::createIframeModalWindow('ping' . $rand,
PLUGIN_ADDRESSING_WEBDIR . "/ajax/addressing.php?action=ping&ip=" . $params['ip'],
['title' => __s('IP ping', 'addressing'),
Expand All @@ -474,7 +474,7 @@ function updateFA$rand() {
];
$reserv = "<a href=\"#\" data-bs-toggle='modal' data-bs-target='#reservation$rand'>
<i class='fas fa-clipboard fa-2x pointer' style='color: #d56f15' title='" . __("Reserve IP", 'addressing') . "'></i></a>";
if (isset($params) && count($params) > 0) {
if (isset($params) && count($params) > 0 && $output_type == Search::HTML_OUTPUT) {
echo Ajax::createIframeModalWindow('reservation'.$rand,
PLUGIN_ADDRESSING_WEBDIR . "/ajax/addressing.php?action=showForm&ip=" . $params['ip'] . "&id_addressing=" . $params['id_addressing'] . "&rand=" . $params['rand'],
['title' => __s('IP reservation', 'addressing'),
Expand Down Expand Up @@ -584,7 +584,7 @@ function updateFA$rand() {
$ping_link = "<a href=\"#\" data-bs-toggle='modal' data-bs-target='#ping$rand'>
<i class='fas fa-terminal fa-1x pointer' style='color: orange' title='" . __("IP ping", 'addressing') . "'></i></a>";
echo Search::showItem($output_type, "$ping_link ", $item_num, $row_num, "class='center'");
if (isset($params) && count($params) > 0) {
if (isset($params) && count($params) > 0 && $output_type == Search::HTML_OUTPUT) {
echo Ajax::createIframeModalWindow('ping' . $rand,
PLUGIN_ADDRESSING_WEBDIR . "/ajax/addressing.php?action=ping&ip=" . $params['ip'],
['title' => __s('IP ping', 'addressing'),
Expand Down Expand Up @@ -689,7 +689,7 @@ function updateFA$rand() {
$ping_link = "<a href=\"#\" data-bs-toggle='modal' data-bs-target='#ping$rand'>
<i class='fas fa-terminal fa-1x pointer' style='color: orange' title='" . __("IP ping", 'addressing') . "'></i></a>";
echo Search::showItem($output_type, "$ping_link ", $item_num, $row_num, "class='center'");
if (isset($params) && count($params) > 0) {
if (isset($params) && count($params) > 0 && $output_type == Search::HTML_OUTPUT) {
echo Ajax::createIframeModalWindow('ping' . $rand,
PLUGIN_ADDRESSING_WEBDIR . "/ajax/addressing.php?action=ping&ip=" . $params['ip'],
['title' => __s('IP ping', 'addressing'),
Expand All @@ -709,7 +709,7 @@ function updateFA$rand() {
$rand = mt_rand();
$reserv = "<a href=\"#\" data-bs-toggle='modal' data-bs-target='#reservation$rand'>
<i class='fas fa-clipboard fa-2x pointer' style='color: #d56f15' title='" . __("Reserve IP", 'addressing') . "'></i></a>";
if (isset($params) && count($params) > 0) {
if (isset($params) && count($params) > 0 && $output_type == Search::HTML_OUTPUT) {
echo Ajax::createIframeModalWindow('reservation'.$rand,
PLUGIN_ADDRESSING_WEBDIR . "/ajax/addressing.php?action=showForm&ip=" . $params['ip'] . "&id_addressing=" . $params['id_addressing'] . "&rand=" . $rand,
['title' => __s('IP reservation', 'addressing'),
Expand Down

0 comments on commit fc0901d

Please sign in to comment.