bigjat69
09-02-08, 03:59 PM
Hi guys im using the 'How to stop customers change their account name details' mod by Si (Many thanks for this Si, not only did you help me out but also gave me the confidence to try this for myself) and came up with a small mod that will let you log the current details (from the client summary page) before taking you into the profile page where you will edit and save the new details.
From the summary page you can also view and then print the log report.
This may be helpful to those who have not used the mod by Si but just want to keep an eye on accounts that seem to be changing details far to regularly.
This has been tested on v3.6.2 (i will post v3.6.1 later)
INSTALLATION
There is only one .tpl to edit and one file to upload after creating the new table.
1. run the SQL in the attached file tblclientlog_SQL.txt in your WHMCS database (PLEASE BACK UP YOUR DB FIRST!!)
2. Download (from your WHMCS root) /admin/templates/clientssummary.tpl
and save as a backup.
3. Upload the following code as clientssummary.tpl
clientssummary.tpl
<div style="font-size:18px;">#{$clientsdetails.userid} - {$clientsdetails.firstname} {$clientsdetails.lastname}</div>
<img src="images/spacer.gif" width="1" height="6" /><br />
<table width=100%>
<tr><td width=34% valign=top>
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width=100% cellpadding=2>
<tr><td align=center colspan=2 class="fieldareasmall"><strong>Client Information</strong></td></tr>
<tr><td width=90 align=right>First Name</td><td class="fieldarea" style="height:20px;">{$clientsdetails.firstname}</td></tr>
<tr><td align=right>Last Name</td><td class="fieldarea" style="height:20px;">{$clientsdetails.lastname}</td></tr>
<tr><td align=right>Company Name</td><td class="fieldarea" style="height:20px;">{$clientsdetails.companyname}</td></tr>
<tr><td align=right>Email Address</td><td class="fieldarea" style="height:20px;">{$clientsdetails.email}</td></tr>
<tr><td align=right>Address 1</td><td class="fieldarea" style="height:20px;">{$clientsdetails.address1}</td></tr>
<tr><td align=right>Address 2</td><td class="fieldarea" style="height:20px;">{$clientsdetails.address2}</td></tr>
<tr><td align=right>City</td><td class="fieldarea" style="height:20px;">{$clientsdetails.city}</td></tr>
<tr><td align=right>State</td><td class="fieldarea" style="height:20px;">{$clientsdetails.state}</td></tr>
<tr><td align=right>Postcode</td><td class="fieldarea" style="height:20px;">{$clientsdetails.postcode}</td></tr>
<tr><td align=right>Country</td><td class="fieldarea" style="height:20px;">{$clientsdetails.country} - {$clientsdetails.countrylong}</td></tr>
<tr><td align=right>Phone Number</td><td class="fieldarea" style="height:20px;">{$clientsdetails.phonenumber}</td></tr>
</table>
</td></tr>
</table>
<img src="images/spacer.gif" width="1" height="4" /><br />
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Additional Contacts</strong></td></tr>
<tr><td align="center">
{foreach key=num from=$contacts item=contact}
{$contact.firstname} {$contact.lastname} - {$contact.email}<br />
{foreachelse}
No additional contacts setup
{/foreach}
</td></tr></table>
</td></tr></table>
<img src="images/spacer.gif" width="1" height="4" /><br />
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width=100% cellpadding=2>
<tr><td align=center colspan=2 class="fieldareasmall"><strong>Other Information</strong></td></tr>
<tr><td width=90 align=right>Status</td><td class="fieldarea" style="height:20px;">{$clientsdetails.status}</td></tr>
<tr><td align=right>Tax Exempt</td><td class="fieldarea" style="height:20px;">{$clientsdetails.taxstatus}</td></tr>
<tr><td align=right>Signup Date</td><td class="fieldarea" style="height:20px;">{$signupdate}</td></tr>
<tr><td align=right>Client For</td><td class="fieldarea" style="height:20px;">{$clientfor}</td></tr>
<tr><td align=right>Last Login</td><td class="fieldarea" style="height:20px;">{$lastlogin}</td></tr>
</table>
</td></tr></table>
</td><td width=33% valign=top>
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width=100% cellpadding=2>
<tr><td align=center colspan=2 class="fieldareasmall"><strong>Client Stats</strong></td></tr>
<tr><td width=125 align=right>Invoices Paid</td><td class="fieldarea" style="height:20px;">{$invoicespaidnum} ({$invoicespaidamount})</td></tr>
<tr><td align=right>Invoices Due</td><td class="fieldarea" style="height:20px;">{$invoicesduenum} ({$invoicesdueamount})</td></tr>
<tr><td align=right>Invoices Cancelled</td><td class="fieldarea" style="height:20px;">{$invoicescancellednum} ({$invoicescancelledamount})</td></tr>
<tr><td align=right>Profit</td><td class="fieldarea" style="height:20px;">{$profit}</td></tr>
<tr><td align=right>Credit Balance</td><td class="fieldarea" style="height:20px;">{$credit}</td></tr>
<tr><td align=right>Hosting Accounts</td><td class="fieldarea" style="height:20px;">{$hosting} ({$hostingtotal} Total)</td></tr>
<tr><td align=right>Reseller Accounts</td><td class="fieldarea" style="height:20px;">{$reseller} ({$resellertotal} Total)</td></tr>
<tr><td align=right>Dedicated/VPS Servers</td><td class="fieldarea" style="height:20px;">{$dedicated} ({$dedicatedtotal} Total)</td></tr>
<tr><td align=right>Products/Services</td><td class="fieldarea" style="height:20px;">{$other} ({$othertotal} Total)</td></tr>
<tr><td align=right>Domains</td><td class="fieldarea" style="height:20px;">{$domains} ({$domainstotal} Total)</td></tr>
<tr><td align=right>Support Tickets</td><td class="fieldarea" style="height:20px;">{$tickets} ({$ticketstotal} Total)</td></tr>
<tr><td align=right>Affiliate Signups</td><td class="fieldarea" style="height:20px;">{$affiliates}</td></tr>
</table>
</td></tr>
</table>
<img src="images/spacer.gif" width="1" height="4" /><br />
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Last 5 Emails</strong></td></tr>
<tr><td>
{foreach key=num from=$lastfivemail item=email}
{$email.date} - <a href="#" onclick="window.open('clientsemails.php?&displaymessage=true&id={$email.id}','','width=650,height=400,scrollbar s=yes');return false">{$email.subject}</a><br />
{foreachelse}
<div style='text-align:center;'>No emails sent</div>
{/foreach}
</td></tr></table>
</td></tr></table>
</td><td width=33% valign=top>
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Actions</strong></td></tr>
<tr><td align="center">
<a href="../logfile/logclient.php?userid={$clientsdetails.userid}&action=logclient">Log Cient Info & Edit</a><br />
<a href="../logfile/logclient.php?userid={$clientsdetails.userid}&action=viewclient">View Client Log</a><br />
<a href="../logfile/logclient.php?userid={$clientsdetails.userid}&action=deletelog" onclick="return confirm('You cannot undo a delete function. If you are NOT sure click CANCEL');">Delete Client Log</a><br /><br />
<a href="../dologin.php?username={$clientsdetails.email}">Login as Client</a><br /><br />
<a href="ordersadd.php?userid={$clientsdetails.userid}">Add New Order</a><br />
<a href="invoices.php?action=createinvoice&userid={$clientsdetails.userid}">Create Invoice</a><br />
<a href="clientssummary.php?userid={$clientsdetails.userid}&generateinvoices=true">Generate Due Invoices</a><br /><br />
<a href="#" onclick="window.open('clientscredits.php?userid={$clientsde tails.userid}','','width=750,height=350,scrollbars =yes');return false">Manage Credits</a><br />
<a href="clientstransactions.php?userid={$clientsdetails.us erid}">View Transactions History</a><br />
<a href="#" onclick="openCCDetails();return false">View/Edit Credit Card Information</a><br /><br />
<a href="supporttickets.php?action=open&userid={$clientsdetails.userid}">Open New Support Ticket</a><br />
<a href="supporttickets.php?view=any&client={$clientsdetails.userid}">View all Support Tickets</a><br /><br />
{$afflink}
<a href="#" onclick="window.open('clientsmerge.php?userid={$clientsdeta ils.userid}','movewindow','width=500,height=280,to p=100,left=100');return false">Merge Clients Accounts</a><br />
<a href="#" onclick="deleteClient();return false">Delete Clients Account</a><br /><br />
</td></tr></table>
</td></tr></table>
<img src="images/spacer.gif" width="1" height="4" /><br />
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Send Email</strong></td></tr>
<tr><td align="center">
<form action="clientsemails.php?userid={$clientsdetails.userid}&action=send&type=general" method="post">
<input type="hidden" name="id" value="{$clientsdetails.userid}">
{$messages}
<input type="submit" value="Send" class="button">
</form>
</td></tr></table>
</td></tr></table>
<img src="images/spacer.gif" width="1" height="4" /><br />
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Admin Notes</strong></td></tr>
<tr><td align="center">
<form method="post" action="?userid={$clientsdetails.userid}">
<textarea name="adminnotes" rows="6" cols="38" />{$clientsdetails.notes}</textarea>
<div align="center"><input type="submit" value="Submit" class="button" /></div>
</form>
</td></tr></table>
</td></tr></table>
</td></tr>
<tr><td colspan="3">
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Products/Services</strong></td></tr>
<tr><td align="center">
<table width="100%" cellspacing="1" class="admindatatable">
<tr class="admindatatableheader">
<td width=40>ID</td>
<td>Product/Service</td>
<td>Amount</td>
<td>Billing Cycle</td>
<td>Signup Date</td>
<td>Next Due Date</td>
<td>Status</td>
<td width="20"></td>
</tr>
{foreach key=num from=$productsummary item=product}
<tr onmouseover="this.className='admindatatablehighlight'" onmouseout="this.className=''"><td align=center><a href="clientshosting.php?userid={$clientsdetails.userid}&hostingid={$product.id}">{$product.idshort}</a></td><td style="padding-left:5px;padding-right:5px">{$product.dpackage} - <a href="http://{$product.domain}" target="_blank">{$product.domain}</a></td><td align="center">{$product.amount}</td><td align=center>{$product.dbillingcycle}</td><td align=center>{$product.regdate}</td><td align=center>{$product.nextduedate}</td><td align="center">{$product.domainstatus}</td><td align="center"><a href="clientshosting.php?userid={$clientsdetails.userid}&hostingid={$product.id}"><img src="images/edit.gif" width="16" height="16" border="0" alt="Edit"></a></td></tr>
{foreachelse}
<tr><td bgcolor=#ffffff align=center colspan=8>No Products/Services Found</td></tr>
{/foreach}
</table>
</td></tr></table>
</td></tr></table>
<img src="images/spacer.gif" width="1" height="4" /><br />
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Addons</strong></td></tr>
<tr><td align="center">
<table width="100%" cellspacing="1" class="admindatatable">
<tr class="admindatatableheader">
<td width=40>ID</td>
<td>Addon Details</td>
<td>Amount</td>
<td>Billing Cycle</td>
<td>Signup Date</td>
<td>Next Due Date</td>
<td>Status</td>
<td width="20"></td>
</tr>
{foreach key=num from=$addonsummary item=addon}
<tr onmouseover="this.className='admindatatablehighlight'" onmouseout="this.className=''"><td align=center><a href="clientshosting.php?userid={$clientsdetails.userid}&hostingid={$addon.hostingid}">{$addon.idshort}</a></td><td style="padding-left:5px;padding-right:5px">{$addon.addonname}<br>{$addon.dpackage} - <a href="http://{$addon.domain}" target="_blank">{$addon.domain}</a></td><td align="center">{$addon.amount}</td><td align=center>{$addon.dbillingcycle}</td><td align=center>{$addon.regdate}</td><td align=center>{$addon.nextduedate}</td><td align="center">{$addon.status}</td><td align="center"><a href="clientshosting.php?userid={$clientsdetails.userid}&hostingid={$addon.hostingid}"><img src="images/edit.gif" width="16" height="16" border="0" alt="Edit"></a></td></tr>
{foreachelse}
<tr><td bgcolor=#ffffff align=center colspan=8>No Addons Found</td></tr>
{/foreach}
</table>
</td></tr></table>
</td></tr></table>
<img src="images/spacer.gif" width="1" height="4" /><br />
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Domains</strong></td></tr>
<tr><td align="center">
<table width="100%" cellspacing="1" class="admindatatable">
<tr class="admindatatableheader">
<td width=40>ID</td>
<td>Domain</td>
<td>Registrar</td>
<td>Reg Date</td>
<td>Next Due Date</td>
<td>Expiry Date</td>
<td>Status</td>
<td width="20"></td>
</tr>
{foreach key=num from=$domainsummary item=domain}
<tr onmouseover="this.className='admindatatablehighlight'" onmouseout="this.className=''"><td align=center><a href="clientsdomains.php?userid={$clientsdetails.userid}&domainid={$domain.id}">{$domain.idshort}</a></td><td style="padding-left:5px;padding-right:5px"><a href="http://{$domain.domain}" target="_blank">{$domain.domain}</a></td><td align="center">{$domain.registrar}</td><td align=center>{$domain.registrationdate}</td><td align=center>{$domain.nextduedate}</td><td align="center">{$domain.expirydate}</td><td align="center">{$domain.status}</td><td align="center"><a href="clientsdomains.php?userid={$clientsdetails.userid}&domainid={$domain.id}"><img src="images/edit.gif" width="16" height="16" border="0" alt="Edit"></a></td></tr>
{foreachelse}
<tr><td bgcolor=#ffffff align=center colspan=8>No Domains Found</td></tr>
{/foreach}
</table>
</td></tr></table>
</td></tr></table>
</td></tr></table>
continues below......
From the summary page you can also view and then print the log report.
This may be helpful to those who have not used the mod by Si but just want to keep an eye on accounts that seem to be changing details far to regularly.
This has been tested on v3.6.2 (i will post v3.6.1 later)
INSTALLATION
There is only one .tpl to edit and one file to upload after creating the new table.
1. run the SQL in the attached file tblclientlog_SQL.txt in your WHMCS database (PLEASE BACK UP YOUR DB FIRST!!)
2. Download (from your WHMCS root) /admin/templates/clientssummary.tpl
and save as a backup.
3. Upload the following code as clientssummary.tpl
clientssummary.tpl
<div style="font-size:18px;">#{$clientsdetails.userid} - {$clientsdetails.firstname} {$clientsdetails.lastname}</div>
<img src="images/spacer.gif" width="1" height="6" /><br />
<table width=100%>
<tr><td width=34% valign=top>
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width=100% cellpadding=2>
<tr><td align=center colspan=2 class="fieldareasmall"><strong>Client Information</strong></td></tr>
<tr><td width=90 align=right>First Name</td><td class="fieldarea" style="height:20px;">{$clientsdetails.firstname}</td></tr>
<tr><td align=right>Last Name</td><td class="fieldarea" style="height:20px;">{$clientsdetails.lastname}</td></tr>
<tr><td align=right>Company Name</td><td class="fieldarea" style="height:20px;">{$clientsdetails.companyname}</td></tr>
<tr><td align=right>Email Address</td><td class="fieldarea" style="height:20px;">{$clientsdetails.email}</td></tr>
<tr><td align=right>Address 1</td><td class="fieldarea" style="height:20px;">{$clientsdetails.address1}</td></tr>
<tr><td align=right>Address 2</td><td class="fieldarea" style="height:20px;">{$clientsdetails.address2}</td></tr>
<tr><td align=right>City</td><td class="fieldarea" style="height:20px;">{$clientsdetails.city}</td></tr>
<tr><td align=right>State</td><td class="fieldarea" style="height:20px;">{$clientsdetails.state}</td></tr>
<tr><td align=right>Postcode</td><td class="fieldarea" style="height:20px;">{$clientsdetails.postcode}</td></tr>
<tr><td align=right>Country</td><td class="fieldarea" style="height:20px;">{$clientsdetails.country} - {$clientsdetails.countrylong}</td></tr>
<tr><td align=right>Phone Number</td><td class="fieldarea" style="height:20px;">{$clientsdetails.phonenumber}</td></tr>
</table>
</td></tr>
</table>
<img src="images/spacer.gif" width="1" height="4" /><br />
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Additional Contacts</strong></td></tr>
<tr><td align="center">
{foreach key=num from=$contacts item=contact}
{$contact.firstname} {$contact.lastname} - {$contact.email}<br />
{foreachelse}
No additional contacts setup
{/foreach}
</td></tr></table>
</td></tr></table>
<img src="images/spacer.gif" width="1" height="4" /><br />
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width=100% cellpadding=2>
<tr><td align=center colspan=2 class="fieldareasmall"><strong>Other Information</strong></td></tr>
<tr><td width=90 align=right>Status</td><td class="fieldarea" style="height:20px;">{$clientsdetails.status}</td></tr>
<tr><td align=right>Tax Exempt</td><td class="fieldarea" style="height:20px;">{$clientsdetails.taxstatus}</td></tr>
<tr><td align=right>Signup Date</td><td class="fieldarea" style="height:20px;">{$signupdate}</td></tr>
<tr><td align=right>Client For</td><td class="fieldarea" style="height:20px;">{$clientfor}</td></tr>
<tr><td align=right>Last Login</td><td class="fieldarea" style="height:20px;">{$lastlogin}</td></tr>
</table>
</td></tr></table>
</td><td width=33% valign=top>
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width=100% cellpadding=2>
<tr><td align=center colspan=2 class="fieldareasmall"><strong>Client Stats</strong></td></tr>
<tr><td width=125 align=right>Invoices Paid</td><td class="fieldarea" style="height:20px;">{$invoicespaidnum} ({$invoicespaidamount})</td></tr>
<tr><td align=right>Invoices Due</td><td class="fieldarea" style="height:20px;">{$invoicesduenum} ({$invoicesdueamount})</td></tr>
<tr><td align=right>Invoices Cancelled</td><td class="fieldarea" style="height:20px;">{$invoicescancellednum} ({$invoicescancelledamount})</td></tr>
<tr><td align=right>Profit</td><td class="fieldarea" style="height:20px;">{$profit}</td></tr>
<tr><td align=right>Credit Balance</td><td class="fieldarea" style="height:20px;">{$credit}</td></tr>
<tr><td align=right>Hosting Accounts</td><td class="fieldarea" style="height:20px;">{$hosting} ({$hostingtotal} Total)</td></tr>
<tr><td align=right>Reseller Accounts</td><td class="fieldarea" style="height:20px;">{$reseller} ({$resellertotal} Total)</td></tr>
<tr><td align=right>Dedicated/VPS Servers</td><td class="fieldarea" style="height:20px;">{$dedicated} ({$dedicatedtotal} Total)</td></tr>
<tr><td align=right>Products/Services</td><td class="fieldarea" style="height:20px;">{$other} ({$othertotal} Total)</td></tr>
<tr><td align=right>Domains</td><td class="fieldarea" style="height:20px;">{$domains} ({$domainstotal} Total)</td></tr>
<tr><td align=right>Support Tickets</td><td class="fieldarea" style="height:20px;">{$tickets} ({$ticketstotal} Total)</td></tr>
<tr><td align=right>Affiliate Signups</td><td class="fieldarea" style="height:20px;">{$affiliates}</td></tr>
</table>
</td></tr>
</table>
<img src="images/spacer.gif" width="1" height="4" /><br />
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Last 5 Emails</strong></td></tr>
<tr><td>
{foreach key=num from=$lastfivemail item=email}
{$email.date} - <a href="#" onclick="window.open('clientsemails.php?&displaymessage=true&id={$email.id}','','width=650,height=400,scrollbar s=yes');return false">{$email.subject}</a><br />
{foreachelse}
<div style='text-align:center;'>No emails sent</div>
{/foreach}
</td></tr></table>
</td></tr></table>
</td><td width=33% valign=top>
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Actions</strong></td></tr>
<tr><td align="center">
<a href="../logfile/logclient.php?userid={$clientsdetails.userid}&action=logclient">Log Cient Info & Edit</a><br />
<a href="../logfile/logclient.php?userid={$clientsdetails.userid}&action=viewclient">View Client Log</a><br />
<a href="../logfile/logclient.php?userid={$clientsdetails.userid}&action=deletelog" onclick="return confirm('You cannot undo a delete function. If you are NOT sure click CANCEL');">Delete Client Log</a><br /><br />
<a href="../dologin.php?username={$clientsdetails.email}">Login as Client</a><br /><br />
<a href="ordersadd.php?userid={$clientsdetails.userid}">Add New Order</a><br />
<a href="invoices.php?action=createinvoice&userid={$clientsdetails.userid}">Create Invoice</a><br />
<a href="clientssummary.php?userid={$clientsdetails.userid}&generateinvoices=true">Generate Due Invoices</a><br /><br />
<a href="#" onclick="window.open('clientscredits.php?userid={$clientsde tails.userid}','','width=750,height=350,scrollbars =yes');return false">Manage Credits</a><br />
<a href="clientstransactions.php?userid={$clientsdetails.us erid}">View Transactions History</a><br />
<a href="#" onclick="openCCDetails();return false">View/Edit Credit Card Information</a><br /><br />
<a href="supporttickets.php?action=open&userid={$clientsdetails.userid}">Open New Support Ticket</a><br />
<a href="supporttickets.php?view=any&client={$clientsdetails.userid}">View all Support Tickets</a><br /><br />
{$afflink}
<a href="#" onclick="window.open('clientsmerge.php?userid={$clientsdeta ils.userid}','movewindow','width=500,height=280,to p=100,left=100');return false">Merge Clients Accounts</a><br />
<a href="#" onclick="deleteClient();return false">Delete Clients Account</a><br /><br />
</td></tr></table>
</td></tr></table>
<img src="images/spacer.gif" width="1" height="4" /><br />
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Send Email</strong></td></tr>
<tr><td align="center">
<form action="clientsemails.php?userid={$clientsdetails.userid}&action=send&type=general" method="post">
<input type="hidden" name="id" value="{$clientsdetails.userid}">
{$messages}
<input type="submit" value="Send" class="button">
</form>
</td></tr></table>
</td></tr></table>
<img src="images/spacer.gif" width="1" height="4" /><br />
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Admin Notes</strong></td></tr>
<tr><td align="center">
<form method="post" action="?userid={$clientsdetails.userid}">
<textarea name="adminnotes" rows="6" cols="38" />{$clientsdetails.notes}</textarea>
<div align="center"><input type="submit" value="Submit" class="button" /></div>
</form>
</td></tr></table>
</td></tr></table>
</td></tr>
<tr><td colspan="3">
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Products/Services</strong></td></tr>
<tr><td align="center">
<table width="100%" cellspacing="1" class="admindatatable">
<tr class="admindatatableheader">
<td width=40>ID</td>
<td>Product/Service</td>
<td>Amount</td>
<td>Billing Cycle</td>
<td>Signup Date</td>
<td>Next Due Date</td>
<td>Status</td>
<td width="20"></td>
</tr>
{foreach key=num from=$productsummary item=product}
<tr onmouseover="this.className='admindatatablehighlight'" onmouseout="this.className=''"><td align=center><a href="clientshosting.php?userid={$clientsdetails.userid}&hostingid={$product.id}">{$product.idshort}</a></td><td style="padding-left:5px;padding-right:5px">{$product.dpackage} - <a href="http://{$product.domain}" target="_blank">{$product.domain}</a></td><td align="center">{$product.amount}</td><td align=center>{$product.dbillingcycle}</td><td align=center>{$product.regdate}</td><td align=center>{$product.nextduedate}</td><td align="center">{$product.domainstatus}</td><td align="center"><a href="clientshosting.php?userid={$clientsdetails.userid}&hostingid={$product.id}"><img src="images/edit.gif" width="16" height="16" border="0" alt="Edit"></a></td></tr>
{foreachelse}
<tr><td bgcolor=#ffffff align=center colspan=8>No Products/Services Found</td></tr>
{/foreach}
</table>
</td></tr></table>
</td></tr></table>
<img src="images/spacer.gif" width="1" height="4" /><br />
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Addons</strong></td></tr>
<tr><td align="center">
<table width="100%" cellspacing="1" class="admindatatable">
<tr class="admindatatableheader">
<td width=40>ID</td>
<td>Addon Details</td>
<td>Amount</td>
<td>Billing Cycle</td>
<td>Signup Date</td>
<td>Next Due Date</td>
<td>Status</td>
<td width="20"></td>
</tr>
{foreach key=num from=$addonsummary item=addon}
<tr onmouseover="this.className='admindatatablehighlight'" onmouseout="this.className=''"><td align=center><a href="clientshosting.php?userid={$clientsdetails.userid}&hostingid={$addon.hostingid}">{$addon.idshort}</a></td><td style="padding-left:5px;padding-right:5px">{$addon.addonname}<br>{$addon.dpackage} - <a href="http://{$addon.domain}" target="_blank">{$addon.domain}</a></td><td align="center">{$addon.amount}</td><td align=center>{$addon.dbillingcycle}</td><td align=center>{$addon.regdate}</td><td align=center>{$addon.nextduedate}</td><td align="center">{$addon.status}</td><td align="center"><a href="clientshosting.php?userid={$clientsdetails.userid}&hostingid={$addon.hostingid}"><img src="images/edit.gif" width="16" height="16" border="0" alt="Edit"></a></td></tr>
{foreachelse}
<tr><td bgcolor=#ffffff align=center colspan=8>No Addons Found</td></tr>
{/foreach}
</table>
</td></tr></table>
</td></tr></table>
<img src="images/spacer.gif" width="1" height="4" /><br />
<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#8FBCE9"><tr><td bgcolor="#ffffff">
<table width="100%" cellpadding="2">
<tr><td align="center" class="fieldareasmall"><strong>Domains</strong></td></tr>
<tr><td align="center">
<table width="100%" cellspacing="1" class="admindatatable">
<tr class="admindatatableheader">
<td width=40>ID</td>
<td>Domain</td>
<td>Registrar</td>
<td>Reg Date</td>
<td>Next Due Date</td>
<td>Expiry Date</td>
<td>Status</td>
<td width="20"></td>
</tr>
{foreach key=num from=$domainsummary item=domain}
<tr onmouseover="this.className='admindatatablehighlight'" onmouseout="this.className=''"><td align=center><a href="clientsdomains.php?userid={$clientsdetails.userid}&domainid={$domain.id}">{$domain.idshort}</a></td><td style="padding-left:5px;padding-right:5px"><a href="http://{$domain.domain}" target="_blank">{$domain.domain}</a></td><td align="center">{$domain.registrar}</td><td align=center>{$domain.registrationdate}</td><td align=center>{$domain.nextduedate}</td><td align="center">{$domain.expirydate}</td><td align="center">{$domain.status}</td><td align="center"><a href="clientsdomains.php?userid={$clientsdetails.userid}&domainid={$domain.id}"><img src="images/edit.gif" width="16" height="16" border="0" alt="Edit"></a></td></tr>
{foreachelse}
<tr><td bgcolor=#ffffff align=center colspan=8>No Domains Found</td></tr>
{/foreach}
</table>
</td></tr></table>
</td></tr></table>
</td></tr></table>
continues below......