Esempio n. 1
0
function showmsg($msg)
{
    return nl2br(showtags($msg));
}
Esempio n. 2
0
        $rackmountable = $r['rackmountable'] == 1 ? "Y" : "N";
        if (is_numeric($r['switchid'])) {
            $sqlsw = "SELECT label,model, agents.title as agtitle from items,agents where agents.id=items.manufacturerid AND items.id={$r['switchid']}";
            $sthsw = db_execute($dbh, $sqlsw);
            $sw = $sthsw->fetchAll(PDO::FETCH_ASSOC);
            $sw = $sw[0];
            $switch = $r['switchid'] . "-" . $sw['label'] . ", " . $sw['agtitle'] . " " . $sw['model'];
        } else {
            $switch = "";
        }
        $ports = "";
        if ($r['ports']) {
            $ports = $r['ports'];
        }
        echo "\n<!-- expanded columns -->\n";
        echo "\n  <td><small>" . showtags("item", $r['id'], 0) . "</small></td>";
        echo "\n  <td><small>{$invinfo}</small></td>" . "\n  <td><small>{$softinfo}</small></td>";
        echo "\n  <td>" . $r['purchprice'] . "</td>";
        echo "\n  <td>" . $r['macs'] . "</td>";
        echo "\n  <td>" . $r['ipv4'] . "</td>";
        echo "\n  <td>" . $r['ipv6'] . "</td>";
        echo "\n  <td>" . $r['remadmip'] . "</td>";
        echo "\n  <td>" . $r['panelport'] . "</td>";
        echo "\n  <td>{$switch}</td>";
        echo "\n  <td>" . $r['switchport'] . "</td>";
        echo "\n  <td>{$ports}</td>";
    }
    //expand
    echo "\n</tr>\n";
}
$sth->closeCursor();
Esempio n. 3
0
    }
    echo $institems;
}
?>

      </div><!-- scrltblcontainer -->

    </td>


    <!-- tags -->
    <td class='tdtop' colspan=1>
      <h3>Tags <span title='Changes are saved immediately.<br>Removing tags removes associations not Tags. Use the "Tags" menu for that.' style='font-weight:normal;font-size:70%'>(<a class="edit-tags" href="">edit tags</a>)</span></h3>
      
      <?php 
echo showtags("item", $id);
?>
      <script>
	ajaxtagscript="php/tag2item_ajaxedit.php?id=<?php 
echo $id;
?>
";
	<?php 
require_once 'js/jquery.tag.front.js';
?>
      </script>
	      <br>
	      <div style='clear:both;height:20px;'></div>
	      <div style='font-style:italic' id='result'></div>
    </td>
Esempio n. 4
0
  </td>


  <td rowspan=1 class="tdtop"> <!-- related start -->
    <h3>Tags <span title='<?php 
te("Changes are saved immediately.<br>Removing tags removes associations not Tags. Use the Tags menu for that.");
?>
' style='font-weight:normal;font-size:70%'>(<a class="edit-tags" href=""><?php 
te("edit tags");
?>
</a>)</span></h3>



      <?php 
echo showtags("software", $id);
?>
      <script>
        ajaxtagscript="php/tag2software_ajaxedit.php?id=<?php 
echo $id;
?>
";
        <?php 
require_once 'js/jquery.tag.front.js';
?>
      </script>
              <br>
              <div style='clear:both;height:20px;'></div>
              <div style='font-style:italic' id='result'></div>

  </td>
Esempio n. 5
0
    echo $mendkey;
    ?>
"><?php 
    echo $mend;
    ?>
</td>
  <td><?php 
    echo $slicenseinfo;
    ?>
</td>
  <td><?php 
    echo $sinfo;
    ?>
</td> <!-- other info -->
  <td><small><?php 
    echo showtags("software", $r['id']);
    ?>
</small></td>
  <td <?php 
    echo $style;
    ?>
><?php 
    echo $licitems;
    ?>
/<?php 
    echo $licqty;
    ?>
</td>
  <td><?php 
    echo $vendor;
    ?>