Changeset 511 for branches/htmlform/templates
- Timestamp:
- 09/27/12 18:13:16 (12 years ago)
- Location:
- branches/htmlform/templates
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/htmlform/templates/addmaster.tmpl
r472 r511 1 1 <div class="indent"> 2 2 <div class="heading">Add new master IP block</div><br> 3 <form method="POST" action=" /ip/cgi-bin/main.cgi">3 <form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi"> 4 4 <fieldset><legend></legend> 5 5 <table class="regular" cellspacing="1" cellpadding="1"> -
branches/htmlform/templates/admin/aclerr.tmpl
r483 r511 3 3 <head> 4 4 <title>Access denied</title> 5 <link rel="stylesheet" type="text/css" href=" /ip/ipdb.css">6 <link rel="stylesheet" type="text/css" href=" /ip/local.css">5 <link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME=webpath>/ipdb.css"> 6 <link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME=webpath>/local.css"> 7 7 </head> 8 8 <body> -
branches/htmlform/templates/admin/alloc.tmpl
r489 r511 27 27 <TMPL_LOOP NAME=citylist><option><TMPL_VAR NAME=city></option> 28 28 </TMPL_LOOP></select> 29 <a href="javascript:popNotes(' /ip/cgi-bin/newcity.cgi')">Add new location</a>29 <a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newcity.cgi')">Add new location</a> 30 30 </td> 31 31 </tr> -
branches/htmlform/templates/admin/header.tmpl
r487 r511 3 3 <head> 4 4 <title>[IPDB admin tools]</title> 5 <link rel="stylesheet" type="text/css" href=" /ip/ipdb.css">6 <link rel="stylesheet" type="text/css" href=" /ip/local.css">7 <script src=" /ip/templates/widgets.js" type="text/javascript"></script>5 <link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME=webpath>/ipdb.css"> 6 <link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME=webpath>/local.css"> 7 <script src="<TMPL_VAR NAME=webpath>/templates/widgets.js" type="text/javascript"></script> 8 8 </head> 9 9 <body> … … 12 12 <div> 13 13 14 <TMPL_UNLESS mainpage><a href=" /ip/cgi-bin/admin.cgi">Back</a> to main<hr></TMPL_UNLESS>14 <TMPL_UNLESS mainpage><a href="<TMPL_VAR NAME=webpath>/cgi-bin/admin.cgi">Back</a> to main<hr></TMPL_UNLESS> 15 15 -
branches/htmlform/templates/assign.tmpl
r463 r511 27 27 <option><TMPL_VAR NAME=city></option></TMPL_LOOP> 28 28 </select> 29 <a href="javascript:popNotes(' /ip/cgi-bin/newcity.cgi')">Add new location</a>29 <a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newcity.cgi')">Add new location</a> 30 30 </td> 31 31 </tr> … … 66 66 <option value="<TMPL_VAR NAME=nid>"><TMPL_VAR NAME=nname></option></TMPL_LOOP> 67 67 </select> 68 <a href="javascript:popNotes(' /ip/cgi-bin/newnode.cgi')">Add new location</a>68 <a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newnode.cgi')">Add new location</a> 69 69 </td> 70 70 </tr> -
branches/htmlform/templates/footer.tmpl
r464 r511 1 1 <br> 2 <TMPL_IF adminlink><div id="adminlink"><a href=" /ip/cgi-bin/admin.cgi">Admin tools</a></div></TMPL_IF>2 <TMPL_IF adminlink><div id="adminlink"><a href="<TMPL_VAR NAME=webpath>/cgi-bin/admin.cgi">Admin tools</a></div></TMPL_IF> 3 3 <!-- Done with the main div opened in the header template --> 4 4 </div> -
branches/htmlform/templates/header.tmpl
r458 r511 8 8 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 9 9 <title>[IP Database v<TMPL_VAR NAME=version>]</title> 10 <link rel="stylesheet" type="text/css" href=" /ip/ipdb.css">11 <link rel="stylesheet" type="text/css" href=" /ip/local.css">12 <script src=" /ip/templates/widgets.js" type="text/javascript"></script>10 <link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME=webpath>/ipdb.css"> 11 <link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME=webpath>/local.css"> 12 <script src="<TMPL_VAR NAME=webpath>/templates/widgets.js" type="text/javascript"></script> 13 13 </head> 14 14 … … 17 17 <div id="bodyheader"> 18 18 <div id="hlogo"> 19 <a href=" /ip/index.shtml"><img src="/ip/images/logo.png" style="border:0;" alt="[ Logo ]"></a>19 <a href="<TMPL_VAR NAME=webpath>/index.shtml"><img src="<TMPL_VAR NAME=webpath>/images/logo.png" style="border:0;" alt="[ Logo ]"></a> 20 20 </div> 21 21 <div id="homelink"> 22 <a href=" /ip/index.shtml">[IP Database v<TMPL_VAR NAME=version> Home]</a>22 <a href="<TMPL_VAR NAME=webpath>/index.shtml">[IP Database v<TMPL_VAR NAME=version> Home]</a> 23 23 </div> 24 24 </div> … … 26 26 <div id="subheader"> 27 27 <div id="qsearch"> 28 <form method="post" action=" /ip/cgi-bin/search.cgi">28 <form method="post" action="<TMPL_VAR NAME=webpath>/cgi-bin/search.cgi"> 29 29 <fieldset><legend></legend> 30 30 Quick Search: … … 34 34 <input type="submit" value="Go!" class="heading"> 35 35 <input type="button" value=" Help? " onclick="openHelp()" class="regular"> 36 <a href=" /ip/cgi-bin/search.cgi">Complex Search</a>36 <a href="<TMPL_VAR NAME=webpath>/cgi-bin/search.cgi">Complex Search</a> 37 37 </fieldset> 38 38 </form> 39 39 </div> 40 40 <TMPL_IF addperm> 41 <div id="newlink"><a href=" /ip/cgi-bin/main.cgi?action=assign">Add new assignment</a></div>41 <div id="newlink"><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=assign">Add new assignment</a></div> 42 42 </TMPL_IF> 43 43 </div> … … 45 45 <div id="main"> 46 46 <div id="utils"> 47 <a href=" /ip/cgi-bin/main.cgi?action=nodesearch">Find by connection point</a>47 <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=nodesearch">Find by connection point</a> 48 48 </div> -
branches/htmlform/templates/index.tmpl
r478 r511 11 11 <TMPL_LOOP NAME=masterlist> 12 12 <tr class="row<TMPL_VAR name=rowclass>"> 13 <td><a href=" /ip/cgi-bin/main.cgi?action=showmaster&block=<TMPL_VAR NAME=master>"><TMPL_VAR NAME=master></a></td>13 <td><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showmaster&block=<TMPL_VAR NAME=master>"><TMPL_VAR NAME=master></a></td> 14 14 <td><TMPL_VAR NAME=routed></td> 15 15 <td><TMPL_VAR NAME=allocated></td> … … 20 20 </table> 21 21 <TMPL_IF addmaster> 22 <a href=" /ip/cgi-bin/main.cgi?action=addmaster">Add new master block</a>22 <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=addmaster">Add new master block</a> 23 23 </TMPL_IF> 24 24 <br><br> -
branches/htmlform/templates/listpool.tmpl
r471 r511 28 28 <TMPL_LOOP name=poolips> 29 29 <tr class="row<TMPL_VAR NAME=rowclass>"> 30 <td><a href=" /ip/cgi-bin/main.cgi?action=edit&block=<TMPL_VAR NAME=ip>"><TMPL_VAR NAME=ip></a></td>30 <td><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&block=<TMPL_VAR NAME=ip>"><TMPL_VAR NAME=ip></a></td> 31 31 <td><TMPL_VAR NAME=custid></td> 32 32 <td><TMPL_VAR NAME=available></td> 33 33 <td><TMPL_VAR NAME=desc></td> 34 34 <TMPL_IF maydel><td><TMPL_IF delme> 35 <a href=" /ip/cgi-bin/main.cgi?action=delete&block=<TMPL_VAR NAME=ip>&alloctype=<TMPL_VAR NAME=type>">Unassign this IP</a>35 <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=delete&block=<TMPL_VAR NAME=ip>&alloctype=<TMPL_VAR NAME=type>">Unassign this IP</a> 36 36 </TMPL_IF></td></TMPL_IF> 37 37 </tr> -
branches/htmlform/templates/newcity.tmpl
r459 r511 3 3 <head> 4 4 <title>IP Database - Add new city</title> 5 <link rel="stylesheet" type="text/css" href=" /ip/ipdb.css">6 <link rel="stylesheet" type="text/css" href=" /ip/local.css">7 <script src=" /ip/templates/widgets.js" type="text/javascript"></script>5 <link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME=webpath>/ipdb.css"> 6 <link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME=webpath>/local.css"> 7 <script src="<TMPL_VAR NAME=webpath>/templates/widgets.js" type="text/javascript"></script> 8 8 </head> 9 9 -
branches/htmlform/templates/newnode.tmpl
r460 r511 3 3 <head> 4 4 <title>IP Database - Add new tower/demarc switch</title> 5 <link rel="stylesheet" type="text/css" href=" /ip/ipdb.css">6 <link rel="stylesheet" type="text/css" href=" /ip/local.css">7 <script src=" /ip/templates/widgets.js" type="text/javascript"></script>5 <link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME=webpath>/ipdb.css"> 6 <link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME=webpath>/local.css"> 7 <script src="<TMPL_VAR NAME=webpath>/templates/widgets.js" type="text/javascript"></script> 8 8 </head> 9 9 -
branches/htmlform/templates/nodesearch.tmpl
r494 r511 4 4 <TMPL_ELSE> 5 5 <div class="heading">Switch/tower search</div> 6 <form action=" /ip/cgi-bin/search.cgi" method=POST>6 <form action="<TMPL_VAR NAME=webpath>/cgi-bin/search.cgi" method=POST> 7 7 <fieldset><legend></legend> 8 8 <table cellspacing="1" cellpadding="2"> -
branches/htmlform/templates/search/compsearch.tmpl
r482 r511 2 2 <div class="heading">Complex Search</div> 3 3 4 <form action=" /ip/cgi-bin/search.cgi" method=POST>4 <form action="<TMPL_VAR NAME=webpath>/cgi-bin/search.cgi" method=POST> 5 5 <fieldset><legend></legend> 6 6 <input type="hidden" name="stype" value="c"> -
branches/htmlform/templates/search/sresults.tmpl
r500 r511 17 17 <TMPL_LOOP NAME=sresults> 18 18 <tr class="row<TMPL_VAR NAME=rowclass>"> 19 <td><TMPL_IF issub>Sub </TMPL_IF><a href=" /ip/cgi-bin/main.cgi?action=edit&block=<TMPL_VAR NAME=block>"><TMPL_VAR NAME=block></a><TMPL_IF ispool> <a href="/ip/cgi-bin/main.cgi?action=listpool&pool=<TMPL_VAR NAME=block>">List IPs</a></TMPL_IF></td>19 <td><TMPL_IF issub>Sub </TMPL_IF><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&block=<TMPL_VAR NAME=block>"><TMPL_VAR NAME=block></a><TMPL_IF ispool> <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&pool=<TMPL_VAR NAME=block>">List IPs</a></TMPL_IF></td> 20 20 <td><TMPL_VAR NAME=custid></td> 21 21 <td><TMPL_VAR NAME=disptype></td> … … 31 31 <TMPL_IF multipage> 32 32 <div class="center">Page: 33 <TMPL_LOOP NAME=pgnums><TMPL_IF thispage><b><TMPL_VAR NAME=pgnum> </b><TMPL_ELSE><a href=" /ip/cgi-bin/search.cgi?page=<TMPL_VAR NAME=pgnum>&stype=<TMPL_VAR NAME=stype>&<TMPL_VAR NAME=extraopts>"><TMPL_VAR NAME=pgnum></a> </TMPL_IF>33 <TMPL_LOOP NAME=pgnums><TMPL_IF thispage><b><TMPL_VAR NAME=pgnum> </b><TMPL_ELSE><a href="<TMPL_VAR NAME=webpath>/cgi-bin/search.cgi?page=<TMPL_VAR NAME=pgnum>&stype=<TMPL_VAR NAME=stype>&<TMPL_VAR NAME=extraopts>"><TMPL_VAR NAME=pgnum></a> </TMPL_IF> 34 34 </TMPL_LOOP> 35 35 </div> -
branches/htmlform/templates/showmaster.tmpl
r474 r511 14 14 <TMPL_LOOP NAME=routedlist> 15 15 <tr class="row<TMPL_VAR NAME=rowclass>"> 16 <td><a href=" /ip/cgi-bin/main.cgi?action=showrouted&block=<TMPL_VAR NAME=block>"><TMPL_VAR NAME=block></a></td>16 <td><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showrouted&block=<TMPL_VAR NAME=block>"><TMPL_VAR NAME=block></a></td> 17 17 <td><TMPL_VAR NAME=city></td> 18 18 <td><TMPL_VAR NAME=nsubs></td> … … 27 27 <TMPL_IF delmaster> 28 28 <br> 29 <form action=" /ip/cgi-bin/main.cgi" method=POST>29 <form action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi" method=POST> 30 30 <fieldset><legend></legend> 31 31 <input type=hidden name=action value="delete"> -
branches/htmlform/templates/showrouted.tmpl
r474 r511 17 17 <tr class="row<TMPL_VAR NAME=rowclass>"> 18 18 <td> 19 <TMPL_IF subblock>Sub </TMPL_IF><a href=" /ip/cgi-bin/main.cgi?action=edit&block=<TMPL_VAR NAME=block>"><TMPL_VAR NAME=block></a>20 <TMPL_IF listpool> <a href=" /ip/cgi-bin/main.cgi?action=listpool&pool=<TMPL_VAR NAME=block>">List IPs</a></TMPL_IF>19 <TMPL_IF subblock>Sub </TMPL_IF><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&block=<TMPL_VAR NAME=block>"><TMPL_VAR NAME=block></a> 20 <TMPL_IF listpool> <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&pool=<TMPL_VAR NAME=block>">List IPs</a></TMPL_IF> 21 21 </td> 22 22 <td><TMPL_VAR NAME=city></td> … … 33 33 <TMPL_IF delrouted> 34 34 <br> 35 <form action=" /ip/cgi-bin/main.cgi" method=POST>35 <form action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi" method=POST> 36 36 <fieldset><legend></legend> 37 37 <input type=hidden name=action value="delete"> … … 59 59 <TMPL_LOOP name=unassigned> 60 60 <tr class="row<TMPL_VAR NAME=rowclass>"> 61 <td><TMPL_IF subblock>Sub </TMPL_IF><a href=" /ip/cgi-bin/main.cgi?action=assign&block=<TMPL_VAR NAME=fblock>&fbtype=<TMPL_VAR NAME=fbtype>"><TMPL_VAR NAME=fblock></a></td>61 <td><TMPL_IF subblock>Sub </TMPL_IF><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=assign&block=<TMPL_VAR NAME=fblock>&fbtype=<TMPL_VAR NAME=fbtype>"><TMPL_VAR NAME=fblock></a></td> 62 62 <td><TMPL_VAR NAME=frange></td> 63 63 </tr> -
branches/htmlform/templates/subnet-calc.tmpl
r499 r511 3 3 <head> 4 4 <title>IP Database - Subnet Calculator</title> 5 <link rel="stylesheet" type="text/css" href=" /ip/ipdb.css">6 <link rel="stylesheet" type="text/css" href=" /ip/local.css">5 <link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME=webpath>/ipdb.css"> 6 <link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME=webpath>/local.css"> 7 7 8 8 </head> -
branches/htmlform/templates/update.tmpl
r505 r511 65 65 <br> 66 66 <div class="backlink"> 67 <a href=" /ip/cgi-bin/main.cgi?action=<TMPL_IF backpool>listpool&pool=<TMPL_ELSE>showrouted&block=</TMPL_IF><TMPL_VAR NAME=backblock>">Back to <TMPL_VAR NAME=backblock></a>67 <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=<TMPL_IF backpool>listpool&pool=<TMPL_ELSE>showrouted&block=</TMPL_IF><TMPL_VAR NAME=backblock>">Back to <TMPL_VAR NAME=backblock></a> 68 68 </div> 69 69 </TMPL_IF> -
branches/htmlform/templates/widgets.js
r459 r511 1 function webPath() { 2 var mypath = ""; 3 var pathbits = window.location.pathname.split( '/' ); 4 for ( i = 0; i <= pathbits.length-2; i++ ) { 5 mypath += pathbits[i]; 6 mypath += "/"; 7 } 8 return mypath; 9 } 10 1 11 function openHelp() { 2 window.open( "/ip/help.html", "help_window", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=400")12 window.open(webPath() + "help.html", "help_window", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=400") 3 13 } 4 14 function openTables() { 5 window.open( "/ip/tables.html", "subnet_tables", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=250")15 window.open(webPath() + "tables.html", "subnet_tables", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=250") 6 16 } 7 17 function helpAllocTypes() { 8 window.open( "/ip/alloctypes.html", "alloc_window", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=750,height=550")18 window.open(webPath() + "alloctypes.html", "alloc_window", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=750,height=550") 9 19 } 10 20 function popNotes(page) {
Note:
See TracChangeset
for help on using the changeset viewer.