<div id="edit_form">
<form name="repo_list" method="post">
<table>
<tr>
<td colspan="7"><h3><?php print _("Repository administration"); ?></h3></td>
</tr>
<tr>
<td colspan="7"> </td>
</tr>
<tr class="theader">
<td>
<?php print _("Repository name"); ?>
</td>
<td>
<?php print _("Repository path"); ?>
</td>
<td>
<?php print _("User"); ?>
</td>
<td>
<?php print _("Password"); ?>
</td>
<td width="20"> </td>
<td>
<?php print _("Action"); ?>
</td>
<td> </td>
</tr>
<?php
foreach( $tRepos as $entry ) {
if( ($rightAllowed == "edit") or
($rightAllowed == "delete" ) ) {
$edit = "<a href=\"workOnRepo.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=\"deleteRepo.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['reponame']."</td>\n";
print "\t\t\t\t\t\t<td>".$entry['repopath']."</td>\n";
print "\t\t\t\t\t\t<td>".$entry['repouser']."</td>\n";
print "\t\t\t\t\t\t<td>".$entry['repopassword']."</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="7"> </td>
</tr>
<tr>
<td colspan="7" class="hlp_center">
<?php
if( ($rightAllowed == "add") or
($rightAllowed == "edit") or
($rightAllowed == "delete") ) {
print "<input type=\"image\" name=\"fSubmit_new\" src=\"./images/edit_add.png\" value=\""._("New repository")."\" title=\""._("New repository")."\" /> ";
}
?>
<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="7" class="standout">
<?php print $tMessage; ?>
</td>
</tr>
</table>
</form>
</div>