Lines Matching +full:s +full:- +full:color
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
24 * #RRGGBB HTML color after the model/name.
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>
81 $this->Lexer->addSpecialPattern("<rack[^>]*>.*?(?:<\/rack>)",$mode,'plugin_rack');
89 $match = substr($match,5,-7);
117 $color = '#888';
118 …if (preg_match('/(wire|cable)\s*guide|pdu|patch|term server|lcd/i',$item['model'])) { $color = '#b…
119 …if (preg_match('/blank/i', $item['model'])) { $color = '#f…
120 …if (preg_match('/netapp|fas\d/i', $item['model'])) { $color = '#0…
121 …if (preg_match('/^Sh(elf)?\s/i', $item['model'])) { $color = '#0…
122 …if (preg_match('/cisco|catalyst|nexus/i', $item['model'])) { $color = '#F…
123 …if (preg_match('/brocade|mds/i', $item['model'])) { $color = '#8…
124 …if (preg_match('/ucs/i', $item['model'])) { $color = '#c…
125 …if (preg_match('/ibm/i', $item['model'])) { $color = '#6…
126 …if (preg_match('/hp/i', $item['model'])) { $color = '#A…
127 if (!$item['model']) { $color = '#FFF'; }
128 return $color;
141 $content = preg_replace("/^\s*[\r\n]*/","",$content);
144 $renderer->cdata('No data found');
154 if (preg_match("/^\s*#/",$line) || !trim($line)) { continue; } # skip comments & blanks
155 …odel Name? Color? Link? …
156 …s* (\d+) \s+ (\d+) \s+ ((?:"[^"]*")|\S+) \s* ((?:"[^"]*")|(?!(?:(?:\#)|(?:link:)))\S*)? \s* (\#\w+…
161 $item['color'] = $matches[5] ? $matches[5] : $this->autoselect_color($item);
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…
195 "<div style='float: left; font-weight:bold;'>".
199 "<div style='float: right; margin-left: 3em; '>$item[name]".
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";