Lines Matching refs:item
116 function autoselect_color($item) { argument
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'; }
153 $item = array();
157 $item['u_bottom'] = $matches[1];
158 $item['u_size'] = $matches[2];
159 $item['model'] = preg_replace('/^"/','',preg_replace('/"$/','',$matches[3]));
160 $item['name'] = preg_replace('/^"/','',preg_replace('/"$/','',$matches[4]));
161 $item['color'] = $matches[5] ? $matches[5] : $this->autoselect_color($item);
162 $item['linktitle'] = '';
163 $item['link'] = substr($matches[6], 5);
164 if( '[' == substr($item['link'], 0, 1)) {
165 if(preg_match( '/^\[\[[^|]+\|([^]]+)]]$/', $item['link'], $titlematch )) {
166 $item['linktitle'] = ' title="'.hsc($titlematch[1]). '"';
168 $item['link']=wl(cleanID(preg_replace( '/^\[\[([^]|]+).*/', '$1', $item['link'] )));
170 $item['comment'] = $matches[7];
171 $item['u_top'] = $item['u_bottom'] + ($opt['descending']?-1:1)*($item['u_size'] - 1);
172 $items[$item['u_top']] = $item;
173 …$csv .= "\"$item[model]\",\"$item[name]\",$opt[name],$item[u_bottom],$item[u_size],\"$item[comment…
190 $item = $items[$u];
193 …"<td class='item' rowspan='$item[u_size]' style='background-color: $item[color];' title=\"".htmlsp…
194 ($item['link'] ? '<a href="'.$item['link'].'"'.$item['linktitle'].'>' : '').
196 "$item[model]" .
197 ($item['comment'] ? ' *' : '').
199 "<div style='float: right; margin-left: 3em; '>$item[name]".
201 ($item['link'] ? '</a>' : '').
203 for ($d = 1; $d < $item['u_size']; $d++) {