andre 4 years ago
parent
commit
b4cd723e6a
1 changed files with 50 additions and 56 deletions
  1. 50 56
      templates/clientarea.tpl

+ 50 - 56
templates/clientarea.tpl

@@ -1,10 +1,3 @@
-{*
- **********************************************************
- * Developed by: Team Theme Metro
- * Website: http://www.thememetro.com
- * Customized ny thurdata
- **********************************************************
-*}
 {if $modulechangepwresult}
   {if $modulechangepwresult == "success"}
     {include file="$template/includes/alert.tpl" type="success" msg=$modulechangepasswordmessage textcenter=true}
@@ -12,7 +5,6 @@
     {include file="$template/includes/alert.tpl" type="error" msg=$modulechangepasswordmessage|strip_tags textcenter=true}
   {/if}
 {/if}
-
 {if $modulecustombuttonresult}
   {if $modulecustombuttonresult == "success"}
     {include file="$template/includes/alert.tpl" type="success" msg=$LANG.moduleactionsuccess textcenter=true idname="alertModuleCustomButtonSuccess"}
@@ -21,7 +13,7 @@
   {/if}
 {/if}
 {if $pendingcancellation}
-    {include file="$template/includes/alert.tpl" type="error" msg=$LANG.cancellationrequestedexplanation textcenter=true idname="alertPendingCancellation"}
+  {include file="$template/includes/alert.tpl" type="error" msg=$LANG.cancellationrequestedexplanation textcenter=true idname="alertPendingCancellation"}
 {/if}
 {if $unpaidInvoice}
   <div class="alert alert-{if $unpaidInvoiceOverdue}danger{else}warning{/if}" id="alert{if $unpaidInvoiceOverdue}Overdue{else}Unpaid{/if}Invoice">
@@ -65,49 +57,51 @@
             <div class="col-md-6">
               <div class="product-info" style="min-height: unset; height:210px;">
                 <table width="100%" border="0">
+                  <tr>
+                    <td class="list-heading" style="font-size: 85%;">{$LANG.clientareahostingregdate}</td>
+                    <td class="list-text" style="font-size: 85%;">{$regdate}</td>
+                  </tr>
+                  {if ($firstpaymentamount->toNumeric() != 0.00 + $recurringamount->toNumeric()) != 0.00 }
                     <tr>
-                        <td class="list-heading" style="font-size: 85%;">{$LANG.clientareahostingregdate}</td>
-                        <td class="list-text" style="font-size: 85%;">{$regdate}</td>
+                      <td class="list-heading" style="font-size: 85%;">{$LANG.firstpaymentamount}</td>
+                      <td class="list-text"  style="font-size: 85%;">{$firstpaymentamount}</td>
+                    </tr>
+                    <tr>
+                      <td class="list-heading" style="font-size: 85%;">{$LANG.recurringamount}</td>
+                      <td class="list-text" style="font-size: 85%;">{$recurringamount}</td>
+                    </tr>
+                    <tr>
+                      <td class="list-heading" style="font-size: 85%;">{$LANG.orderbillingcycle}</td>
+                      <td class="list-text" style="font-size: 85%;">{$billingcycle}</td>
+                    </tr>
+                    <tr>
+                      <td class="list-heading" style="font-size: 85%;">{$LANG.clientareahostingnextduedate}</td>
+                      <td class="list-text" style="font-size: 85%;">{$nextduedate}</td>
+                    </tr>
+                    <tr>
+                      <td class="list-heading" style="font-size: 85%;">{$LANG.orderpaymentmethod}</td>
+                      <td class="list-text" style="font-size: 85%;">{$paymentmethod}</td>
                     </tr>
-                    {if ($firstpaymentamount->toNumeric() != 0.00 + $recurringamount->toNumeric()) != 0.00 }
-                        <tr>
-                            <td class="list-heading" style="font-size: 85%;">{$LANG.firstpaymentamount}</td>
-                            <td class="list-text"  style="font-size: 85%;">{$firstpaymentamount}</td>
-                        </tr>
-                        <tr>
-                            <td class="list-heading" style="font-size: 85%;">{$LANG.recurringamount}</td>
-                            <td class="list-text" style="font-size: 85%;">{$recurringamount}</td>
-                        </tr>
-                        <tr>
-                            <td class="list-heading" style="font-size: 85%;">{$LANG.orderbillingcycle}</td>
-                            <td class="list-text" style="font-size: 85%;">{$billingcycle}</td>
-                        </tr>
-                        <tr>
-                            <td class="list-heading" style="font-size: 85%;">{$LANG.clientareahostingnextduedate}</td>
-                            <td class="list-text" style="font-size: 85%;">{$nextduedate}</td>
-                        </tr>
-                        <tr>
-                            <td class="list-heading" style="font-size: 85%;">{$LANG.orderpaymentmethod}</td>
-                            <td class="list-text" style="font-size: 85%;">{$paymentmethod}</td>
-                        </tr>
                   {else}
-                        <tr>
-                            <td class="list-heading" style="font-size: 85%;"><strong>Trial Account</strong></td>
-                            {if 1123200 > ($smarty.now - ($regdate|@strtotime)) && ($smarty.now - ($regdate|@strtotime)) > 950400} {* wenn Heute - RegisterDatum < 13 Tage && > 11 Tage *}
-                                <td class="list-text" style="color:orange; font-size:85%">{lang key='domainRenewal.expiringIn' days=(14 - (($smarty.now - ($regdate|@strtotime)) / 86400)|round)}</td>
-                            {elseif ($smarty.now - ($regdate|@strtotime)) > 1123200} {* wenn Heute - RegisterDatum > 13 Tage *}
-                                <td class="list-text" style="color:red; font-size:85%;">{lang key='trialLastDay'}</td>
-                            {else}
-                                <td class="list-text" style="font-size: 85%;">{lang key='domainRenewal.expiringIn' days=(14 - (($smarty.now - ($regdate|@strtotime)) / 86400)|round)}</td>
-                            {/if}
-                        </tr>
-                        <tr>
-                            <td colspan="2"><br /><br /></td>
-                        </tr>
-                        <tr>
-                            <td></td>
-                            <td><a href="/upgrade.php?type=package&id={$id}" class="btn btn-block btn-primary">Jetzt upgraden</a></td>
-                        </tr>
+                    <tr>
+                      <td class="list-heading" style="font-size: 85%;"><strong>Trial Account</strong></td>
+                      {if $status == "Beendet"}
+                        <td class="list-text" style="font-size:85%;">{lang key='domainRenewal.expiredDaysAgo' days=((($smarty.now - ($regdate|@strtotime)) / 86400)|round) - 14}</td>
+                      {elseif 1123200 > ($smarty.now - ($regdate|@strtotime)) && ($smarty.now - ($regdate|@strtotime)) > 950400} {* wenn Heute - RegisterDatum < 13 Tage && > 11 Tage *}
+                        <td class="list-text" style="color:orange; font-size:85%">{lang key='domainRenewal.expiringIn' days=(14 - (($smarty.now - ($regdate|@strtotime)) / 86400)|round)}</td>
+                      {elseif ($smarty.now - ($regdate|@strtotime)) > 1123200} {* wenn Heute - RegisterDatum > 13 Tage *}
+                        <td class="list-text" style="color:red; font-size:85%;">{lang key='trialLastDay'}</td>
+                      {else}
+                        <td class="list-text" style="font-size: 85%;">{lang key='domainRenewal.expiringIn' days=(14 - (($smarty.now - ($regdate|@strtotime)) / 86400)|round)}</td>
+                      {/if}
+                    </tr>
+                    <tr>
+                      <td colspan="2"><br /><br /></td>
+                    </tr>
+                    <tr>
+                      <td></td>
+                      <td><a href="/upgrade.php?type=package&id={$id}" class="btn btn-block btn-primary">Jetzt upgraden</a></td>
+                    </tr>
                   {/if}
                 </table>              
               <!--- HERE --->
@@ -438,13 +432,13 @@
                 {include file="$template/thurdata/thurpwcheck.tpl"}
               </div>
               <div class="alert alert-info">
-                  <div id='hints'>
-                      <strong id='hint2Head'></strong>
-                      <div id='hintLength'></div>
-                      <div id='hintNumeric'></div>
-                      <div id='hintSymbols'></div>
-                      <div id='hintUpperLower'></div>
-                  </div>
+                <div id='hints'>
+                  <strong id='hint2Head'></strong>
+                  <div id='hintLength'></div>
+                  <div id='hintNumeric'></div>
+                  <div id='hintSymbols'></div>
+                  <div id='hintUpperLower'></div>
+                </div>
               </div>
               <div id="newPassword2" class="form-group has-feedback">
                 <label for="inputNewPassword2" class="control-label">{$LANG.confirmnewpassword}</label>