Menu

#388 copy and paste address entries (like ipplan could)

Next_Release
open
nobody
None
1
2016-09-07
2016-09-07
Anonymous
No

Since I liked they way to copy and paste IP entries in IPPlan, I transfered this to phpIPAM.

Maybe you can implement it to official tree.

File to modify:

phpipam/app/subnets/addresses/address-modify.php

Add two lines to footer (creates 'buttons'):

<!-- footer -->
<div class="pFooter">
      + <a href='#'onclick='var php = new PHP_Serializer(); setCookie("CopyPasteContent", php.serialize(getElements("editipaddress"))); return false;'>Copy</a>
       + <a href='#'onclick='var php = new PHP_Serializer(); setElements(php.unserialize(getCookie("CopyPasteContent")),"editipaddress"); return false;'>Paste</a>
        <div class="btn-group">

phpipam/index.php

Add three lines JavaScript includes and copy javascript modules from IPPlan-Root-Folder into phpIPAM javascript directory

   <script type="text/javascript" src="js/1.2/gmaps.js"></script>
   + <script type="text/javascript" src="js/cookies.js"></script>
   + <script type="text/javascript" src="js/ipplanlib.js"></script>
   + <script type="text/javascript" src="js/phpserializer.js"></script>

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.