';
- print "\n".'';
+ $propal->showAddPredefinedProductForm($propal);
+ }
+
+ // Add hook of other modules
+ if ($conf->milestone->enabled)
+ {
+ $var=!$var;
+ formAddMilestone($propal);
}
}
diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index d659a9883fc..16186ebc1c4 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -1,5 +1,5 @@
+/* Copyright (C) 2006-2010 Laurent Destailleur
* Copyright (C) 2005-2010 Regis Houssin
* Copyright (C) 2010 Juanjo Menent
*
@@ -1149,9 +1149,34 @@ class CommonObject
print $sql;
}
}
+
+ /**
+ * Show add free products/services form
+ */
+ function showAddFreeProductForm($object)
+ {
+ global $conf,$langs;
+ global $html,$bc,$var;
+
+ include(DOL_DOCUMENT_ROOT.'/core/tpl/addfreeproductform.tpl.php');
+ }
+
+ /**
+ * Show add predefined products/services form
+ */
+ function showAddPredefinedProductForm($object)
+ {
+ global $conf,$langs;
+ global $html,$bc,$var;
+
+ include(DOL_DOCUMENT_ROOT.'/core/tpl/addpredefinedproductform.tpl.php');
+ }
/**
- *
+ * Show linked object block
+ * @param $object
+ * @param $objectid
+ * @param $somethingshown
*/
function showLinkedObjectBlock($object,$objectid,$somethingshown=0)
{
diff --git a/htdocs/core/tpl/addfreeproductform.tpl.php b/htdocs/core/tpl/addfreeproductform.tpl.php
new file mode 100644
index 00000000000..c5d3c4d189a
--- /dev/null
+++ b/htdocs/core/tpl/addfreeproductform.tpl.php
@@ -0,0 +1,81 @@
+
+ *
+ * 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 2 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, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id$
+ */
+?>
+
+
+
+global->PRODUIT_USE_MARKUP) $colspan = 'colspan="2"';
+?>
+
+
+
+
+
+
diff --git a/htdocs/core/tpl/addpredefinedproductform.tpl.php b/htdocs/core/tpl/addpredefinedproductform.tpl.php
new file mode 100644
index 00000000000..d69feb9c4da
--- /dev/null
+++ b/htdocs/core/tpl/addpredefinedproductform.tpl.php
@@ -0,0 +1,85 @@
+
+ *
+ * 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 2 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, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id$
+ */
+?>
+
+
+
+global->PRODUIT_USE_MARKUP)
+$colspan = 'colspan="4"';
+else
+$colspan = 'colspan="3"';
+?>
+
+
+
+
+
+
diff --git a/htdocs/lib/propal.lib.php b/htdocs/lib/propal.lib.php
index c85d7a6307c..4e6646104b5 100644
--- a/htdocs/lib/propal.lib.php
+++ b/htdocs/lib/propal.lib.php
@@ -1,5 +1,6 @@
+/* Copyright (C) 2006-2010 Laurent Destailleur
+ * Copyright (C) 2005-2010 Regis Houssin
*
* 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