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,32 +1,45 @@
$header $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> <tr>
<td class="maintitle" colspan="2"><b><img src="images/Classic/title.gif" alt="" />&nbsp;{$lng['index']['customerdetails']}</b></td> <td class="maintitle" colspan="2"><b><img src="images/Classic/title.gif" alt="" />&nbsp;{$lng['index']['customerdetails']}</b></td>
</tr> </tr>
<tr> <if $userinfo['customernumber'] >
<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>
<tr>
<td class="field_name_border_left">{$lng['customer']['street']}:</td>
<td class="field_display">{$userinfo['street']}</td>
</tr>
<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>
<td class="field_name_border_left">{$lng['customer']['email']}:</td>
<td class="field_display">{$userinfo['email']}</td>
</tr>
<tr> <tr>
<td class="field_name_nobordersmall">{$lng['customer']['customernumber']}:</td> <td class="field_name_nobordersmall">{$lng['customer']['customernumber']}:</td>
<td class="field_display_nobordersmall">{$userinfo['customernumber']}</td> <td class="field_display_nobordersmall">{$userinfo['customernumber']}</td>
</tr> </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>
</if>
<if $userinfo['street'] >
<tr>
<td class="field_name_border_left">{$lng['customer']['street']}:</td>
<td class="field_display">{$userinfo['street']}</td>
</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>
</if>
<if $userinfo['email'] >
<tr>
<td class="field_name_border_left">{$lng['customer']['email']}:</td>
<td class="field_display">{$userinfo['email']}</td>
</tr>
</if>
<tr> <tr>
<td class="maintitle" colspan="2"><b><img src="images/Classic/title.gif" alt="" />&nbsp;{$lng['index']['accountdetails']}</b></td> <td class="maintitle" colspan="2"><b><img src="images/Classic/title.gif" alt="" />&nbsp;{$lng['index']['accountdetails']}</b></td>
</tr> </tr>

View File

@@ -87,32 +87,44 @@ $header
<section class="dboarditem bradiusodd"> <section class="dboarditem bradiusodd">
<h2>{$lng['index']['customerdetails']}</h2> <h2>{$lng['index']['customerdetails']}</h2>
<table> <table>
<tr> <if $userinfo['customernumber'] >
<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> <tr>
<td>{$lng['customer']['customernumber']}:</td> <td>{$lng['customer']['customernumber']}:</td>
<td>{$userinfo['customernumber']}</td> <td>{$userinfo['customernumber']}</td>
</tr> </tr>
</if>
<if $userinfo['company'] >
<tr> <tr>
<td colspan="2" style="border:0;height:5px;"></td> <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> </tr>
</table> </table>
</section> </section>