📄 searchboxtemplate.tmpl
字号:
#encoding UTF-8## $Id: SearchBoxTemplate.tmpl 3809 2007-01-19 14:16:23Z jodal $## Contains a template function for displaying a SearchBox object## ## Copyright 2003, 2004 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###### Author: Hans J鴕gen Hoel <hansjorg@orakel.ntnu.no>###def searchbox($s)#if $s.form <form name="$s.formCname" method="$s.method"><p>#end if <table title="$s.help" style="border: 1px solid #666; background-image:url('/images/form/fill-active.gif');"> <tr> <th colspan="3" style="text-align: left;"> $s.title </tr>#if $s.error <tr> <td colspan="3"><span style="color: #f00;font-size: 10">$s.error</span></td> </tr>#end if#if $s.result <tr> <td colspan="3"><span style="color: #090;font-size: 10">$s.result</span></td> </tr>#end if <tr> <td><select name="$s.typeCname">#for $sid,$options in $s.searches.items()#if $s.selected == $sid <option selected value="$sid">$options[0]</option>#else <option value="$sid">$options[0]</option>#end if#end for </select></td> <td><input size="$s.inputSize" type="text" name="$s.inputCname"></td> <td><input type="submit" name="$s.submitCname" value="$s.submitText"></td> </tr> </table> </p>#if $s.form </form>#end if#end def
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -