echo "<div class='adminRightHeader'>General Subject</div>";
if (count($generalSubjectArray) > 0) {
    ?>
			<table class='linedDataTable'>
				<tr>
				<th style='width:100%;'>Value</th>
				<th style='width:20px;'>&nbsp;</th>
				<th style='width:20px;'>&nbsp;</th>
				</tr>
				<?php 
    foreach ($generalSubjectArray as $instance) {
        echo "<tr>";
        echo "<td>" . $instance['shortName'] . "</td>";
        echo "<td><a href='ajax_forms.php?action=getGeneralSubjectUpdateForm&className=" . "GeneralSubject" . "&updateID=" . $instance[lcfirst("GeneralSubject") . 'ID'] . "&height=128&width=260&modal=true' class='thickbox'><img src='images/edit.gif' alt='edit' title='edit'></a></td>";
        $generalSubject = new GeneralSubject();
        if ($generalSubject->inUse($instance[lcfirst("GeneralSubject") . 'ID']) == 0) {
            echo "<td><a href='javascript:deleteGeneralSubject(\"GeneralSubject\", " . $instance[lcfirst("GeneralSubject") . 'ID'] . ");'><img src='images/cross.gif' alt='" . _("remove") . "' title='" . _("remove") . "'></a></td>";
        } else {
            echo "<td><img src='images/do_not_enter.png' alt='" . _("subject in use") . "' title='" . _("subject in use") . "' /></td>";
        }
        echo "</tr>";
    }
    ?>
			</table>
			<?php 
} else {
    echo _("(none found)") . "<br />";
}
echo "<a href='ajax_forms.php?action=getGeneralSubjectUpdateForm&className=" . "GeneralSubject" . "&updateID=&height=145&width=260&modal=true' class='thickbox'>" . _("add new ") . strtolower(preg_replace("/[A-Z]/", " \\0", lcfirst("GeneralSubject"))) . "</a>";
?>