⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 selecttreetemplate.tmpl

📁 监控大型网络的软件。能够自动发现拓扑结构
💻 TMPL
字号:
#encoding UTF-8#### $Id: selectTreeTemplate.tmpl 3809 2007-01-19 14:16:23Z jodal $#### 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###### Authors: Hans J鴕gen Hoel <hansjorg@orakel.ntnu.no>###def renderLayoutBox($layoutBox)#set $htmlId = ''#if $layoutBox.htmlId#set $htmlId = $layoutBox.htmlId#end if<table id="$htmlId" cellspacing="10">#if $layoutBox.showTitles    <tr>#if $layoutBox.showTitles#for $select in $layoutBox.selectList        <th align="left">$select.title</th>#end for#end if    </tr>#end if    <tr>#for $select in $layoutBox.selectList        <td style="height: 100%;">#set $show = False#if len($select.options)#set $show = True#end if#if $layoutBox.showEmptySelects#set $show = True#end if#if $show$renderSelect($layoutBox, $select)#elif $layoutBox.showHelpTexts<div style="border: solid 2px; padding: 5px;">$layoutBox.emptySelectText $select.prevSelect.title</div>#end if        </td>#end for    </tr></table>#end def#def renderSelect($layoutBox,$select)#set $style = ''#if $layoutBox.minimumSelectWidth#set $style += 'min-width: ' + str($layoutBox.minimumSelectWidth) + 'em;'#end if#if $layoutBox.exactSelectWidth#set $width = str($select.maxOptionTextLength)#set $style += 'width: ' + $width + 'em;'#end if#set $attribs = ''#if $select.selectMultiple#set $attribs += 'multiple '#end if#if $select.multipleHeight#set $height = str($select.multipleHeight)#set $attribs += 'size="' + $height + '" '#end if#if $select.setOnChange#set $attribs += 'onchange="' + $select.onChange + '" '#end if#set $disabled = ''#if $select.disabled#set $disabled = 'disabled="disabled"'#end if<select $disabled id="$select.controlName" name="$select.controlName" $attribs style="$style">#if len($select.options) == 0## dummy option to force some browsers to render empty selects    <option disabled value=""></option>#end if#for $option in $select.options#if $option.optgroup    <optgroup label="$option.text">#elif $option.optgroupEnd    </optgroup>#else#set $selected = ''#if $option.selected#set $selected = 'selected="selected"'#end if        <option $selected value="$option.value">$option.text</option>#end if#end for</select>#end def

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -