Merged revisions 2994-3000 via svnmerge from

svn+ssh://danydb@svn/svn/phpcompta/branches/rel500

........
  r2994 | danydb | 2010-04-09 19:11:55 +0200 (Fri, 09 Apr 2010) | 2 lines
  
  Fix Bug : stock good avoid the record of a new card
........
  r2995 | danydb | 2010-04-09 23:15:57 +0200 (Fri, 09 Apr 2010) | 2 lines
  
  For windows, improve the installation (correct default values)
........
  r2996 | danydb | 2010-04-09 23:16:38 +0200 (Fri, 09 Apr 2010) | 1 line
  
  For windows improve installation
........
  r2997 | danydb | 2010-04-09 23:21:07 +0200 (Fri, 09 Apr 2010) | 1 line
  
  what_os is redefined
........
  r2998 | danydb | 2010-04-11 20:52:52 +0200 (Sun, 11 Apr 2010) | 1 line
  
  improve appearance
........
  r2999 | danydb | 2010-04-11 20:53:06 +0200 (Sun, 11 Apr 2010) | 1 line
  
  improve appearance
........
  r3000 | danydb | 2010-04-11 20:57:35 +0200 (Sun, 11 Apr 2010) | 1 line
  
  echo_warning use the CSS class error instead of info
........
This commit is contained in:
Dany De Bontridder 2010-04-12 09:36:01 +00:00
parent f22f87f5b2
commit 8ed6f7f707
7 changed files with 25 additions and 29 deletions

View file

@ -117,6 +117,7 @@ if ( ! file_exists ( $file) ) {
"php_value memory_limit 20M",
"AddDefaultCharset utf-8",
"php_value error_reporting 10239",
"php_value post_max_size 15M",
"php_flag short_open_tag on",
"php_value upload_max_filesize 10M",
"php_value session.use_trans_sid 1");

View file

@ -580,14 +580,14 @@ div.popup_border_title {
/*background:lightgrey;*/
z-index:10;
/*border:dotted 1px black;*/
border: 3px groove black;
border: 2px outset #201e87;
background-color:#879ED4;
font-size: 110% ;
font-family: arial,sans-serif;
font-style: italic;
font-weight: bolder;
text-align:center;
border-bottom: 2px solid #201e87;
/*border-bottom: 2px solid #201e87;*/
color: white;
display:none;
/*opacity:1;
@ -618,12 +618,12 @@ div.popup_border_notitle {
div.popup_content {
position:absolute;
top:5%;
top:4%;
bottom:0;
left:0;
right:0;
width:100%;
height:95%;
height:96%;
overflow: auto;
background-color:lightblue;
font-size:10px ;

View file

@ -367,7 +367,7 @@ function ShowItem($p_array,$p_dir='V',$class="mtitle",$class_ref="mtitle",$defau
*/
function echo_warning($p_string)
{
echo '<H2 class="info">'.$p_string."</H2>";
echo '<H2 class="error">'.$p_string."</H2>";
}
/*!
* \brief Show the periode which found thanks its id

View file

@ -450,7 +450,8 @@ de donn&eacute;es");
if ( $r==0)
return false;
return true;
} /*!
}
/*!
*\brief create a string containing the value separated by comma
* for use in a SQL in statement
*\return the string or empty if nothing is found

View file

@ -545,24 +545,6 @@ Array
$this->cn->exec_sql($sql);
continue;
}
// stock
if ( $id == ATTR_DEF_STOCK ) {
$st=$this->cn->count_sql('select * from stock_goods where '.
" upper(sg_code)=upper('$value')");
if ( $st == 0 ) {
$user=new User($this->cn);
if ( $exercice == 0 ) throw new Exception ('Veuillez choisir une période dans vos préférences ',1);
$str_stock=sprintf('insert into stock_goods(f_id,sg_quantity,sg_comment,sg_code,sg_type,sg_exercice) '.
' values (%d,0,\'%s\',upper(\'%s\'),\'d\',\'%s\')',
$fiche_id,
'initial',
FormatString($value),
$exercice);
$this->cn->exec_sql($str_stock);
}
}
// name
if ( $id == ATTR_DEF_NAME )
{

View file

@ -25,6 +25,16 @@
*/
require_once("class_itext.php");
function is_unix() {
$inc_path=get_include_path();
if ( strpos($inc_path,";") != 0 ) {
$os=0; /* $os is 0 for windoz */
} else {
$os=1; /* $os is 1 for unix */
}
return $os;
}
/*!\brief
@ -39,9 +49,10 @@ require_once("class_itext.php");
function config_file_form($p_array=null)
{
if ( $p_array == null ) {
/* default value */
$ctmp='/tmp';
$cpath='/usr/bin';
$os=is_unix();
/* default value */
$ctmp=($os==1)?'/tmp':'c:\tmp';
$cpath=($os==1)?'/usr/bin':'c:\phpcompta\postgresql\bin';
$cuser='phpcompta';
$cpasswd='dany';
$cport=5432;
@ -49,6 +60,7 @@ function config_file_form($p_array=null)
} else extract ($p_array);
$text=new IText();
$text->size=25;
$r='';
$r.='<div style="position:float;float:left;text-align:right;line-height:1.8em;padding:0 0.9em 0 0">';

View file

@ -21,9 +21,9 @@
<? endfor; ?>
</table>
<span style="background-color:#9FFFF1;border:1px solid black">
<span style="background-color:#9FFFF1;border:1px solid black;padding:2px">
<? echo _("Nombre d'enregistrements:$i"); ?>
</span>
<br>
</div>
</fieldset>