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>
<hr />
<table width="100%"><tr><td valign="top">
<a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a>&nbsp;/&nbsp;<?php echo $bro->PathList($R,"bro_main.php") ?><br />
<?php if ($error) echo "<font color=\"red\">$error</font>"; ?>
</td><td valign="top" align="right">
<p class="breadcrumb">
<?php __("Path"); ?> / <a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a>&nbsp;/&nbsp;<?php echo $bro->PathList($R,"bro_main.php") ?>
</p>
<?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">
<input type="hidden" name="R" value="<?php echo $R; ?>" />
<table><tr>
<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>
<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>
@ -153,6 +174,7 @@ if ($c===false) $error=$err->errstr();
</td></tr>
</table>
</td></tr>
<tr><td valign="top">
@ -219,27 +241,30 @@ if (count($c)) {
<form action="bro_main.php" method="post" name="main" id="main">
<input type="hidden" name="R" value="<?php echo $R; ?>" />
<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">
<!--
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>
&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"); ?>" />
<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 />
</td></tr>
</table>
<?php
@ -247,7 +272,24 @@ document.write("<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('m
case 0:
/* AFFICHE 1 COLONNE DETAILLEE */
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;
for($i=0;$i<count($c);$i++) {
$col=3-$col;
@ -273,7 +315,7 @@ echo "<td>&nbsp;";
}
$e = $bro->is_extractable($R,$c[$i]["name"]);
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 "</a>";
}
@ -476,24 +518,34 @@ else {
?>
</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>
<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
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)) {
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 />";
}
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>
<?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="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="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;
}
</script>
<h3><?php printf(_("Editing domain %s"),$domain); ?></h3>
<h3><?php printf(_("Editing subdomains of %s"),$domain); ?></h3>
<?php
if ($error) {
echo "<p class=\"error\">$error</p>";
}
?>
<hr />
<br />
<!-- *****************************************
gestion des sous-domaines
-->
<h3><?php __("Subdomains"); ?></h3>
<table cellspacing="0" cellpadding="3">
<tr><th colspan="2"><?php __("Actions"); ?></th><th><?php __("Subdomain"); ?></th><th><?php __("Place"); ?></th></tr>
<?php
$col=1;
for($i=0;$i<$r["nsub"];$i++) {
@ -77,7 +78,9 @@ for($i=0;$i<$r["nsub"];$i++) {
?>
<tr class="lst<?php echo $col; ?>">
<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><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>
@ -85,6 +88,8 @@ for($i=0;$i<$r["nsub"];$i++) {
<?php } ?>
</table>
<br />
<hr/>
<br />
<form action="dom_subdoedit.php?" method="post" name="main" id="main">
<table border="0">
<tr>
@ -97,10 +102,10 @@ for($i=0;$i<$r["nsub"];$i++) {
<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();" />
<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">
<!--
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>
</td>
@ -122,8 +127,8 @@ for($i=0;$i<$r["nsub"];$i++) {
<label for="webmail"><?php __("Webmail access"); ?></label></td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2"><input type="submit" class="inb" name="add" value="<?php __("Add a subdomain"); ?>" /></td>
<tr style="text-align: right">
<td colspan="2"><input type="submit" class="inb" name="add" value="<?php __("Add this subdomain"); ?>" /></td>
</tr>
</table>
</form>
@ -170,7 +175,7 @@ if (!$r[noerase]) {
<?php printf(_("help_domain_del %s"),$domain); ?><br />
<form action="dom_dodel.php?domain=<?php echo urlencode($domain) ?>" method="post">
<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>
</form>
<hr />

View File

@ -21,7 +21,7 @@ body.light {
.hlp {
font-family: Helvetica, Tahoma, sans-serif;
font-size: 10px;
font-size: 11px;
color: #202020;
}
@ -33,13 +33,16 @@ td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
padding-right: 10px;
}
th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #007799;
font-weight: bold
color: black;
background: #F1F8FD;
font-weight: normal;
text-align: left;
}
h3 {
@ -47,8 +50,9 @@ h3 {
font-size: 18px;
font-weight: bold;
color: #10507C;
text-align: center;
padding: 10px;
text-align: left;
padding: 11px;
padding-left: 0;
margin: 0px;
}
@ -76,24 +80,71 @@ hr {
.inc, .inl {
border: 1px solid black;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-size: 10px;
border-style: none;
color: black;
}
.inb {
border: 1px solid black;
background-color: white;
border: 1px solid #999;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
padding: 4px;
padding-left: 6px;
padding-right: 6px;
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 {
border: 1px dotted black;
background-color: white;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-size: 10px;
padding-left: 2px;
padding-right: 2px;
color: black;
@ -289,3 +340,13 @@ a:hover {
.bold {
font-weight: bold;
}
#sendthisfile {
margin-top: 6px;
}
.breadcrumb {
font-size: 12px;
}