[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4843 - in phpcompta/trunk: doc/developper html include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4843 - in phpcompta/trunk: doc/developper html include |
Date: |
Sun, 27 May 2012 23:35:52 +0200 (CEST) |
Author: danydb
Date: 2012-05-27 23:35:52 +0200 (Sun, 27 May 2012)
New Revision: 4843
Modified:
phpcompta/trunk/doc/developper/Doxyfile
phpcompta/trunk/html/ajax.php
phpcompta/trunk/html/ajax_card.php
phpcompta/trunk/html/ajax_history.php
phpcompta/trunk/html/ajax_ledger.php
phpcompta/trunk/html/ajax_misc.php
phpcompta/trunk/html/ajax_poste.php
phpcompta/trunk/html/ajax_todo_list.php
phpcompta/trunk/html/do.php
phpcompta/trunk/html/export.php
phpcompta/trunk/include/ac_common.php
phpcompta/trunk/include/action.common.inc.php
phpcompta/trunk/include/action.inc.php
phpcompta/trunk/include/balance.inc.php
phpcompta/trunk/include/category_followup.inc.php
phpcompta/trunk/include/class_acc_account.php
phpcompta/trunk/include/class_acc_balance.php
phpcompta/trunk/include/class_acc_ledger.php
phpcompta/trunk/include/class_anc_balance_double.php
phpcompta/trunk/include/class_follow_up.php
phpcompta/trunk/include/class_ispan.php
phpcompta/trunk/include/class_print_ledger_misc.php
phpcompta/trunk/include/class_print_ledger_simple.php
phpcompta/trunk/include/class_todo_list.php
phpcompta/trunk/include/constant.php
phpcompta/trunk/include/dossier.inc.php
phpcompta/trunk/include/export_fiche_detail_pdf.php
phpcompta/trunk/include/export_gl_pdf.php
phpcompta/trunk/include/export_poste_detail_pdf.php
phpcompta/trunk/include/user_detail.inc.php
Log:
use mb_substr instead of substr + force to work internally in UTF8
Modified: phpcompta/trunk/doc/developper/Doxyfile
===================================================================
--- phpcompta/trunk/doc/developper/Doxyfile 2012-05-25 23:01:49 UTC (rev
4842)
+++ phpcompta/trunk/doc/developper/Doxyfile 2012-05-27 21:35:52 UTC (rev
4843)
@@ -680,7 +680,6 @@
effects.js \
prototype.js \
scriptaculous.js \
- scripts.js \
slider.js \
sound.js \
unittest.js.
Modified: phpcompta/trunk/html/ajax.php
===================================================================
--- phpcompta/trunk/html/ajax.php 2012-05-25 23:01:49 UTC (rev 4842)
+++ phpcompta/trunk/html/ajax.php 2012-05-27 21:35:52 UTC (rev 4843)
@@ -12,6 +12,8 @@
require_once('class_extension.php');
if ( !isset ($_REQUEST['gDossier'])) exit();
+mb_internal_encoding("UTF-8");
+
$cn=new Database(dossier::id());
$user=new User($cn);
$user->check(true);
Modified: phpcompta/trunk/html/ajax_card.php
===================================================================
--- phpcompta/trunk/html/ajax_card.php 2012-05-25 23:01:49 UTC (rev 4842)
+++ phpcompta/trunk/html/ajax_card.php 2012-05-27 21:35:52 UTC (rev 4843)
@@ -61,6 +61,7 @@
require_once('ac_common.php');
require_once ('class_user.php');
require_once ('class_fiche_attr.php');
+mb_internal_encoding("UTF-8");
$var=array('gDossier','op','ctl');
$cont=0;
Modified: phpcompta/trunk/html/ajax_history.php
===================================================================
--- phpcompta/trunk/html/ajax_history.php 2012-05-25 23:01:49 UTC (rev
4842)
+++ phpcompta/trunk/html/ajax_history.php 2012-05-27 21:35:52 UTC (rev
4843)
@@ -32,6 +32,7 @@
require_once('class_acc_account.php');
require_once('class_exercice.php');
$div=$_REQUEST['div'];
+mb_internal_encoding("UTF-8");
/**
*if $_SESSION['g_user'] is not set : echo a warning
Modified: phpcompta/trunk/html/ajax_ledger.php
===================================================================
--- phpcompta/trunk/html/ajax_ledger.php 2012-05-25 23:01:49 UTC (rev
4842)
+++ phpcompta/trunk/html/ajax_ledger.php 2012-05-27 21:35:52 UTC (rev
4843)
@@ -48,6 +48,7 @@
exit();
}
global $g_parameter;
+mb_internal_encoding("UTF-8");
$action=$_REQUEST['act'];
@@ -264,7 +265,7 @@
$filename= $obj->det->jr_pj_name;
if ( strlen($obj->det->jr_pj_name) > 20 )
{
- $filename=substr($obj->det->jr_pj_name,0,23);
+ $filename=mb_substr($obj->det->jr_pj_name,0,23);
}
$h=sprintf('<a class="mtitle"
href="show_pj.php?gDossier=%d&jrn=%d&jr_grpt_id=%d">%s</a>',
$gDossier,$ledger,$obj->det->jr_grpt_id,h( $filename));
Modified: phpcompta/trunk/html/ajax_misc.php
===================================================================
--- phpcompta/trunk/html/ajax_misc.php 2012-05-25 23:01:49 UTC (rev 4842)
+++ phpcompta/trunk/html/ajax_misc.php 2012-05-27 21:35:52 UTC (rev 4843)
@@ -41,6 +41,7 @@
require_once('function_javascript.php');
require_once('ac_common.php');
require_once ('class_user.php');
+mb_internal_encoding("UTF-8");
$var = array('gDossier', 'op');
$cont = 0;
Modified: phpcompta/trunk/html/ajax_poste.php
===================================================================
--- phpcompta/trunk/html/ajax_poste.php 2012-05-25 23:01:49 UTC (rev 4842)
+++ phpcompta/trunk/html/ajax_poste.php 2012-05-27 21:35:52 UTC (rev 4843)
@@ -38,6 +38,7 @@
require_once ('class_database.php');
require_once('function_javascript.php');
require_once('class_acc_account_ledger.php');
+mb_internal_encoding("UTF-8");
extract($_REQUEST);
$var=array('gDossier','op','ctl');
Modified: phpcompta/trunk/html/ajax_todo_list.php
===================================================================
--- phpcompta/trunk/html/ajax_todo_list.php 2012-05-25 23:01:49 UTC (rev
4842)
+++ phpcompta/trunk/html/ajax_todo_list.php 2012-05-27 21:35:52 UTC (rev
4843)
@@ -38,6 +38,7 @@
require_once ('class_todo_list.php');
require_once ('class_database.php');
require_once ('class_user.php');
+mb_internal_encoding("UTF-8");
$cn= Dossier::connect();
$user=new User($cn);
Modified: phpcompta/trunk/html/do.php
===================================================================
--- phpcompta/trunk/html/do.php 2012-05-25 23:01:49 UTC (rev 4842)
+++ phpcompta/trunk/html/do.php 2012-05-27 21:35:52 UTC (rev 4843)
@@ -30,6 +30,8 @@
require_once('ac_common.php');
require_once 'function_javascript.php';
require_once 'constant.security.php';
+mb_internal_encoding("UTF-8");
+
// if gDossier is not set redirect to form to choose a folder
if ( ! isset($_REQUEST['gDossier']))
{
@@ -127,6 +129,7 @@
if (isset($_REQUEST['ac']))
{
+ $_REQUEST['ac']= strtoupper($_REQUEST['ac']);
$all = explode('/', $_REQUEST['ac']);
$module_selected = $all[0];
$g_user->audit();
Modified: phpcompta/trunk/html/export.php
===================================================================
--- phpcompta/trunk/html/export.php 2012-05-25 23:01:49 UTC (rev 4842)
+++ phpcompta/trunk/html/export.php 2012-05-27 21:35:52 UTC (rev 4843)
@@ -31,7 +31,7 @@
require_once('class_user.php');
$gDossier=dossier::id();
$cn=new Database($gDossier);
-
+mb_internal_encoding("UTF-8");
$g_user=new User($cn);
$g_user->Check();
$action=$g_user->check_dossier($gDossier);
Modified: phpcompta/trunk/include/ac_common.php
===================================================================
--- phpcompta/trunk/include/ac_common.php 2012-05-25 23:01:49 UTC (rev
4842)
+++ phpcompta/trunk/include/ac_common.php 2012-05-27 21:35:52 UTC (rev
4843)
@@ -829,7 +829,7 @@
}
else
{
- var_dump($file);
+ // nothing : direct call to plugin
}
}
if ( $file[0]['me_javascript'] != '')
Modified: phpcompta/trunk/include/action.common.inc.php
===================================================================
--- phpcompta/trunk/include/action.common.inc.php 2012-05-25 23:01:49 UTC
(rev 4842)
+++ phpcompta/trunk/include/action.common.inc.php 2012-05-27 21:35:52 UTC
(rev 4843)
@@ -235,7 +235,7 @@
{
// show the search menu
?>
- <div id="search_action"
style="position:absolute;display:none;margin-left:120px;width:70%;clear:both;background-color:
inherit;z-index:2;border:1px #000080 solid">
+ <div id="search_action" class="op_detail_frame"
style="position:absolute;display:none;margin-left:120px;width:70%;clear:both;z-index:2;height:auto;border:1px
#000080 solid">
<? echo
HtmlInput::anchor_hide('Fermer','$(\'search_action\').style.display=\'none\';');
?>
<h2 class="info">
<?=_('Recherche avancée')?>
Modified: phpcompta/trunk/include/action.inc.php
===================================================================
--- phpcompta/trunk/include/action.inc.php 2012-05-25 23:01:49 UTC (rev
4842)
+++ phpcompta/trunk/include/action.inc.php 2012-05-27 21:35:52 UTC (rev
4843)
@@ -23,7 +23,7 @@
*/
require_once('class_ipopup.php');
global $g_user;
-$retour=HtmlInput::button_anchor(_('Retour
liste'),'?ac='.$_REQUEST['ac'].'&my_action&'.dossier::get());
+$retour=HtmlInput::button_anchor(_('Retour
liste'),'?ac='.$_REQUEST['ac'].'&my_action&'.dossier::get()."&".HtmlInput::get_to_string(array("qcode","ag_dest","query","tdoc","date_start","date_end","see_all","all_action")));
//-----------------------------------------------------
// Follow_Up
//-----------------------------------------------------
Modified: phpcompta/trunk/include/balance.inc.php
===================================================================
--- phpcompta/trunk/include/balance.inc.php 2012-05-25 23:01:49 UTC (rev
4842)
+++ phpcompta/trunk/include/balance.inc.php 2012-05-27 21:35:52 UTC (rev
4843)
@@ -290,8 +290,8 @@
foreach (array(3,2,1) as $ind)
{
if ( ! isset($_GET['lvl'.$ind]))continue;
- if (${'lvl'.$ind.'_old'} == '')
${'lvl'.$ind.'_old'}=substr($r['poste'],0,$ind);
- if ( ${'lvl'.$ind.'_old'} != substr($r['poste'],0,$ind))
+ if (${'lvl'.$ind.'_old'} == '')
${'lvl'.$ind.'_old'}=mb_substr($r['poste'],0,$ind);
+ if ( ${'lvl'.$ind.'_old'} != mb_substr($r['poste'],0,$ind))
{
echo '<tr style="font-size:12px;font-height:bold">';
@@ -303,7 +303,7 @@
echo
td(nbm(${'lvl'.$ind}['solde_cred']),'style="text-align:right"');
echo '</tr>';
- ${'lvl'.$ind.'_old'}=substr($r['poste'],0,$ind);
+ ${'lvl'.$ind.'_old'}=mb_substr($r['poste'],0,$ind);
foreach(array('sum_cred','sum_deb','solde_deb','solde_cred') as
$a)
{
${'lvl'.$ind}[$a]=0;
Modified: phpcompta/trunk/include/category_followup.inc.php
===================================================================
--- phpcompta/trunk/include/category_followup.inc.php 2012-05-25 23:01:49 UTC
(rev 4842)
+++ phpcompta/trunk/include/category_followup.inc.php 2012-05-27 21:35:52 UTC
(rev 4843)
@@ -37,7 +37,7 @@
$sub_action=(isset($_REQUEST['sa']))?$_REQUEST['sa']:"list";
$ag_id=(isset($_REQUEST['ag_id']))?$_REQUEST['ag_id']:0;
$p_action=$_REQUEST['ac'];
-$base="ac=$p_action&sc=sv&sb=detail&f_id=".$_REQUEST['f_id'];
+$base="ac=$p_action&sc=sv&sb=detail&f_id=".$_REQUEST['f_id']."&".HtmlInput::get_to_string(array("qcode","ag_dest","query","tdoc","date_start","date_end","see_all","all_action"));
$retour=HtmlInput::button_anchor('Retour','?'.dossier::get().'&'.$base);
$fiche=new Fiche($cn,$_REQUEST['f_id']);
Modified: phpcompta/trunk/include/class_acc_account.php
===================================================================
--- phpcompta/trunk/include/class_acc_account.php 2012-05-25 23:01:49 UTC
(rev 4842)
+++ phpcompta/trunk/include/class_acc_account.php 2012-05-27 21:35:52 UTC
(rev 4843)
@@ -222,7 +222,7 @@
if ($count != 0)
throw new Exception('Impossible de changer la valeur: poste
déjà utilisé');
}
- $this->pcm_lib=substr($this->pcm_lib,0,150);
+ $this->pcm_lib=mb_substr($this->pcm_lib,0,150);
$this->check();
$sql="update tmp_pcmn set pcm_val=$1,
pcm_lib=$2,pcm_val_parent=$3,pcm_type=$4 where pcm_val=$5";
$Ret=$this->db->exec_sql($sql,array($this->pcm_val,
Modified: phpcompta/trunk/include/class_acc_balance.php
===================================================================
--- phpcompta/trunk/include/class_acc_balance.php 2012-05-25 23:01:49 UTC
(rev 4842)
+++ phpcompta/trunk/include/class_acc_balance.php 2012-05-27 21:35:52 UTC
(rev 4843)
@@ -132,7 +132,7 @@
$poste=new Acc_Account($cn,$r['j_poste']);
$a['poste']=$r['j_poste'];
- $a['label']=substr($poste->get_lib(),0,40);
+ $a['label']=mb_substr($poste->get_lib(),0,40);
$a['sum_deb']=round($r['sum_deb'],2);
$a['sum_cred']=round($r['sum_cred'],2);
$a['solde_deb']=round(( $a['sum_deb'] >= $a['sum_cred'] )?
$a['sum_deb']- $a['sum_cred']:0,2);
Modified: phpcompta/trunk/include/class_acc_ledger.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger.php 2012-05-25 23:01:49 UTC
(rev 4842)
+++ phpcompta/trunk/include/class_acc_ledger.php 2012-05-27 21:35:52 UTC
(rev 4843)
@@ -1078,7 +1078,7 @@
{
$p_array['TVAC']=$code['j_montant'];
-
$p_array['client']=($trunc==0)?$fiche->getName():substr($fiche->getName(),0,20);
+
$p_array['client']=($trunc==0)?$fiche->getName():mb_substr($fiche->getName(),0,20);
$p_array['reversed']=false;
if ( $fiche_def_id == FICHE_TYPE_CLIENT &&
$code['j_debit']=='f')
{
@@ -1103,7 +1103,7 @@
{
$p_array['TVAC']=$code['j_montant'];
- $p_array['client']=
($trunc==0)?$fiche->getName():substr($fiche->getName(),0,20);
+ $p_array['client']=
($trunc==0)?$fiche->getName():mb_substr($fiche->getName(),0,20);
$p_array['reversed']=false;
if ($p_jrn_type == 'ACH' && $code['j_debit']=='t')
{
Modified: phpcompta/trunk/include/class_anc_balance_double.php
===================================================================
--- phpcompta/trunk/include/class_anc_balance_double.php 2012-05-25
23:01:49 UTC (rev 4842)
+++ phpcompta/trunk/include/class_anc_balance_double.php 2012-05-27
21:35:52 UTC (rev 4843)
@@ -227,9 +227,9 @@
{
$row=$array[$i];
$pdf->Cell(20,6,$row['a_po_name'],0,0,'L');
- $pdf->Cell(40,6,substr($row['a_po_description'],0,31),0,0,'L');
+ $pdf->Cell(40,6,mb_substr($row['a_po_description'],0,31),0,0,'L');
$pdf->Cell(20,6,$row['b_po_name'],0,0,'L');
- $pdf->Cell(40,6,substr($row['b_po_description'],0,31),0,0,'L');
+ $pdf->Cell(40,6,mb_substr($row['b_po_description'],0,31),0,0,'L');
$pdf->Cell(20,6,$row['a_d'],0,0,'R');
$pdf->Cell(20,6,$row['a_c'],0,0,'R');
$pdf->Cell(20,6,$row['a_solde'],0,0,'R');
Modified: phpcompta/trunk/include/class_follow_up.php
===================================================================
--- phpcompta/trunk/include/class_follow_up.php 2012-05-25 23:01:49 UTC (rev
4842)
+++ phpcompta/trunk/include/class_follow_up.php 2012-05-27 21:35:52 UTC (rev
4843)
@@ -490,7 +490,7 @@
/* get template */
ob_start();
- require_once ('template/detail-action.php');
+ require_once 'template/detail-action.php';
$content=ob_get_contents();
ob_end_clean();
$r.=$content;
@@ -513,7 +513,7 @@
}
// New referecne
ob_start();
- require_once ('template/action-reference.php');
+ require_once 'template/action-reference.php';
$content=ob_get_contents();
ob_end_clean();
@@ -746,7 +746,7 @@
//show the sub_action
foreach ($a_row as $row )
{
- $href='<A class="document"
HREF="do.php?'.$p_base.'&sa=detail&ag_id='.$row['ag_id'].'&'.$str_dossier.'&ac='.$_REQUEST['ac'].'">';
+ $href='<A class="document"
HREF="do.php?'.$p_base.'&sa=detail&ag_id='.$row['ag_id'].'&'.$str_dossier.'&ac='.$_REQUEST['ac']."&".HtmlInput::get_to_string(array("qcode","ag_dest","query","tdoc","date_start","date_end","see_all","all_action")).'">';
$i++;
$tr=($i%2==0)?'even':'odd';
if ($row['ag_priority'] < 2) $tr='priority1';
@@ -755,7 +755,7 @@
$date_remind= format_date($row['my_remind'],
'DD.MM.YYYY','YYYYMMDD');
$date_today=date('Ymd');
if ($date_remind !="" && $date_remind == $date_today) $st='
style="font-weight:bold;background:orange"';
- if ($date_remind !="" && $date_remind < $date_today) $st='
style="font-weight:bold;background:#FF1C42"';
+ if ($date_remind !="" && $date_remind < $date_today) $st='
style="font-weight:bold;background:#FF0000"';
$r.="<tr class=\"$tr\" $st>";
$r.="<td>".$href.smaller_date($row['my_date']).'</a>'."</td>";
$r.="<td>".$href.smaller_date($row['my_remind']).'</a>'."</td>";
Modified: phpcompta/trunk/include/class_ispan.php
===================================================================
--- phpcompta/trunk/include/class_ispan.php 2012-05-25 23:01:49 UTC (rev
4842)
+++ phpcompta/trunk/include/class_ispan.php 2012-05-27 21:35:52 UTC (rev
4843)
@@ -21,7 +21,7 @@
// Copyright Author Dany De Bontridder address@hidden
/*!\file
- * \brief Html Input
+ * \brief Html Input
*/
require_once('class_html_input.php');
class ISpan extends HtmlInput
Modified: phpcompta/trunk/include/class_print_ledger_misc.php
===================================================================
--- phpcompta/trunk/include/class_print_ledger_misc.php 2012-05-25 23:01:49 UTC
(rev 4842)
+++ phpcompta/trunk/include/class_print_ledger_misc.php 2012-05-27 21:35:52 UTC
(rev 4843)
@@ -82,7 +82,7 @@
$this->Cell(10,5,$row['date_fmt']);
$this->Cell(20,5,$row['internal']);
$type=$this->cn->get_value("select jrn_def_type from jrn_def where
jrn_def_id=$1",array($a_jrn[$i]['jr_def_id']));
-
$other=substr($this->ledger->get_tiers($type,$a_jrn[$i]['id']),0,25);
+
$other=mb_substr($this->ledger->get_tiers($type,$a_jrn[$i]['id']),0,25);
$this->Cell(25,5,$other,0,0);
$this->Cell(80,5,$row['comment'],0,0);
$this->Cell(15,5,nbm($row['montant']),0,0,'R');
Modified: phpcompta/trunk/include/class_print_ledger_simple.php
===================================================================
--- phpcompta/trunk/include/class_print_ledger_simple.php 2012-05-25
23:01:49 UTC (rev 4842)
+++ phpcompta/trunk/include/class_print_ledger_simple.php 2012-05-27
21:35:52 UTC (rev 4843)
@@ -231,7 +231,7 @@
list($qc,$name)=$this->get_tiers($row['id'],$this->jrn_type);
$this->Cell(40,5,"[".$qc."]".$name,0,0);
- $this->Cell(65,5,substr($row['comment'],0,47),0,0);
+ $this->Cell(65,5,mb_substr($row['comment'],0,47),0,0);
/* get other amount (without vat, total vat included, private, ND
*/
$other=$this->ledger->get_other_amount($a_jrn[$i]['jr_grpt_id']);
Modified: phpcompta/trunk/include/class_todo_list.php
===================================================================
--- phpcompta/trunk/include/class_todo_list.php 2012-05-25 23:01:49 UTC (rev
4842)
+++ phpcompta/trunk/include/class_todo_list.php 2012-05-27 21:35:52 UTC (rev
4843)
@@ -82,12 +82,12 @@
}
if ( strcmp ($p_idx, 'tl_title') == 0 )
{
- $p_value=substr($p_value,0,120) ;
+ $p_value=mb_substr($p_value,0,120) ;
return true;
}
if ( strcmp ($p_idx, 'tl_desc') == 0 )
{
- $p_value=substr($p_value,0,400) ;
+ $p_value=mb_substr($p_value,0,400) ;
return true;
}
return true;
@@ -128,7 +128,7 @@
{
if ( $this->verify() != 0 ) return;
if (trim($this->tl_title)=='')
- $this->tl_title=substr(trim($this->tl_desc),0,30);
+ $this->tl_title=mb_substr(trim($this->tl_desc),0,30);
if (trim($this->tl_title)=='')
{
@@ -137,7 +137,7 @@
}
/* limit the title to 35 char */
- $this->tl_title=substr(trim($this->tl_title),0,30);
+ $this->tl_title=mb_substr(trim($this->tl_title),0,30);
$sql="insert into todo_list (tl_date,tl_title,tl_desc,use_login) ".
" values (to_date($1,'DD.MM.YYYY'),$2,$3,$4) returning tl_id";
@@ -157,7 +157,7 @@
if ( $this->verify() != 0 ) return;
if (trim($this->tl_title)=='')
- $this->tl_title=substr(trim($this->tl_desc),0,40);
+ $this->tl_title=mb_substr(trim($this->tl_desc),0,40);
if (trim($this->tl_desc)=='')
{
@@ -166,7 +166,7 @@
}
/* limit the title to 35 char */
- $this->tl_title=substr(trim($this->tl_title),0,40);
+ $this->tl_title=mb_substr(trim($this->tl_title),0,40);
$sql="update todo_list set
tl_title=$1,tl_date=to_date($2,'DD.MM.YYYY'),tl_desc=$3 ".
" where tl_id = $4";
Modified: phpcompta/trunk/include/constant.php
===================================================================
--- phpcompta/trunk/include/constant.php 2012-05-25 23:01:49 UTC (rev
4842)
+++ phpcompta/trunk/include/constant.php 2012-05-27 21:35:52 UTC (rev
4843)
@@ -35,11 +35,11 @@
$g_succeed="<span style=\"font-size:18px;color:green\">✓</span>";
/*set to none for production */
/* uncomment for production */
-$version_phpcompta=SVNINFO;
-define ("DEBUG",false);
+//$version_phpcompta=SVNINFO;
+//define ("DEBUG",false);
-//$version_phpcompta=4800;
-//define ("DEBUG",true);
+$version_phpcompta=4800;
+define ("DEBUG",true);
define ("DBVERSION",102);
Modified: phpcompta/trunk/include/dossier.inc.php
===================================================================
--- phpcompta/trunk/include/dossier.inc.php 2012-05-25 23:01:49 UTC (rev
4842)
+++ phpcompta/trunk/include/dossier.inc.php 2012-05-27 21:35:52 UTC (rev
4843)
@@ -244,7 +244,7 @@
for ($i=0;$i<$count;$i++)
{
$mod=Database::fetch_array($Res,$i);
- $template.='<OPTION VALUE="'.$mod['mod_id'].'">
'.h($mod['mod_name']." - ".substr($mod['mod_desc'],0,30));
+ $template.='<OPTION VALUE="'.$mod['mod_id'].'">
'.h($mod['mod_name']." - ".mb_substr($mod['mod_desc'],0,30));
}// for
$template.="</SELECT>";
}// if count = 0
Modified: phpcompta/trunk/include/export_fiche_detail_pdf.php
===================================================================
--- phpcompta/trunk/include/export_fiche_detail_pdf.php 2012-05-25 23:01:49 UTC
(rev 4842)
+++ phpcompta/trunk/include/export_fiche_detail_pdf.php 2012-05-27 21:35:52 UTC
(rev 4843)
@@ -102,9 +102,9 @@
$pdf->Cell($size[$l],6,$row['jr_pj_number'],0,0,$align[$l]);
$l++;
- $pdf->Cell($size[$l],6,substr($row['jrn_name'],0,14),0,0,$align[$l]);
+ $pdf->Cell($size[$l],6,mb_substr($row['jrn_name'],0,14),0,0,$align[$l]);
$l++;
-
$pdf->Cell($size[$l],6,substr($row['description'],0,50).'('.$row['jr_internal'].')',0,0,$align[$l]);
+
$pdf->Cell($size[$l],6,mb_substr($row['description'],0,50).'('.$row['jr_internal'].')',0,0,$align[$l]);
$l++;
$pdf->Cell($size[$l],6,(($row['letter']!=-1)?$row['letter']:''),0,0,$align[$l]);
Modified: phpcompta/trunk/include/export_gl_pdf.php
===================================================================
--- phpcompta/trunk/include/export_gl_pdf.php 2012-05-25 23:01:49 UTC (rev
4842)
+++ phpcompta/trunk/include/export_gl_pdf.php 2012-05-27 21:35:52 UTC (rev
4843)
@@ -155,7 +155,7 @@
$pdf->Cell($width[$i], 6, $detail['jr_internal'], 0, 0, $lor[$i]);
$i++;
/* limit set to 20 for the substring */
- $pdf->Cell($width[$i], 6, substr($detail['description'],0,42), 0, 0,
$lor[$i]);
+ $pdf->Cell($width[$i], 6, mb_substr($detail['description'],0,42), 0,
0, $lor[$i]);
$i++;
$pdf->Cell($width[$i], 6, $detail['jr_pj_number'], 0, 0, $lor[$i]);
$i++;
Modified: phpcompta/trunk/include/export_poste_detail_pdf.php
===================================================================
--- phpcompta/trunk/include/export_poste_detail_pdf.php 2012-05-25 23:01:49 UTC
(rev 4842)
+++ phpcompta/trunk/include/export_poste_detail_pdf.php 2012-05-27 21:35:52 UTC
(rev 4843)
@@ -114,9 +114,9 @@
else
$pdf->Cell($size[$l],6,$row['jr_pj_number'],0,0,$align[$l]);
$l++;
- $pdf->Cell($size[$l],6,substr($row['jrn_name'],0,14),0,0,$align[$l]);
+
$pdf->Cell($size[$l],6,mb_substr($row['jrn_name'],0,14),0,0,$align[$l]);
$l++;
- $pdf->Cell($size[$l],6,
substr($row['description'],0,55),0,0,$align[$l]);
+ $pdf->Cell($size[$l],6,
mb_substr($row['description'],0,55),0,0,$align[$l]);
$l++;
$pdf->Cell($size[$l],6,(($row['letter']!=-1)?$row['letter']:''),0,0,$align[$l]);
$l++;
Modified: phpcompta/trunk/include/user_detail.inc.php
===================================================================
--- phpcompta/trunk/include/user_detail.inc.php 2012-05-25 23:01:49 UTC (rev
4842)
+++ phpcompta/trunk/include/user_detail.inc.php 2012-05-27 21:35:52 UTC (rev
4843)
@@ -73,7 +73,7 @@
{
if (substr_count($name, 'PRIV') != 0)
{
- $db_id = substr($name, 4);
+ $db_id = mb_substr($name, 4);
$cn = new Database();
$UserChange->set_folder_access($db_id, $elem);
Dossier::synchro_admin($db_id);
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4843 - in phpcompta/trunk: doc/developper html include,
phpcompta-dev <=