améliore apparence

This commit is contained in:
Dany De Bontridder 2013-08-30 13:57:39 +00:00
parent 545342030c
commit 10c39622cc
22 changed files with 221 additions and 136 deletions

View file

@ -332,7 +332,7 @@ case 'fs':
$r.='<span style="margin-left:50px">';
$r.=_('Fiche contenant').HtmlInput::infobulle(19);
$r.=$q->input();
$r.=HtmlInput::submit('fs',_('Recherche'));
$r.=HtmlInput::submit('fs',_('Recherche'),"","smallbutton");
$r.='</span>';
$r.=dossier::hidden().HtmlInput::hidden('op','fs');
$array=array();

View file

@ -107,7 +107,7 @@ if ( isset($_GET['f_id']))
require_once('template/history_top.php');
$detail_card=HtmlInput::card_detail($fiche->strAttribut(ATTR_DEF_QUICKCODE),$fiche->getName());
echo h2info( $fiche->getName().'['.$fiche->strAttribut(ATTR_DEF_QUICKCODE).']');
echo '<p style="text-align:center;font-size:125%">'.$detail_card.'</p>';
echo '<p style="text-align:center;">'.$detail_card.'</p>';
if ( $fiche->HtmlTable($array,0,$from_div)==-1){
echo h2("Aucune opération pour l'exercice courant",'class="error"');

View file

@ -80,7 +80,7 @@ case "sf":
$it->size=30;
$it->value=(isset($q))?$q:'';
$str_poste=$it->input();
$str_submit=HtmlInput::submit('sf',_('Recherche'));
$str_submit=HtmlInput::submit('sf',_('Recherche'),"","smallbutton");
$r='';
$r=HtmlInput::anchor_close('search_account');
$r.='<div> '.h2info(_('Poste Comptable')).'</div>';

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Before After
Before After

View file

@ -2,10 +2,11 @@
BODY {
background-color:#EDF3FF;
font-family:verdana,sans-serif,helvetica;
font-family:arial,verdana,sans-serif,helvetica;
padding: 0px 0px 0px 0px ;
margin:0;
color:blue;
font-size:1em;
}
.notice {
color:red;
@ -21,17 +22,17 @@ table.sortable, table.table_large, table.result ,table.resultfooter {
}
table.resultfooter tfoot {
font-size:110%;
font-size:0.57em;
font-weight: bold;
}
table.sortable th, table.table_large th,table.result th {
font-weight:bold;
font-family:verdana,sans-serif,helvetica;
font-family:arial,verdana,sans-serif,helvetica;
border-bottom:1px solid blue;
border-top:0;
font-size:90%;
font-size:0.75em;;
color:#25238F;
text-align: left;
@ -40,8 +41,8 @@ table.sortable th, table.table_large th,table.result th {
}
h2 {
font-family:verdana,sans-serif,helvetica;
font-size:120%;
font-family:arial,verdana,sans-serif,helvetica;
font-size:1.35em;
color:grey;
margin:1px;
padding:1px;
@ -50,14 +51,14 @@ h2 {
div.info {
background:#879ed4;
color:white;
font-size:120%;
font-size:0.87em;
text-align:center;
}
content h2.info {
background:#879ed4;
color:black;
font-size:120%;
font-size:0.87em;
text-align:center;
padding:0px;
margin:0px;
@ -65,7 +66,7 @@ content h2.info {
redcontent h2.info {
background:#879ed4;
color:white;
font-size:120%;
font-size:0.87em;
text-align:center;
padding:0px;
margin:0px;
@ -73,7 +74,7 @@ redcontent h2.info {
h2.info {
background-color:#879ed4;
color:white;
font-size:120%;
font-size:1.34em;
text-align:center;
padding:0px;
margin:0px;
@ -84,13 +85,13 @@ h2.info {
h3.info {
background:#879ed4;
color:white;
font-size:120%;
font-size:0.87em;
text-align:center;
}
h2.info2 {
color:blue;
font-size:100%;
font-size:1em;;
text-align:center;
}
@ -99,7 +100,7 @@ h2.info2 {
h2.error {
background:red;
color:white;
font-size:120%;
font-size:0.87em;
}
@ -138,12 +139,13 @@ td.tool a.mtitle {
text-decoration:none;
display:inline;
color: blue;
font-size:75%;
font-size:0.75em;
}
td.tool a.mtitle:hover {
text-decoration:none;
display:inline;
font-size:75%;
font-size:0.75em;;
color: darkblue;
background-color:#5D90CD;
@ -169,14 +171,14 @@ div.u_subt2menu {
div.lmenu {
float:left;
clear:left;
font-size:90%;
font-size:0.75em;;
}
div.lextmenu {
float:left;
font-family:verdana,sans-serif,helvetica;
font-size:90%;
font-family:arial,verdana,sans-serif,helvetica;
font-size:0.75em;;
}
div.searchmenu {
@ -189,8 +191,8 @@ div.searchmenu {
div.recherche_form{
width:700px;
font-size:90%;
font-family:verdana,sans-serif,helvetica;
font-size:0.75em;;
font-family:arial,verdana,sans-serif,helvetica;
border-style:outset;
border-width:1px;
@ -200,8 +202,8 @@ div.redcontent{
float:left;
padding-top:7px;
padding-left:8px;
font-size:90%;
font-family:verdana,sans-serif,helvetica;
font-size:0.75em;;
font-family:arial,verdana,sans-serif,helvetica;
width:75%;
}
@ -209,7 +211,7 @@ div.content{
padding-top:0.0030%;
margin-top:0.0030%;
width:100%;
font-family:verdana,sans-serif,helvetica;
font-family:arial,verdana,sans-serif,helvetica;
}
@ -218,12 +220,12 @@ div.content30{
float:left;
padding-top:7px;
width:35%;
font-family:verdana,sans-serif,helvetica;
font-family:arial,verdana,sans-serif,helvetica;
}
div.no span{
position:static;
font-family:verdana,sans-serif,helvetica;
font-family:arial,verdana,sans-serif,helvetica;
font-weight:bold;
color:red;
@ -238,7 +240,7 @@ table.document {
}
table.document th{
font-weight:bold;
font-family:verdana,sans-serif,helvetica;
font-family:arial,verdana,sans-serif,helvetica;
border-bottom:2px solid blue;
border-top:0;
color:#25238F;
@ -254,7 +256,7 @@ table.document th{
color:white;
background-color:red;
font-weight: bolder;
font-size:120%;
font-size:0.87em;
}
table.mtitle {
@ -273,20 +275,21 @@ td.mtitle {
text-align:center;
width:95px;
height :30px;
font-size:90%;
font-size:0.75em;;
background-color:#DDE6FF;
border:1px solid #99B1DF;
border-radius:5px;
}
td.msubtitle {
text-align:center;
height:20px;
font-size:90%;
font-size:0.75em;;
background-color:#DDE6FF;
}
span.mtitle {
color:gray;
background-color:blue;
font-size:90%;
font-size:0.75em;;
border-style:groove
}
span.odd {
@ -300,10 +303,10 @@ span.even {
tr.odd {
background-color:#DDE6FF;
font-size:75%;
font-size:0.87em;;
}
tr.even {
font-size:75%;
font-size:0.87em;;
}
td.odd{
background-color:#DDE6FF ;
@ -314,16 +317,19 @@ td.even{
td.cell{
height:32px;
padding: 1px;
}
td.selectedcell{
border-style:inset;
border-color:blue;
border-width:1pt ;
font-size:90%;
font-size:1.2em;
font-weight: bold;
background:#5D90CD ;
color:white;
text-align:center;
width:120px;
border-radius:5px;
}
a.mtitle {
text-decoration:none;
@ -332,7 +338,6 @@ a.mtitle {
}
a.mtitle:hover {
font-size:110%;
text-decoration:none;
display:inline;
@ -341,13 +346,13 @@ a.mtitle:hover {
}
td.selectedcell a.mtitle,div.content td.selectedcell a.mtitle {
font-size:90%;
font-size:0.75em;;
text-decoration:none;
display:block;
color:white;
}
a.dossier {
font-size:90%;
font-size:0.75em;;
text-decoration:none;
display:block;
color: #202267;
@ -380,11 +385,11 @@ a.cell {
display:block;
color:blue;
background-color:white;
font-size:90%;
font-size:0.75em;;
}
a.cell:hover {
font-size:90%;
font-size:0.75em;;
color:white;
background-color:#5D90CD;
text-decoration:none;
@ -414,8 +419,8 @@ a.one:hover {
a.detail
{
font-size:90%;
font-family:verdana,sans-serif,helvetica;
font-size:0.87em;;
font-family:arial,verdana,sans-serif,helvetica;
text-decoration: none;
display: block;
color: blue;
@ -423,8 +428,8 @@ a.detail
a.detail:hover
{
font-size:90%;
font-family:verdana,sans-serif,helvetica;
/* font-size:0.75em;; */
font-family:arial,verdana,sans-serif,helvetica;
color: white;
background-color: rgb(93, 144, 205);
text-decoration: none;
@ -436,7 +441,7 @@ li.menuv,ol.menuv {
padding:1em 1em;
}
div.redcontent a {
font-family:verdana,sans-serif,helvetica;
font-family:arial,verdana,sans-serif,helvetica;
text-decoration: none;
display: block;
color: blue;
@ -444,7 +449,7 @@ div.redcontent a {
}
div.redcontent a:hover {
font-family:verdana,sans-serif,helvetica;
font-family:arial,verdana,sans-serif,helvetica;
color: white;
background-color: rgb(93, 144, 205);
text-decoration: none;
@ -452,7 +457,7 @@ div.redcontent a:hover {
}
div.content a {
font-family:verdana,sans-serif,helvetica;
font-family:arial,verdana,sans-serif,helvetica;
text-decoration: none;
display: block;
color: blue;
@ -462,7 +467,7 @@ div.content a {
div.content a:hover {
font-family:verdana,sans-serif,helvetica;
font-family:arial,verdana,sans-serif,helvetica;
color: white;
background-color: rgb(93, 144, 205);
text-decoration: none;
@ -488,7 +493,6 @@ div.redcontent a.mtitle:hover {
}
div.content a.mtitle {
font-size:90%;
text-decoration:none;
display:inline;
color:blue;
@ -506,7 +510,7 @@ div.content a.mtitle:hover {
}
div.redcontent input.text {
font-family:verdana,sans-serif,helvetica;
font-family:arial,verdana,sans-serif,helvetica;
font-weight:normal;
border-color:336699;
border-style:solid;
@ -515,7 +519,7 @@ div.redcontent input.text {
color:blue;
}
div.content input.text {
font-family:verdana,sans-serif,helvetica;
font-family:arial,verdana,sans-serif,helvetica;
font-weight:normal;
border-color:336699;
border-style:solid;
@ -539,9 +543,9 @@ div.redcontent textarea:focus {
color: #1a207d;
border-collapse:collapse;
}
a.document{
font-size:90%;
text-decoration:none;
div.content a.document, a.document{
/* font-size:0.75em;;*/
text-decoration:underline;
display:block;
}
a.document:hover {
@ -568,11 +572,11 @@ a.document:hover {
h1.legend, legend {
font-weight: bold;
font-style: italic;
font-size: 120% ;
font-size: 1.2em ;
}
fieldset fieldset legend {
font-size:120%;
font-size:0.87em;
color:grey;
}
select {
@ -614,7 +618,7 @@ span.action a.action {
padding-left: 3px;
padding-right:3px;
text-decoration:none;
font-size:120%;
font-size:0.87em;
display:inline;
color:black;
@ -651,8 +655,8 @@ div.popup_border_title {
/*border:dotted 1px black;*/
border: 2px outset #201e87;
background-color:#879ED4;
font-size: 90% ;
font-family: verdana,sans-serif,helvetica;
font-size:0.75em; ;
font-family: arial,verdana,sans-serif,helvetica;
font-style: italic;
font-weight: bolder;
text-align:center;
@ -674,7 +678,7 @@ div.popup_border_notitle {
/*border:dotted 1px black;*/
border: 3px outset #201e87;
background-color: #879ED4;
font-family: verdana,sans-serif,helvetica;
font-family: arial,verdana,sans-serif,helvetica;
font-style: italic;
font-weight: bolder;
text-align:center;
@ -695,8 +699,8 @@ div.popup_content {
height:96%;
overflow: auto;
background-color:#DFE7FF;
font-size:90% ;
font-family: verdana,sans-serif,helvetica;
font-size:0.75em; ;
font-family: arial,verdana,sans-serif,helvetica;
font-style: normal;
font-weight: normal;
color: black;
@ -713,7 +717,7 @@ div.autocomplete {
margin:0;
padding:0;
text-align:left;
font-size:90%;
font-size:0.75em;;
}
div.autocomplete em {
@ -738,7 +742,7 @@ div.autocomplete ul li {
/*height:32px;*/
cursor:pointer;
}
span.informal{ font-size:90%; color:black;}
span.informal{ font-size:0.75em;; color:black;}
ul.select_table {
/*padding:5px;*/
@ -820,9 +824,38 @@ input[disabled], textarea[disabled], option[disabled], optgroup[disabled], selec
a#anchorbutton, .button, a.button,div.content a.button {
color:white;
font-weight: bold;
font-size:87%;
font-size:0.87em;
text-decoration:none;
font-family: verdana,sans-serif,helvetica;
font-family: arial,verdana,sans-serif,helvetica;
background-image: url("image/bg-submit2.gif");
background-repeat: repeat-x;
background-position: left;
border-style: outset ;
border-color: blue ;
border-width:0px;
padding:8px;
margin-top:3px;
cursor:pointer;
margin:1 2 1 2;
border-radius: 5px;
moz-border-radius:5px;
}
a#anchorbutton:hover, .button:hover,a.button:hover,div.content a.button:hover {
cursor:pointer;
background-color:white;
border-style: inset ;
color:red;
margin:1 2 1 2;
}
a#smallanchorbutton, .smallbutton, a.smallbutton,div.content a.smallbutton {
color:white;
font-weight: bold;
font-size:0.75em;
text-decoration:none;
font-family: arial,verdana,sans-serif,helvetica;
background-image: url("image/bg-submit2.gif");
background-repeat: repeat-x;
background-position: left;
@ -830,18 +863,18 @@ a#anchorbutton, .button, a.button,div.content a.button {
border-style: outset ;
border-color: blue ;
border-width:0;
padding-bottom: 4;
padding-top: 4;
padding-right: 6;
padding-left: 6;
padding-bottom: 3px;
padding-top: 3px;
padding-right: 3px;
padding-left: 3px;
margin-top:3px;
cursor:pointer;
margin:1 2 1 2;
border-radius: 4px;
moz-border-radius:4px;
border-radius: 2px;
moz-border-radius:2px;
}
a#anchorbutton:hover, .button:hover,a.button:hover,div.content a.button:hover {
a#smallanchorbutton:hover, .smallbutton:hover,a.smallbutton:hover,div.content a.smallbutton:hover {
cursor:pointer;
background-color:white;
border-style: inset ;
@ -854,6 +887,7 @@ td.tool {
background-color: white;
border-bottom-width: 2px;
text-align:center;
border-radius:2px;
}
div.topmenu {
@ -862,7 +896,7 @@ div.topmenu {
#dossier h2{
color:darkblue;
display:inline;
font-size:120%;
font-size:2em;
margin:0px;
padding:0px;
font-variant:small-caps;
@ -877,7 +911,6 @@ div.topmenu {
text-align:left;
z-index:1;
width:17.9687%;
font-size:95%;
}
div.welcome {
@ -903,8 +936,7 @@ body.op_detail_frame,div.op_detail_frame {
}
div.inner_box {
background-color:#e4e7ed;
font-size:90%;
font-family:verdana,sans-serif,helvetica;
font-family:arial,verdana,sans-serif,helvetica;
padding:0;
margin:0;
overflow:hidden;
@ -966,24 +998,24 @@ table.sortable td, table.table_large td, table.result td
}
table.info_op
{
font-size:90%;
// font-size:0.75em;;
width:100%;
}
table.info_op tr
{
font-size:120%;
// font-size:0.87em;
background:white;
}
h2#jrn_name
{
color:darkgrey;
font-size:274%;
font-size:2.74em;
margin-right:30%;
float: right;
}
tr.footer{
font-size:120%;
font-size:0.87em;
font-style: italic;
font-weight: bold;
@ -1009,7 +1041,7 @@ div#jrn_name_div
{
display:inline;
float:left;
font-size:75%;
font-size:0.75em;;
}
#calc
{
@ -1019,8 +1051,8 @@ div#jrn_name_div
div#wait_box
{
background-color:#F1E6E6;
font-size:120%;
font-family: verdana,helvetica,arial,sans-serif;
font-size:0.87em;
font-family: arial,verdana,helvetica,arial,sans-serif;
padding:0;
margin:0;
overflow:hidden;
@ -1054,14 +1086,14 @@ ul {
}
a.line,div.content a.line
{
font-size:110%;
font-size:0.87em;
text-decoration:underline;
display:inline;
color: #0000ff;
}
a.line:hover,div_content a.line
{
font-size:110%;
font-size:0.57em;
text-decoration:underline;
display:inline;
color: #0000ff;
@ -1076,7 +1108,7 @@ a.line:hover,div_content a.line
margin-left: 2px;
margin-right:2px;
margin-top:0px;
font-size:85%;
font-size:0.75em;
}
#close_div:hover
{
@ -1090,7 +1122,7 @@ a.line:hover,div_content a.line
border:1px solid blue;
margin-left: 2px;
margin-right:18px;
font-size:85%;
font-size:0.75em;
}
#popmeout:hover
{
@ -1109,12 +1141,12 @@ table.table_large tr.odd ,table.table_large tr.even {
width:300px;
border:1px solid black;
background-color:#aec3e8;
font-size:120%;
font-size:0.87em;
padding: 20px 20px;
}
span.invoice
{
font-size: 120%;
font-size: 1.2em;
font-style: italic;
display:block;
margin: 20px;
@ -1123,14 +1155,14 @@ span.invoice
a.nav,div.content a.nav,div.redcontent a.nav {
display:inline;
text-decoration:none;
font-size:90%;
font-size:0.75em;;
}
a.nav:hover,div.content a.nav:hover,div.redcontent a.nav:hover {
display:inline;
text-decoration:none;
background-color:darkblue;
color:white;
font-size:90%;
font-size:0.75em;;
}
#dossier {
display:inline;
@ -1146,30 +1178,30 @@ div.foldercontent {
h1.title {
color: blue;
font-size:120%;
font-size:0.87em;
font-style: italic;
}
h2.title {
color: blue;
font-size:120%;
font-size:0.87em;
font-weight:bold;
font-style: italic;
margin-left: 15px;
}
h3.title {
color: blue;
font-size:120%;
font-size:0.87em;
margin-left: 30px;
}
h4.title {
color: blue;
font-size:120%;
font-size:0.87em;
margin-left: 45px;
text-decoration: underline;
}
h5.title {
color: blue;
font-size:120%;
font-size:0.87em;
margin-left: 45px;
text-decoration: none;
font-style: italic;
@ -1180,6 +1212,7 @@ div.myfieldset
margin-left:5px;
margin-right: 5px;
border:lightgrey 2px groove;
border-radius: 4px;
}
#info_div {
display:none;
@ -1191,14 +1224,30 @@ div.myfieldset
left:45%;
}
div.menu2 a.mtitle{
font-size:85%;
}
div.menu3 {
}
#go_submit_id {
font-size:116%;
font-size:1.25em;
}
.decale {
margin-left:30px;
}
#folder {
font-size:1.4em;
width:auto;
border-width:0px;
border-collapse:separate;
}
/*#folder tr.odd,#folder tr.even {
font-size : 1.2em;
}*/
textarea.itextarea{
border:solid blue 1px;
width:90%;
margin-left:5%;
}

View file

@ -718,7 +718,7 @@ class Acc_Ledger extends jrn_def_sql
$tmp_jr_comment = h($row['jr_comment']);
$r.=$tmp_jr_comment;
$r.="</TD>";
$r.=td(h($row['n_text']), ' style="font-size:90%"');
$r.=td(h($row['n_text']), ' style="font-size:0.87em"');
// Amount
// If the ledger is financial :
// the credit must be negative and written in red
@ -914,7 +914,7 @@ class Acc_Ledger extends jrn_def_sql
$tmp_jr_comment = h($row['jr_comment']);
$r.=$tmp_jr_comment;
$r.="</TD>";
$r.=td(h($row['n_text']), ' style="font-size:90%"');
$r.=td(h($row['n_text']), ' style="font-size:0.87em%"');
// Amount
// If the ledger is financial :
// the credit must be negative and written in red
@ -3079,7 +3079,7 @@ class Acc_Ledger extends jrn_def_sql
$op->od_direct = 't';
if ($op->count() != 0)
{
echo HtmlInput::submit('use_opd', 'Utilisez une opération pr&eacute;d&eacute;finie');
echo HtmlInput::submit('use_opd', 'Utilisez une opération pr&eacute;d&eacute;finie',"","smallbutton");
echo $op->show_button();
}
echo '</form>';

View file

@ -174,7 +174,7 @@ class Anc_Table extends Anc_Acc_Link
{
echo td(nbm($tot_col[$i]),' class="num"');
}
echo td(nbm($tot_global),' class="num" style="font-size:130%;text-weight:bold;border:solid 1px blue"');
echo td(nbm($tot_global),' class="num" style="font-size:1.3em;text-weight:bold;border:solid 1px blue"');
echo '</tr>';
echo '</table>';
}
@ -228,7 +228,7 @@ class Anc_Table extends Anc_Acc_Link
{
echo td(nbm($tot_col[$i]),' class="num"');
}
echo td(nbm($tot_global),' class="num" style="font-size:130%;text-weight:bold;border:solid 1px blue"');
echo td(nbm($tot_global),' class="num" style="font-size:1.3em;text-weight:bold;border:solid 1px blue"');
echo '</tr>';
echo '</table>';

View file

@ -367,7 +367,8 @@ class Fiche
}
return $return;
}
/*!\brief make an array of attributes of the category of card (FICHE_DEF.FD_ID)
/**
* @brief make an array of attributes of the category of card (FICHE_DEF.FD_ID)
*The array can be used with the function insert, it will return a struct like this :
* in the first key (av_textX), X is the ATTR_DEF::AD_ID
\verbatim

View file

@ -175,15 +175,15 @@ class HtmlInput
$readonly=($this->readonly==false)?"false":"true";
echo "read only".$readonly."<br>";
}
static function submit ($p_name,$p_value,$p_javascript="")
static function submit ($p_name,$p_value,$p_javascript="",$p_class="button")
{
return '<INPUT TYPE="SUBMIT" class="button" NAME="'.$p_name.'" ID="'.$p_name.'_submit_id" VALUE="'.$p_value.'" '.$p_javascript.'>';
return '<INPUT TYPE="SUBMIT" class="'.$p_class.'" NAME="'.$p_name.'" ID="'.$p_name.'_submit_id" VALUE="'.$p_value.'" '.$p_javascript.'>';
}
static function button ($p_name,$p_value,$p_javascript="")
static function button ($p_name,$p_value,$p_javascript="",$p_class="button")
{
return '<INPUT TYPE="button" class="button" NAME="'.$p_name.'" ID="'.$p_name.'" VALUE="'.$p_value.'" '.$p_javascript.'>';
return '<INPUT TYPE="button" class="'.$p_class.'" NAME="'.$p_name.'" ID="'.$p_name.'" VALUE="'.$p_value.'" '.$p_javascript.'>';
}
static function reset ($p_value)
@ -718,7 +718,7 @@ class HtmlInput
$r= "
<span>
<input id=\"lk_".$p_table_id."\" class=\"input_text\" name=\"filter\" onkeyup=\"filter_table(this, '$p_table_id','$p_col',$start_row )\" type=\"text\">
<input type=\"button\" class=\"button\" onclick=\"$('lk_".$p_table_id."').value='';filter_table($('lk_".$p_table_id."'), '$p_table_id','$p_col',$start_row );\" value=\"X\">
<input type=\"button\" class=\"smallbutton\" onclick=\"$('lk_".$p_table_id."').value='';filter_table($('lk_".$p_table_id."'), '$p_table_id','$p_col',$start_row );\" value=\"X\">
</span>
";
return $r;

View file

@ -39,6 +39,7 @@ class IButton extends HtmlInput
$tab=(isset($this->tabindex))?' tabindex="'.$this->tabindex.'"':"";
$r='<input type="BUTTON" name="'.$this->name.'"'.
' class="button" '.
$this->extra.
$tab.
' id="'.$this->id.'"'.
' value="'.$this->label.'"'.
@ -87,3 +88,29 @@ class IButton extends HtmlInput
{
}
}
class ISmallButton extends IButton
{
var $label;
/*!\brief show the html input of the widget*/
public function input($p_name=null,$p_value=null,$p_style=null)
{
$this->name=($p_name==null)?$this->name:$p_name;
$this->value=($p_value==null)?$this->value:$p_value;
$this->label=(trim($this->label) != '')?$this->label:$this->value;
if ( $this->readOnly==true) return $this->display();
$extra= ( isset($this->extra))?$this->extra:"";
$this->id=($this->id=="")?$this->name:$this->id;
$tab=(isset($this->tabindex))?' tabindex="'.$this->tabindex.'"':"";
$r='<input type="BUTTON" name="'.$this->name.'"'.
' class="smallbutton" '.
$this->extra.
$tab.
' id="'.$this->id.'"'.
' value="'.$this->label.'"'.
' onClick="'.$this->javascript.'"'.$extra.'>';
$attr=$this->get_js_attr();
$r.=$attr;
return $r;
}
}

View file

@ -287,7 +287,8 @@ class ICard extends HtmlInput
{
if ( $this->readOnly==true) return '';
if ( ! isset($this->id )) $this->id=$this->name;
$button=new IButton($this->name.'_bt');
$button=new ISmallButton($this->name.'_bt');
$button->label=_('Recherche');
$a="";
foreach (array('typecard','jrn','label','price','tvaid') as $att)
{

View file

@ -92,7 +92,8 @@ class IPoste extends HtmlInput
$this->javascript="";
$this->extra2="all";
$this->attribute=array();
$this->id=$p_id;
$this->id=$p_id;
}
@ -129,7 +130,9 @@ class IPoste extends HtmlInput
public function dsp_button()
{
$this->id=($this->id=="")?$this->name:$this->id;
$ib=new IButton($this->id.'_bt');
$ib=new ISmallButton($this->id.'_bt');
$ib->label=_('Recherche');
// $ib->extra='style="background:url(image/search.png) no-repeat;background-position:0;padding-left:36px;"';
$ib->javascript='search_poste(this)';
/* add the property */

View file

@ -31,15 +31,15 @@ class ITextarea extends HtmlInput
{
$this->name=($p_name==null)?$this->name:$p_name;
$this->value=($p_value==null)?$this->value:$p_value;
if ( !isset ($this->style )) $this->style=' style="border:solid blue 1px" ';
if ( !isset ($this->style )) $this->style=' class="itextarea" ';
$this->id=($this->id=="")?$this->name:$this->id;
if ( $this->readOnly==true) return $this->display();
$r="";
$r.='<TEXTAREA '.$this->style.' name="'.$this->name.'" id="'.$this->id.'"';
$r.=" rows=\"$this->heigh\" ";
$r.=" cols=\"$this->width\" ";
/*$r.=" rows=\"$this->heigh\" ";
$r.=" cols=\"$this->width\" "; */
$r.='>';
$r.=$this->value;

View file

@ -127,7 +127,7 @@ class ITva_Popup extends HtmlInput
$this->id=($this->id=="")?$this->name:$this->id;
// button
$bt=new IButton('bt_'.$this->id);
$bt=new ISmallButton('bt_'.$this->id);
$bt->tabindex="-1";
$bt->label=_(' TVA ');
$bt->set_attribute('gDossier',dossier::id());

View file

@ -227,7 +227,7 @@ class Pre_operation_detail
$hid=new IHidden();
$r=$hid->input("action","use_opd");
$r.=$hid->input("jrn_type",$this->get("ledger_type"));
$r.= HtmlInput::submit('use_opd','Utilisez une op&eacute;ration pr&eacute;d&eacute;finie');
$r.= HtmlInput::submit('use_opd','Utilisez une op&eacute;ration pr&eacute;d&eacute;finie','','smallbutton');
$r.= $this->show_button();
return $r;

View file

@ -935,7 +935,7 @@ class User
if ($p_array == 0)
return $result . " * Aucun dossier *";
$result.="<TABLE id=\"folder\" style=\"font-size:154%;width:auto;border-width:0px;border-collapse:collapse;\">";
$result.="<TABLE id=\"folder\" >";
for ($i = 0; $i < sizeof($p_array); $i++)
{

View file

@ -85,7 +85,7 @@ echo '</FORM>';
$search_card=new IText('card_search');
$search_card_js=sprintf('onclick="boxsearch_card(\'%d\')"',dossier::id());
?>
<div style="position:absolute;right:230px;top:110px">
<div style="position:absolute;right:15.625%;top:35%">
<?php echo _('Recherche de fiche')?> <?php echo HtmlInput::infobulle(18)?> :<?php echo $search_card->input()?>
<?php echo HtmlInput::button_anchor("Chercher","javascript:void(0)","",$search_card_js)?>

View file

@ -88,9 +88,7 @@ echo HtmlInput::request_to_hidden(array('ac'));
echo $ledger->input($p_post);
echo HtmlInput::button('add', _('Ajout d\'une ligne'), 'onClick="quick_writing_add_row()"');
echo HtmlInput::submit('summary', _('Sauvez'));
echo '<div style="position:absolute;width:40%;right:20px">';
echo '<table class="info_op">'.
@ -103,6 +101,12 @@ echo '</div>';
$iconcerned=new IConcerned('jrn_concerned');
$iconcerned->amount_id="totalDeb";
echo "Opération rapprochée : ".$iconcerned->input();
echo '<p>';
echo HtmlInput::button('add', _('Ajout d\'une ligne'), 'onClick="quick_writing_add_row()"');
echo HtmlInput::submit('summary', _('Sauvez'));
echo '</p>';
echo '</form>';
echo "<script>checkTotalDirect();</script>";

View file

@ -14,7 +14,7 @@ echo '<tr>';
if ( $i==0) {
$prev=$array[$i]['ga_id'];
echo '<tr>';
echo td($array[$i]['ga_id'],' colspan="5" style="width:auto;font-size:120%"');
echo td($array[$i]['ga_id'],' colspan="5" style="width:auto;font-size:1.2em"');
echo '</tr>';
?>
<tr>
@ -39,7 +39,7 @@ if ( $prev != $array[$i]['ga_id'])
$tot_group_deb=0;$tot_group_cred=0;
$prev=$array[$i]['ga_id'];
echo '<tr>';
echo td($array[$i]['ga_id'],' colspan="5" style="width:auto;font-size:120%"');
echo td($array[$i]['ga_id'],' colspan="5" style="width:auto;font-size:1.2em"');
echo '</tr>';
?>
<tr>

View file

@ -48,7 +48,7 @@ if ( ! empty ($array) ) {
'</a>'.
'</td>'.
'<td>'.
HtmlInput::button('del','X','onClick="todo_list_remove('.$row['tl_id'].')"').
HtmlInput::smallbutton('del','X','onClick="todo_list_remove('.$row['tl_id'].')"').
'</td>'.
'</tr>';
}

View file

@ -197,12 +197,12 @@
<p>
<script language="javascript">
function enlarge(p_id_textarea){
$(p_id_textarea).rows=40; $(p_id_textarea).cols=120;
$(p_id_textarea).style.height='80%';
$('bt_enlarge').style.display="none";
$('bt_small').style.display="inline";
}
function small(p_id_textarea){
$(p_id_textarea).rows=5; $(p_id_textarea).cols=70;
$(p_id_textarea).style.height="auto";
$('bt_enlarge').style.display="inline";
$('bt_small').style.display="none";

View file

@ -39,11 +39,11 @@ $cred=$cn->get_value("select sum (j_montant) from jrnx where j_debit='f' $sql_ye
if ( $cred == $deb )
{
$result ='<span style="color:green;font-size:120%;font-weight:bold;"> OK </span>';
$result ='<span style="color:green;font-size:1.2em;font-weight:bold;"> OK </span>';
}
else
{
$result ='<span style="color:red;font-size:120%;font-weight:bold;"> NON OK </span>';
$result ='<span style="color:red;font-size:1.2em;font-weight:bold;"> NON OK </span>';
}
printf ('<li> Solde Grand Livre : debit %f credit %f %s</li>',$deb,$cred,$result);
@ -60,11 +60,11 @@ foreach ($jrn as $l)
if ( $cred == $deb )
{
$result ='<span style="color:green;font-size:120%;font-weight:bold;"> OK </span>';
$result ='<span style="color:green;font-size:1.2em;font-weight:bold;"> OK </span>';
}
else
{
$result ='<span style="color:red;font-size:120%;font-weight:bold;"> NON OK </span>';
$result ='<span style="color:red;font-size:1.2em;font-weight:bold;"> NON OK </span>';
}
printf ('<li> Journal %s Solde : debit %f credit %f %s</li>',$name,$deb,$cred,$result);
@ -79,11 +79,11 @@ $cred=$cn->get_value("select sum (j_montant) from jrnx where j_debit='f' $sql_ye
if ( $cred == $deb )
{
$result ='<span style="color:green;font-size:120%;font-weight:bold;"> OK </span>';
$result ='<span style="color:green;font-size:1.2em;font-weight:bold;"> OK </span>';
}
else
{
$result ='<span style="color:red;font-size:120%;font-weight:bold;"> NON OK </span>';
$result ='<span style="color:red;font-size:1.2em;font-weight:bold;"> NON OK </span>';
}
printf ('<li> Total solde Grand Livre : debit %f credit %f %s</li>',$deb,$cred,$result);
@ -99,11 +99,11 @@ foreach ($jrn as $l)
if ( $cred == $deb )
{
$result ='<span style="color:green;font-size:120%;font-weight:bold;"> OK </span>';
$result ='<span style="color:green;font-size:1.2em;font-weight:bold;"> OK </span>';
}
else
{
$result ='<span style="color:red;font-size:120%;font-weight:bold;"> NON OK </span>';
$result ='<span style="color:red;font-size:1.2em;font-weight:bold;"> NON OK </span>';
}
printf ('<li> Journal %s total : debit %f credit %f %s</li>',$name,$deb,$cred,$result);