<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='1'>
        <tr style="background-color:#E5E2E2;font-weight:bold;border-bottom:1px solid #AAA;">
            <td width="22" style="height:25px;"></td>
            <td align="left">&nbsp;[l]Customer/Package[/l]</td>
            <td align="left">&nbsp;[l]Date[/l]</td>
            <td align="left">&nbsp;[l]Type[/l]</td>
            <td align="left">&nbsp;[l]Name[/l]</td>
            <td align="left">&nbsp;[l]Paid/Outstanding[/l]</td>
        </tr>
        <!-- create customer block -->
        <!-- BEGIN DYNAMIC BLOCK: pendingcustomer_row -->
			<tr class="client_row" style="padding-top:2px">
				<td>
    				<!-- BEGIN DYNAMIC BLOCK: notuserstatus -->
    				<input type="checkbox" class="packageChk" name="clientid[]" value='{PENDINGUSERID}' onclick="checkPackage(this);" />
    				<!-- END DYNAMIC BLOCK: notuserstatus -->	
				</td>
				<td colspan="6">	
					&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 -->			
				</td>
			</tr>        
			<!-- create package rows -->
			<!-- BEGIN DYNAMIC BLOCK: pendingpackage_row -->
				<tr class="{ROWCLASS}">
				<td align="right"></td>
				<td align="left">
                    <input type="checkbox" style="position:relative;top:2px;" class="packageChk" {PACKAGEDISABLED} name="domainid[]" value="{PENDINGPACKAGEID}" onclick="checkPackage(this);" />
                    <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='[lh]Activate[/lh]' disabled='true' onclick="ActivatePendingPackages('clients', 'ActivatePackagesAsync_Snapshot','[ljh]When activating clients, activate all their packages as well?[/ljh]');return false;" />&nbsp;&nbsp;
				<input type='submit' class='button_medium' style='filter:alpha(opacity=50);-moz-opacity:0.4' id='deletebtn' value='[lh]Delete[/lh]' disabled='true' onclick="DeletePendingPackages('clients', 'DeletePackagesAsync_Snapshot','[ljh]Are you sure you want to delete these clients and packages?[/ljh]','[ljh]Are you sure you want to delete these packages?[/ljh]','[ljh]Are you sure you want to delete these clients and all their packages?[/ljh]');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'>
	document.getElementById('{SELECTEDSNAPSHOTID}').innerHTML = "{SELECTEDSNAPSHOTCOUNT}";	  
	activeSnapShotDiv = '{SELECTEDSNAPSHOTID}';	
  </script>
</div>
