/** * Show indent and picto of a tree line. Return array with information of line. * * @param array $fulltree Array of entries in correct order * @param string $key Key of entry into fulltree to show picto * @param int $silent Do not output indent and picto, returns only value * @return integer[] array(0 or 1 if at least one of this level after, 0 or 1 if at least one of higher level after, nbofdirinsub, nbofdocinsub) */ function tree_showpad(&$fulltree, $key, $silent = 0) { $pos = 1; // Loop on each pos, because we will output an img for each pos while ($pos <= $fulltree[$key]['level'] && $fulltree[$key]['level'] > 0) { // Process for column $pos $atleastoneofthislevelafter = 0; $nbofdirinsub = 0; $nbofdocinsub = 0; $found = 0; //print 'x'.$key; foreach ($fulltree as $key2 => $val2) { //print "x".$pos." ".$key2." ".$found." ".$fulltree[$key2]['level']; if ($found == 1) { if ($fulltree[$key2]['level'] > $pos) { $nbofdirinsub++; if (isset($fulltree[$key2]['cachenbofdoc']) && $fulltree[$key2]['cachenbofdoc'] > 0) { $nbofdocinsub += $fulltree[$key2]['cachenbofdoc']; } } if ($fulltree[$key2]['level'] == $pos) { $atleastoneofthislevelafter = 1; } if ($fulltree[$key2]['level'] <= $pos) { break; } } if ($key2 == $key) { $found = 1; } } //print $atleastoneofthislevelafter; if (!$silent) { if ($atleastoneofthislevelafter) { if ($fulltree[$key]['level'] == $pos) { print img_picto_common('', 'treemenu/branch.gif'); } else { print img_picto_common('', 'treemenu/line.gif'); } } else { if ($fulltree[$key]['level'] == $pos) { print img_picto_common('', 'treemenu/branchbottom.gif'); } else { print img_picto_common('', 'treemenu/linebottom.gif'); } } } $pos++; } return array($atleastoneofthislevelafter, $nbofdirinsub, $nbofdocinsub); }
$categstatic->ref = $val['label']; $categstatic->type = $type; $li = $categstatic->getNomUrl(1, '', 60); $desc = dol_htmlcleanlastbr($val['description']); $data[] = array('rowid' => $val['rowid'], 'fk_menu' => $val['fk_parent'], 'entry' => '<table class="nobordernopadding centpercent"><tr><td>' . $li . '</td><td width="50%">' . dolGetFirstLineOfText($desc) . '</td>' . '<td align="right" width="20px;"><a href="' . DOL_URL_ROOT . '/categories/viewcat.php?id=' . $val['id'] . '&type=' . $type . '">' . img_view() . '</a></td>' . '</tr></table>'); } print '<table class="liste nohover" width="100%">'; print '<tr class="liste_titre"><td>' . $langs->trans("Categories") . '</td><td></td><td align="right">'; if (!empty($conf->use_javascript_ajax)) { print '<div id="iddivjstreecontrol"><a href="#">' . img_picto('', 'object_category') . ' ' . $langs->trans("UndoExpandAll") . '</a> | <a href="#">' . img_picto('', 'object_category-expanded') . ' ' . $langs->trans("ExpandAll") . '</a></div>'; } print '</td></tr>'; $nbofentries = count($data) - 1; if ($nbofentries > 0) { print '<tr ' . $bc[0] . '><td colspan="3">'; tree_recur($data, $data[0], 0); print '</td></tr>'; } else { print '<tr ' . $bc[0] . '>'; print '<td colspan="3"><table class="nobordernopadding"><tr class="nobordernopadding"><td>' . img_picto_common('', 'treemenu/branchbottom.gif') . '</td>'; print '<td valign="middle">'; print $langs->trans("NoCategoryYet"); print '</td>'; print '<td> </td>'; print '</table></td>'; print '</tr>'; } print "</table>"; print '</div>'; llxFooter(); $db->close();
if (empty($action) || $action == 'file_manager' || preg_match('/refresh/i', $action) || $action == 'delete') { print '<table width="100%" class="nobordernopadding">'; print '<tr class="liste_titre">'; print '<td class="liste_titre" align="left" colspan="6">'; print ' ' . $langs->trans("ECMSections"); print '</td></tr>'; $showonrightsize = ''; // Auto section if (count($sectionauto)) { $htmltooltip = $langs->trans("ECMAreaDesc2"); // Root title line (Automatic section) print '<tr>'; print '<td>'; print '<table class="nobordernopadding"><tr class="nobordernopadding">'; print '<td align="left" width="24">'; print img_picto_common('', 'treemenu/base.gif'); print '</td><td align="left">'; $txt = $langs->trans("ECMRoot") . ' (' . $langs->trans("ECMSectionsAuto") . ')'; print $form->textwithpicto($txt, $htmltooltip, 1, 0); print '</td>'; print '</tr></table>'; print '</td>'; print '<td align="right"> </td>'; print '<td align="right"> </td>'; print '<td align="right"> </td>'; print '<td align="right"> </td>'; print '<td align="center">'; print '</td>'; print '</tr>'; $sectionauto = dol_sort_array($sectionauto, 'label', 'ASC', true, false); print '<tr>';
*/ } window.onload = function() { window.top.IsLoadedCreateFolder = true ; } </script> </head> <body> <table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr> <td> <button type="button" style="WIDTH: 100%" onclick="CreateFolder();"> <table cellSpacing="0" cellPadding="0" border="0"> <tr> <td><?php echo img_picto_common('', 'treemenu/folder.gif', 'width="16" height="16"'); ?> </td> <td> </td> <td nowrap>Create New Folder</td> </tr> </table> </button> </td> </tr> </table> </body> </html>
print '</td></tr>'; print '<tr><td width="50%" valign="top">'."\n"; print "\n"; // EMail support print '<table class="login" width="100%">'; print '<tr class="title" valign="top">'; print '<td width="100%" align="left" valign="top">'; print '<table summary="mail"><tr><td>'.img_picto('','mail.png','',1).'</td><td>'; print '<font style="'.$style1.'">'.$langs->trans("EMailSupport").'</font>'; print '<br>'.$langs->trans("TypeOfSupport").': <font style="'.$style2.'">'.$langs->trans("TypeSupportCommercial").'</font>'; print '<br>'.$langs->trans("TypeOfHelp").'/'.$langs->trans("Efficiency").'/'.$langs->trans("Price").': '; print $langs->trans("TypeHelpOnly").'/'.img_picto_common('','redstar','',1).img_picto_common('','redstar').img_picto_common('','redstar','',1).'/'.img_picto_common('','star','',1).img_picto_common('','star','',1); print '</td></tr></table>'; print '</td>'; print '</tr><tr>'; $urlwiki='http://wiki.dolibarr.org/index.php/List_of_OpenSource_Software_companies_and_freelancers'; print '<td align="center" valign="top">'; print '<table class="nocellnopadd">'; /*print '<tr><td align="center" valign="top">'; print img_picto_common('','mail.png','',1); print '</td></tr>';*/ print '<tr><td align="center">'; print '<br>'.$langs->trans("ToSeeListOfAvailableRessources").'<br>'; print '<b><a href="'.$urlwiki.'">'.$langs->trans("ClickHere").'</a></b><br>'; print '<br><br>';
print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print '<td colspan="2">' . $langs->trans("AvailableFormats") . '</td>'; print '<td>' . $langs->trans("LibraryUsed") . '</td>'; print '<td align="right">' . $langs->trans("LibraryVersion") . '</td>'; print '</tr>' . "\n"; $liste = $objmodelexport->liste_modeles($db); $listeall = $liste; foreach ($listeall as $key => $val) { if (preg_match('/__\\(Disabled\\)__/', $listeall[$key])) { $listeall[$key] = preg_replace('/__\\(Disabled\\)__/', '(' . $langs->transnoentitiesnoconv("Disabled") . ')', $listeall[$key]); unset($liste[$key]); } $var = !$var; print '<tr ' . $bc[$var] . '>'; print '<td width="16">' . img_picto_common($key, $objmodelexport->getPictoForKey($key)) . '</td>'; $text = $objmodelexport->getDriverDescForKey($key); $label = $listeall[$key]; print '<td>' . $form->textwithpicto($label, $text) . '</td>'; print '<td>' . $objmodelexport->getLibLabelForKey($key) . '</td><td align="right">' . $objmodelexport->getLibVersionForKey($key) . '</td></tr>' . "\n"; } print '</table>'; print '</div>'; print '<table width="100%">'; if ($sqlusedforexport && $user->admin) { print '<tr><td>'; print info_admin($langs->trans("SQLUsedForExport") . ':<br> ' . $sqlusedforexport); print '</td></tr>'; } print '</table>'; print '<table width="100%"><tr><td width="50%">';
* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /** * \file htdocs/admin/system/about.php * \brief About Dolibarr File page */ require "../../main.inc.php"; $langs->load("admin"); $langs->load("help"); $langs->load("members"); /* * View */ llxHeader(); print_fiche_titre("Dolibarr", '', 'setup'); print '<div style="padding-left: 30px;">' . img_picto_common('', 'dolibarr_box.png', 'height="120"') . '</div>'; print $langs->trans("Version") . ' / ' . $langs->trans("DolibarrLicense") . ':'; print '<ul>'; print '<li>' . DOL_VERSION . ' / <a href="http://www.gnu.org/copyleft/gpl.html">GNU-GPL</a></li>'; print '</ul>'; //print "<br>\n"; print $langs->trans("Developpers") . ':'; print '<ul>'; print '<li>' . $langs->trans("SeeWikiForAllTeam") . ': <a href="http://wiki.dolibarr.org/index.php/Dolibarr_Project" target="_blank">http://wiki.dolibarr.org/index.php/Dolibarr_Project</a></li>'; print '<li>' . $langs->trans("DoliForge") . ': <a href="http://www.doliforge.org" target="_blank">http://wwww.doliforge.org</a></li>'; print '</ul>'; //print "<br>\n"; print $langs->trans("OtherInformations") . ':'; print '<ul>'; print '<li>'; print '<a target="_blank" href="http://www.dolibarr.org/">' . $langs->trans("OfficialWebSite") . '</a>';
} $text = ''; $options = 'height="60px"'; print '<table>'; print '<tr>'; print '<td>'; print img_picto_common($text, 'weather/weather-clear.png', $options); print '</td><td>= ' . $level0 . '</td>'; print '<td> </td>'; print '<td>'; print img_picto_common($text, 'weather/weather-few-clouds.png', $options); print '</td><td><= ' . $level1 . '</td>'; print '<td> </td>'; print '<td>'; print img_picto_common($text, 'weather/weather-clouds.png', $options); print '</td><td><= ' . $level2 . '</td>'; print '</tr>'; print '<tr><td>'; print img_picto_common($text, 'weather/weather-many-clouds.png', $options); print '</td><td><= ' . $level3 . '</td>'; print '<td> </td>'; print '<td>'; print img_picto_common($text, 'weather/weather-storm.png', $options); print '</td><td>> ' . $level3 . '</td>'; print '<td> </td>'; print '<td> </td>'; print '<td> </td>'; print '</tr>'; print '</table>'; llxFooter(); $db->close();
$var = true; print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print '<td colspan="2">' . $langs->trans("AvailableFormats") . '</td>'; print '<td>' . $langs->trans("LibraryShort") . '</td>'; print '<td align="right">' . $langs->trans("LibraryVersion") . '</td>'; print '</tr>'; include_once DOL_DOCUMENT_ROOT . '/core/modules/export/modules_export.php'; $model = new ModeleExports(); $liste = $model->liste_modeles($db); // This is not a static method for exports because method load non static properties $var = true; foreach ($liste as $key => $val) { $var = !$var; print '<tr ' . $bc[$var] . '>'; print '<td width="16">' . img_picto_common($model->getDriverLabel($key), $model->getPicto($key)) . '</td>'; $text = $model->getDriverDesc($key); print '<td>' . $form->textwithpicto($model->getDriverLabel($key), $text) . '</td>'; print '<td>' . $model->getLibLabel($key) . '</td>'; print '<td nowrap="nowrap" align="right">' . $model->getLibVersion($key) . '</td>'; print '</tr>'; } print '</table>'; print '</td><td valign="top" width="60%" class="notopnoleftnoright">'; // Affiche les modules d'exports print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print '<td>' . $langs->trans("Module") . '</td>'; print '<td>' . $langs->trans("ExportableDatas") . '</td>'; //print '<td> </td>'; print '</tr>';
/** * Show weather logo. Logo to show depends on $totallate and values for * $conf->global->MAIN_METEO_OFFSET * $conf->global->MAIN_METEO_GAP * * @param int $totallate Nb of element late * @param string $text Text to show on logo * @param string $options More parameters on img tag * @return string Return img tag of weather */ function showWeather($totallate, $text, $options) { global $conf; $out = ''; $offset = 0; $cursor = 10; // By default //if (! empty($conf->global->MAIN_METEO_OFFSET)) $offset=$conf->global->MAIN_METEO_OFFSET; //if (! empty($conf->global->MAIN_METEO_GAP)) $cursor=$conf->global->MAIN_METEO_GAP; $level0 = $offset; if (!empty($conf->global->MAIN_METEO_LEVEL0)) { $level0 = $conf->global->MAIN_METEO_LEVEL0; } $level1 = $offset + 1 * $cursor; if (!empty($conf->global->MAIN_METEO_LEVEL1)) { $level1 = $conf->global->MAIN_METEO_LEVEL1; } $level2 = $offset + 2 * $cursor; if (!empty($conf->global->MAIN_METEO_LEVEL2)) { $level2 = $conf->global->MAIN_METEO_LEVEL2; } $level3 = $offset + 3 * $cursor; if (!empty($conf->global->MAIN_METEO_LEVEL3)) { $level3 = $conf->global->MAIN_METEO_LEVEL3; } if ($totallate <= $level0) { $out .= img_picto_common($text, 'weather/weather-clear.png', $options); } if ($totallate > $level0 && $totallate <= $level1) { $out .= img_picto_common($text, 'weather/weather-few-clouds.png', $options); } if ($totallate > $level1 && $totallate <= $level2) { $out .= img_picto_common($text, 'weather/weather-clouds.png', $options); } if ($totallate > $level2 && $totallate <= $level3) { $out .= img_picto_common($text, 'weather/weather-many-clouds.png', $options); } if ($totallate > $level3) { $out .= img_picto_common($text, 'weather/weather-storm.png', $options); } return $out; }
/** * Show weather logo. Logo to show depends on $totallate and values for * $conf->global->MAIN_METEO_LEVELx * * @param int $totallate Nb of element late * @param string $text Text to show on logo * @param string $options More parameters on img tag * @return string Return img tag of weather */ function showWeather($totallate,$text,$options) { global $conf; $out=''; $offset=0; $factor=10; // By default $level0=$offset; if (! empty($conf->global->MAIN_METEO_LEVEL0)) $level0=$conf->global->MAIN_METEO_LEVEL0; $level1=$offset+1*$factor; if (! empty($conf->global->MAIN_METEO_LEVEL1)) $level1=$conf->global->MAIN_METEO_LEVEL1; $level2=$offset+2*$factor; if (! empty($conf->global->MAIN_METEO_LEVEL2)) $level2=$conf->global->MAIN_METEO_LEVEL2; $level3=$offset+3*$factor; if (! empty($conf->global->MAIN_METEO_LEVEL3)) $level3=$conf->global->MAIN_METEO_LEVEL3; if ($totallate <= $level0) $out.=img_picto_common($text,'weather/weather-clear.png',$options); if ($totallate > $level0 && $totallate <= $level1) $out.=img_picto_common($text,'weather/weather-few-clouds.png',$options); if ($totallate > $level1 && $totallate <= $level2) $out.=img_picto_common($text,'weather/weather-clouds.png',$options); if ($totallate > $level2 && $totallate <= $level3) $out.=img_picto_common($text,'weather/weather-many-clouds.png',$options); if ($totallate > $level3) $out.=img_picto_common($text,'weather/weather-storm.png',$options); return $out; }
/** * Return img flag of country for a language code or country code * * @param string $codelang Language code (en_IN, fr_CA...) or Country code (IN, FR) * @return string HTML img string with flag. */ function picto_from_langcode($codelang) { global $langs; if (empty($codelang)) { return ''; } if (empty($codelang)) { return ''; } if ($codelang == 'auto') { return img_picto_common($langs->trans('AutoDetectLang'), 'flags/int.png'); } $langtocountryflag = array('ar_AR' => '', 'ca_ES' => 'catalonia', 'da_DA' => 'dk', 'fr_CA' => 'mq', 'sv_SV' => 'se'); if (isset($langtocountryflag[$codelang])) { $flagImage = $langtocountryflag[$codelang]; } else { $tmparray = explode('_', $codelang); $flagImage = empty($tmparray[1]) ? $tmparray[0] : $tmparray[1]; } return img_picto_common($codelang, 'flags/' . strtolower($flagImage) . '.png'); }
/** * Show picto of a tree view * @param fulltree Array of entries in correct order * @param key Key of value to show picto * @param selected Selected value * @return array (0 or 1 if at least one of this level after, 0 or 1 if at least one of higher level after) */ function tree_showpad(&$fulltree,$key,$selected=0) { $pos=1; // Loop on each pos, because we will output an img for each pos while ($pos <= $fulltree[$key]['level'] && $fulltree[$key]['level'] > 0) { // Process picto for column $pos $atleastonofthislevelafter=0; $nbofhigherlevelafter=0; $nbofdirinsub=0; $nbofdocinsub=0; $found=0; //print 'x'.$key; foreach($fulltree as $key2 => $val2) { if ($found == 1) // We are after the entry to show { if ($fulltree[$key2]['level'] > $pos) { $nbofdirinsub++; $nbofdocinsub+=$fulltree[$key2]['cachenbofdoc']; $nbofhigherlevelafter++; } if ($fulltree[$key2]['level'] == $pos) { $atleastonofthislevelafter=1; } if ($fulltree[$key2]['level'] <= $pos) { break; } } if ($key2 == $key) { $found=1; } } //print $atleastonofthislevelafter; if ($atleastonofthislevelafter) { if ($fulltree[$key]['level'] == $pos) print img_picto_common('','treemenu/branch.gif'); else print img_picto_common('','treemenu/line.gif'); } else { if ($fulltree[$key]['level'] == $pos) print img_picto_common('','treemenu/branchbottom.gif'); else print img_picto_common('','treemenu/linebottom.gif'); } $pos++; } return array($atleastonofthislevelafter,$nbofhigherlevelafter,$nbofdirinsub,$nbofdocinsub); }
//print ($objp->cref?' ('.$objp->cref.')':''); //if ($objp->description) print '<br>'.nl2br($objp->description); if (empty($conf->productbatch->enabled) || $objp->tobatch == 0) { $suffix = '_' . $i; } else { $suffix = '_0_' . $i; } $up_ht_disc = $objp->subprice; if (!empty($objp->remise_percent) && empty($conf->global->STOCK_EXCLUDE_DISCOUNT_FOR_PMP)) { $up_ht_disc = price2num($up_ht_disc * (100 - $objp->remise_percent) / 100, 'MU'); } print "</td>\n"; print '<td align="right">' . $objp->qty . '</td>'; print '<td align="right">' . $products_dispatched[$objp->fk_product] . '</td>'; if (!empty($conf->productbatch->enabled) && $objp->tobatch == 1) { print '<td colspan="2" align="center">' . img_picto_common($langs->trans('AddDispatchBatchLine'), 'treemenu/plustop2.gif', 'onClick="AddLineBatch(' . $i . ')"') . '</td>'; print '</tr>'; print '<tr ' . $bc[$var] . ' name="dluo' . $suffix . '"><td width="5%">'; print '<input name="product' . $suffix . '" type="hidden" value="' . $objp->fk_product . '">'; print '<input name="pu' . $suffix . '" type="hidden" value="' . $up_ht_disc . '"><!-- This is a up including discount -->'; print '</td><td>'; $form->select_date('', 'dlc' . $suffix, '', '', 1, ""); print '</td><td>'; $form->select_date('', 'dluo' . $suffix, '', '', 1, ""); print '</td><td>'; print '<input type="text" name="lot_number' . $suffix . '" size="40" value="">'; print '</td>'; print '<td colspan="2"> </td>'; } else { print '<input name="product' . $suffix . '" type="hidden" value="' . $objp->fk_product . '">'; print '<input name="pu' . $suffix . '" type="hidden" value="' . $up_ht_disc . '"><!-- This is a up including discount -->';