Code Duplication    Length = 3-4 lines in 3 locations

class/ajax/ajax-sel-div.php 3 locations

@@ 175-177 (lines=3) @@
172
			';
173
174
		// Data table title
175
		if (!empty($this->aCfg['list-col']))
176
			foreach ($this->aCfg['list-col'] as $k => $v)
177
				$s_html .= '<th>' . $v . '</th>' . "\n";
178
		$s_html .= '<th>' . $this->aCfg['sel-title'] . '</th>' . "\n";
179
180
		$s_html .= '
@@ 188-191 (lines=4) @@
185
			';
186
187
		// Data table rows
188
		if (!empty($this->aCfg['list-col']))
189
			foreach ($this->aCfg['list-col'] as $k => $v)
190
				$s_html .= '<td class=\'' . $s_id . '_col_'
191
					. $k . '\'></td>' . "\n";
192
		$s_html .= '<td class=\'' . $s_id . '_col_'
193
			. $this->aCfg['sel-id'] . '\'>' . "\n";
194
		// Put hidden input here
@@ 195-198 (lines=4) @@
192
		$s_html .= '<td class=\'' . $s_id . '_col_'
193
			. $this->aCfg['sel-id'] . '\'>' . "\n";
194
		// Put hidden input here
195
		if (!empty($this->aCfg['list-hidden']))
196
			foreach ($this->aCfg['list-hidden'] as $k)
197
				$s_html .= '<input type=\'hidden\' class=\''
198
					. $s_id . '_col_' . $k . '\' />' . "\n";
199
200
		// Assign onclick using js, avoid lost event when cloning in IE.
201
		$s_html .= '