CSS Esthetic : comment span or IText can have the CSSclass label_item
This commit is contained in:
parent
366c0c28dc
commit
d8a9bf6635
5 changed files with 29 additions and 16 deletions
|
|
@ -1075,9 +1075,9 @@ a.line:hover,div_content a.line
|
|||
{
|
||||
color:white;
|
||||
text-decoration:none;
|
||||
margin-left: 2px;
|
||||
margin-left: 6px;
|
||||
margin-right:6px;
|
||||
margin-top:0px;
|
||||
/*! padding-top:10px; */
|
||||
font-size:14px;
|
||||
font-size:1rem;
|
||||
cursor: pointer;
|
||||
|
|
@ -1086,7 +1086,8 @@ a.line:hover,div_content a.line
|
|||
}
|
||||
#close_div:hover
|
||||
{
|
||||
background-color: #F93;
|
||||
background-color: white;
|
||||
color: blue;
|
||||
}
|
||||
#popmeout
|
||||
{
|
||||
|
|
@ -1409,7 +1410,7 @@ div.bxbutton
|
|||
float:right;
|
||||
height:10px;
|
||||
display:block;
|
||||
margin-top:0%;
|
||||
margin-top:3px;
|
||||
margin-right:0.48%;
|
||||
}
|
||||
div.inner_box tr.odd {
|
||||
|
|
@ -2140,4 +2141,11 @@ span.inplace_edit_input
|
|||
div.content a.arrow {
|
||||
background-color:white;
|
||||
color:black;
|
||||
}
|
||||
/*
|
||||
* Span or input-text to contain name of a card
|
||||
*/
|
||||
.label_item {
|
||||
width: 500px;
|
||||
display:block;
|
||||
}
|
||||
|
|
@ -415,9 +415,9 @@ class Acc_Ledger_Fin extends Acc_Ledger
|
|||
$array[$i]['cname'] = $wcard_name->input();
|
||||
|
||||
// Comment
|
||||
$wComment = new IText("e_other$i" . "_comment", $tiers_comment);
|
||||
|
||||
$wComment->size = 35;
|
||||
$wComment = new IText("e_other$i" . "_comment", $tiers_comment);
|
||||
$wComment->style='class="input_text label_item"';
|
||||
|
||||
$wComment->setReadOnly($pview_only);
|
||||
$array[$i]['comment'] = $wComment->input();
|
||||
// amount
|
||||
|
|
|
|||
|
|
@ -1231,10 +1231,11 @@ class Acc_Ledger_Purchase extends Acc_Ledger
|
|||
if ( $g_parameter->MY_UPDLAB == 'Y')
|
||||
{
|
||||
$Span=new IText("e_march".$i."_label");
|
||||
$Span->css_size="40";
|
||||
$Span->style='class="input_text label_item"';
|
||||
} else
|
||||
{
|
||||
$Span=new ISpan("e_march".$i."_label");
|
||||
$Span->extra='class="label_item"';
|
||||
}
|
||||
$Span->value=$march_label;
|
||||
$Span->setReadOnly(false);
|
||||
|
|
|
|||
|
|
@ -1259,12 +1259,14 @@ EOF;
|
|||
$tvac->value = 0;
|
||||
$array[$i]['tvac'] = $tvac->input();
|
||||
|
||||
if ($g_parameter->MY_UPDLAB == 'Y') {
|
||||
$Span = new IText("e_march" . $i . "_label");
|
||||
|
||||
$Span->size= "40";
|
||||
} else {
|
||||
$Span = new ISpan("e_march" . $i . "_label");
|
||||
if ( $g_parameter->MY_UPDLAB == 'Y')
|
||||
{
|
||||
$Span=new IText("e_march".$i."_label");
|
||||
$Span->style='class="input_text label_item"';
|
||||
} else
|
||||
{
|
||||
$Span=new ISpan("e_march".$i."_label");
|
||||
$Span->extra='class="label_item"';
|
||||
}
|
||||
$Span->value = $march_label;
|
||||
$Span->setReadOnly(false);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,8 @@ class ISpan extends HtmlInput
|
|||
public function __construct($p_name="",$p_value="")
|
||||
{
|
||||
parent::__construct($p_name,$p_value);
|
||||
$this->style="display:inline";
|
||||
$this->style="";
|
||||
$this->extra="";
|
||||
|
||||
}
|
||||
/*!\brief show the html input of the widget, the span is always readonly */
|
||||
|
|
@ -38,9 +39,10 @@ class ISpan extends HtmlInput
|
|||
$this->value=($p_value==null)?$this->value:$p_value;
|
||||
|
||||
|
||||
$r=sprintf('<span style="%s" id="%s">%s </span>',
|
||||
$r=sprintf('<span style="%s" id="%s" %s>%s </span>',
|
||||
$this->style,
|
||||
$this->name,
|
||||
$this->extra,
|
||||
$this->value
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue