<div id='pendingaccountssnapshot'>
  <form name='pendingaccounts' id='pendingaccounts' method='post' action='index.php'>
    <table style="width:100%;" cellpadding='0' border='0' cellspacing='0'>
		<tr>
			<td class='snapshot-header-left'></td>
			<td class='snapshot-header'><span class='snapshot-header-text'>{LANGUAGE_SNAPSHOTHEADER}:</span></td>
			<td class='snapshot-header-right'></td>
		</tr>
	</table>
    <table style="width:100%;" id='{CCTABLEID}' border='0' cellpadding='0' cellspacing='0'>
        <tr style="background-color:RGB(216,216,216);font-weight:bold;border-bottom:1px solid #AAA;">
            <td style="width:18px;height:17px;"></td>
            <td align="left">&nbsp;[l]Reference[/l]</td>
            <td align="left">[l]Date[/l]</td>
            <td align="left">[l]Type[/l]</td>
            <td align="left">[l]Name[/l]</td>
            <td align="left">[l]Paid/Outstanding[/l]</td>
        </tr>
        <!-- create customer block -->
        <!-- BEGIN DYNAMIC BLOCK: pendingcustomer_row -->
			<tr>
				<td colspan="7" style="padding-top:2px">
				<div class="client_row" style="position:relative;">
					<!-- BEGIN DYNAMIC BLOCK: notuserstatus -->
					<input type="checkbox" class="packageChk" style="relative;top:0px;" name="clientid[]" value='{PENDINGUSERID}' onclick="checkPackage(this);" />
					<!-- END DYNAMIC BLOCK: notuserstatus -->				
					<div style="position:absolute; top:0.3em; left:2.5em">
						&nbsp;<a href="{PENDINGCUSTOMERURL}">{PENDINGCUSTOMERNAME}</a>			
						<!-- BEGIN DYNAMIC BLOCK: notuserstatus_pending -->
						&nbsp;-&nbsp;<span style="font-weight:bold; color:red">[l]pending client[/l]</span>
						<!-- END DYNAMIC BLOCK: notuserstatus_pending -->			
					</div>
				</div>
				</td>
			</tr>        
			<!-- create package rows -->
			<!-- BEGIN DYNAMIC BLOCK: pendingpackage_row -->
				<tr class="{ROWCLASS}">
				<td align="right">&nbsp;&nbsp;&nbsp;<input type="checkbox" class="packageChk" {PACKAGEDISABLED} style='position:relative;top:1px;' name="domainid[]" value="{PENDINGPACKAGEID}" onclick="checkPackage(this);" /></td>
				<td align="left">&nbsp;<a {CLASSRED} href="{PENDINGPACKAGEURL}">{PENDINGPACKAGEREFERENCE}</a></td>
				<td align="left">{PENDINGPACKAGEDATE}</td>
				<td align="left">{PENDINGPACKAGETYPE}</td>
				<td align="left">{PENDINGPACKAGENAME}</td>
				<td align="left" {PACKAGEPAIDSTATUSCLASS}>{PACKAGEPAIDSTATUS}</td>
				</tr>
			<!-- END DYNAMIC BLOCK: pendingpackage_row -->	
			<!-- end package rows -->		
		<!-- END DYNAMIC BLOCK: pendingcustomer_row -->	
        <!-- end customer block -->
    </table>

	<!-- BEGIN DYNAMIC BLOCK: pending_record_footer -->
	<table style="width:100%;" cellpadding='1' cellspacing='1' border='0'>
		<tr>
			<td align='left'>
				<input name='allbox'id='allbox' value='0' type='checkbox' onClick="toggleAllPackages(this.form);" style='position:relative; left:3px; top:3px'><b>&nbsp;&nbsp;&nbsp;[l]Toggle All[/l]</b>
			</td>
		</tr>
	</table>
	<br/>
	<table style="width:100%;" cellpadding='0' cellspacing='0' border='0'>
		<tr class='actionfooter'>
			<td valign='middle' align='left'>
				<input type='submit' class='button_medium' style='filter:alpha(opacity=50);-moz-opacity:0.4' id='activatebtn' value='[l]Activate[/l]' disabled='true' onclick="ActivatePendingPackages({FUSE_HOME},{ACTION_ACTIVATEPACKAGE},'[l]When activating clients, activate all their packages as well?[/l]');return false;" />&nbsp;&nbsp;
				<input type='submit' class='button_medium' style='filter:alpha(opacity=50);-moz-opacity:0.4' id='deletebtn' value='[l]Delete[/l]' disabled='true' onclick="DeletePendingPackages({FUSE_HOME},{ACTION_DELETEPACKAGE},'[l]Are you sure you want to delete these clients and packages?[/l]','[l]Are you sure you want to delete these packages?[/l]','[l]Are you sure you want to delete these clients and all their packages?[/l]');return false;" />
			</td>
			<td align="right">
				<table>
					<tr>
						<td style="font-weight:bold">[l]Package Activation Options[/l] :</td>
						<td><input type='checkbox' name='sendwelcomeemail' id='sendwelcomeemail' checked>{POPUP_SENDEMAIL}</td>
						<!-- BEGIN DYNAMIC BLOCK: trigger_server_plugin -->
							<td></td><td><input type='checkbox' name='serverplugin' id='serverplugin' checked>{POPUP_TRIGGERSERVERPLUGIN}</td>
						<!-- END DYNAMIC BLOCK: trigger_server_plugin -->        
						<!-- BEGIN DYNAMIC BLOCK: trigger_registrar -->
							<td></td><td><input type='checkbox' name='registrarplugin' id='registrarplugin' {REGISTRARCHECKED}>{POPUP_REGISTERDOMAIN}</td>
						<!-- END DYNAMIC BLOCK: trigger_registrar -->
			        </tr>
			    </table>
			</td>
        </tr>
    </table>
	<!-- END DYNAMIC BLOCK: pending_record_footer -->

	<!-- BEGIN DYNAMIC BLOCK: pending_norecord_footer -->
	<table style="width:100%;" cellpadding='0' cellspacing='0' border='0'>
		<tr>
			<td align='center'>
				<br/><span style="color:#808080;">[l]There are currently no items matching this query[/l]</span>
			</td>
		</tr>
	</table>	
	<!-- END DYNAMIC BLOCK: pending_norecord_footer -->
  </form>    
  
  <!-- Javascript used to dhtml header columns for snapshots -->
  <script type='text/javascript'>
	$('{SELECTEDSNAPSHOTID}').innerHTML = "{SELECTEDSNAPSHOTCOUNT}";	  
	activeSnapShotDiv = '{SELECTEDSNAPSHOTID}';	
  </script>
</div>
