{error}

<!-- BEGIN DYNAMIC BLOCK: noClients -->
<br>
&nbsp;&nbsp;&nbsp;
<img src="../images/sub_dot.gif">
<font class=body7green>[l]Client database is empty[/l]</font>
<!-- END DYNAMIC BLOCK: noClients -->

<!-- BEGIN DYNAMIC BLOCK: addClient -->
<br>
&nbsp;&nbsp;&nbsp;
<img src="../images/sub_dot.gif">
[l]To add a client please click[/l]
<a onclick='addClient()' href='javascript:void();'>[l]here[/l]</a>
<!-- END DYNAMIC BLOCK: addClient -->

<!-- BEGIN DYNAMIC BLOCK: profile -->
<script language="javascript" type="text/javascript" src="{RELATIVE_PATH}javascript/modules/clients.js?version={VERSION}" ></script>
<script language="javascript" type="text/javascript"><!--hide it---
    function replaceString(oldS,newS,fullS) {
      for (var i=0; i<fullS.length; i++) {
         if (fullS.substring(i,i+oldS.length) == oldS) {
            fullS = fullS.substring(0,i)+newS+fullS.substring(i+oldS.length,fullS.length);
         }
      }
      return fullS;
    }
    
    function fixaddress(myfield) {
      myfield.value =  replaceString(" ","",myfield.value);
      myfield.value = myfield.value.toLowerCase();
    }
    
    function deleteCustomer(form)
    {
        var answer=confirm(lang("Click OK if you are sure you want to delete this account"));
        if (answer){
            <!-- BEGIN DYNAMIC BLOCK: askDeleteWithPlugin -->
            var answer2=confirm(lang("Do you want to delete the domain(s) using the respective server plugin?"));
            if (answer2) form.deletewithplugin.value=1;
            <!-- END DYNAMIC BLOCK: askDeleteWithPlugin -->
            form.submit();
        }
        return false;
   }
    
    function checkStatus(form) {
        <!-- BEGIN DYNAMIC BLOCK: checkStatusFunction -->
        if (form.status.value != form.old_status.value) {
            form.packageaction.value=0;
            form.packageplugin.value=0;
            switch(form.status.value){
                case '1':
                    if (form.old_status.value == -1) {
                        var resp = confirm(lang("Do you wish to unsuspend this clients suspended packages as well?"));
                        if (resp) {
                            form.packageaction.value=1;
                            if (form.packagewithplugin.value == 1) {
                                var resp2 = confirm(lang("Do you want to unsuspend the packages using their respective server plugins?"));
                                if (resp2) {
                                    form.packageplugin.value=1;
                                }
                            }
                        }
                    }
                    break;
                case '-1':
                    var resp = confirm(lang("Do you wish to suspend this clients active packages as well?"));
                    if (resp) {
                        form.packageaction.value=1;
                        if (form.packagewithplugin.value == 1) {
                            var resp2 = confirm(lang("Do you want to suspend the packages using their respective server plugins?"));
                            if (resp2) {
                                form.packageplugin.value=1;
                            }
                        }
                    }
                    break;
                case '-2':
                case '-3':
                    var resp = confirm(lang("Do you wish to cancel this clients packages as well?"));
                    if (resp) {
                        form.packageaction.value=1;
                        if (form.packagewithplugin.value == 1) {
                            var resp2 = confirm(lang("Do you want to cancel the packages using their respective server plugins?"));
                            if (resp2) {
                                form.packageplugin.value=1;
                            }
                        }
                    }
                    break;
            }
        }
        <!-- END DYNAMIC BLOCK: checkStatusFunction -->
    }
    
    if (document.images) {
        pic1= new Image(167,14);
        pic1.src="{RELATIVE_PATH}images/loading.gif";
    }
//-->
</script>

<!-- BEGIN DYNAMIC BLOCK: showPckActivationOptions -->
<script type="text/javascript">
    function showPckActivationOptions(check)
    {
        if (check.checked) {
            if (isIE)var display = 'block';
            else var display = 'table-row';
        } else {
            var display = 'none';
        }
        document.getElementById('sendEmailDiv').style.display= display;
        document.getElementById('trServerAct').style.display= display;
        document.getElementById('trRegistrarAct').style.display= display;
    }
</script>
<!-- END DYNAMIC BLOCK: showPckActivationOptions -->

<form method=post name=customerdata action="index.php?fuse=clients&action=UpdateCustomer&CustomerTab=ClientInformation">
    <!-- BEGIN DYNAMIC BLOCK: updateCustomerForm -->
    <input type=hidden name=id value="{customerId}">
    <input type=hidden name=userid value="{customerId}">
    <input type=hidden name=packageaction value=0 />
    <input type=hidden name=packageplugin value=0 />

        <!-- BEGIN DYNAMIC BLOCK: packageWithPluginVar -->
    <input type=hidden name=packagewithplugin value={packageWithPlugin} />
        <!-- END DYNAMIC BLOCK: packageWithPluginVar -->
    <!-- END DYNAMIC BLOCK: updateCustomerForm -->

    <div class="inside">
        <ul class="tabs">
            <!-- BEGIN DYNAMIC BLOCK: customerTabs -->
            <li{TABCLASS}><a href="index.php?fuse=clients&view=ShowCustomerData&CustomerTab={CUSTOMERTAB}">{CUSTOMERTABNAME}</a></li>
            <!-- END DYNAMIC BLOCK: customerTabs -->
        </ul>

        <!-- BEGIN DYNAMIC BLOCK: activateUser -->
        <div class="notice">
            <div class="inside">
                <form method=post action="index.php?fuse=clients&action=ActivatePendingCustomer">
                    <input type=hidden name=nextaction value="ShowCustomerData">
                    <input type=hidden name=activateid value="{customerId}" />
            
                    <!-- BEGIN DYNAMIC BLOCK: activationSection -->
                        <!-- BEGIN DYNAMIC BLOCK: activationSubsection -->
                            <!-- BEGIN DYNAMIC BLOCK: activateUserButton -->
                    <input type='submit' class='button' value='[l]Activate User[/l]' />
                            <!-- END DYNAMIC BLOCK: activateUserButton -->
        
                    <br/>
                    <div id='activateUsersPackagesSpan'>
                        <input type='checkbox' name='activatepackages' style='position:relative;top:2px;' value='1' onClick='showPckActivationOptions(this);' />&nbsp;&nbsp;{helpActivatePackages}
                    </div>
                    <div id='sendEmailDiv' style='display:none;'>
                        <input type='checkbox' name='sendwelcomeemail' style='position:relative;top:2px;' checked='true' />&nbsp;&nbsp;{helpSendWelcome}
                    </div>
                    <span id='trServerAct' style='display:none'>
                        <div id='TriggerServerDiv' style='display:{isServerVisible}' >
                            <input type='checkbox' name='serverplugin' style='position:relative;top:2px;' checked='true' />&nbsp;&nbsp;{helpServerActivate}
                        </div>
                    </span>
                    <span id='trRegistrarAct' style='display:none;'>
                        <div id='trRegistrarActDiv' style='display:{isVisible}' >
                            <input id='registrarplugin' type='checkbox' style='position:relative;top:2px;' name='registrarplugin' {isChecked} />&nbsp;&nbsp;{helpRegister}
                        </div>
                    </span>
                    <br/>
                        <!-- END DYNAMIC BLOCK: activationSubsection -->
        
                        <!-- BEGIN DYNAMIC BLOCK: activateUserButton2 -->
                     <input type='submit' class='button' value='[l]Activate User[/l]' />
                     <br/>
                        <!-- END DYNAMIC BLOCK: activateUserButton2 -->
                    <!-- END DYNAMIC BLOCK: activationSection -->
            
                </form>
            </div>
        </div>
        <!-- END DYNAMIC BLOCK: activateUser -->

        <div class="table-summary" style="margin-bottom: 10px; margin-top: 10px;">
            <h2>[l]Note[/l]:</h2>
            [l]The fields highlighted in red are required before submitting this customer's profile.[/l]
        </div>

        <div class="tab">
            <div id="errMessages" valign=top>
                <font class="redtext"><b>{MESSAGES}&nbsp;</b></font>
            </div>
            <br>
            <h5>{titleHeader}</h5>
            <dl class="form">
                <!-- BEGIN DYNAMIC BLOCK: userIdBlock -->
                <dt><label>[l]User ID[/l]</label></dt>
                <dd>{userId}
                    <!-- BEGIN DYNAMIC BLOCK: view_as_customer -->
                    &nbsp;&nbsp;<a href="index.php?fuse=clients&action=ViewAsClientGateway">([l]view as client[/l])</a>
                    <!-- END DYNAMIC BLOCK: view_as_customer -->
                </dd>
                <!-- END DYNAMIC BLOCK: userIdBlock -->

                <!-- BEGIN DYNAMIC BLOCK: customerGroups -->
                <dt><label>[l]Groups[/l]</label></dt>
                <dd><select name=customerGroup width="200px">
                    <!-- BEGIN DYNAMIC BLOCK: groupOption -->
                        <option value="{groupValue}" {groupSelected} >{groupLabel}</option>
                    <!-- END DYNAMIC BLOCK: groupOption -->
                    </select>
                </dd>
                <!-- END DYNAMIC BLOCK: customerGroups -->

                <!-- BEGIN DYNAMIC BLOCK: customerStatus -->
                <dt><label>[l]Status[/l]</label></dt>
                <dd><select name=status id='status'>
                        <!-- BEGIN DYNAMIC BLOCK: pendingStatus -->
                        <option size=30 value=1 {pendingSelected} >[l]Pending[/l]</option>
                        <!-- END DYNAMIC BLOCK: pendingStatus -->

                        <!-- BEGIN DYNAMIC BLOCK: activeStatus -->
                        <option size=30 value=1 {activeSelected} >[l]Active[/l]</option>
                        <!-- END DYNAMIC BLOCK: activeStatus -->

                        <!-- BEGIN DYNAMIC BLOCK: inactiveStatus -->
                        <option size=30 value=-1 {inactiveSelected} >[l]Inactive[/l]</option>
                        <!-- END DYNAMIC BLOCK: inactiveStatus -->

                        <!-- BEGIN DYNAMIC BLOCK: cancelledStatus -->
                        <option size=30 value=-2 {cancelledSelected} >[l]Cancelled[/l]</option>
                        <!-- END DYNAMIC BLOCK: cancelledStatus -->

                        <!-- BEGIN DYNAMIC BLOCK: fraudStatus -->
                        <option size=30 value=-3 {fraudSelected} >[l]Fraud[/l]</option>
                        <!-- END DYNAMIC BLOCK: fraudStatus -->
                    </select>
                    <input name=old_status id=old_status type=hidden value='{status}' />
                </dd>
                <!-- END DYNAMIC BLOCK: customerStatus -->

                <!-- BEGIN DYNAMIC BLOCK: customerStatusHidden -->
                <input name=old_status id=old_status type=hidden value='{customerStatus}' />
                <input name=status type=hidden value='{customerStatus}' />
                <!-- END DYNAMIC BLOCK: customerStatusHidden -->

                <dt><label>[l]Enable Affiliate :[/l]</label></dt>
                <dd>
                <input type="radio"  id="enable_aff" name="enable_aff" value="0" {nchecked} >  No   </input>
                <input type="radio"  id="enable_aff" name="enable_aff" value="1" {ychecked} >  Yes  </input>
                </dd>
            </dl>

            <h5>{titleHeader2}</h5>
            <dl class="form">
                <!-- BEGIN DYNAMIC BLOCK: customFields -->
                <dt><label>{rowLabel}</label></dt>
                <dd>
                    <!-- BEGIN DYNAMIC BLOCK: typeLanguage -->
                    <select name='CT_{fieldId}' class=body {disabled} >
                        <!-- BEGIN DYNAMIC BLOCK: typeLanguageOption -->
                        <option size="30" value="{typeLanguageOptionValue}" {typeLanguageOptionSelected} >{typeLanguageOptionLabel}</option>
                        <!-- END DYNAMIC BLOCK: typeLanguageOption -->
                    </select>
                    <!-- END DYNAMIC BLOCK: typeLanguage -->

                    <!-- BEGIN DYNAMIC BLOCK: typeTextarea -->
                    <textarea name='CT_{fieldId}' class=body cols='{fieldWidth}' {disabled} >{value}</textarea>
                    <!-- END DYNAMIC BLOCK: typeTextarea -->

                    <!-- BEGIN DYNAMIC BLOCK: typeDropdown -->
                    <select name="CT_{fieldId}" {disabled} >
                        <!-- BEGIN DYNAMIC BLOCK: typeDropdownOption -->
                        <option size="30" value="{typeDropdownOptionValue}" {typeDropdownOptionSelected} >{typeDropdownOptionLabel}</option>
                        <!-- END DYNAMIC BLOCK: typeDropdownOption -->
                    </select>
                    <!-- END DYNAMIC BLOCK: typeDropdown -->

                    <!-- BEGIN DYNAMIC BLOCK: typeCountry -->
                    <select name="CT_{fieldId}" {disabled} >
                        {countryOptions}
                    </select>
                    <!-- END DYNAMIC BLOCK: typeCountry -->

                    <!-- BEGIN DYNAMIC BLOCK: typeYesNo -->
                    <select name="CT_{fieldId}" {disabled} >
                        <option value=1 {yesSelected} >[l]Yes[/l]</option>
                        <option value=0 {noSelected} >[l]No[/l]</option>
                    </select>{allowEmailHelp}
                    <!-- END DYNAMIC BLOCK: typeYesNo -->

                    <!-- BEGIN DYNAMIC BLOCK: typeDate -->
                    <input type="hidden" name="CTT_{fieldId}" id="CTT_{fieldId}" value="{typeDateConstant}" />
                    <input type="text" name="CT_{fieldId}" id="CT_{fieldId}" value="{value}" {readOnly} />&nbsp;&nbsp;
                    <!-- END DYNAMIC BLOCK: typeDate -->

                    <!-- BEGIN DYNAMIC BLOCK: typeSimple -->
                    <input class="{cssClass}" type="text" name="CT_{fieldId}" size="{fieldWidth}" value="{value}" />
                    <!-- END DYNAMIC BLOCK: typeSimple -->

                    <!-- BEGIN DYNAMIC BLOCK: typeLabel -->
                    {value}
                    <!-- END DYNAMIC BLOCK: typeLabel -->

                    <!-- BEGIN DYNAMIC BLOCK: organization -->
                    &nbsp;<input type=checkbox name=isOrganization {checkedIsOrganization} >{organizationHelp}
                    <!-- END DYNAMIC BLOCK: organization -->

                    <!-- BEGIN DYNAMIC BLOCK: organizationHidden -->
                    <input type="hidden" name="isOrganization" value="on" />
                    <!-- END DYNAMIC BLOCK: organizationHidden -->
                </dd>

                    <!-- BEGIN DYNAMIC BLOCK: someOtherHiddenFields -->
                <input type="hidden" name="{fieldName}" value="{fieldValue}" />
                    <!-- END DYNAMIC BLOCK: someOtherHiddenFields -->
                <!-- END DYNAMIC BLOCK: customFields -->
            </dl>

<table width="600" border="0">
    <tr>

            <!-- BEGIN DYNAMIC BLOCK: passwordButtons2 -->
        <td>
            <p class="buttons">
                <input type=submit class=button value='[l]update[/l]' onclick='checkStatus(form); check(form,form.elements.length); return false;' class=body>
            </p>
        </td>
            <!-- END DYNAMIC BLOCK: passwordButtons2 -->

            <input type=hidden name=removeArray value='{queryString1}'>
            <input type=hidden name=customTagsArray value='{queryString2}'>
        </div>
        <br class="clearboth" />
    </div>
</form>

<form method=post action="index.php?fuse=clients&amp;action=DeleteClient" >
    <div class="inside">
        <div class="tab">
            <input type=hidden name=deleteid value="{customerId}">
            <input type=hidden name=deletewithplugin value=0>
            <input type=hidden name=nextaction value=ViewUsers>

            <!-- BEGIN DYNAMIC BLOCK: deleteCustomerButton -->
        <td>
            <p class="buttons">
                <input type=button class=button value='[l]delete[/l]' onClick='deleteCustomer(this.form); return false;' class=body>
            </p>
        </td>
            <!-- END DYNAMIC BLOCK: deleteCustomerButton -->

    </tr>
</table>

        </div>
    </div>
</form>
<!-- END DYNAMIC BLOCK: profile -->
