andre 5 hónapja
szülő
commit
4a3a44ccd5
1 módosított fájl, 32 hozzáadás és 35 törlés
  1. 32 35
      configureproduct.tpl

+ 32 - 35
configureproduct.tpl

@@ -1,13 +1,9 @@
 
 
-{assign var="tdtemplate" value="templates/orderforms/thurdata/blubb.tpl"}
+{assign var="customtemplate" value="templates/orderforms/thurdata/configure_{$productinfo.name}.tpl"}
 {if file_exists($tdtemplate)}
-{debug}
+    {include file=$customtemplate}
 {else}
-<div class="row">
-Blubb  {$tdtemplate}
-</div>
-{/if}
 {* 
 route configureproduct by group id or name
 *}
@@ -24,39 +20,40 @@ ThurVCloud Business		=> gid=9
 ThurFiles Business Hosting	=> gid=10
 Website Builder		=> gid=19
 *}
-{if ($productinfo.paytype eq 'free') && in_array($productinfo.pid, $clientPids)}
-    {include file="./nodoubletrial.tpl"}
-{else}
-    {if $productinfo.gid === 1 || $productinfo.gid === 8}
-        {include file='./configure_privat_mail.tpl'}
-	{if $productinfo.gid === 19}
-        	{include file='./check_configure_kerio_privat_mail.tpl'}
-        {else}
-		{include file='./check_configure_privat_mail.tpl'}
-	{/if}	
-    {elseif $productinfo.gid === 2}
-        {include file='./configure_seafile.tpl'}
-        {include file='./check_configure_seafile.tpl'}
-    {elseif $productinfo.gid === 3}
-        {include file='./configure_nextcloud.tpl'}
-        {include file='./check_configure_nextcloud.tpl'}
-    {elseif $productinfo.gid === 4}
-        {include file='./configure_thurvserver.tpl'}
-        {include file='./check_configure_thurvserver.tpl'}
-    {elseif $productinfo.gid === 5}
-        {include file='./configure_thurvcloud.tpl'}
-    {elseif $productinfo.gid === 7 || $productinfo.gid === 16}
-        {include file='./configure_groupware.tpl'}
-    {elseif $productinfo.gid === 15}
-        {include file='./configure_webhosting.tpl'}
-    {elseif $productinfo.gid === 19}
-        {include file='./configure_sitebuilder.tpl'}
+    {if ($productinfo.paytype eq 'free') && in_array($productinfo.pid, $clientPids)}
+        {include file="./nodoubletrial.tpl"}
     {else}
-        {include file='./configureproduct_default.tpl'}
+        {if $productinfo.gid === 1 || $productinfo.gid === 8}
+            {include file='./configure_privat_mail.tpl'}
+        {if $productinfo.gid === 19}
+                {include file='./check_configure_kerio_privat_mail.tpl'}
+            {else}
+            {include file='./check_configure_privat_mail.tpl'}
+        {/if}	
+        {elseif $productinfo.gid === 2}
+            {include file='./configure_seafile.tpl'}
+            {include file='./check_configure_seafile.tpl'}
+        {elseif $productinfo.gid === 3}
+            {include file='./configure_nextcloud.tpl'}
+            {include file='./check_configure_nextcloud.tpl'}
+        {elseif $productinfo.gid === 4}
+            {include file='./configure_thurvserver.tpl'}
+            {include file='./check_configure_thurvserver.tpl'}
+        {elseif $productinfo.gid === 5}
+            {include file='./configure_thurvcloud.tpl'}
+        {elseif $productinfo.gid === 7 || $productinfo.gid === 16}
+            {include file='./configure_groupware.tpl'}
+        {elseif $productinfo.gid === 15}
+            {include file='./configure_webhosting.tpl'}
+        {elseif $productinfo.gid === 19}
+            {include file='./configure_sitebuilder.tpl'}
+        {else}
+            {include file='./configureproduct_default.tpl'}
+        {/if}
     {/if}
-{/if}
 
 {* {elseif $productinfo.gid === 3} 
     {include file='./configure_nextcloud.tpl'}
     {include file='./check_configure_nextcloud.tpl'}
 *}
+{/if}