<?php
/*
*
* Remote Mail Client
* CopyLEFT 2004 by Maurizio Pinotti
*
* You can freely distribute this script as long as you do *NOT* edit it:
* editing is only permitted for private use.
*
* ----------------------------------------------------------------------
* Official site: http://www.pinottinet.com/rmail
* ----------------------------------------------------------------------
*
*/
// ------------------------- [ NO USER CONFIGURABLE ELEMENTS BELOW HERE ] ------------------------
// better a function than a skin beacause usually I got several account, so I should print several times these lines
function get_table_account_data($account_params, $modify_account_link, $delete_account_link, $hide_pass) {
global $lang;
$account_name = $account_params['name'];
$account_server = $account_params['server'];
$account_user = $account_params['user'];
$account_pass = ($hide_pass ? $lang['pass_hidden'] : $account_params['pass']);
$account_webmail = $account_params['webmail'];
return <<<EOF
<table width="100%" border="0">
<tr>
<td colspan="2" class="account">{$account_name}</td>
<td class="account"><div align="right"><span class="field_descr">< <a href="{$modify_account_link}" target="_self">{$lang['modify_account']}</a> > < <a href="{$delete_account_link}" target="_self">{$lang['delete_account']}</a> ></span></div></td>
</tr>
<tr>
<td width="20%" class="message">{$lang['account_server_caption']}:</td>
<td width="80%" colspan="2" class="field">{$account_server}</td>
</tr>
<tr>
<td width="20%" class="message">{$lang['account_user_caption']}:</td>
<td width="80%" colspan="2" class="field">{$account_user}</td>
</tr>
<tr>
<td width="20%" class="message">{$lang['account_pass_caption']}:</td>
<td width="80%" colspan="2" class="field">{$account_pass}</td>
</tr>
<tr>
<td width="20%" class="message">{$lang['account_webmail_caption']}:</td>
<td width="80%" colspan="2" class="field">{$account_webmail}</td>
</tr>
</table>
<hr align="left" width="80%" class="separator">
<p> </p>
EOF;
}
?>