problème IE for color, suggest to use chrome or FF
This commit is contained in:
parent
b9b2c13ecf
commit
5fce629c3f
5 changed files with 43 additions and 23 deletions
|
|
@ -347,7 +347,7 @@ function ledger_fin_add_row()
|
|||
*/
|
||||
function ledger_add_row()
|
||||
{
|
||||
try{
|
||||
try{
|
||||
style='class="input_text"';
|
||||
var mytable=g("sold_item").tBodies[0];
|
||||
var ofirstRow=mytable.rows[1];
|
||||
|
|
@ -368,19 +368,18 @@ function ledger_add_row()
|
|||
new_tt.evalScripts();
|
||||
}
|
||||
|
||||
g("e_march"+nb.value+"_label").innerHTML=' ';
|
||||
g("e_march"+nb.value+"_label").value='';
|
||||
g("e_march"+nb.value+"_price").value='0';
|
||||
g("e_march"+nb.value).value="";
|
||||
g("e_quant"+nb.value).value="1";
|
||||
if ($("e_march"+nb.value+"_tva_amount")) g("e_march"+nb.value+"_tva_amount").value=0;
|
||||
$("e_march"+nb.value+"_label").innerHTML='';
|
||||
$("e_march"+nb.value+"_label").value='';
|
||||
$("e_march"+nb.value+"_price").value='0';
|
||||
$("e_march"+nb.value).value="";
|
||||
$("e_quant"+nb.value).value="1";
|
||||
if ($("e_march"+nb.value+"_tva_amount")) $("e_march"+nb.value+"_tva_amount").value=0;
|
||||
|
||||
nb.value++;
|
||||
|
||||
new_tt.evalScripts();
|
||||
} catch(e) {alert(e.message);}
|
||||
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @brief compute the sum of a purchase, update the span tvac, htva and tva
|
||||
* all the needed data are taken from the document (hidden field : gdossier)
|
||||
|
|
|
|||
|
|
@ -1296,19 +1296,19 @@ h1.title {
|
|||
text-transform: uppercase;
|
||||
}
|
||||
h2.title {
|
||||
background-color:#879ED4;
|
||||
background-color:#606c88;
|
||||
color:#FFFFFF;
|
||||
text-align:center;
|
||||
padding:0.24%;
|
||||
border:1px solid #00008B;
|
||||
background: #606c88; /* Old browsers */
|
||||
background: #606c88 !important; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #606c88 0%, #3f4c6b 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#606c88), color-stop(100%,#3f4c6b)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #606c88 0%,#3f4c6b 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#606c88), color-stop(100%,#3f4c6b)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #606c88 0%,#3f4c6b 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #606c88 0%,#3f4c6b 100%); /* Opera 11.10+ */
|
||||
background: -ms-linear-gradient(top, #606c88 0%,#3f4c6b 100%); /* IE10+ */
|
||||
background: linear-gradient(to bottom, #606c88 0%,#3f4c6b 100%); /* W3C */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#606c88', endColorstr='#3f4c6b',GradientType=0 ); /* IE6-9 */
|
||||
|
||||
|
||||
}
|
||||
h3.title {
|
||||
|
|
|
|||
|
|
@ -290,11 +290,7 @@ function html_page_start($p_theme="", $p_script="", $p_script2="")
|
|||
else
|
||||
$title=$_REQUEST['ac']." ".$title;
|
||||
}
|
||||
if ( strpos ($_SERVER['HTTP_USER_AGENT'],'MSIE 8.0') != 0 ||
|
||||
strpos ($_SERVER['HTTP_USER_AGENT'],'MSIE 9.0') != 0 )
|
||||
$is_msie=1;
|
||||
else
|
||||
$is_msie=0;
|
||||
$is_msie=is_msie();
|
||||
|
||||
if ($is_msie == 0 )
|
||||
echo '<!doctype html>';
|
||||
|
|
@ -308,7 +304,7 @@ function html_page_start($p_theme="", $p_script="", $p_script2="")
|
|||
$style=trim($style);
|
||||
$DIR=dirname(__FILE__);
|
||||
echo "<HEAD>";
|
||||
// if ( $is_msie == 1 )echo ' <meta http-equiv="x-ua-compatible" content="IE=edge"/>';
|
||||
if ( $is_msie == 1 )echo ' <meta http-equiv="x-ua-compatible" content="IE=edge"/>';
|
||||
echo "
|
||||
<TITLE>$title</TITLE>
|
||||
<link rel=\"icon\" type=\"image/ico\" href=\"favicon.ico\" />
|
||||
|
|
@ -1167,4 +1163,17 @@ function factory_Ledger(Database &$p_cn, $ledger_id)
|
|||
}
|
||||
return $obj;
|
||||
}
|
||||
/**
|
||||
* Check if we use IE 8 or 9
|
||||
* @return int 1 for IE8-9;0 otherwise
|
||||
*/
|
||||
function is_msie()
|
||||
{
|
||||
if ( strpos ($_SERVER['HTTP_USER_AGENT'],'MSIE 8.0') != 0 ||
|
||||
strpos ($_SERVER['HTTP_USER_AGENT'],'MSIE 9.0') != 0 )
|
||||
$is_msie=1;
|
||||
else
|
||||
$is_msie=0;
|
||||
return $is_msie;
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -203,7 +203,11 @@ echo $op->form_get('do.php?'.$url);
|
|||
echo '</div>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<div style="position:absolute" class="content">';
|
||||
if ( is_msie() == 0 )
|
||||
echo '<div style="position:absolute" class="content">';
|
||||
else
|
||||
echo '<div class="content">';
|
||||
|
||||
echo '<p class="notice">'.$p_msg.'</p>';
|
||||
echo "<FORM class=\"print\"NAME=\"form_detail\" METHOD=\"POST\" >";
|
||||
/* request for a predefined operation */
|
||||
|
|
|
|||
|
|
@ -142,7 +142,11 @@ $p_msg="";
|
|||
|
||||
if ( ! isset($correct))
|
||||
{
|
||||
echo '<div style="position:absolute" class="content">';
|
||||
if ( is_msie() == 0 )
|
||||
echo '<div style="position:absolute" class="content">';
|
||||
else
|
||||
echo '<div class="content">';
|
||||
|
||||
$Ledger=new Acc_Ledger_Sold($cn,$_POST['p_jrn']);
|
||||
$internal=$Ledger->insert($_POST);
|
||||
|
||||
|
|
@ -185,7 +189,11 @@ $p_msg="";
|
|||
//
|
||||
// pre defined operation
|
||||
//
|
||||
echo '<div style="position:absolute" class="content">';
|
||||
if ( is_msie() == 0 )
|
||||
echo '<div style="position:absolute" class="content">';
|
||||
else
|
||||
echo '<div class="content">';
|
||||
|
||||
if ( !isset($_REQUEST ['p_jrn']) )
|
||||
{
|
||||
$def_ledger=$Ledger->get_first('ven',2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue