plugins/SpecialPageFuncs.php
changeset 1244 ba80cfffb673
parent 1227 bdac73ed481e
child 1270 bd3ee7f12bc1
equal deleted inserted replaced
1243:db42b7c50e57 1244:ba80cfffb673
   321 			40,                  // results per page
   321 			40,                  // results per page
   322 			array( 'identifier' => 'PagelistingFormatter' ), // hooks
   322 			array( 'identifier' => 'PagelistingFormatter' ), // hooks
   323 			'<div class="tblholder">
   323 			'<div class="tblholder">
   324  				<table border="0" cellspacing="1" cellpadding="4">
   324  				<table border="0" cellspacing="1" cellpadding="4">
   325  					<tr>',          // print at start
   325  					<tr>',          // print at start
   326 			'    ' . $last_cell . '</tr>
   326 			'		' . $last_cell . '</tr>
   327  				</table>
   327  				</table>
   328  			</div>'             // print at end
   328  			</div>'             // print at end
   329  			);
   329  			);
   330 	
   330 	
   331 	echo $result;
   331 	echo $result;
   354 			echo '</tr><tr>';
   354 			echo '</tr><tr>';
   355 			$cclass = ( $cclass == 'row1' ) ? 'row3' : 'row1';
   355 			$cclass = ( $cclass == 'row1' ) ? 'row3' : 'row1';
   356 		}
   356 		}
   357 		echo '<td style="width: 50%;" class="' . $cclass . '">';
   357 		echo '<td style="width: 50%;" class="' . $cclass . '">';
   358 		echo '<a href="' . makeUrl($cdata['urlname']) . '">';
   358 		echo '<a href="' . makeUrl($cdata['urlname']) . '">';
   359 		echo htmlspecialchars($cdata['name']);
   359 		echo htmlspecialchars($lang->get($cdata['name']));
   360 		echo '</a>';
   360 		echo '</a>';
   361 		echo '</td>';
   361 		echo '</td>';
   362 	}
   362 	}
   363 	// close up the table if necessary
   363 	// close up the table if necessary
   364 	if ( $i % 2 > 0 )
   364 	if ( $i % 2 == 0 )
   365 	{
   365 	{
   366 		echo "<td class=\"$cclass\"></td>";
   366 		echo "<td class=\"$cclass\"></td>";
   367 	}
   367 	}
   368 	echo '</table></div>';
   368 	echo '</table></div>';
   369 	$template->footer();
   369 	$template->footer();