modif ergo et html, step 1

This commit is contained in:
Benjamin Sonntag 2010-03-04 13:51:32 +00:00
parent 4a87e43bf8
commit 20053c90f0
4 changed files with 171 additions and 62 deletions

View File

@ -135,16 +135,37 @@ if ($c===false) $error=$err->errstr();
<tr><td> <tr><td>
<hr /> <hr />
<table width="100%"><tr><td valign="top"> <p class="breadcrumb">
<a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a>&nbsp;/&nbsp;<?php echo $bro->PathList($R,"bro_main.php") ?><br /> <?php __("Path"); ?> / <a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a>&nbsp;/&nbsp;<?php echo $bro->PathList($R,"bro_main.php") ?>
<?php if ($error) echo "<font color=\"red\">$error</font>"; ?> </p>
</td><td valign="top" align="right">
<?php if ($error) echo "<font color=\"red\">$error</font>"; ?>
<table><tr>
<td valign="top" style="border: 1px solid #aaa; padding: 10px">
<form action="bro_main.php" enctype="multipart/form-data" method="post">
<input type="hidden" name="R" value="<?php echo $R; ?>" />
<input type="hidden" name="formu" value="3" />
<?php __("Send one file:"); ?><br />
<input class="int" name="userfile" type="file" />
<input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
<br />
<input type="submit" id="sendthisfile" class="ina" value="<?php __("Send this file"); ?>" />
</form>
</td>
<td style="width: 20px">&nbsp;</td>
<td valign="top" style="border: 1px solid #aaa; padding: 10px">
<?php __("New file or folder:"); ?><br />
<form action="bro_main.php" method="post" name="nn" id="nn"> <form action="bro_main.php" method="post" name="nn" id="nn">
<input type="hidden" name="R" value="<?php echo $R; ?>" /> <input type="hidden" name="R" value="<?php echo $R; ?>" />
<table><tr> <table><tr>
<td><input type="text" class="int" name="nomfich" size="22" maxlength="255" /></td> <td><input type="text" class="int" name="nomfich" size="22" maxlength="255" /></td>
<td><input type="submit" class="inb" value="<?php __("Create"); ?>" /></td> <td><input type="submit" class="ina" value="<?php __("Create"); ?>" /></td>
</tr><tr><td> </tr><tr><td>
<input type="radio" class="inc" id="nfile" onclick="document.nn.nomfich.focus();" name="formu" value="6" <?php if (!$p["crff"]) echo "checked=\"checked\""; ?> /><label for="nfile">&nbsp;<?php __("File"); ?></label> <input type="radio" class="inc" id="nfile" onclick="document.nn.nomfich.focus();" name="formu" value="6" <?php if (!$p["crff"]) echo "checked=\"checked\""; ?> /><label for="nfile">&nbsp;<?php __("File"); ?></label>
<input type="radio" class="inc" id="nfold" onclick="document.nn.nomfich.focus();" name="formu" value="1" <?php if ($p["crff"]) echo "checked=\"checked\""; ?> /><label for="nfold">&nbsp;<?php __("Folder"); ?></label> <input type="radio" class="inc" id="nfold" onclick="document.nn.nomfich.focus();" name="formu" value="1" <?php if ($p["crff"]) echo "checked=\"checked\""; ?> /><label for="nfold">&nbsp;<?php __("Folder"); ?></label>
@ -153,6 +174,7 @@ if ($c===false) $error=$err->errstr();
</td></tr> </td></tr>
</table> </table>
</td></tr> </td></tr>
<tr><td valign="top"> <tr><td valign="top">
@ -219,27 +241,30 @@ if (count($c)) {
<form action="bro_main.php" method="post" name="main" id="main"> <form action="bro_main.php" method="post" name="main" id="main">
<input type="hidden" name="R" value="<?php echo $R; ?>" /> <input type="hidden" name="R" value="<?php echo $R; ?>" />
<input type="hidden" name="formu" value="2" /> <input type="hidden" name="formu" value="2" />
<hr />
<br />
<table width="100%" style="border: 0px">
<tr><td class="lst2" style="padding: 4px 4px 8px 4px">
<input type="submit" class="ina" name="actdel" value="<?php __("Delete"); ?>" />
<input type="submit" class="ina" name="actrename" value="<?php __("Rename"); ?>" />
<input type="submit" class="ina" name="actperms" value="<?php __("Permissions"); ?>" />
&nbsp; |&nbsp;
<input type="submit" class="ina" name="actcopy" value="<?php __("Copy"); ?>" />
<input type="submit" class="ina" name="actmove" value="<?php __("Move"); ?>" />
<?php __("To"); ?>
<input type="text" class="int" name="actmoveto" value="" />
<script type="text/javascript"> <script type="text/javascript">
<!-- <!--
document.write("<input type=\"button\" value=\"<?php __("all/none"); ?>\" class=\"inb\" onclick=\"CheckAll();\" />"); document.write("<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.actmoveto');\" value=\" Choisir un r&eacute;pertoire \" class=\"bff\" />");
// --> // -->
</script> </script>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" class="inb" name="actdel" value="<?php __("Delete"); ?>" />
<input type="submit" class="inb" name="actrename" value="<?php __("Rename"); ?>" /> </td></tr>
<input type="submit" class="inb" name="actperms" value="<?php __("Permissions"); ?>" /> <!-- [ML] -->
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />
<input type="submit" class="inb" name="actcopy" value="<?php __("Copy"); ?>" />
<input type="submit" class="inb" name="actmove" value="<?php __("Move"); ?>" />&nbsp;:&nbsp;<input type="text" class="int" name="actmoveto" value="" />
<script type="text/javascript">
<!--
document.write("<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.actmoveto');\" value=\" ... \" class=\"inb\" />");
// -->
</script>
<hr />
</table>
<?php <?php
@ -247,7 +272,24 @@ document.write("<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('m
case 0: case 0:
/* AFFICHE 1 COLONNE DETAILLEE */ /* AFFICHE 1 COLONNE DETAILLEE */
reset($c); reset($c);
echo "<table width=\"100%\" style=\"border: 0px\" cellpadding=\"0\" cellspacing=\"0\">"; echo "<table width=\"100%\" style=\"border: 0px\" cellpadding=\"2\" cellspacing=\"0\">";
?>
<tr><th>
<script type="text/javascript">
<!--
document.write("<input type=\"checkbox\" value=\"1\" class=\"inb\" onclick=\"CheckAll();\" />");
// -->
</script>
</th>
<th></th>
<th><?php __("Filename"); ?></th>
<th><?php __("Size"); ?></th>
<th><?php __("Last modification"); ?></th>
<th><?php __("File Type"); ?></th>
<th></th>
</tr>
<?php
$col=1; $col=1;
for($i=0;$i<count($c);$i++) { for($i=0;$i<count($c);$i++) {
$col=3-$col; $col=3-$col;
@ -273,7 +315,7 @@ echo "<td>&nbsp;";
} }
$e = $bro->is_extractable($R,$c[$i]["name"]); $e = $bro->is_extractable($R,$c[$i]["name"]);
if ($e) { if ($e) {
echo "<a href=\"bro_main.php?actextract=1&file=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R)."\">"; echo " <a href=\"bro_main.php?actextract=1&file=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R)."\">";
echo _("Extract"); echo _("Extract");
echo "</a>"; echo "</a>";
} }
@ -476,24 +518,34 @@ else {
?> ?>
</td></tr> </td></tr>
<tr><td colspan="2"> <tr><td colspan="2" style="">
<form action="bro_main.php" enctype="multipart/form-data" method="post">
<input type="hidden" name="R" value="<?php echo $R; ?>" />
<input type="hidden" name="formu" value="3" />
<hr />
<?php __("Import this file"); ?>&nbsp;&nbsp;<input class="int" name="userfile" type="file" />
<input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
<input type="submit" class="inb" value="<?php __("Send"); ?>" />
<hr />
</form>
<p>&nbsp;</p> <p>&nbsp;</p>
<p>
<span class="ina"><a href="bro_main.php?R=<?php echo $R; ?>&showdirsize=1"><?php __("Show size of directories"); ?></a></span> <?php __("(slow)"); ?>
</p><p>
<span class="ina"><?php
if ($hta->is_protected($R)) {
echo "<a href=\"hta_edit.php?dir=$R\">"._("Edit this folder's restrictions")."</a>";
}
else {
echo "<a href=\"hta_add.php?value=$R\">"._("Protect this folder")."</a>";
}
?></span> <?php __("with a login and a password"); ?>
</p><p>
<span class="ina">
<a href="bro_tgzdown.php?dir=<?php echo $R; ?>"><?php __("Download this folder"); ?></a>
</span> &nbsp;
<?php printf(_("as a %s file"),$bro->l_tgz[$p["downfmt"]]); ?>
</span>
</p><p>
<span class="ina">
<a href="bro_pref.php"><?php __("File browser preferences"); ?></a>
</span>
</p>
<?php <?php
echo '<a href="bro_main.php?R=' . $R . '&showdirsize=1">' . _("Show disk usage of directories (slow)") . '</a><br /><br />';
if ($id=$ftp->is_ftp($R)) { if ($id=$ftp->is_ftp($R)) {
echo _("There is an ftp account in this folder")." <a href=\"ftp_edit.php?id=".urlencode($id)."\">"._("Click here to edit this ftp account.")."</a><br />"; echo _("There is an ftp account in this folder")." <a href=\"ftp_edit.php?id=".urlencode($id)."\">"._("Click here to edit this ftp account.")."</a><br />";
} }
@ -501,16 +553,7 @@ else {
echo "<a href=\"ftp_add.php?dir=".urlencode($R)."\">"._("Click here to create an ftp account in this folder.")."</a><br />"; echo "<a href=\"ftp_add.php?dir=".urlencode($R)."\">"._("Click here to create an ftp account in this folder.")."</a><br />";
} }
if ($hta->is_protected($R)) {
echo "<a href=\"hta_edit.php?dir=$R\">"._("This folder has restricted access")."</a><br />";
}
else {
echo "<a href=\"hta_add.php?value=$R\">"._("Click here to protect this folder with login/password")."</a><br />";
}
?> ?>
<br />
<a href="bro_tgzdown.php?dir=<?php echo $R; ?>"><?php __("Download"); ?></a> <?php __("this folder and its subfolders as a compressed file"); ?> (<?php echo $bro->l_tgz[$p["downfmt"]]; ?>)<br />
<a href="bro_pref.php"><?php __("Configure the file browser"); ?></a><br />
</td></tr></table> </td></tr></table>
<?php include_once("foot.php"); ?> <?php include_once("foot.php"); ?>

View File

@ -130,7 +130,7 @@ if ($errbrowsefold) {
<input type="hidden" name="caller" value="<?php echo $caller; ?>" /> <input type="hidden" name="caller" value="<?php echo $caller; ?>" />
<input type="hidden" name="lastcurdir" value="<?php echo $curdir; ?>" /> <input type="hidden" name="lastcurdir" value="<?php echo $curdir; ?>" />
<input type="text" class="int" name="file" size="20" value="<?php echo $file ?>" /><input class="inb" type="submit" name="submit" value="..." /><br /> <input type="text" class="int" name="file" size="20" value="<?php echo $file ?>" /><input class="bff" type="submit" name="submit" value="..." /><br />
<input type="submit" name="select" value="<?php __("Select"); ?>" class="inb" />&nbsp; <input type="submit" name="select" value="<?php __("Select"); ?>" class="inb" />&nbsp;
<input type="button" name="cancel" value="<?php __("Cancel"); ?>" class="inb" onclick="window.close();" />&nbsp; <input type="button" name="cancel" value="<?php __("Cancel"); ?>" class="inb" onclick="window.close();" />&nbsp;

View File

@ -58,18 +58,19 @@ function dnsoff() {
document.forms["dns"].mail.disabled=false; document.forms["dns"].mail.disabled=false;
} }
</script> </script>
<h3><?php printf(_("Editing domain %s"),$domain); ?></h3> <h3><?php printf(_("Editing subdomains of %s"),$domain); ?></h3>
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";
} }
?> ?>
<hr /> <hr />
<br />
<!-- ***************************************** <!-- *****************************************
gestion des sous-domaines gestion des sous-domaines
--> -->
<h3><?php __("Subdomains"); ?></h3>
<table cellspacing="0" cellpadding="3"> <table cellspacing="0" cellpadding="3">
<tr><th colspan="2"><?php __("Actions"); ?></th><th><?php __("Subdomain"); ?></th><th><?php __("Place"); ?></th></tr>
<?php <?php
$col=1; $col=1;
for($i=0;$i<$r["nsub"];$i++) { for($i=0;$i<$r["nsub"];$i++) {
@ -77,7 +78,9 @@ for($i=0;$i<$r["nsub"];$i++) {
?> ?>
<tr class="lst<?php echo $col; ?>"> <tr class="lst<?php echo $col; ?>">
<td class="center"> <td class="center">
<a href="dom_subedit.php?domain=<?php echo urlencode($r["name"]) ?>&amp;sub=<?php echo urlencode($r["sub"][$i]["name"]) ?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" /></a>&nbsp;<a href="dom_subdel.php?domain=<?php echo urlencode($r["name"]) ?>&amp;sub=<?php echo urlencode($r["sub"][$i]["name"]) ?>"><img src="images/delete.png" alt="<?php __("Delete"); ?>" /></a> <div class="ina"><a href="dom_subedit.php?domain=<?php echo urlencode($r["name"]) ?>&amp;sub=<?php echo urlencode($r["sub"][$i]["name"]) ?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" /><?php __("Edit"); ?></a></div>
</td><td class="center">
<div class="ina"><a href="dom_subdel.php?domain=<?php echo urlencode($r["name"]) ?>&amp;sub=<?php echo urlencode($r["sub"][$i]["name"]) ?>"><img src="images/delete.png" alt="<?php __("Delete"); ?>" /><?php __("Delete"); ?></a></div>
</td> </td>
<td><a href="http://<?php ecif($r["sub"][$i]["name"],$r["sub"][$i]["name"]."."); echo $r["name"] ?>" target="_blank"><?php ecif($r["sub"][$i]["name"],$r["sub"][$i]["name"]."."); echo $r["name"] ?></a></td> <td><a href="http://<?php ecif($r["sub"][$i]["name"],$r["sub"][$i]["name"]."."); echo $r["name"] ?>" target="_blank"><?php ecif($r["sub"][$i]["name"],$r["sub"][$i]["name"]."."); echo $r["name"] ?></a></td>
<td><?php echo $r["sub"][$i]['type'] === '0' ? '<a href="bro_main.php?R='.urlencode($r["sub"][$i]["dest"]).'">'.htmlspecialchars($r["sub"][$i]["dest"]).'</a>' : htmlspecialchars($r["sub"][$i]["dest"]); ?>&nbsp;</td> <td><?php echo $r["sub"][$i]['type'] === '0' ? '<a href="bro_main.php?R='.urlencode($r["sub"][$i]["dest"]).'">'.htmlspecialchars($r["sub"][$i]["dest"]).'</a>' : htmlspecialchars($r["sub"][$i]["dest"]); ?>&nbsp;</td>
@ -85,6 +88,8 @@ for($i=0;$i<$r["nsub"];$i++) {
<?php } ?> <?php } ?>
</table> </table>
<br /> <br />
<hr/>
<br />
<form action="dom_subdoedit.php?" method="post" name="main" id="main"> <form action="dom_subdoedit.php?" method="post" name="main" id="main">
<table border="0"> <table border="0">
<tr> <tr>
@ -97,10 +102,10 @@ for($i=0;$i<$r["nsub"];$i++) {
<tr> <tr>
<td><input type="radio" id="local" class="inc" name="type" value="<?php echo $dom->type_local; ?>" checked="checked" onclick="document.main.sub_local.focus();" /> <td><input type="radio" id="local" class="inc" name="type" value="<?php echo $dom->type_local; ?>" checked="checked" onclick="document.main.sub_local.focus();" />
<label for="local"><?php __("Locally managed"); ?></label></td> <label for="local"><?php __("Locally managed"); ?></label></td>
<td><input type="text" class="int" name="sub_local" id="sub_local" value="/" size="40" /> <td><input type="text" class="int" name="sub_local" id="sub_local" value="/" size="28" />
<script type="text/javascript"> <script type="text/javascript">
<!-- <!--
document.write("&nbsp;<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.sub_local');\" value=\" ... \" class=\"inb\">"); document.write("&nbsp;<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.sub_local');\" value=\" Choisir un r&eacute;pertoire... \" class=\"bff\">");
// --> // -->
</script> </script>
</td> </td>
@ -122,8 +127,8 @@ for($i=0;$i<$r["nsub"];$i++) {
<label for="webmail"><?php __("Webmail access"); ?></label></td> <label for="webmail"><?php __("Webmail access"); ?></label></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr style="text-align: right">
<td colspan="2"><input type="submit" class="inb" name="add" value="<?php __("Add a subdomain"); ?>" /></td> <td colspan="2"><input type="submit" class="inb" name="add" value="<?php __("Add this subdomain"); ?>" /></td>
</tr> </tr>
</table> </table>
</form> </form>
@ -170,7 +175,7 @@ if (!$r[noerase]) {
<?php printf(_("help_domain_del %s"),$domain); ?><br /> <?php printf(_("help_domain_del %s"),$domain); ?><br />
<form action="dom_dodel.php?domain=<?php echo urlencode($domain) ?>" method="post"> <form action="dom_dodel.php?domain=<?php echo urlencode($domain) ?>" method="post">
<p> <p>
<input type="submit" class="inb" name="detruire" value="<?php printf(_("Delete %s"),$domain); ?>" /> <input type="submit" class="inb" name="detruire" value="<?php printf(_("Delete %s from this server"),$domain); ?>" />
</p> </p>
</form> </form>
<hr /> <hr />

View File

@ -21,7 +21,7 @@ body.light {
.hlp { .hlp {
font-family: Helvetica, Tahoma, sans-serif; font-family: Helvetica, Tahoma, sans-serif;
font-size: 10px; font-size: 11px;
color: #202020; color: #202020;
} }
@ -33,13 +33,16 @@ td {
font-family: Verdana, Arial, Helvetica, sans-serif; font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px; font-size: 11px;
color: #000000; color: #000000;
padding-right: 10px;
} }
th { th {
font-family: Verdana, Arial, Helvetica, sans-serif; font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px; font-size: 11px;
color: #007799; color: black;
font-weight: bold background: #F1F8FD;
font-weight: normal;
text-align: left;
} }
h3 { h3 {
@ -47,8 +50,9 @@ h3 {
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
color: #10507C; color: #10507C;
text-align: center; text-align: left;
padding: 10px; padding: 11px;
padding-left: 0;
margin: 0px; margin: 0px;
} }
@ -76,24 +80,71 @@ hr {
.inc, .inl { .inc, .inl {
border: 1px solid black; border: 1px solid black;
font-family: Verdana, Arial, Helvetica, sans-serif; font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px; font-size: 10px;
border-style: none; border-style: none;
color: black; color: black;
} }
.inb { .inb {
border: 1px solid black; border: 1px solid #999;
background-color: white;
font-family: Verdana, Arial, Helvetica, sans-serif; font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px; font-size: 11px;
padding: 4px;
padding-left: 6px;
padding-right: 6px;
color: black; color: black;
background-color: #CFE3F1;
cursor: pointer;
}
.inb:hover {
background-color: #BFD3E1;
} }
.ina {
border: 1px solid #999;
background-color: #F1F8FD;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
padding: 2px 4px 2px 4px;
color: black;
}
.ina:hover {
border: 1px solid #999;
background-color: #CFE3F1;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
padding: 2px 4px 2px 4px;
color: black;
cursor: pointer;
}
.ina a {
color: black;
}
.ina a:hover {
text-decoration: none;
color: black;
}
.ina img {
vertical-align: middle;
padding: 2px;
}
.bff {
border: 1px solid #999;
background-color: #F1F8FD;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
padding-left: 2px;
padding-right: 4px;
color: black;
cursor: pointer;
}
.int { .int {
border: 1px dotted black; border: 1px dotted black;
background-color: white; background-color: white;
font-family: Verdana, Arial, Helvetica, sans-serif; font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px; font-size: 10px;
padding-left: 2px; padding-left: 2px;
padding-right: 2px; padding-right: 2px;
color: black; color: black;
@ -288,4 +339,14 @@ a:hover {
.bold { .bold {
font-weight: bold; font-weight: bold;
}
#sendthisfile {
margin-top: 6px;
}
.breadcrumb {
font-size: 12px;
} }