- | trans('Name'); ?> |
+ trans('ThirdPartyName'); ?> |
|
diff --git a/htdocs/societe/canvas/default/tpl/card_view.tpl.php b/htdocs/societe/canvas/default/tpl/card_view.tpl.php
index 76faf8d5cdf..35d425b26d4 100644
--- a/htdocs/societe/canvas/default/tpl/card_view.tpl.php
+++ b/htdocs/societe/canvas/default/tpl/card_view.tpl.php
@@ -17,9 +17,19 @@
*
* $Id$
*/
+
+$soc = $GLOBALS['objcanvas']->control->object;
+
?>
-
+
+trans("ThirdParty"),0,'company');
+
+?>
control->tpl['error']) echo $this->control->tpl['error']; ?>
control->tpl['action_delete']) echo $this->control->tpl['action_delete']; ?>
@@ -28,7 +38,7 @@
- | trans('Name'); ?> |
+ trans('ThirdPartyName'); ?> |
control->tpl['showrefnav']; ?> |
@@ -226,7 +236,7 @@ for ($i=1; $i<=4; $i++) {
-
+
rights->societe->creer) { ?>
@@ -248,4 +258,37 @@ for ($i=1; $i<=4; $i++) {
+
|
+
+
+societe->dir_output.'/'.$socid;
+$urlsource=$_SERVER["PHP_SELF"]."?socid=".$socid;
+$genallowed=$user->rights->societe->creer;
+$delallowed=$user->rights->societe->supprimer;
+
+$somethingshown=$formfile->show_documents('company',$socid,$filedir,$urlsource,$genallowed,$delallowed,'',0,0,0,28,0,'',0,'',$objcanvas->control->object->default_lang);
+?>
+
+ |
+ |
+
+
+
+
+
+control->object);
+
+// Contacts list
+$result=show_contacts($conf,$langs,$db,$objcanvas->control->object);
+
+// Projects list
+$result=show_projects($conf,$langs,$db,$objcanvas->control->object);
+?>
+
\ No newline at end of file
diff --git a/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php b/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php
index fb029ac0cf0..ffb6071d538 100644
--- a/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php
+++ b/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php
@@ -19,7 +19,7 @@
*/
?>
-
+
control->tpl['title']);
diff --git a/htdocs/societe/canvas/individual/tpl/card_view.tpl.php b/htdocs/societe/canvas/individual/tpl/card_view.tpl.php
index 5db27c2de89..4b11e1db9ed 100644
--- a/htdocs/societe/canvas/individual/tpl/card_view.tpl.php
+++ b/htdocs/societe/canvas/individual/tpl/card_view.tpl.php
@@ -17,9 +17,19 @@
*
* $Id$
*/
+
+$soc = $GLOBALS['objcanvas']->control->object;
+
?>
-
+
+trans("ThirdParty"),0,'company');
+
+?>
control->tpl['error']) echo $this->control->tpl['error']; ?>
control->tpl['action_delete']) echo $this->control->tpl['action_delete']; ?>
@@ -167,7 +177,7 @@
-
+
rights->societe->creer) { ?>
@@ -189,4 +199,37 @@
+
|
+
+
+societe->dir_output.'/'.$socid;
+$urlsource=$_SERVER["PHP_SELF"]."?socid=".$socid;
+$genallowed=$user->rights->societe->creer;
+$delallowed=$user->rights->societe->supprimer;
+
+$somethingshown=$formfile->show_documents('company',$socid,$filedir,$urlsource,$genallowed,$delallowed,'',0,0,0,28,0,'',0,'',$objcanvas->control->object->default_lang);
+?>
+
+ |
+ |
+
+
+
+
+
+control->object);
+
+// Contacts list
+$result=show_contacts($conf,$langs,$db,$objcanvas->control->object);
+
+// Projects list
+$result=show_projects($conf,$langs,$db,$objcanvas->control->object);
+?>
+
\ No newline at end of file
diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php
index e43333521bc..176767814b0 100644
--- a/htdocs/societe/soc.php
+++ b/htdocs/societe/soc.php
@@ -418,40 +418,8 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
$object->fetch($socid);
$objcanvas->control->object=$object;
}
- $objcanvas->assign_values(); // Assign values
- $objcanvas->display_canvas(); // Show template
-
- // TODO Move this also into template
- print '
| ';
- print ''; // ancre
-
- /*
- * Documents generes
- */
- $filedir=$conf->societe->dir_output.'/'.$socid;
- $urlsource=$_SERVER["PHP_SELF"]."?socid=".$socid;
- $genallowed=$user->rights->societe->creer;
- $delallowed=$user->rights->societe->supprimer;
-
- $var=true;
-
- $somethingshown=$formfile->show_documents('company',$socid,$filedir,$urlsource,$genallowed,$delallowed,'',0,0,0,28,0,'',0,'',$objcanvas->control->object->default_lang);
-
- print ' | ';
- print ' | ';
- print '
';
- print '
';
-
- print '
';
-
- // Subsidiaries list
- $result=show_subsidiaries($conf,$langs,$db,$objcanvas->control->object);
-
- // Contacts list
- $result=show_contacts($conf,$langs,$db,$objcanvas->control->object);
-
- // Projects list
- $result=show_projects($conf,$langs,$db,$objcanvas->control->object);
+ $objcanvas->assign_values('view'); // Assign values
+ $objcanvas->display_canvas('view'); // Show template
}
}
else
@@ -483,9 +451,6 @@ else
require_once(DOL_DOCUMENT_ROOT ."/includes/modules/societe/".$module.".php");
$modCodeFournisseur = new $module;
- /*
- * Company Fact creation mode
- */
//if ($_GET["type"]=='cp') { $soc->client=3; }
if (GETPOST("type")!='f') $soc->client=3;
if (GETPOST("type")=='c') { $soc->client=1; }
@@ -1684,7 +1649,7 @@ else
print '