<div id="edit_form">
<form name="project_list" method="post">
<table>
<tr>
<td colspan="6"><h3><?php print _("Project administration"); ?></h3></td>
</tr>
<tr>
<td colspan="6"> </td>
</tr>
<tr class="theader">
<td>
<?php print _("Subversion project"); ?>
</td>
<td>
<?php print _("Subversion module path"); ?>
</td>
<td>
<?php print _("Repository"); ?>
</td>
<td width="20"> </td>
<td>
<?php print _("Action"); ?>
</td>
<td> </td>
</tr>
<?php
foreach( $tProjects as $entry ) {
$id = $entry['id'];
if( ($rightAllowed == "edit") or
($rightAllowed == "delete" ) ) {
$edit = "<a href=\"workOnProject.php?id=".$entry['id']."&task=change\" title=\""._("Change")."\" alt=\""._("Change")."\"><img src=\"./images/edit.png\" border=\"0\" /></a>";
} else {
$edit = "";
}
if( $rightAllowed == "delete" ) {
$delete = "<a href=\"deleteProject.php?id=".htmlentities($entry['id'])."&task=delete\" title=\""._("Delete")."\" alt=\""._("Delete")."\"><img src=\"./images/edittrash.png\" border=\"0\" /></a>";
} else {
$delete = "";
}
$action = $edit." ".$delete;
print "\t\t\t\t\t<tr>\n";
print "\t\t\t\t\t\t<td>".$entry['svnmodule']."</td>\n";
print "\t\t\t\t\t\t<td>".$entry['modulepath']."</td>\n";
print "\t\t\t\t\t\t<td>".$entry['reponame']."</td>\n";
print "\t\t\t\t\t\t<td> </td>\n";
print "\t\t\t\t\t\t<td>".$action."</td>\n";
print "\t\t\t\t\t\t<td> </td>\n";
print "\t\t\t\t\t</tr>\n";
}
?>
<tr>
<td colspan="6"> </td>
</tr>
<tr>
<td colspan="6" class="hlp_center">
<?php
if( ($rightAllowed == "add") or
($rightAllowed == "edit") or
($rightAllowed == "delete") ) {
print "<input type=\"image\" name=\"fSubmit_new\" src=\"./images/add_project.png\" value=\""._("New project")."\" title=\""._("New project")."\" /> ";
}
?>
<input type="image" name="fSubmit_back" src="./images/button_cancel.png" value="<?php print _("Back"); ?>" title="<?php print _("Back"); ?>" />
<?php
if( $tPrevDisabled != "disabled" ) {
print "\t\t\t\t\t\t<input type='image' name='fSubmit_f' src='./images/first.png' value='"._("<<")."' /> \n";
print "\t\t\t\t\t\t<input type='image' name='fSubmit_p' src='./images/previous.png' value='"._("<")."' /> \n";
} else {
print "\t\t\t\t\t\t<img src='./images/clear.gif' width='24' height='24'> \n";
print "\t\t\t\t\t\t<img src='./images/clear.gif' width='24' height='24'> \n";
}
if( $tNextDisabled != "disabled" ) {
print "\t\t\t\t\t\t<input type='image' name='fSubmit_n' src='./images/next.png' value='"._(">")."' /> \n";
print "\t\t\t\t\t\t<input type='image' name='fSubmit_l' src='./images/last.png' value='"._(">>")."' />\n";
} else {
print "\t\t\t\t\t\t<img src='./images/clear.gif' width='24' height='24'> \n";
print "\t\t\t\t\t\t<img src='./images/clear.gif' width='24' height='24'>\n";
}
?>
</td>
</tr>
<tr>
<td colspan="6" class="standout">
<?php print $tMessage; ?>
</td>
</tr>
</table>
</form>
</div>