Location: PHPKode > projects > NedEngine > nedengine-0.4/includes/applets/adminmodule.inc.php
<table border='0' cellspacing='1' cellpadding='0' class='appletwidth'>
	<tr><td class='applettitle'><? echo _LANG_MODULES_; ?></td></tr>
	<tr><td class='appletcontent'>
			<table border='0' cellspacing='0' cellpadding='0' width='100%'>
<?php
if ($session->status==3) { $query = "SELECT * FROM ne_module ORDER BY name"; }
else {
$query = "SELECT nmod.name
          FROM 	 ne_module AS nmod
	  ,	 ne_member AS nmem
	  ,	 ne_group  AS ngrp
	  WHERE  ngrp.mod_id   = nmod.mod_id
	  AND	 nmem.group_id = ngrp.group_id
	  AND    nmem.user_id  =". $session->user_id ."
	  ORDER BY name";
}
$result = $db->query ($query);

if ($result) {
	while ($row = $db->fetch_array ($result)) {
		$title = $row['name'];
		$title[0] = strtoupper (substr ($title, 0, 1));
		echo "				<tr><td class='appletentry'> <b>&middot;</b> <a href='" . $config->site_url . "modules/" . $row['name'] . "/admin/index.php'>$title</a></td></tr>\n";
	}
}
?>
			</table>
		</td>
	</tr>
</table>
Return current item: NedEngine