dolibarr  7.0.0-beta
lines.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2013-2016 Olivier Geffroy <jeff@jeffinfo.com>
3  * Copyright (C) 2013-2016 Alexandre Spangaro <aspangaro@zendsi.com>
4  * Copyright (C) 2014-2015 Ari Elbaz (elarifr) <github@accedinfo.com>
5  * Copyright (C) 2014-2016 Florian Henry <florian.henry@open-concept.pro>
6  * Copyright (C) 2014 Juanjo Menent <jmenent@2byte.es>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
28 require '../../main.inc.php';
29 
30 // Class
31 require_once DOL_DOCUMENT_ROOT . '/core/class/html.formaccounting.class.php';
32 require_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php';
33 require_once DOL_DOCUMENT_ROOT . '/product/class/product.class.php';
34 require_once DOL_DOCUMENT_ROOT . '/core/lib/accounting.lib.php';
35 require_once DOL_DOCUMENT_ROOT . '/core/class/html.formother.class.php';
36 require_once DOL_DOCUMENT_ROOT . '/core/lib/date.lib.php';
37 
38 // Langs
39 $langs->load("bills");
40 $langs->load("compta");
41 $langs->load("main");
42 $langs->load("accountancy");
43 $langs->load("productbatch");
44 
45 $account_parent = GETPOST('account_parent');
46 $changeaccount = GETPOST('changeaccount');
47 // Search Getpost
48 $search_lineid = GETPOST('search_lineid', 'int');
49 $search_ref = GETPOST('search_ref', 'alpha');
50 $search_invoice = GETPOST('search_invoice', 'alpha');
51 $search_label = GETPOST('search_label', 'alpha');
52 $search_desc = GETPOST('search_desc', 'alpha');
53 $search_amount = GETPOST('search_amount', 'alpha');
54 $search_account = GETPOST('search_account', 'alpha');
55 $search_vat = GETPOST('search_vat', 'alpha');
56 $search_day=GETPOST("search_day","int");
57 $search_month=GETPOST("search_month","int");
58 $search_year=GETPOST("search_year","int");
59 $search_country = GETPOST('search_country', 'alpha');
60 $search_tvaintra = GETPOST('search_tvaintra', 'alpha');
61 
62 // Load variable for pagination
63 $limit = GETPOST('limit','int')?GETPOST('limit', 'int'):(empty($conf->global->ACCOUNTING_LIMIT_LIST_VENTILATION)?$conf->liste_limit:$conf->global->ACCOUNTING_LIMIT_LIST_VENTILATION);
64 $sortfield = GETPOST('sortfield', 'alpha');
65 $sortorder = GETPOST('sortorder', 'alpha');
66 $page = GETPOST('page', 'int');
67 if (empty($page) || $page < 0) $page = 0;
68 $pageprev = $page - 1;
69 $pagenext = $page + 1;
70 $offset = $limit * $page;
71 if (! $sortfield)
72  $sortfield = "f.datef, f.facnumber, fd.rowid";
73 if (! $sortorder) {
74  if ($conf->global->ACCOUNTING_LIST_SORT_VENTILATION_DONE > 0) {
75  $sortorder = "DESC";
76  }
77 }
78 
79 // Security check
80 if ($user->societe_id > 0)
82 if (! $user->rights->accounting->bind->write)
84 
85 $formaccounting = new FormAccounting($db);
86 
87 
88 /*
89  * Actions
90  */
91 
92 // Purge search criteria
93 if (GETPOST('button_removefilter_x','alpha') || GETPOST('button_removefilter.x','alpha') || GETPOST('button_removefilter','alpha')) // All tests are required to be compatible with all browsers
94 {
95  $search_lineid = '';
96  $search_ref = '';
97  $search_invoice = '';
98  $search_label = '';
99  $search_desc = '';
100  $search_amount = '';
101  $search_account = '';
102  $search_vat = '';
103  $search_day = '';
104  $search_month = '';
105  $search_year = '';
106  $search_country = '';
107  $search_tvaintra = '';
108 }
109 
110 if (is_array($changeaccount) && count($changeaccount) > 0) {
111  $error = 0;
112 
113  $db->begin();
114 
115  $sql1 = "UPDATE " . MAIN_DB_PREFIX . "facturedet as l";
116  $sql1 .= " SET l.fk_code_ventilation=" . $account_parent;
117  $sql1 .= ' WHERE l.rowid IN (' . implode(',', $changeaccount) . ')';
118 
119  dol_syslog('accountancy/customer/lines.php::changeaccount sql= ' . $sql1);
120  $resql1 = $db->query($sql1);
121  if (! $resql1) {
122  $error ++;
123  setEventMessages($db->lasterror(), null, 'errors');
124  }
125  if (! $error) {
126  $db->commit();
127  setEventMessages($langs->trans('Save'), null, 'mesgs');
128  } else {
129  $db->rollback();
130  setEventMessages($db->lasterror(), null, 'errors');
131  }
132 
133  $account_parent = ''; // Protection to avoid to mass apply it a second time
134 }
135 
136 
137 /*
138  * View
139  */
140 
141 $form = new Form($db);
142 $formother = new FormOther($db);
143 
144 llxHeader('', $langs->trans("CustomersVentilation") . ' - ' . $langs->trans("Dispatched"));
145 
146 print '<script type="text/javascript">
147  $(function () {
148  $(\'#select-all\').click(function(event) {
149  // Iterate each checkbox
150  $(\':checkbox\').each(function() {
151  this.checked = true;
152  });
153  });
154  $(\'#unselect-all\').click(function(event) {
155  // Iterate each checkbox
156  $(\':checkbox\').each(function() {
157  this.checked = false;
158  });
159  });
160  });
161  </script>';
162 
163 /*
164  * Customer Invoice lines
165  */
166 $sql = "SELECT f.rowid, f.facnumber, f.type, f.datef, f.ref_client,";
167 $sql .= " fd.rowid, fd.description, fd.product_type, fd.total_ht, fd.total_tva, fd.tva_tx, fd.vat_src_code, fd.total_ttc,";
168 $sql .= " s.rowid as socid, s.nom as name, s.code_compta, s.code_client,";
169 $sql .= " p.rowid as product_id, p.ref as product_ref, p.label as product_label, p.accountancy_code_sell, aa.rowid as fk_compte, aa.account_number, aa.label as label_compte,";
170 $sql .= " fd.situation_percent, co.label as country, s.tva_intra";
171 $sql .= " FROM " . MAIN_DB_PREFIX . "facturedet as fd";
172 $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "product as p ON p.rowid = fd.fk_product";
173 $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "accounting_account as aa ON aa.rowid = fd.fk_code_ventilation";
174 $sql .= " INNER JOIN " . MAIN_DB_PREFIX . "facture as f ON f.rowid = fd.fk_facture";
175 $sql .= " INNER JOIN " . MAIN_DB_PREFIX . "societe as s ON s.rowid = f.fk_soc";
176 $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "c_country as co ON co.rowid = s.fk_pays ";
177 $sql .= " WHERE fd.fk_code_ventilation > 0 ";
178 $sql .= " AND f.entity IN (" . getEntity('facture', 0) . ")"; // We don't share object for accountancy
179 $sql .= " AND f.fk_statut > 0";
180 if (! empty($conf->global->FACTURE_DEPOSITS_ARE_JUST_PAYMENTS)) {
181  $sql .= " AND f.type IN (" . Facture::TYPE_STANDARD . "," . Facture::TYPE_REPLACEMENT . "," . Facture::TYPE_CREDIT_NOTE . "," . Facture::TYPE_SITUATION . ")";
182 } else {
183  $sql .= " AND f.type IN (" . Facture::TYPE_STANDARD . "," . Facture::TYPE_STANDARD . "," . Facture::TYPE_CREDIT_NOTE . "," . Facture::TYPE_DEPOSIT . "," . Facture::TYPE_SITUATION . ")";
184 }
185 if ($search_lineid) {
186  $sql .= natural_search("fd.rowid", $search_lineid, 1);
187 }
188 if (strlen(trim($search_invoice))) {
189  $sql .= natural_search("f.facnumber", $search_invoice);
190 }
191 if (strlen(trim($search_ref))) {
192  $sql .= natural_search("p.ref", $search_ref);
193 }
194 if (strlen(trim($search_label))) {
195  $sql .= natural_search("p.label", $search_label);
196 }
197 if (strlen(trim($search_desc))) {
198  $sql .= natural_search("fd.description", $search_desc);
199 }
200 if (strlen(trim($search_amount))) {
201  $sql .= natural_search("fd.total_ht", $search_amount, 1);
202 }
203 if (strlen(trim($search_account))) {
204  $sql .= natural_search("aa.account_number", $search_account);
205 }
206 if (strlen(trim($search_vat))) {
207  $sql .= natural_search("fd.tva_tx", $search_vat);
208 }
209 if ($search_month > 0)
210 {
211  if ($search_year > 0 && empty($search_day))
212  $sql.= " AND f.datef BETWEEN '".$db->idate(dol_get_first_day($search_year,$search_month,false))."' AND '".$db->idate(dol_get_last_day($search_year,$search_month,false))."'";
213  else if ($search_year > 0 && ! empty($search_day))
214  $sql.= " AND f.datef BETWEEN '".$db->idate(dol_mktime(0, 0, 0, $search_month, $search_day, $search_year))."' AND '".$db->idate(dol_mktime(23, 59, 59, $search_month, $search_day, $search_year))."'";
215  else
216  $sql.= " AND date_format(f.datef, '%m') = '".$db->escape($search_month)."'";
217 }
218 else if ($search_year > 0)
219 {
220  $sql.= " AND f.datef BETWEEN '".$db->idate(dol_get_first_day($search_year,1,false))."' AND '".$db->idate(dol_get_last_day($search_year,12,false))."'";
221 }
222 if (strlen(trim($search_country))) {
223  $sql .= natural_search("co.label", $search_country);
224 }
225 if (strlen(trim($search_tvaintra))) {
226  $sql .= natural_search("s.tva_intra", $search_tva_intra);
227 }
228 $sql .= " AND f.entity IN (" . getEntity('facture', 0) . ")"; // We don't share object for accountancy
229 $sql .= $db->order($sortfield, $sortorder);
230 
231 // Count total nb of records
232 $nbtotalofrecords = '';
233 if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
234 {
235  $result = $db->query($sql);
236  $nbtotalofrecords = $db->num_rows($result);
237 }
238 
239 $sql .= $db->plimit($limit + 1, $offset);
240 
241 dol_syslog("/accountancy/customer/lines.php", LOG_DEBUG);
242 $result = $db->query($sql);
243 if ($result) {
244  $num_lines = $db->num_rows($result);
245  $i = 0;
246 
247  $param='';
248  if (! empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param.='&contextpage='.$contextpage;
249  if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.$limit;
250  if ($search_invoice)
251  $param .= "&search_invoice=" . $search_invoice;
252  if ($search_ref)
253  $param .= "&search_ref=" . $search_ref;
254  if ($search_label)
255  $param .= "&search_label=" . $search_label;
256  if ($search_desc)
257  $param .= "&search_desc=" . $search_desc;
258  if ($search_account)
259  $param .= "&search_account=" . $search_account;
260  if ($search_vat)
261  $param .= "&search_vat=" . $search_vat;
262  if ($search_day) $param.='&search_day='.urlencode($search_day);
263  if ($search_month) $param.='&search_month='.urlencode($search_month);
264  if ($search_year) $param.='&search_year='.urlencode($search_year);
265  if ($search_country)
266  $param .= "&search_country=" . $search_country;
267  if ($search_tvaintra)
268  $param .= "&search_tvaintra=" . $search_tvaintra;
269 
270 
271  print '<form action="' . $_SERVER["PHP_SELF"] . '" method="post">' . "\n";
272  print '<input type="hidden" name="action" value="ventil">';
273  if ($optioncss != '') print '<input type="hidden" name="optioncss" value="'.$optioncss.'">';
274  print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
275  print '<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
276  print '<input type="hidden" name="sortfield" value="'.$sortfield.'">';
277  print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
278  print '<input type="hidden" name="page" value="'.$page.'">';
279 
280  print_barre_liste($langs->trans("InvoiceLinesDone"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num_lines, $nbtotalofrecords, 'title_accountancy', 0, '', '', $limit);
281  print $langs->trans("DescVentilDoneCustomer") . '<br>';
282 
283  print '<br><div class="inline-block divButAction">' . $langs->trans("ChangeAccount") . '<br>';
284  print $formaccounting->select_account($account_parent, 'account_parent', 1);
285  print '<input type="submit" class="button valignmiddle" value="' . $langs->trans("ChangeBinding") . '"/></div>';
286 
287  $moreforfilter = '';
288 
289  print '<div class="div-table-responsive">';
290  print '<table class="tagtable liste'.($moreforfilter?" listwithfilterbefore":"").'">'."\n";
291 
292  print '<tr class="liste_titre_filter">';
293  print '<td class="liste_titre"><input type="text" class="flat maxwidth50" name="search_lineid" value="' . dol_escape_htmltag($search_lineid) . '""></td>';
294  print '<td class="liste_titre"><input type="text" class="flat maxwidth50" name="search_invoice" value="' . dol_escape_htmltag($search_invoice) . '"></td>';
295  print '<td class="liste_titre center">';
296  if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print '<input class="flat" type="text" size="1" maxlength="2" name="search_day" value="'.$search_day.'">';
297  print '<input class="flat" type="text" size="1" maxlength="2" name="search_month" value="'.$search_month.'">';
298  $formother->select_year($search_year,'search_year',1, 20, 5);
299  print '</td>';
300  print '<td class="liste_titre"><input type="text" class="flat maxwidth50" name="search_ref" value="' . dol_escape_htmltag($search_ref) . '"></td>';
301  //print '<td class="liste_titre"><input type="text" class="flat maxwidth50" name="search_label" value="' . dol_escape_htmltag($search_label) . '"></td>';
302  print '<td class="liste_titre"><input type="text" class="flat maxwidth50" name="search_desc" value="' . dol_escape_htmltag($search_desc) . '"></td>';
303  print '<td class="liste_titre" align="right"><input type="text" class="right flat maxwidth50" name="search_amount" value="' . dol_escape_htmltag($search_amount) . '"></td>';
304  print '<td class="liste_titre" align="right"><input type="text" class="right flat maxwidth50" placeholder="%" name="search_vat" size="1" value="' . dol_escape_htmltag($search_vat) . '"></td>';
305  print '<td class="liste_titre" align="center"><input type="text" class="flat maxwidth50" name="search_account" value="' . dol_escape_htmltag($search_account) . '"></td>';
306  print '<td class="liste_titre" align="center"><input type="text" class="flat maxwidth50" name="search_country" value="' . dol_escape_htmltag($search_country) . '"></td>';
307  print '<td class="liste_titre"><input type="text" class="flat maxwidth50" name="search_tavintra" value="' . dol_escape_htmltag($search_tavintra) . '"></td>';
308  print '<td class="liste_titre" align="center">';
309  $searchpicto=$form->showFilterButtons();
310  print $searchpicto;
311  print "</td></tr>\n";
312 
313  print '<tr class="liste_titre">';
314  print_liste_field_titre("LineId", $_SERVER["PHP_SELF"], "fd.rowid", "", $param, '', $sortfield, $sortorder);
315  print_liste_field_titre("Invoice", $_SERVER["PHP_SELF"], "f.facnumber", "", $param, '', $sortfield, $sortorder);
316  print_liste_field_titre("Date", $_SERVER["PHP_SELF"], "f.datef, f.facnumber, fd.rowid", "", $param, 'align="center"', $sortfield, $sortorder);
317  print_liste_field_titre("ProductRef", $_SERVER["PHP_SELF"], "p.ref", "", $param, '', $sortfield, $sortorder);
318  //print_liste_field_titre("ProductLabel", $_SERVER["PHP_SELF"], "p.label", "", $param, '', $sortfield, $sortorder);
319  print_liste_field_titre("Description", $_SERVER["PHP_SELF"], "fd.description", "", $param, '', $sortfield, $sortorder);
320  print_liste_field_titre("Amount", $_SERVER["PHP_SELF"], "fd.total_ht", "", $param, 'align="right"', $sortfield, $sortorder);
321  print_liste_field_titre("VATRate", $_SERVER["PHP_SELF"], "fd.tva_tx", "", $param, 'align="right"', $sortfield, $sortorder);
322  print_liste_field_titre("Account", $_SERVER["PHP_SELF"], "aa.account_number", "", $param, 'align="center"', $sortfield, $sortorder);
323  print_liste_field_titre("Country", $_SERVER["PHP_SELF"], "co.label", "", $param, 'align="center"', $sortfield, $sortorder);
324  print_liste_field_titre("VATIntra", $_SERVER["PHP_SELF"], "s.tva_intra", "", $param, '', $sortfield, $sortorder);
325  $clickpicto=$form->showCheckAddButtons();
326  print_liste_field_titre($clickpicto, '', '', '', '', 'align="center"');
327  print "</tr>\n";
328 
329  $facture_static = new Facture($db);
330  $product_static = new Product($db);
331 
332  while ( $objp = $db->fetch_object($result) ) {
333  $codecompta = length_accountg($objp->account_number) . ' - ' . $objp->label_compte;
334 
335  $facture_static->ref = $objp->facnumber;
336  $facture_static->id = $objp->rowid;
337 
338  $product_static->ref = $objp->product_ref;
339  $product_static->id = $objp->product_id;
340  $product_static->type = $objp->product_type;
341  $product_static->label = $objp->product_label;
342 
343  print '<tr class="oddeven">';
344 
345  print '<td>' . $objp->rowid . '</td>';
346 
347  // Ref Invoice
348  print '<td>' . $facture_static->getNomUrl(1) . '</td>';
349 
350  print '<td align="center">' . dol_print_date($db->jdate($objp->datef), 'day') . '</td>';
351 
352  // Ref Product
353  print '<td>';
354  if ($product_static->id)
355  print $product_static->getNomUrl(1);
356  if ($objp->product_label) print '<br>'.$objp->product_label;
357  print '</td>';
358 
359  print '<td>';
360  $text = dolGetFirstLineOfText(dol_string_nohtmltag($objp->description));
361  $trunclength = empty($conf->global->ACCOUNTING_LENGTH_DESCRIPTION) ? 32 : $conf->global->ACCOUNTING_LENGTH_DESCRIPTION;
362  print $form->textwithtooltip(dol_trunc($text,$trunclength), $objp->description);
363  print '</td>';
364 
365  print '<td align="right">' . price($objp->total_ht) . '</td>';
366  print '<td align="right">' . vatrate($objp->tva_tx.($objp->vat_src_code?' ('.$objp->vat_src_code.')':'')) . '</td>';
367  print '<td align="center">';
368  print $codecompta . ' <a href="./card.php?id=' . $objp->rowid . '&backtopage='.urlencode($_SERVER["PHP_SELF"].($param?'?'.$param:'')).'">';
369  print img_edit();
370  print '</a>';
371  print '</td>';
372 
373  print '<td align="center">' . $objp->country .'</td>';
374 
375  print '<td>' . $objp->tva_intra . '</td>';
376 
377  print '<td class="center"><input type="checkbox" class="checkforaction" name="changeaccount[]" value="' . $objp->rowid . '"/></td>';
378 
379  print "</tr>";
380  $i ++;
381  }
382 
383  print "</table>";
384  print "</div>";
385 
386  if ($nbtotalofrecords > $limit) {
387  print_barre_liste('', $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num_lines, $nbtotalofrecords, '', 0, '', '', $limit, 1);
388  }
389 
390  print '</form>';
391 } else {
392  print $db->lasterror();
393 }
394 
395 
396 llxFooter();
397 $db->close();
llxFooter()
Empty footer.
Definition: wrapper.php:58
const TYPE_STANDARD
Standard invoice.
setEventMessages($mesg, $mesgs, $style='mesgs')
Set event messages in dol_events session object.
dol_trunc($string, $size=40, $trunc='right', $stringencoding='UTF-8', $nodot=0, $display=0)
Truncate a string to a particular length adding '...' if string larger than length.
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm=false, $check=1)
Return a timestamp date built from detailed informations (by default a local PHP server timestamp) Re...
Class to manage products or services.
const TYPE_REPLACEMENT
Replacement invoice.
dol_get_first_day($year, $month=1, $gm=false)
Return GMT time for first day of a month or year.
Definition: date.lib.php:445
if(empty($reshook)) $form
View.
Definition: perms.php:103
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0)
Returns text escaped for inclusion in HTML alt or title tags, or into values of HTML input fields...
const TYPE_SITUATION
Situation invoice.
const TYPE_CREDIT_NOTE
Credit note invoice.
GETPOST($paramname, $check='none', $method=0, $filter=NULL, $options=NULL, $noreplace=0)
Return value of a param into GET or POST supervariable.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
Class to manage generation of HTML components Only common components must be here.
print_barre_liste($titre, $page, $file, $options='', $sortfield='', $sortorder='', $morehtmlcenter='', $num=-1, $totalnboflines='', $picto='title_generic.png', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limit=-1, $hideselectlimit=0, $hidenavigation=0)
Print a title with navigation controls for pagination.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='')
Write log message into outputs.
Classe permettant la generation de composants html autre Only common components are here...
llxHeader()
Empty header.
Definition: wrapper.php:46
getEntity($element, $shared=1, $forceentity=null)
Get list of entity id to use.
natural_search($fields, $value, $mode=0, $nofirstand=0)
Generate natural SQL search string for a criteria (this criteria can be tested on one or several fiel...
dolGetFirstLineOfText($text, $nboflines=1)
Return first line of text.
vatrate($rate, $addpercent=false, $info_bits=0, $usestarfornpr=0)
Return a string with VAT rate label formated for view output Used into pdf and HTML pages...
dol_string_nohtmltag($stringtoclean, $removelinefeed=1, $pagecodeto='UTF-8')
Clean a string from all HTML tags and entities.
price($amount, $form=0, $outlangs='', $trunc=1, $rounding=-1, $forcerounding=-1, $currency_code='')
Function to format a value into an amount for visual output Function used into PDF and HTML pages...
dol_print_date($time, $format='', $tzoutput='tzserver', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
const TYPE_DEPOSIT
Deposit invoice.
dol_get_last_day($year, $month=12, $gm=false)
Return GMT time for last day of a month or year.
Definition: date.lib.php:459
print
Draft customers invoices.
Definition: index.php:91
Class to manage generation of HTML components for accounting management.
print_liste_field_titre($name, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $tooltip="")
Show title line of an array.
Class to manage invoices.
length_accountg($account)
Return General accounting account with defined length (used for product and miscellaneous) ...
img_edit($titlealt= 'default', $float=0, $other= 'class="pictoedit"')
Show logo editer/modifier fiche.