Lines Matching +full:d +full:- +full:link
9 * descending Indicates that the rack is numbered top-to-bottom
12 * <u_bottom> <u_size> <model> [name] [#color] [link:<URL>] [comment]
15 * - <u_bottom>: The starting (bottom-most) U of the equipment.
16 * - <u_size>: The height of the equipment in U.
17 * - <model>: The model name or other description of the item (e.g.
19 * - [name]: Optional. The hostname or other designator of this specific item
22 * - [#color]: Optional. The color of the item is normally automatically
25 * - [link:http://url]: Optional. The model name will now link to the url given.
26 * - [comment]: Optional. After the name (and possibly color), and remaining
27 * text on the line is treated as free-form comment. Comments are visible
37 * Modded for links usage by Sylvain Bigonneau <s.bigonneau@moka-works.com>
38 * Improved link syntax contributed by Dokuwiki user "schplurtz".
81 $this->Lexer->addSpecialPattern("<rack[^>]*>.*?(?:<\/rack>)",$mode,'plugin_rack');
89 $match = substr($match,5,-7);
107 } elseif (preg_match("/^height=(\d+)/",$o,$matches)) {
120 …if (preg_match('/netapp|fas\d/i', $item['model'])) { $color = '#0…
144 $renderer->cdata('No data found');
155 … Name? Color? Link? Comm…
156 …f (preg_match('/^\s* (\d+) \s+ (\d+) \s+ ((?:"[^"]*")|\S+) \s* ((?:"[^"]*")|(?!(?:(?:\#)|(?:link:)…
161 $item['color'] = $matches[5] ? $matches[5] : $this->autoselect_color($item);
163 $item['link'] = substr($matches[6], 5);
164 if( '[' == substr($item['link'], 0, 1)) {
165 if(preg_match( '/^\[\[[^|]+\|([^]]+)]]$/', $item['link'], $titlematch )) {
168 $item['link']=wl(cleanID(preg_replace( '/^\[\[([^]|]+).*/', '$1', $item['link'] )));
171 $item['u_top'] = $item['u_bottom'] + ($opt['descending']?-1:1)*($item['u_size'] - 1);
175 #$renderer->doc .= "Syntax error on the following line: <pre style='color:red'>$line</pre>\n";
176 …$renderer->doc .= 'Syntax error on the following line: <pre style="color:red">'.hsc($line)."</pre>…
180 #$renderer->doc .= "<pre>ALL\n".print_r($items,true)."</pre>";
184 $u_delta = $opt['descending'] ? +1 : -1;
185 $renderer->doc .= "<table class='rack'><tr><th colspan='2' class='title'>$opt[name]</th></tr>\n";
186 #for ($u=$opt['height']; $u>=1; $u--) {
191 $renderer->doc .=
193 …"<td class='item' rowspan='$item[u_size]' style='background-color: $item[color];' title=\"".htmlsp…
194 ($item['link'] ? '<a href="'.$item['link'].'"'.$item['linktitle'].'>' : '').
195 "<div style='float: left; font-weight:bold;'>".
199 "<div style='float: right; margin-left: 3em; '>$item[name]".
201 ($item['link'] ? '</a>' : '').
203 for ($d = 1; $d < $item['u_size']; $d++) {
205 $renderer->doc .= "<tr><th>$u</th></tr>\n";
208 $renderer->doc .= "<Tr><Th>$u</th><td class='empty'></td></tr>\n";
212 …$renderer->doc .= "<tr><th colspan='2' class='bottom'><span style='cursor: pointer;' onclick=\"thi…
213 $renderer->doc .= "</table> ";
216 # since IE is too dumb to have heard of the "inline-table" mode.
217 $renderer->doc .= "<script type='text/javascript'>rack_ie6fix();</script>\n";
219 $renderer->doc .= "<pre style='display:none;' id='$csv_id'>$csv</pre>\n";