Cosmetic : DIV centered, and use table with the class result
This commit is contained in:
parent
015783d780
commit
1f6c99e62a
4 changed files with 43 additions and 34 deletions
|
|
@ -55,7 +55,7 @@ echo '<H2 class="info"> Administration Globale</H2>';
|
|||
|
||||
echo "<div>".MenuAdmin()."</div>";
|
||||
|
||||
echo '<DIV>';
|
||||
echo '<DIV class="content" style="width:80%;margin-left:10%">';
|
||||
|
||||
echo '<h2>Gestion Utilisateurs</h2>';
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ if ( isset ($_POST['upd']) && isset ($_POST['d']))
|
|||
$dos->set_parameter('desc',$_POST['desc']);
|
||||
$dos->save();
|
||||
}
|
||||
echo '<div class="u_redcontent">';
|
||||
echo '<div class="content" style="width:80%;margin-left:10%">';
|
||||
// check and add an new folder
|
||||
if ( isset ($_POST["DATABASE"]) )
|
||||
{
|
||||
|
|
@ -173,8 +173,10 @@ if ( $sa == 'list' )
|
|||
$compteur=1;
|
||||
$template="";
|
||||
echo JS_CONFIRM;
|
||||
echo '<TABLE BORDER=1>';
|
||||
|
||||
echo '<TABLE class="result" style="border-collapse:separate;border-spacing:4">';
|
||||
$r=th('ID').th('Nom du dossier ').th('Description').th('Nom base de données');
|
||||
$r=tr($r);
|
||||
echo $r;
|
||||
// show all dossiers
|
||||
if ( $Res != null )
|
||||
{
|
||||
|
|
@ -187,18 +189,19 @@ if ( $sa == 'list' )
|
|||
$cl='class="even"';
|
||||
|
||||
echo "<TR $cl><TD VALIGN=\"TOP\"> ".
|
||||
$Dossier['dos_id']." <B>".h($Dossier['dos_name'])."</B> </TD>".
|
||||
$Dossier['dos_id']."</td><td> <B>".h($Dossier['dos_name'])."</B> </TD>".
|
||||
"<TD><I> ".h($Dossier['dos_description'])."</I>
|
||||
</TD>
|
||||
<TD>";
|
||||
</TD>";
|
||||
echo td(domaine."dossier".$Dossier['dos_id']);
|
||||
echo "<TD>";
|
||||
echo HtmlInput::button_anchor(_('Effacer'),'?action=dossier_mgt&sa=del&d='.$Dossier['dos_id']);
|
||||
echo "</TD>";
|
||||
echo '<td>'.HtmlInput::button_anchor(_('Modifier'),'?action=dossier_mgt&sa=mod&d='
|
||||
.$Dossier['dos_id']).
|
||||
'</td>';
|
||||
echo '<td>'.HtmlInput::button_anchor(_('Backup'),'backup.php?action=backup&sa=b&t=d&d='
|
||||
.$Dossier['dos_id']).
|
||||
'</td>';
|
||||
|
||||
echo HtmlInput::button_anchor(_('Modifier'),'?action=dossier_mgt&sa=mod&d='
|
||||
.$Dossier['dos_id']);
|
||||
|
||||
echo HtmlInput::button_anchor(_('Backup'),'backup.php?action=backup&sa=b&t=d&d='
|
||||
.$Dossier['dos_id']);
|
||||
echo '</td>';
|
||||
|
||||
echo '<tr>';
|
||||
$compteur++;
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ if ( isset ($_POST["FMOD_NAME"]) )
|
|||
$Res=$cn->exec_sql("select mod_id,mod_name,mod_desc from
|
||||
modeledef order by mod_name");
|
||||
$count=Database::num_row($Res);
|
||||
echo '<div class="content">';
|
||||
echo '<div class="content" style="width:80%;margin-left:10%">';
|
||||
echo "<H2>Modèles</H2>";
|
||||
if ( $sa=='list')
|
||||
{
|
||||
|
|
@ -228,10 +228,13 @@ if ( $sa=='list')
|
|||
echo HtmlInput::button_anchor('Rafraîchir','admin_repo.php?action=modele_mgt');
|
||||
echo HtmlInput::button_anchor('Ajouter','admin_repo.php?action=modele_mgt&sa=add');
|
||||
|
||||
echo '<table width="100%" >';
|
||||
echo '<table class="result" style="border-spacing:5;border-collapse:separate" >';
|
||||
echo "<TR><TH>Nom</TH>".
|
||||
"<TH>Description</TH>".
|
||||
"<th></th>".
|
||||
"<th> </th>".
|
||||
"<th> </th>".
|
||||
"<th> </th>".
|
||||
|
||||
"</TR>";
|
||||
|
||||
for ($i=0;$i<$count;$i++)
|
||||
|
|
@ -255,10 +258,10 @@ if ( $sa=='list')
|
|||
}// for
|
||||
echo "</table>";
|
||||
}// if count = 0
|
||||
echo "Si vous voulez récupérer toutes les adaptations d'un dossier ".
|
||||
echo "<p class=\"notice\">Si vous voulez récupérer toutes les adaptations d'un dossier ".
|
||||
" dans un autre dossier, vous pouvez en faire un modèle.".
|
||||
" Seules les fiches, la structure des journaux, les périodes,... seront reprises ".
|
||||
"et aucune donnée du dossier sur lequel le dossier est basé.";
|
||||
"et aucune donnée du dossier sur lequel le dossier est basé. Les données contenues dans les extensions ne sont pas effacées</p>";
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
// Add a template
|
||||
|
|
|
|||
|
|
@ -51,7 +51,24 @@ $repo=new Dossier(0);
|
|||
$cn=$repo->get_user();
|
||||
$compteur=0;
|
||||
?>
|
||||
<div class="content" style="width:80%;margin-left:10%">
|
||||
<h2>Gestion Utilisateurs</h2>
|
||||
<TABLE> <TR>
|
||||
<form action="admin_repo.php?action=user_mgt" method="POST">
|
||||
<TD><H3>
|
||||
<?php
|
||||
echo _("Ajout d'utilisateur");
|
||||
echo '<H3></TD></TR>';
|
||||
echo '<TR><TD> First Name </TD><TD><INPUT class="input_text" TYPE="TEXT" NAME="FNAME"></TD>';
|
||||
echo '<TD> Last Name </TD><TD><INPUT class="input_text" TYPE="TEXT" NAME="LNAME"></TD></TR>';
|
||||
echo '<TR><TD> login </TD><TD><INPUT class="input_text" TYPE="TEXT" NAME="LOGIN"></TD>';
|
||||
echo '<TD> password </TD><TD> <INPUT class="input_text" TYPE="TEXT" NAME="PASS"></TD></TR>';
|
||||
echo '<TD> <INPUT TYPE="SUBMIT" class="button" Value="Create user" NAME="ADD"></TD>';
|
||||
echo '</TABLE>';
|
||||
|
||||
?>
|
||||
</FORM>
|
||||
|
||||
<TABLE><TR>
|
||||
<?php
|
||||
if ( $cn != null )
|
||||
|
|
@ -79,19 +96,5 @@ if ( $cn != null )
|
|||
} // $cn != null
|
||||
?>
|
||||
</TABLE>
|
||||
<TABLE> <TR>
|
||||
<form action="admin_repo.php?action=user_mgt" method="POST">
|
||||
<TD><H3>
|
||||
<?php
|
||||
echo _("Ajout d'utilisateur");
|
||||
echo '<H3></TD></TR>';
|
||||
echo '<TR><TD> First Name </TD><TD><INPUT class="input_text" TYPE="TEXT" NAME="FNAME"></TD>';
|
||||
echo '<TD> Last Name </TD><TD><INPUT class="input_text" TYPE="TEXT" NAME="LNAME"></TD></TR>';
|
||||
echo '<TR><TD> login </TD><TD><INPUT class="input_text" TYPE="TEXT" NAME="LOGIN"></TD>';
|
||||
echo '<TD> password </TD><TD> <INPUT class="input_text" TYPE="TEXT" NAME="PASS"></TD></TR>';
|
||||
echo '<TD> <INPUT TYPE="SUBMIT" class="button" Value="Create user" NAME="ADD"></TD>';
|
||||
echo '</TABLE>';
|
||||
|
||||
?>
|
||||
</FORM>
|
||||
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue