Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
bdc.bdcloud.fr /
admin /
Delete
Unzip
Name
Size
Permission
Date
Action
backup
[ DIR ]
drwxr-x---
2025-11-08 11:17
dolistore
[ DIR ]
drwxr-x---
2025-11-08 11:17
menus
[ DIR ]
drwxr-x---
2025-11-08 11:17
system
[ DIR ]
drwxr-x---
2025-11-08 11:17
tools
[ DIR ]
drwxr-x---
2025-11-08 11:17
accountant.php
10.55
KB
-rwxr-x---
2023-04-04 15:50
accounting.php
2.14
KB
-rwxr-x---
2023-04-04 15:50
agenda.php
7.51
KB
-rwxr-x---
2023-04-04 15:50
agenda_extrafields.php
3.17
KB
-rwxr-x---
2023-04-04 15:50
agenda_extsites.php
10.2
KB
-rwxr-x---
2023-04-04 15:50
agenda_other.php
15.41
KB
-rwxr-x---
2023-04-04 15:50
agenda_reminder.php
8.92
KB
-rwxr-x---
2023-04-04 15:50
agenda_xcal.php
11.18
KB
-rwxr-x---
2023-04-04 15:50
bank.php
15.7
KB
-rwxr-x---
2023-04-04 15:50
bank_extrafields.php
3.11
KB
-rwxr-x---
2023-04-04 15:50
bankline_extrafields.php
3.24
KB
-rwxr-x---
2023-04-04 15:50
barcode.php
16.51
KB
-rwxr-x---
2023-04-04 15:50
bom.php
15.84
KB
-rwxr-x---
2023-04-04 15:50
bom_extrafields.php
2.95
KB
-rwxr-x---
2023-04-04 15:50
bomline_extrafields.php
3.22
KB
-rwxr-x---
2023-04-04 15:50
boxes.php
16.45
KB
-rwxr-x---
2023-04-04 15:50
chequereceipts.php
9.5
KB
-rwxr-x---
2023-04-04 15:50
clicktodial.php
7.32
KB
-rwxr-x---
2023-04-04 15:50
commande.php
25.36
KB
-rwxr-x---
2023-04-04 15:50
commande_fournisseur_dispatch_extrafields.php
3.32
KB
-rwxr-x---
2023-04-04 15:50
company.php
43.83
KB
-rwxr-x---
2023-04-04 15:50
company_socialnetworks.php
5.93
KB
-rwxr-x---
2023-04-04 15:50
compta.php
6.61
KB
-rwxr-x---
2023-04-04 15:50
const.php
11.2
KB
-rwxr-x---
2023-04-04 15:50
contract.php
18.53
KB
-rwxr-x---
2023-04-04 15:50
dav.php
7.55
KB
-rwxr-x---
2023-04-04 15:50
debugbar.php
3.72
KB
-rwxr-x---
2023-04-04 15:50
defaultvalues.php
15.3
KB
-rwxr-x---
2023-04-04 15:50
delais.php
15.59
KB
-rwxr-x---
2023-04-04 15:50
delivery.php
16.82
KB
-rwxr-x---
2023-04-04 15:50
delivery_extrafields.php
3.23
KB
-rwxr-x---
2023-04-04 15:50
deliverydet_extrafields.php
3.3
KB
-rwxr-x---
2023-04-04 15:50
dict.php
107.67
KB
-rwxr-x---
2023-04-04 15:50
ecm.php
3.11
KB
-rwxr-x---
2023-04-04 15:50
ecm_directories_extrafields.php
3.3
KB
-rwxr-x---
2023-04-04 15:50
ecm_files_extrafields.php
3.28
KB
-rwxr-x---
2023-04-04 15:50
emailcollector_card.php
32.52
KB
-rwxr-x---
2023-04-04 15:50
eventorganization.php
25.42
KB
-rwxr-x---
2023-04-04 15:50
eventorganization_confbooth_extrafields.php
2.75
KB
-rwxr-x---
2023-04-04 15:50
eventorganization_confboothattendee_extrafields.php
3.22
KB
-rwxr-x---
2023-04-04 15:50
events.php
4.66
KB
-rwxr-x---
2023-04-04 15:50
expedition.php
15.91
KB
-rwxr-x---
2023-04-04 15:50
expedition_extrafields.php
3.23
KB
-rwxr-x---
2023-04-04 15:50
expeditiondet_extrafields.php
3.3
KB
-rwxr-x---
2023-04-04 15:50
expensereport.php
17.88
KB
-rwxr-x---
2023-04-04 15:50
expensereport_extrafields.php
3.11
KB
-rwxr-x---
2023-04-04 15:50
expensereport_ik.php
6.78
KB
-rwxr-x---
2023-04-04 15:50
expensereport_rules.php
13.31
KB
-rwxr-x---
2023-04-04 15:50
export.php
3.63
KB
-rwxr-x---
2023-04-04 15:50
external_rss.php
10.7
KB
-rwxr-x---
2023-04-04 15:50
facture.php
30.1
KB
-rwxr-x---
2023-04-04 15:50
facture_situation.php
6.04
KB
-rwxr-x---
2023-04-04 15:50
fckeditor.php
8.16
KB
-rwxr-x---
2023-04-04 15:50
fichinter.php
23.45
KB
-rwxr-x---
2023-04-04 15:50
geoipmaxmind.php
6.41
KB
-rwxr-x---
2023-04-04 15:50
holiday.php
19.95
KB
-rwxr-x---
2023-04-04 15:50
holiday_extrafields.php
3.07
KB
-rwxr-x---
2023-04-04 15:50
hrm.php
24.26
KB
-rwxr-x---
2023-04-04 15:50
ihm.php
28.7
KB
-rwxr-x---
2023-04-04 15:50
import.php
3.58
KB
-rwxr-x---
2023-04-04 15:50
index.php
5.25
KB
-rwxr-x---
2023-04-04 15:50
knowledgemanagement.php
22.52
KB
-rwxr-x---
2023-04-04 15:50
knowledgerecord_extrafields.php
3.19
KB
-rwxr-x---
2023-04-04 15:50
ldap.php
12.95
KB
-rwxr-x---
2023-04-04 15:50
ldap_contacts.php
15.2
KB
-rwxr-x---
2023-04-04 15:50
ldap_groups.php
12.54
KB
-rwxr-x---
2023-04-04 15:50
ldap_members.php
20.28
KB
-rwxr-x---
2023-04-04 15:50
ldap_members_types.php
8.93
KB
-rwxr-x---
2023-04-04 15:50
ldap_users.php
22.25
KB
-rwxr-x---
2023-04-04 15:50
limits.php
15.02
KB
-rwxr-x---
2023-04-04 15:50
loan.php
3.19
KB
-rwxr-x---
2023-04-04 15:50
mailing.php
7.49
KB
-rwxr-x---
2023-04-04 15:50
mailman.php
7.79
KB
-rwxr-x---
2023-04-04 15:50
mails.php
51.59
KB
-rwxr-x---
2023-04-04 15:50
mails_emailing.php
35.57
KB
-rwxr-x---
2023-04-04 15:50
mails_ingoing.php
4.04
KB
-rwxr-x---
2023-04-04 15:50
mails_senderprofile_list.php
29.59
KB
-rwxr-x---
2023-04-04 15:50
mails_ticket.php
31.97
KB
-rwxr-x---
2023-04-04 15:50
menus.php
7.94
KB
-rwxr-x---
2023-04-04 15:50
modulehelp.php
20.11
KB
-rwxr-x---
2023-04-04 15:50
modules.php
53.39
KB
-rwxr-x---
2023-04-04 15:50
mrp.php
15.72
KB
-rwxr-x---
2023-04-04 15:50
mrp_extrafields.php
2.94
KB
-rwxr-x---
2023-04-04 15:50
multicurrency.php
13.35
KB
-rwxr-x---
2023-04-04 15:50
notification.php
17.59
KB
-rwxr-x---
2023-04-04 15:50
oauth.php
15.49
KB
-rwxr-x---
2023-04-04 15:50
oauthlogintokens.php
16.74
KB
-rwxr-x---
2023-04-04 15:50
openinghours.php
6.41
KB
-rwxr-x---
2023-04-04 15:50
order_extrafields.php
3.09
KB
-rwxr-x---
2023-04-04 15:50
orderdet_extrafields.php
3.18
KB
-rwxr-x---
2023-04-04 15:50
payment.php
9.22
KB
-rwxr-x---
2023-04-04 15:50
paymentbybanktransfer.php
15.79
KB
-rwxr-x---
2023-04-04 15:50
pdf.php
25.17
KB
-rwxr-x---
2023-04-04 15:50
pdf_other.php
8.5
KB
-rwxr-x---
2023-04-04 15:50
perms.php
9.31
KB
-rwxr-x---
2023-04-04 15:50
prelevement.php
15.72
KB
-rwxr-x---
2023-04-04 15:50
propal.php
26.23
KB
-rwxr-x---
2023-04-04 15:50
proxy.php
6.87
KB
-rwxr-x---
2023-04-04 15:50
receiptprinter.php
16.15
KB
-rwxr-x---
2023-04-04 15:50
reception_extrafields.php
3.24
KB
-rwxr-x---
2023-04-04 15:50
reception_setup.php
15.92
KB
-rwxr-x---
2023-04-04 15:50
resource.php
4.47
KB
-rwxr-x---
2023-04-04 15:50
resource_extrafields.php
3.07
KB
-rwxr-x---
2023-04-04 15:50
security.php
16.75
KB
-rwxr-x---
2023-04-04 15:50
security_file.php
7.63
KB
-rwxr-x---
2023-04-04 15:50
security_other.php
8.5
KB
-rwxr-x---
2023-04-04 15:50
sms.php
10.73
KB
-rwxr-x---
2023-04-04 15:50
spip.php
5.01
KB
-rwxr-x---
2023-04-04 15:50
stock.php
27.54
KB
-rwxr-x---
2023-04-04 15:50
stocktransfer.php
16.1
KB
-rwxr-x---
2023-04-04 15:50
supplier_invoice.php
17.38
KB
-rwxr-x---
2023-04-04 15:50
supplier_order.php
20.02
KB
-rwxr-x---
2023-04-04 15:50
supplier_payment.php
16.06
KB
-rwxr-x---
2023-04-04 15:50
supplier_proposal.php
19.56
KB
-rwxr-x---
2023-04-04 15:50
supplierinvoice_extrafields.php
3.25
KB
-rwxr-x---
2023-04-04 15:50
supplierinvoicedet_extrafields.php
3.32
KB
-rwxr-x---
2023-04-04 15:50
supplierorder_extrafields.php
3.17
KB
-rwxr-x---
2023-04-04 15:50
supplierorderdet_extrafields.php
3.24
KB
-rwxr-x---
2023-04-04 15:50
syslog.php
10.32
KB
-rwxr-x---
2023-04-04 15:50
taxes.php
10.04
KB
-rwxr-x---
2023-04-04 15:50
ticket.php
25.67
KB
-rwxr-x---
2023-04-04 15:50
ticket_extrafields.php
2.79
KB
-rwxr-x---
2023-04-04 15:50
ticket_public.php
20.79
KB
-rwxr-x---
2023-04-04 15:50
translation.php
24.9
KB
-rwxr-x---
2023-04-04 15:50
triggers.php
2.73
KB
-rwxr-x---
2023-04-04 15:50
user.php
11.39
KB
-rwxr-x---
2023-04-04 15:50
usergroup.php
8.56
KB
-rwxr-x---
2023-04-04 15:50
webhook.php
24.03
KB
-rwxr-x---
2023-04-04 15:50
website.php
21.58
KB
-rwxr-x---
2023-04-04 15:50
website_options.php
4.82
KB
-rwxr-x---
2023-04-04 15:50
workflow.php
10.02
KB
-rwxr-x---
2023-04-04 15:50
workstation.php
16.37
KB
-rwxr-x---
2023-04-04 15:50
Save
Rename
<?php /* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> * Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2005 Simon Tosser <simon@kornog-computing.com> * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com> * Copyright (C) 2016 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr> * Copyright (C) 2022 Frédéric France <frederic.france@netlogic.fr> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ /** * \file htdocs/admin/delais.php * \brief Page to setup late delays */ // Load Dolibarr environment require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; // Load translation files required by the page $langs->load("admin"); if (!$user->admin) { accessforbidden(); } $action = GETPOST('action', 'aZ09'); if (empty($action)) { $action = 'edit'; } // Define list of managed delays $modules = array( 'agenda' => array( array( 'code' => 'MAIN_DELAY_ACTIONS_TODO', 'img' => 'action' ) ), 'projet' => array( array( 'code' => 'MAIN_DELAY_PROJECT_TO_CLOSE', 'img' => 'project' ), array( 'code' => 'MAIN_DELAY_TASKS_TODO', 'img' => 'projecttask' ) ), 'propal' => array( array( 'code' => 'MAIN_DELAY_PROPALS_TO_CLOSE', 'img' => 'propal' ), array( 'code' => 'MAIN_DELAY_PROPALS_TO_BILL', 'img' => 'propal' ) ), 'commande' => array( array( 'code' => 'MAIN_DELAY_ORDERS_TO_PROCESS', 'img' => 'order' ) ), 'facture' => array( array( 'code' => 'MAIN_DELAY_CUSTOMER_BILLS_UNPAYED', 'img' => 'bill' ) ), 'fournisseur' => array( array( 'code' => 'MAIN_DELAY_SUPPLIER_ORDERS_TO_PROCESS', 'img' => 'order' ), array( 'code' => 'MAIN_DELAY_SUPPLIER_BILLS_TO_PAY', 'img' => 'bill' ) ), 'service' => array( array( 'code' => 'MAIN_DELAY_NOT_ACTIVATED_SERVICES', 'img' => 'service' ), array( 'code' => 'MAIN_DELAY_RUNNING_SERVICES', 'img' => 'service' ) ), 'banque' => array( array( 'code' => 'MAIN_DELAY_TRANSACTIONS_TO_CONCILIATE', 'img' => 'account' ), array( 'code' => 'MAIN_DELAY_CHEQUES_TO_DEPOSIT', 'img' => 'account' ) ), 'adherent' => array( array( 'code' => 'MAIN_DELAY_MEMBERS', 'img' => 'user' ) ), 'expensereport' => array( array( 'code' => 'MAIN_DELAY_EXPENSEREPORTS', 'img' => 'trip' ), /* TODO Enable this array( 'code' => 'MAIN_DELAY_EXPENSEREPORTS_TO_PAY', 'img' => 'trip' )*/ ), 'holiday' => array( array( 'code' => 'MAIN_DELAY_HOLIDAYS', 'img' => 'holiday' ), ), ); $labelmeteo = array(0=>$langs->trans("No"), 1=>$langs->trans("Yes"), 2=>$langs->trans("OnMobileOnly")); if (!isset($conf->global->MAIN_DELAY_PROJECT_TO_CLOSE)) { $conf->global->MAIN_DELAY_PROJECT_TO_CLOSE = 7; // Must be same value than into conf.class.php } if (!isset($conf->global->MAIN_DELAY_TASKS_TODO)) { $conf->global->MAIN_DELAY_TASKS_TODO = 7; // Must be same value than into conf.class.php } if (!isset($conf->global->MAIN_DELAY_MEMBERS)) { $conf->global->MAIN_DELAY_MEMBERS = 0; // Must be same value than into conf.class.php } if (!isset($conf->global->MAIN_DELAY_ACTIONS_TODO)) { $conf->global->MAIN_DELAY_ACTIONS_TODO = 7; // Must be same value than into conf.class.php } if (!isset($conf->global->MAIN_DELAY_ORDERS_TO_PROCESS)) { $conf->global->MAIN_DELAY_ORDERS_TO_PROCESS = 2; } if (!isset($conf->global->MAIN_DELAY_SUPPLIER_ORDERS_TO_PROCESS)) { $conf->global->MAIN_DELAY_SUPPLIER_ORDERS_TO_PROCESS = 7; } if (!isset($conf->global->MAIN_DELAY_ORDERS_TO_PROCESS)) { $conf->global->MAIN_DELAY_ORDERS_TO_PROCESS = 2; } if (!isset($conf->global->MAIN_DELAY_ORDERS_TO_PROCESS)) { $conf->global->MAIN_DELAY_ORDERS_TO_PROCESS = 2; } if (!isset($conf->global->MAIN_DELAY_ORDERS_TO_PROCESS)) { $conf->global->MAIN_DELAY_ORDERS_TO_PROCESS = 2; } /* * Actions */ if ($action == 'update') { foreach ($modules as $module => $delays) { if (isModEnabled($module)) { foreach ($delays as $delay) { if (GETPOST($delay['code']) != '') { dolibarr_set_const($db, $delay['code'], GETPOST($delay['code']), 'chaine', 0, '', $conf->entity); } } } } dolibarr_set_const($db, "MAIN_DISABLE_METEO", GETPOST("MAIN_DISABLE_METEO"), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_USE_METEO_WITH_PERCENTAGE", GETPOST("MAIN_USE_METEO_WITH_PERCENTAGE"), 'chaine', 0, '', $conf->entity); // For update value with percentage $plus = ''; if (!empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE)) { $plus = '_PERCENTAGE'; } // Update values for ($i = 0; $i < 4; $i++) { if (GETPOSTISSET('MAIN_METEO'.$plus.'_LEVEL'.$i)) { dolibarr_set_const($db, 'MAIN_METEO'.$plus.'_LEVEL'.$i, GETPOST('MAIN_METEO'.$plus.'_LEVEL'.$i, 'int'), 'chaine', 0, '', $conf->entity); } } setEventMessages($langs->trans("SetupSaved"), null, 'mesgs'); $action = 'edit'; } /* * View */ $form = new Form($db); llxHeader(); print load_fiche_titre($langs->trans("DelaysOfToleranceBeforeWarning"), '', 'title_setup'); print '<span class="opacitymedium">'.$langs->transnoentities("DelaysOfToleranceDesc", img_warning('default', '', 'pictowarning nopaddingleft')); print " ".$langs->trans("OnlyActiveElementsAreShown", DOL_URL_ROOT.'/admin/modules.php')."</span><br>\n"; print "<br>\n"; if ($action == 'edit') { print '<form method="post" action="'.$_SERVER['PHP_SELF'].'" name="form_index">'; print '<input type="hidden" name="token" value="'.newToken().'">'; print '<input type="hidden" name="action" value="update">'; print '<table class="noborder centpercent">'; print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("DelaysOfToleranceBeforeWarning").'</td>'; print '<td class="right">'.$langs->trans("LateWarningAfter").'</td></tr>'; foreach ($modules as $module => $delays) { if (isModEnabled($module)) { foreach ($delays as $delay) { $value = (!empty($conf->global->{$delay['code']}) ? $conf->global->{$delay['code']} : 0); print '<tr class="oddeven">'; print '<td width="20px">' . img_object('', $delay['img']) . '</td>'; print '<td>' . $langs->trans('Delays_' . $delay['code']) . '</td><td class="nowraponall right">'; print '<input class="right maxwidth75" type="number" name="' . $delay['code'] . '" value="' . $value . '"> ' . $langs->trans("days") . '</td></tr>'; } } } print '</table>'; print '<br>'; // Show if meteo is enabled print '<table class="noborder centpercent">'; print '<tr class="liste_titre"><td>'.$langs->trans("Option").'</td><td class="right">'.$langs->trans("Value").'</td></tr>'; print '<tr class="oddeven">'; print '<td>'.$langs->trans("MAIN_DISABLE_METEO").'</td><td class="right">'; print $form->selectarray('MAIN_DISABLE_METEO', $labelmeteo, (empty($conf->global->MAIN_DISABLE_METEO) ? 0 : $conf->global->MAIN_DISABLE_METEO)); print '</td></tr>'; print '</table>'; } else { /* * Show parameters */ print '<table class="noborder centpercent">'; print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("DelaysOfToleranceBeforeWarning").'</td><td class="right">'.$langs->trans("Value").'</td></tr>'; foreach ($modules as $module => $delays) { if (isModEnabled($module)) { foreach ($delays as $delay) { $value = (!empty($conf->global->{$delay['code']}) ? $conf->global->{$delay['code']} : 0); print '<tr class="oddeven">'; print '<td width="20px">' . img_object('', $delay['img']) . '</td>'; print '<td>' . $langs->trans('Delays_' . $delay['code']) . '</td>'; print '<td class="right">' . $value . ' ' . $langs->trans("days") . '</td></tr>'; } } } print '</table>'; print '<br>'; // Show if meteo is enabled print '<table class="noborder centpercent">'; print '<tr class="liste_titre"><td>'.$langs->trans("Option").'</td><td class="right">'.$langs->trans("Value").'</td></tr>'; print '<tr class="oddeven">'; print '<td>'.$langs->trans("MAIN_DISABLE_METEO").'</td><td class="center">'; print $labelmeteo[$conf->global->MAIN_DISABLE_METEO]; print '</td></tr>'; print '</table>'; } print '<br>'; if (empty($conf->global->MAIN_DISABLE_METEO) || $conf->global->MAIN_DISABLE_METEO != 1) { // Show logo for weather print '<span class="opacitymedium">'.$langs->trans("DescWeather").'</span> '; if ($action == 'edit') { $str_mode_std = $langs->trans('MeteoStdModEnabled').' : '.$langs->trans('MeteoUseMod', $langs->transnoentitiesnoconv('MeteoPercentageMod')); $str_mode_percentage = $langs->trans('MeteoPercentageModEnabled').' : '.$langs->trans('MeteoUseMod', $langs->transnoentitiesnoconv('MeteoStdMod')); if (empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE)) { $str_mode_enabled = $str_mode_std; } else { $str_mode_enabled = $str_mode_percentage; } print '<br><a href="#" onclick="return false;" id="change_mode">'.$str_mode_enabled.'</a>'; print '<input type="hidden" id="MAIN_USE_METEO_WITH_PERCENTAGE" name="MAIN_USE_METEO_WITH_PERCENTAGE" value="'.(!empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE) ? $conf->global->MAIN_USE_METEO_WITH_PERCENTAGE : '').'" />'; print '<br><br>'; } else { if (empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE)) { print $langs->trans('MeteoStdModEnabled'); } else { print $langs->trans('MeteoPercentageModEnabled'); } print '<br><br>'; } $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; } $text = ''; $options = 'class="valignmiddle" height="60px"'; if ($action == 'edit') { print '<div id="standard" '.(empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE) ? '' : 'style="display:none;"').'>'; print '<div>'; print '<div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 0, $options); print ' <= <input type="text" size="2" name="MAIN_METEO_LEVEL0" value="'.$level0.'"/></td>'; print '</div><div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 1, $options); print ' <= <input type="text" size="2" name="MAIN_METEO_LEVEL1" value="'.$level1.'"/></td>'; print '</div><div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 2, $options); print ' <= <input type="text" size="2" name="MAIN_METEO_LEVEL2" value="'.$level2.'"/></td>'; print '</div><div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 3, $options); print ' <= <input type="text" size="2" name="MAIN_METEO_LEVEL3" value="'.$level3.'"/></td>'; print '</div>'; print '</div>'; print '</div>'; print '<div id="percentage" '.(empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE) ? 'style="display:none;"' : '').'>'; print '<div>'; print '<div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 0, $options); print ' <= <input type="text" size="2" name="MAIN_METEO_PERCENTAGE_LEVEL0" value="'.getDolGlobalString('MAIN_METEO_PERCENTAGE_LEVEL0').'"/> %</td>'; print '</div><div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 1, $options); print ' <= <input type="text" size="2" name="MAIN_METEO_PERCENTAGE_LEVEL1" value="'.getDolGlobalString('MAIN_METEO_PERCENTAGE_LEVEL1').'"/> %</td>'; print '</div><div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 2, $options); print ' <= <input type="text" size="2" name="MAIN_METEO_PERCENTAGE_LEVEL2" value="'.getDolGlobalString('MAIN_METEO_PERCENTAGE_LEVEL2').'"/> %</td>'; print '</div><div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 3, $options); print ' <= <input type="text" size="2" name="MAIN_METEO_PERCENTAGE_LEVEL3" value="'.getDolGlobalString('MAIN_METEO_PERCENTAGE_LEVEL3').'"/> %</td>'; print '</div>'; print '</div>'; print '</div>'; ?> <script type="text/javascript"> $(document).ready(function() { $("#change_mode").click(function() { var use_percent = $("#MAIN_USE_METEO_WITH_PERCENTAGE"); var str_mode_std = "<?php print $str_mode_std; ?>"; var str_mode_percentage = "<?php print $str_mode_percentage; ?>"; if(use_percent.val() == 1) { use_percent.val(0); $("#standard").show(); $("#percentage").hide(); $(this).html(str_mode_std); } else { use_percent.val(1); $("#standard").hide(); $("#percentage").show(); $(this).html(str_mode_percentage); } }); }); </script> <?php } else { if (!empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE)) { print '<div>'; print '<div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 0, $options); print ' <= '.$conf->global->MAIN_METEO_PERCENTAGE_LEVEL0.' %</td>'; print '</div><div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 1, $options); print ' <= '.$conf->global->MAIN_METEO_PERCENTAGE_LEVEL1.' %</td>'; print '</div><div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 2, $options); print ' <= '.$conf->global->MAIN_METEO_PERCENTAGE_LEVEL2.' %</td>'; print '</div><div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 3, $options); print ' <= '.$conf->global->MAIN_METEO_PERCENTAGE_LEVEL3.' %</td>'; print '</div><div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 4, $options); print ' > '.$conf->global->MAIN_METEO_PERCENTAGE_LEVEL3.' %</td>'; print '</div>'; print '</div>'; } else { print '<div>'; print '<div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 0, $options); print ' <= '.$level0; print '</div><div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 1, $options); print ' <= '.$level1; print '</div><div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 2, $options); print ' <= '.$level2; print '</div><div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 3, $options); print ' <= '.$level3; print '</div><div class="inline-block" style="padding-right: 20px">'; print img_weather($text, 4, $options); print ' > '.$level3; print '</div>'; print '</div>'; } } } if ($action == 'edit') { print $form->buttonsSaveCancel("Save", ''); print '</form>'; } else { print '<br><br><div class="tabsAction">'; print '<a class="butAction" href="delais.php?action=edit&token='.newToken().'">'.$langs->trans("Modify").'</a>'; print '</div>'; } // End of page llxFooter(); $db->close();