<script>
function toggleCheckboxes() {ldelim}
    jQuery(".domids").attr('checked',!jQuery(".domids:first").is(':checked'));
{rdelim}
</script>

		<div class="bigheader">
			<h2>{$LANG.clientareanavdomains}</h2>
		</div><!-- .bigheader -->

    <div class="floatleft">{$numproducts} {$LANG.recordsfound},  {$LANG.page} {$pagenumber} {$LANG.pageof} {$totalpages}</div>
    
    <div class="floatright">
    <form method="post" action="clientarea.php?action=domains">
    <input type="text" name="q" value="{if $q}{$q}{/if}" class="searchinput" placeholder="{$LANG.searchenterdomain}" />
    <input type="submit" value="{$LANG.searchfilter}" class="searchinput button1 color1" />
    </form>
    </div>

<div class="clear">&nbsp;</div>

<form method="post" action="clientarea.php?action=bulkdomain">

<div class="table-responsive table-grey">
<table>
  <tr>
    <th width="20"><input type="checkbox" onclick="toggleCheckboxes()" /></th>
    <th><a href="clientarea.php?action=domains{if $q}&q={$q}{/if}&orderby=regdate">{$LANG.clientareahostingregdate}</a>{if $orderby eq "regdate"} &raquo;{/if}</th>
    <th><a href="clientarea.php?action=domains{if $q}&q={$q}{/if}&orderby=domain">{$LANG.clientareahostingdomain}</a>{if $orderby eq "domain"} &raquo;{/if}</th>
    <th><a href="clientarea.php?action=domains{if $q}&q={$q}{/if}&orderby=nextduedate">{$LANG.clientareahostingnextduedate}</a>{if $orderby eq "nextduedate"} &raquo;{/if}</th>
    <th><a href="clientarea.php?action=domains{if $q}&q={$q}{/if}&orderby=price">{$LANG.orderprice}</a>{if $orderby eq "price"} &raquo;{/if}</th>
    <th width="20">&nbsp;</th>
  </tr>
  {foreach key=num item=domain from=$domains}
  <tr class="clientareatable{$domain.rawstatus}">
    <td><input type="checkbox" name="domids[]" class="domids" value="{$domain.id}" /></td>
    <td>{$domain.registrationdate}</td>
    <td><a href="http://{$domain.domain}" target="_blank">{$domain.domain}</a></td>
    <td>{$domain.nextduedate}</td>
    <td>{$domain.amount}</td>
    <td><a href="{$smarty.server.PHP_SELF}?action=domaindetails&id={$domain.id}'" class="button1 color2">{$LANG.button_manage}</a></td>
  </tr>
  {foreachelse}
  <tr>
    <td colspan="6" align="center">{$LANG.norecordsfound}</td>
  </tr>
  {/foreach}
</table>
</div>

<p><select name="update" onchange="submit()" class="inputstyle">
<option>{$LANG.domainbulkmanagement}</option>
<option>------------------------------</option>
<option value="nameservers">{$LANG.domainmanagens}</option>
<option value="autorenew">{$LANG.domainautorenewstatus}</option>
<option value="reglock">{$LANG.domainreglockstatus}</option>
<option value="contactinfo">{$LANG.domaincontactinfoedit}</option>
<option value="renew">{$LANG.domainmassrenew}</option>
</select> <input type="submit" value="{$LANG.go}" class="button1 color1" /></p>

</form>

			<ul class="navsub floatleft">
				<li><a href="clientarea.php?action=domains{if $q}&q={$q}{/if}&itemlimit=10">10</a></li>
				<li><a href="clientarea.php?action=domains{if $q}&q={$q}{/if}&itemlimit=25">25</a></li>
				<li><a href="clientarea.php?action=domains{if $q}&q={$q}{/if}&itemlimit=50">50</a></li>
				<li><a href="clientarea.php?action=domains{if $q}&q={$q}{/if}&itemlimit=100">100</a></li>
				<li><a href="clientarea.php?action=domains{if $q}&q={$q}{/if}&itemlimit=all">{$LANG.all}</a></li>
			</ul>
			
			<ul class="navsub floatright">
				{if $prevpage}<li><a href="clientarea.php?action=domains{if $q}&q={$q}{/if}&amp;page={$prevpage}">&laquo; {$LANG.previouspage}</a></li>{/if}
				{if $nextpage}<li><a href="supporttickets.php?clientarea.php?action=domains{if $q}&q={$q}{/if}&amp;page={$nextpage}">{$LANG.nextpage} &raquo;</a></li>{/if}
			</ul>			
			
			<div class="clear">&nbsp;</div>

<div class="serviceblock clientareatableactive">{$LANG.clientareaactive}</div>
<div class="serviceblock clientareatablepending">{$LANG.clientareapending}</div>
<div class="serviceblock clientareatablesuspended">{$LANG.clientareasuspended}</div>
<div class="serviceblock clientareatableterminated">{$LANG.clientareaterminated}</div>
<div class="clear">&nbsp;</div>

<div style="height: 15px;"></div>