?? changelinktemplate.tmpl
字號:
#encoding UTF-8## $Id: ChangeLinkTemplate.tmpl 3809 2007-01-19 14:16:23Z jodal $#### Copyright 2003 Norwegian University of Science and Technology#### This file is part of Network Administration Visualized (NAV)#### NAV is free software; you can redistribute it and/or modify## it under the terms of the GNU General Public License as published by## the Free Software Foundation; either version 2 of the License, or## (at your option) any later version.#### NAV is distributed in the hope that it will be useful,## but WITHOUT ANY WARRANTY; without even the implied warranty of## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the## GNU General Public License for more details.#### You should have received a copy of the GNU General Public License## along with NAV; if not, write to the Free Software## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA###### Authors: Magnar Sveen <magnars@stud.ntnu.no>###attr $type = "personal"<html> <head> <style type="text/css"> BODY { font-family: verdana, arial, helvetica, sans-serif; background-color: white; } table.header-active { font-size: 15px; border: 1px solid #666; background-color: #ccf; background-image: url('/images/form/fill-active.gif'); p: 5px } td.header-active { border: 1px solid #69c; text-align: center; } table.options { font-size: 13px; border: 1px solid #666; background-color: #fff; } table.header-inactive { font-size: 15px; border: 1px solid #666; background-color: #eee; background-image: url('/images/form/fill-inactive.gif'); } td.header-inactive { border: 1px solid #bcd; text-align: center; } tr.inactive { background-color: #fff; } td.inactive { border: 1px solid #ccc; text-align: center } </style> <script language="JavaScript" type="text/javascript"> <!-- BEGIN function testURL() { var url=document.getElementById("url").value; var popup = window.open(url,"","width=400,height=500,toolbar,location,directories,status,scrollbars,menubar,resizable,"); if (!popup.focus) { alert("This function does not work with popups disabled."); } } // END --> </script> </head> <body> <div style="position: absolute; width=300; left: 50%; top: 20%; margin: 0px 0px 0px -150px;">#if $link <form method="post" action="updatelink">#else <form method="post" action="savenewlink">#end if <table width="300" cellspacing="5" cellpadding="0" border="0"> <tr> <td> <table width="100%" height="50" cellspacing="5" cellpadding="5" border="0" class="header-active"> <tr> <td nowrap class="header-active">#if $link Edit $type link#else Add $type link#end if </td> </tr> </table> </td> </tr> <tr> <td> <table width="100%" height="50" cellspacing="5" cellpadding="5" border="0" class="options"> <tr class="inactive"> <td nowrap class="inactive" width="30%"> Name </td> <td nowrap class="inactive" width="70%">#if $link <input name="name" type="text" style="width: 90%; border: 1px solid #999;" value="$link.name">#else <input name="name" type="text" style="width: 90%; border: 1px solid #999;">#end if </td> </tr> <tr class="inactive"> <td nowrap class="inactive" width="30%"> URL </td> <td nowrap class="inactive" width="70%">#if $link <input name="url" id="url" value="$link.uri" type=text style="width: 90%; border: 1px solid #999;">#else <input name="url" id="url" value="http://" type=text style="width: 90%; border: 1px solid #999;">#end if </td> </tr>#if not $link <tr class="inactive"> <td nowrap class="inactive" width="30%"> Use in </td> <td nowrap class="inactive" width="70%"> <select name="usein" style="width: 90%;"> <option>None</a> <option value="navbar">Navbar</a> <option value="qlink1">Quicklink #1</a> <option value="qlink2">Quicklink #2</a> </select> </td> </tr>#end if </table> </td> </tr> <tr> <td> <table width="100%" height="50" cellspacing="5" cellpadding="5" border="0" class="header-inactive"> <tr> <td nowrap class="header-inactive"> <input type="button" value="Cancel" onclick="top.location='javascript:history.back(1)'"> </td> <td nowrap class="header-inactive"> <input type="button" value="Test URL" onClick="testURL();"> </td> <td nowrap class="header-inactive">#if $link <input type="hidden" name="id" value="$link.id"> <input type="submit" value=" Save ">#else <input type="submit" value=" Add ">#end if </td> </tr> </table> </td> </tr> </table> </form> </div> </body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -