Look: Uniformisation look sur catégories
This commit is contained in:
parent
000f38a762
commit
817cfd0901
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
/* Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
||||||
|
* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -40,13 +41,14 @@ $c = new Categorie ($db, $_REQUEST['id']);
|
|||||||
|
|
||||||
llxHeader ("","",$langs->trans("Categories"));
|
llxHeader ("","",$langs->trans("Categories"));
|
||||||
|
|
||||||
print_fiche_titre($langs->trans("Categorie")." ".$c->label);
|
print_fiche_titre($langs->trans("Category"));
|
||||||
|
|
||||||
print '<table border="0" width="100%" class="notopnoleftnoright">';
|
print '<table border="0" width="100%" class="notopnoleftnoright">';
|
||||||
print '<tr><td valign="top" width="30%" class="notopnoleft">';
|
print '<tr><td valign="top" width="30%" class="notopnoleft">';
|
||||||
|
|
||||||
$ways = $c->print_all_ways ();
|
$ways = $c->print_all_ways ();
|
||||||
print "<div id='ways'>";
|
print "<div id='ways'>";
|
||||||
|
print $langs->trans("Ref").': ';
|
||||||
foreach ($ways as $way)
|
foreach ($ways as $way)
|
||||||
{
|
{
|
||||||
print $way."<br />\n";
|
print $way."<br />\n";
|
||||||
@ -72,7 +74,7 @@ else
|
|||||||
$i++;
|
$i++;
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "\t<tr ".$bc[$var].">\n";
|
print "\t<tr ".$bc[$var].">\n";
|
||||||
print "\t\t<td><a href='viewcat.php?id=".$cat->id."'>".$cat->label."</a></td>\n";
|
print "\t\t<td nowrap=\"nowrap\"><a href='viewcat.php?id=".$cat->id."'>".$cat->label."</a></td>\n";
|
||||||
print "\t\t<td>".$cat->description."</td>\n";
|
print "\t\t<td>".$cat->description."</td>\n";
|
||||||
|
|
||||||
if ($cat->visible == 1)
|
if ($cat->visible == 1)
|
||||||
@ -116,10 +118,10 @@ else
|
|||||||
$i++;
|
$i++;
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "\t<tr ".$bc[$var].">\n";
|
print "\t<tr ".$bc[$var].">\n";
|
||||||
print "\t\t<td>";
|
print "\t\t<td nowrap=\"nowrap\">";
|
||||||
if ($prod->type == 1) print img_object($langs->trans("ShowService"),"service");
|
if ($prod->type == 1) print img_object($langs->trans("ShowService"),"service");
|
||||||
else print img_object($langs->trans("ShowProduct"),"product");
|
else print img_object($langs->trans("ShowProduct"),"product");
|
||||||
print "<a href='".DOL_URL_ROOT."/product/fiche.php?id=".$prod->id."'>".$prod->ref."</a></td>\n";
|
print " <a href='".DOL_URL_ROOT."/product/fiche.php?id=".$prod->id."'>".$prod->ref."</a></td>\n";
|
||||||
print "\t\t<td>".$prod->libelle."</td>\n";
|
print "\t\t<td>".$prod->libelle."</td>\n";
|
||||||
print "\t\t<td>".$prod->description."</td>\n";
|
print "\t\t<td>".$prod->description."</td>\n";
|
||||||
print "\t</tr>\n";
|
print "\t</tr>\n";
|
||||||
|
|||||||
@ -1118,7 +1118,7 @@ class Form
|
|||||||
$cat->get_categories_arbo();
|
$cat->get_categories_arbo();
|
||||||
$cate_arbo = $cat->get_arbo_each_cate();
|
$cate_arbo = $cat->get_arbo_each_cate();
|
||||||
$output = '<select name="'.$select_name.'">'; //creation des categories meres
|
$output = '<select name="'.$select_name.'">'; //creation des categories meres
|
||||||
$output.= '<option value="-1" id="choix">'.$langs->trans("NoneCategory").'</option>\n';
|
$output.= '<option value="-1" id="choix"> </option>\n';
|
||||||
|
|
||||||
if ($cate_arbo)
|
if ($cate_arbo)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
# Dolibarr language file - en_US - categories
|
# Dolibarr language file - en_US - categories
|
||||||
|
Category=Category
|
||||||
Categorie=Category
|
Categorie=Category
|
||||||
categories=categories
|
categories=categories
|
||||||
TheCategorie=The catégorie
|
TheCategorie=The catégorie
|
||||||
@ -12,7 +13,7 @@ CatStatistics=Statistics
|
|||||||
CatList=List of catégories
|
CatList=List of catégories
|
||||||
AllCats=All categories
|
AllCats=All categories
|
||||||
ViewCat=View category
|
ViewCat=View category
|
||||||
NewCat=New category
|
NewCat=Add category
|
||||||
ModifCat=Modify category
|
ModifCat=Modify category
|
||||||
CatCreated=Category added
|
CatCreated=Category added
|
||||||
CreateCat=Create category
|
CreateCat=Create category
|
||||||
@ -32,7 +33,8 @@ AddProductToCat=Add this product to a category?
|
|||||||
ImpossibleAddCat=Impossible to add the category
|
ImpossibleAddCat=Impossible to add the category
|
||||||
ImpossibleAssociateCategory=Impossible to associate the category to
|
ImpossibleAssociateCategory=Impossible to associate the category to
|
||||||
WasAddedSuccessfully=was added successfully.
|
WasAddedSuccessfully=was added successfully.
|
||||||
ProductIsInCategories=Category contains products/services
|
ProductIsInCategories=Product/service owns to categories
|
||||||
|
ProductHasNoCategory=This product/service is not in any categories
|
||||||
ClassifyInCategory=Classify in category
|
ClassifyInCategory=Classify in category
|
||||||
ReturnInProduct=Back to product/service card
|
ReturnInProduct=Back to product/service card
|
||||||
ContentsVisibleByAll=The contents will be visible by all
|
ContentsVisibleByAll=The contents will be visible by all
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
# Dolibarr language file - fr_FR - categories
|
# Dolibarr language file - fr_FR - categories
|
||||||
|
Category=Categorie
|
||||||
Categorie=Catégorie
|
Categorie=Catégorie
|
||||||
categories=catégorie(s)
|
categories=catégorie(s)
|
||||||
TheCategorie=La catégorie
|
TheCategorie=La catégorie
|
||||||
@ -33,6 +34,7 @@ ImpossibleAddCat=Impossible d'ajouter la cat
|
|||||||
ImpossibleAssociateCategory=Impossible d'associer la catégorie
|
ImpossibleAssociateCategory=Impossible d'associer la catégorie
|
||||||
WasAddedSuccessfully=a été ajoutée avec succès.
|
WasAddedSuccessfully=a été ajoutée avec succès.
|
||||||
ProductIsInCategories=Ce produit/service est dans les catégorie suivantes
|
ProductIsInCategories=Ce produit/service est dans les catégorie suivantes
|
||||||
|
ProductHasNoCategory=Ce produit/service n'est dans aucune catégorie en particulier
|
||||||
ClassifyInCategory=Classer dans la catégorie
|
ClassifyInCategory=Classer dans la catégorie
|
||||||
NoneCategory=Aucune
|
NoneCategory=Aucune
|
||||||
CategoryExistsAtSameLevel=Cette catégorie existe déjà au même endroit
|
CategoryExistsAtSameLevel=Cette catégorie existe déjà au même endroit
|
||||||
@ -41,3 +43,4 @@ ContentsVisibleByAll=Le contenu sera visible par tous
|
|||||||
ContentsVisibleByAllShort=Contenu visible par tous
|
ContentsVisibleByAllShort=Contenu visible par tous
|
||||||
ContentsNotVisibleByAllShort=Contenu non visible par tous
|
ContentsNotVisibleByAllShort=Contenu non visible par tous
|
||||||
Desc=Description
|
Desc=Description
|
||||||
|
|
||||||
|
|||||||
@ -210,11 +210,12 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
|
|
||||||
|
|
||||||
// Formulaire ajout dans une categorie
|
// Formulaire ajout dans une categorie
|
||||||
|
print '<br>';
|
||||||
print '<form method="post" action="'.DOL_URL_ROOT.'/product/categorie.php?id='.$product->id.'">';
|
print '<form method="post" action="'.DOL_URL_ROOT.'/product/categorie.php?id='.$product->id.'">';
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr><td>';
|
print '<tr class="liste_titre"><td>';
|
||||||
print '<input type="submit" class="button" value="'.$langs->trans("ClassifyInCategory").'"> '. $html->select_all_categories($categorie->id_mere);
|
print $langs->trans("ClassifyInCategory").' ';
|
||||||
print '</td>';
|
print $html->select_all_categories($categorie->id_mere).' <input type="submit" class="button" value="'.$langs->trans("Classify").'"></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
@ -235,8 +236,7 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
|
|
||||||
if (sizeof($cats) > 0)
|
if (sizeof($cats) > 0)
|
||||||
{
|
{
|
||||||
print $langs->trans("ProductIsInCategories");
|
print_fiche_titre($langs->trans("ProductIsInCategories"));
|
||||||
print '<br/>';
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("Categories").'</td></tr>';
|
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("Categories").'</td></tr>';
|
||||||
|
|
||||||
@ -248,7 +248,7 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
{
|
{
|
||||||
$i = !$i;
|
$i = !$i;
|
||||||
print "<tr ".$bc[$i]."><td>".$way."</td>";
|
print "<tr ".$bc[$i]."><td>".$way."</td>";
|
||||||
print "<td>".img_delete($langs->trans("DeleteFromCat"))." <a href= '".DOL_URL_ROOT."/product/categorie.php?id=".$product->id."&cat=".$cat->id."'>".$langs->trans("DeleteFromCat")."</a></td></tr>\n";
|
print '<td align="right">'.img_delete($langs->trans("DeleteFromCat"))." <a href= '".DOL_URL_ROOT."/product/categorie.php?id=".$product->id."&cat=".$cat->id."'>".$langs->trans("DeleteFromCat")."</a></td></tr>\n";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -262,7 +262,7 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print $langs->trans("NoCat")."<br/>";
|
print $langs->trans("ProductHasNoCategory")."<br/>";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user