Merged revisions 2974-2976 via svnmerge from

file:///home/developper/svn/phpcompta/branches/rel500

........
  r2975 | danydb | 2010-03-07 00:36:39 +0100 (Sun, 07 Mar 2010) | 4 lines
  
  Document_type
  =============
  Add message Effacer and confirmation
........
  r2976 | danydb | 2010-03-07 00:49:23 +0100 (Sun, 07 Mar 2010) | 1 line
  
  Translation
........
This commit is contained in:
Dany De Bontridder 2010-03-10 13:54:51 +00:00
parent 485a3b5131
commit 46406e804b
3 changed files with 1873 additions and 1276 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -59,8 +59,13 @@ class Document_type
$array=array();
for ($i=0;$i<count($r);$i++) {
$tmp['dt_value']=$r[$i]['dt_value'];
$bt=new IButton('X'.$r[$i]['dt_id'],"X");
$bt->javascript="cat_doc_remove('".$r[$i]['dt_id']."','".$_REQUEST['PHPSESSID']."','".Dossier::id()."');";
$bt=new IButton('X'.$r[$i]['dt_id']);
$bt->label=_('Effacer');
$bt->javascript="if (confirm('"._('Vous confirmez')."')==true) {";
$bt->javascript.="cat_doc_remove('".$r[$i]['dt_id']."','".$_REQUEST['PHPSESSID']."','".Dossier::id()."');";
$bt->javascript.='}';
$tmp['js_remove']=$bt->input();
$tmp['dt_id']=$r[$i]['dt_id'];
$array[$i]=$tmp;