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 /
webedi.bdcloud.fr /
variants /
Delete
Unzip
Name
Size
Permission
Date
Action
admin
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
ajax
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
class
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
lib
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
card.php
8.3
KB
-rw-r--r--
2020-06-12 19:16
combinations.php
27.25
KB
-rw-r--r--
2020-05-28 20:13
create.php
2.83
KB
-rw-r--r--
2020-05-28 20:13
create_val.php
4.03
KB
-rw-r--r--
2020-05-17 13:00
generator.php
11.35
KB
-rw-r--r--
2020-05-12 15:31
index.html
0
B
-rw-r--r--
2020-04-18 15:06
list.php
4.75
KB
-rw-r--r--
2020-06-12 19:16
Save
Rename
<?php /* Copyright (C) 2016 Marcos GarcĂa <marcosgdf@gmail.com> * * 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/>. */ require '../main.inc.php'; require DOL_DOCUMENT_ROOT.'/variants/class/ProductAttribute.class.php'; $id = GETPOST('id', 'int'); $action = GETPOST('action', 'aZ09'); $object = new ProductAttribute($db); /* * Actions */ if ($action == 'up') { $object->fetch($rowid); $object->moveUp(); header('Location: '.$_SERVER['PHP_SELF']); exit(); } elseif ($action == 'down') { $object->fetch($rowid); $object->moveDown(); header('Location: '.$_SERVER['PHP_SELF']); exit(); } /* * View */ $langs->load('products'); $title = $langs->trans($langs->trans('ProductAttributes')); $variants = $object->fetchAll(); llxHeader('', $title); $newcardbutton = ''; if ($user->rights->produit->creer) { $newcardbutton .= dolGetButtonTitle($langs->trans('Create'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/variants/create.php'); } print load_fiche_titre($title, $newcardbutton, 'product'); $forcereloadpage = empty($conf->global->MAIN_FORCE_RELOAD_PAGE) ? 0 : 1; ?> <script type="text/javascript"> $(document).ready(function(){ $(".imgupforline, .imgdownforline").hide(); $(".lineupdown").removeAttr('href'); $(".tdlineupdown") .css("background-image", 'url(<?php echo DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/grip.png'; ?>)') .css("background-repeat", "no-repeat") .css("background-position", "center center") .hover( function () { $(this).addClass('showDragHandle'); }, function () { $(this).removeClass('showDragHandle'); } ); $("#tablelines").tableDnD({ onDrop: function(table, row) { console.log('drop'); var reloadpage = "<?php echo $forcereloadpage; ?>"; var roworder = cleanSerialize(decodeURI($("#tablelines").tableDnDSerialize())); $.post("<?php echo DOL_URL_ROOT; ?>/variants/ajax/orderAttribute.php", { roworder: roworder }, function() { if (reloadpage == 1) { location.href = '<?php echo dol_escape_htmltag($_SERVER['PHP_SELF']).'?'.dol_escape_htmltag($_SERVER['QUERY_STRING']); ?>'; } else { $("#tablelines .drag").each( function( intIndex ) { $(this).removeClass("pair impair"); if (intIndex % 2 == 0) $(this).addClass('impair'); if (intIndex % 2 == 1) $(this).addClass('pair'); }); } }); }, onDragClass: "dragClass", dragHandle: "td.tdlineupdown" }); }); </script> <table class="liste nobottom" id="tablelines"> <tr class="liste_titre nodrag nodrop"> <th class="liste_titre"><?php print $langs->trans('Ref') ?></th> <th class="liste_titre"><?php print $langs->trans('Label') ?></th> <th class="liste_titre right"><?php print $langs->trans('NbOfDifferentValues') ?></th> <th class="liste_titre right"><?php print $langs->trans('NbProducts') ?></th> <th class="liste_titre" colspan="2"></th> </tr> <?php foreach ($variants as $key => $attribute) { print '<tr id="row-'.$attribute->id.'" class="drag drop oddeven">'; print '<td><a href="card.php?id='.$attribute->id.'">'.dol_htmlentities($attribute->ref).'</a></td>'; print '<td><a href="card.php?id='.$attribute->id.'">'.dol_htmlentities($attribute->label).'</a></td>'; print '<td class="right">'.$attribute->countChildValues().'</td>'; print '<td class="right">'.$attribute->countChildProducts().'</td>'; print '<td class="right">'; print '<a class="editfielda marginrightonly paddingleftonly" href="card.php?id='.$attribute->id.'&action=edit">'.img_edit().'</a>'; print '<a class="marginrightonly paddingleftonlyhref="card.php?id='.$attribute->id.'&action=delete">'.img_delete().'</a>'; print '</td>'; print '<td class="center linecolmove tdlineupdown">'; if ($key > 0) { print '<a class="lineupdown" href="'.$_SERVER['PHP_SELF'].'?action=up&rowid='.$attribute->id.'">'.img_up('default', 0, 'imgupforline').'</a>'; } if ($key < count($variants) - 1) { print '<a class="lineupdown" href="'.$_SERVER['PHP_SELF'].'?action=down&rowid='.$attribute->id.'">'.img_down('default', 0, 'imgdownforline').'</a>'; } print '</td>'; print "</tr>\n"; } print '</table>'; // End of page llxFooter(); $db->close();