Simplification feuille de style

This commit is contained in:
Laurent Destailleur 2005-12-03 17:55:50 +00:00
parent 542494344b
commit 461657ca27
5 changed files with 73 additions and 105 deletions

View File

@ -135,43 +135,4 @@ function llxHeader($head = "", $title="", $help_url='')
left_menu($menu->liste, $help_url); left_menu($menu->liste, $help_url);
} }
function facture_prepare_head($fac)
{
global $langs, $conf;
$h = 0;
$head = array();
$head[$h][0] = DOL_URL_ROOT.'/compta/facture.php?facid='.$fac->id;
$head[$h][1] = $langs->trans('CardBill');
$hselected = $h;
$h++;
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/contact.php?facid='.$fac->id;
$head[$h][1] = $langs->trans('Contact');
$h++;
if ($conf->use_preview_tabs)
{
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/apercu.php?facid='.$fac->id;
$head[$h][1] = $langs->trans('Preview');
$h++;
}
if ($fac->mode_reglement_code == 'PRE')
{
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/prelevement.php?facid='.$fac->id;
$head[$h][1] = $langs->trans('StandingOrders');
$h++;
}
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/note.php?facid='.$fac->id;
$head[$h][1] = $langs->trans('Note');
$h++;
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/info.php?facid='.$fac->id;
$head[$h][1] = $langs->trans('Info');
$h++;
return $head;
}
?> ?>

View File

@ -95,7 +95,7 @@ function select_societes_for_newconcat($contrat, $selected = '', $htmlname = 'ne
function select_type_contact($contrat, $defValue, $htmlname = 'type', $source) function select_type_contact($contrat, $defValue, $htmlname = 'type', $source)
{ {
$lesTypes = $contrat->liste_type_contact($source); $lesTypes = $contrat->liste_type_contact($source);
print '<select size="0" name="'.$htmlname.'">'; print '<select class="flat" name="'.$htmlname.'">';
foreach($lesTypes as $key=>$value) foreach($lesTypes as $key=>$value)
{ {
print '<option value="'.$key.'">'.$value.'</option>'; print '<option value="'.$key.'">'.$value.'</option>';

View File

@ -323,7 +323,6 @@ function top_menu($head, $title="", $target="")
top_htmlhead($head, $title, $target); top_htmlhead($head, $title, $target);
print '<body>'; print '<body>';
print '<div class="body">';
/* /*
* Si la constante MAIN_NEED_UPDATE est définie (par le script de migration sql en général), c'est que * Si la constante MAIN_NEED_UPDATE est définie (par le script de migration sql en général), c'est que
@ -518,7 +517,6 @@ function llxFooter($foot='')
print "\n</div>\n".'<!-- end div class="fiche" -->'."\n"; print "\n</div>\n".'<!-- end div class="fiche" -->'."\n";
print "\n</div>\n".'<!-- end div class="vmenuplusfiche" -->'; print "\n</div>\n".'<!-- end div class="vmenuplusfiche" -->';
print "\n</div>\n".'<!-- end div class="body" -->'."\n";
if (isset($_SERVER['DOL_TUNING'])) if (isset($_SERVER['DOL_TUNING']))
{ {

View File

@ -294,7 +294,7 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer)
print '</td></tr>'; print '</td></tr>';
print '<tr><td>'.$langs->trans("Status").'</td><td>'; print '<tr><td>'.$langs->trans("Status").'</td><td>';
print '<select name="statut">'; print '<select class="flat" name="statut">';
print '<option value="1">'.$langs->trans("OnSell").'</option>'; print '<option value="1">'.$langs->trans("OnSell").'</option>';
print '<option value="0" selected="true">'.$langs->trans("NotOnSell").'</option>'; print '<option value="0" selected="true">'.$langs->trans("NotOnSell").'</option>';
print '</td></tr>'; print '</td></tr>';
@ -330,7 +330,7 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer)
print '<textarea name="note" rows="8" cols="50">'; print '<textarea name="note" rows="8" cols="50">';
print "</textarea></td></tr>"; print "</textarea></td></tr>";
print '<tr><td>&nbsp;</td><td><input type="submit" class="button" value="'.$langs->trans("Create").'"></td></tr>'; print '<tr><td colspan="2" align="center"><input type="submit" class="button" value="'.$langs->trans("Create").'"></td></tr>';
print '</table>'; print '</table>';
print '</form>'; print '</form>';
} }
@ -551,7 +551,7 @@ if ($_GET["id"] || $_GET["ref"])
print $html->select_tva("tva_tx", $product->tva_tx, $mysoc, ''); print $html->select_tva("tva_tx", $product->tva_tx, $mysoc, '');
print '</td></tr>'; print '</td></tr>';
print '<tr><td>'.$langs->trans("Status").'</td><td colspan="2">'; print '<tr><td>'.$langs->trans("Status").'</td><td colspan="2">';
print '<select name="statut">'; print '<select class="flat" name="statut">';
if ($product->envente) if ($product->envente)
{ {
print '<option value="1" selected="true">'.$langs->trans("OnSell").'</option>'; print '<option value="1" selected="true">'.$langs->trans("OnSell").'</option>';

View File

@ -25,26 +25,25 @@ require("../../conf/conf.php");
?> ?>
/***** Style du fond *****/ /* ============================================================================== */
/* Styles par défaut */
/* ============================================================================== */
body { body {
background-color: #F4F4F4; background-color: #F4F4F4;
font: 12px helvetica, verdana, arial, sans-serif; color: #101010;
font-size: 12px;
font-family: arial,tahoma,verdana,helvetica;
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
margin-right: 0; margin-right: 0;
margin-left: 0; margin-left: 0;
} }
.body {
background-color: #F4F4F4;
color: #101010;
font: 12px helvetica, verdana, arial, sans-serif;
}
/***** Styles par défaut *****/
a:link { font: verdana, arial, helvetica, sans-serif; font-weight: bold; color: #000000; text-decoration: none; } a:link { font: verdana, arial, helvetica, sans-serif; font-weight: bold; color: #000000; text-decoration: none; }
a:visited { font: verdana, arial, helvetica, sans-serif; font-weight: bold; color: #000000; text-decoration: none; } a:visited { font: verdana, arial, helvetica, sans-serif; font-weight: bold; color: #000000; text-decoration: none; }
a:active { font: verdana, arial, helvetica, sans-serif; font-weight: bold; color: #000000; text-decoration: none; } a:active { font: verdana, arial, helvetica, sans-serif; font-weight: bold; color: #000000; text-decoration: none; }
a:hover { font: verdana, arial, helvetica, sans-serif; font-weight: bold; color: #000000; text-decoration: underline; } a:hover { font: verdana, arial, helvetica, sans-serif; font-weight: bold; color: #000000; text-decoration: none; }
input input
{ {
font: 12px helvetica, verdana, arial, sans-serif; font: 12px helvetica, verdana, arial, sans-serif;
@ -61,8 +60,13 @@ input.flat
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
} }
input:focus
{
background: #F0ECEC;
}
textarea { textarea {
font: 12px helvetica, verdana, arial, sans-serif; font: 12px helvetica, verdana, arial, sans-serif;
background: #FDFDFD;
border: 1px solid #ACBCBB; border: 1px solid #ACBCBB;
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
@ -70,10 +74,15 @@ textarea {
textarea.flat textarea.flat
{ {
font: 12px helvetica, verdana, arial, sans-serif; font: 12px helvetica, verdana, arial, sans-serif;
background: #FDFDFD;
border: 1px solid #ACBCBB; border: 1px solid #ACBCBB;
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
} }
textarea:focus
{
background: #F0ECEC;
}
select.flat select.flat
{ {
font: 12px helvetica, verdana, arial, sans-serif; font: 12px helvetica, verdana, arial, sans-serif;
@ -81,6 +90,11 @@ select.flat
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
} }
select:focus
{
background: #F0ECEC;
}
.button { .button {
font: 12px helvetica, verdana, arial, sans-serif; font: 12px helvetica, verdana, arial, sans-serif;
font-size: 100%; font-size: 100%;
@ -92,16 +106,9 @@ select.flat
} }
div.body /* ============================================================================== */
{ /* Styles de positionnement des zones */
margin-top: 0px; /* ============================================================================== */
margin-bottom: 0;
margin-right: 0px;
margin-left: 0px;
padding: 0px;
font-family:arial,tahoma,verdana,helvetica;
font-size:12px;
}
div.vmenuplusfiche div.vmenuplusfiche
{ {
@ -139,9 +146,9 @@ div.fiche
} }
/* /* ============================================================================== */
* Menu superieur et 1ere ligne tableau /* Menu superieur et 1ere ligne tableau */
*/ /* ============================================================================== */
div.tmenu div.tmenu
{ {
@ -195,7 +202,7 @@ a.tmenu#sel
font: 12px helvetica, verdana, arial, sans-serif; font: 12px helvetica, verdana, arial, sans-serif;
font-weight: bold; font-weight: bold;
background: #dee7ec; background: #dee7ec;
background-image : url(<?php echo $dolibarr_main_url_root.'/theme/eldy/img/tmenu_inverse.jpg' ?>); background-image : url(<?php echo $dolibarr_main_url_root.'/theme/eldy/img/tmenu_inverse.jpg' ?>);
border-right: 1px solid #555555; border-right: 1px solid #555555;
border-top: 1px solid #D8D8D8; border-top: 1px solid #D8D8D8;
border-left: 1px solid #D8D8D8; border-left: 1px solid #D8D8D8;
@ -251,9 +258,9 @@ img.login
} }
/* /* ============================================================================== */
* Barre de gauche /* Barre de gauche */
*/ /* ============================================================================== */
a.vmenu:link { font-size:12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: bold; } a.vmenu:link { font-size:12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: bold; }
a.vmenu:visited { font-size:12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: bold; } a.vmenu:visited { font-size:12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: bold; }
@ -345,9 +352,10 @@ form {
} }
/* /* ============================================================================== */
* Barre recherche /* Barre recherche */
*/ /* ============================================================================== */
div.formsearch div.formsearch
{ {
display: block; display: block;
@ -361,9 +369,10 @@ div.formsearch
} }
/* /* ============================================================================== */
* Barre onglets /* Onglets */
*/ /* ============================================================================== */
div.tabs { div.tabs {
top: 20px; top: 20px;
margin: 1px 0px 0px 0px; margin: 1px 0px 0px 0px;
@ -472,10 +481,11 @@ a.tabimage {
} }
/* /* ============================================================================== */
* Boutons actions /* Boutons actions */
* Nouvelle syntaxe à utiliser /* ============================================================================== */
*/
/* Nouvelle syntaxe à utiliser */
a.butAction:link { font: 12px helvetica, verdana, arial, sans-serif; a.butAction:link { font: 12px helvetica, verdana, arial, sans-serif;
font-weight: bold; font-weight: bold;
@ -548,10 +558,7 @@ a.butActionDelete:visited { font: 12px helvetica, verdana, arial, sans-serif; fo
a.butActionDelete:hover { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: #FFe7ec; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; } a.butActionDelete:hover { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: #FFe7ec; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
/* /* Ancienne syntaxe. A supprimer quand remplace par butXxx */
* Historique
* A supprimer quand remplace par butXxx
*/
a.tabAction:link { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: white; border: 1px solid #8CACBB; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; } a.tabAction:link { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: white; border: 1px solid #8CACBB; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
a.tabAction:visited { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: white; border: 1px solid #8CACBB; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; } a.tabAction:visited { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: white; border: 1px solid #8CACBB; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
@ -564,9 +571,9 @@ a.butDelete:visited { font: 12px helvetica, verdana, arial, sans-serif; font-wei
a.butDelete:hover { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: #FFe7ec; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; } a.butDelete:hover { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: #FFe7ec; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
/* /* ============================================================================== */
* Tables /* Tables */
*/ /* ============================================================================== */
.notopnoleft { .notopnoleft {
border-collapse: collapse; border-collapse: collapse;
@ -624,11 +631,6 @@ border-collapse: collapse;
width: 100%; width: 100%;
} }
/*
* Tableaux
*/
tr.liste_titre { tr.liste_titre {
background: #7699A9; background: #7699A9;
background-image : url(<?php echo $dolibarr_main_url_root.'/theme/eldy/img/liste_titre.png' ?>); background-image : url(<?php echo $dolibarr_main_url_root.'/theme/eldy/img/liste_titre.png' ?>);
@ -713,7 +715,6 @@ border: 0px;
} }
*/ */
/* /*
* Boxes * Boxes
*/ */
@ -794,9 +795,9 @@ div.titre {
text-decoration: none } text-decoration: none }
/* /* ============================================================================== */
* Formulaire confirmation * Formulaire confirmation
*/ /* ============================================================================== */
td.validtitle { td.validtitle {
font-weight: bold; font-weight: bold;
@ -817,11 +818,20 @@ tr.nonpayed {
div.version { div.version {
background: #F4F4F4; background: #F4F4F4;
text-align: right; text-align: right;
font-size: 9px; font-size: 9px;
margin: 1px 0em 0em 0em; margin: 1px 0em 0em 0em;
padding: 2px; padding: 2px;
}
/* ============================================================================== */
/* Tooltips */
/* ============================================================================== */
div.tooltip {
position:absolute; top: 0px; left: 0px; z-index: 2; width: 300px; visibility:hidden; font: 8pt 'MS Comic Sans','Arial',sans-serif;
background-color: #FFFFE6; padding: 8px; border: 1px solid black;
} }
@ -891,10 +901,9 @@ cursor: hand;
/* /* ============================================================================== */
* Autre * Autre (telephonie)
*/ /* ============================================================================== */
#corpForm fieldset { /*** Mise en forme des cadres ***/ #corpForm fieldset { /*** Mise en forme des cadres ***/
margin: 0; margin: 0;