Merge pull request #16 from dschallert/Bug_#693_hide_empty_information_in_customer_control_panel_index

fixes #693 Hide empty information on customerpanel index
This commit is contained in:
Florian Aders
2012-05-22 23:39:57 -07:00
2 changed files with 253 additions and 228 deletions

View File

@@ -1,33 +1,46 @@
$header
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable" xmlns="http://www.w3.org/1999/html"
xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html">
<tr>
<td class="maintitle" colspan="2"><b><img src="images/Classic/title.gif" alt="" />&nbsp;{$lng['index']['customerdetails']}</b></td>
</tr>
<tr>
<if $userinfo['customernumber'] >
<tr>
<td class="field_name_nobordersmall">{$lng['customer']['customernumber']}:</td>
<td class="field_display_nobordersmall">{$userinfo['customernumber']}</td>
</tr>
</if>
<if $userinfo['company'] >
<tr>
<td class="field_name_border_left">{$lng['customer']['company']}:</td>
<td class="field_display">{$userinfo['company']}</td>
</tr>
</if>
<if $userinfo['name'] >
<tr>
<td class="field_name_border_left">{$lng['customer']['name']}:</td>
<td class="field_display">{$userinfo['firstname']} {$userinfo['name']}</td>
</tr>
<tr>
<td class="field_name_border_left">{$lng['customer']['company']}:</td>
<td class="field_display">{$userinfo['company']}</td>
</tr>
</if>
<if $userinfo['street'] >
<tr>
<td class="field_name_border_left">{$lng['customer']['street']}:</td>
<td class="field_display">{$userinfo['street']}</td>
</tr>
<tr>
</if>
<if $userinfo['city'] >
<tr>
<td class="field_name_border_left">{$lng['customer']['zipcode']}/{$lng['customer']['city']}:</td>
<td class="field_display">{$userinfo['zipcode']} {$userinfo['city']}</td>
</tr>
<tr>
</if>
<if $userinfo['email'] >
<tr>
<td class="field_name_border_left">{$lng['customer']['email']}:</td>
<td class="field_display">{$userinfo['email']}</td>
</tr>
<tr>
<td class="field_name_nobordersmall">{$lng['customer']['customernumber']}:</td>
<td class="field_display_nobordersmall">{$userinfo['customernumber']}</td>
</tr>
<tr>
</if>
<tr>
<td class="maintitle" colspan="2"><b><img src="images/Classic/title.gif" alt="" />&nbsp;{$lng['index']['accountdetails']}</b></td>
</tr>
<tr>

View File

@@ -84,38 +84,50 @@ $header
</table>
</section>
<section class="dboarditem bradiusodd">
<h2>{$lng['index']['customerdetails']}</h2>
<table>
<tr>
<td>{$lng['customer']['name']}:</td>
<td>{$userinfo['firstname']} {$userinfo['name']}</td>
</tr>
<tr>
<td>{$lng['customer']['company']}:</td>
<td>{$userinfo['company']}</td>
</tr>
<tr>
<td>{$lng['customer']['street']}:</td>
<td>{$userinfo['street']}</td>
</tr>
<tr>
<td>{$lng['customer']['zipcode']}/{$lng['customer']['city']}:</td>
<td>{$userinfo['zipcode']} {$userinfo['city']}</td>
</tr>
<tr>
<td>{$lng['customer']['email']}:</td>
<td>{$userinfo['email']}</td>
</tr>
<tr>
<td>{$lng['customer']['customernumber']}:</td>
<td>{$userinfo['customernumber']}</td>
</tr>
<tr>
<td colspan="2" style="border:0;height:5px;"></td>
</tr>
</table>
</section>
<section class="dboarditem bradiusodd">
<h2>{$lng['index']['customerdetails']}</h2>
<table>
<if $userinfo['customernumber'] >
<tr>
<td>{$lng['customer']['customernumber']}:</td>
<td>{$userinfo['customernumber']}</td>
</tr>
</if>
<if $userinfo['company'] >
<tr>
<td>{$lng['customer']['company']}:</td>
<td>{$userinfo['company']}</td>
</tr>
</if>
<if $userinfo['name'] >
<tr>
<td>{$lng['customer']['name']}:</td>
<td>{$userinfo['firstname']} {$userinfo['name']}</td>
</tr>
</if>
<if $userinfo['street'] >
<tr>
<td>{$lng['customer']['street']}:</td>
<td>{$userinfo['street']}</td>
</tr>
</if>
<if $userinfo['city'] >
<tr>
<td>{$lng['customer']['zipcode']}/{$lng['customer']['city']}:</td>
<td>{$userinfo['zipcode']} {$userinfo['city']}</td>
</tr>
</if>
<if $userinfo['email'] >
<tr>
<td>{$lng['customer']['email']}:</td>
<td>{$userinfo['email']}</td>
</tr>
</if>
<tr>
<td colspan="2" style="border:0;height:20px;"></td>
</tr>
</table>
</section>
</article>
$footer