{domainErrors}

<p class="pagedesc">This is a list of the packages you have purchased from us. Click on "View" or "Resend" next to "Welcome E-mail" to view or resend the welcome E-mail for the selected package.</p>

<table class="ts">
    <tr class="caption">
        <td width="130">[l]Package ID[/l]</td>
        <td>[l]Type[/l]</td>
        <td width="100" align="center">[l]Status[/l]</td>
    </tr>
    <!-- BEGIN DYNAMIC BLOCK: packageRow -->
    <tr class="{packagerow_oddeven}">
        <td nowrap="nowrap">&nbsp;&nbsp;<a href="index.php?fuse=clients&amp;selectedDomain={domainId}&amp;view=ShowDomainData">{domainNameShort}</a></td>
        <td>&nbsp;{packageType}</td>
        <td align="center">{packageRowStatus}</td>
    </tr>
    <!-- END DYNAMIC BLOCK: packageRow -->
    <!-- BEGIN DYNAMIC BLOCK: noPackages -->
     <tr>
        <td colspan="3">&nbsp;&nbsp;&nbsp;[l]There are no packages associated with this account[/l]</td>
     </tr>
    <!-- END DYNAMIC BLOCK: noPackages -->
</table>


<div id="cip">
    <!-- BEGIN DYNAMIC BLOCK: packageForm -->
    <script type="text/javascript">
        var gAddingNew = {addingNew};
        var thereAreAddons = false;
    </script>
    <!-- BEGIN DYNAMIC BLOCK: packageSections -->
    <script type="text/javascript">
        var serverips = new Array();
        <!-- BEGIN DYNAMIC BLOCK: serverIPsArr -->
        serverips['{serverId}'] = new Array('{sharedIP}'{secondaryIP});
        var serverplugin = new Array();
        serverplugin['{serverId}'] = '{serverPlugin}';
        <!-- END DYNAMIC BLOCK: serverIPsArr -->
    </script>
    <form name="mainform" action="index.php?fuse=clients&amp;action=UpdateDomain" method="post" id="submit_ticket">
        <!-- can be removed -->
        <!-- BEGIN DYNAMIC BLOCK: customerIdVar -->
        <input type=hidden name=customerid value="{customerId}"/>
        <!-- END DYNAMIC BLOCK: customerIdVar -->
        <!-- BEGIN DYNAMIC BLOCK: nextAction -->
        <input type="hidden" name="nextaction" value="{nextActionValue}"/>
        <!-- END DYNAMIC BLOCK: nextAction -->
        <!-- end can be removed -->

        <fieldset>
            <legend>[l]Selected Package[/l]</legend>
            <div class="razmak">

                <!-- remove from view code -->
                <!-- BEGIN DYNAMIC BLOCK: selectPackage -->
                    <!-- BEGIN DYNAMIC BLOCK: packageOption -->
                    <!-- END DYNAMIC BLOCK: packageOption -->
                <!-- END DYNAMIC BLOCK: selectPackage -->
                <!-- end reminder to remove from view code -->

                <div class="packages">
                    <span class="label130">[l]Package Id[/l]:</span>
                    <span>#{selectedDomainId}</span>
                    <br />

                    <!-- BEGIN DYNAMIC BLOCK: welcomeEmailOptions -->
                    <span class="label130">[l]Welcome E-mail[/l]:</span>
                    <span><a href="#welcomeemail" onclick="document.getElementById('welcomeemail').style.display='';">View</a>&nbsp;&nbsp;<a href="index.php?fuse=clients&amp;action=SendWelcomeEmail&amp;selectedDomain={domainId}">Resend</a></span>
                    <br />
                    <!-- END DYNAMIC BLOCK: welcomeEmailOptions -->
                    <span class="label130">[l]Status[/l]:</span>
                    <span>{packageStatus}</span>
                    <br />
                    <!-- BEGIN DYNAMIC BLOCK: packageType -->
                        <span class="label130">[l]Package Type[/l]:</span>
                        <span>
                            <select name=promotionid onChange='packageBillingChanged = true; GetPackage(); updateCustomFields();' class=body>
                            <!-- BEGIN DYNAMIC BLOCK: packageTypeOptions -->
                                <option value="{packageTypeOptionsValue}" {packageTypeOptionsSelected} >{packageTypeOptionsLabel}</option>
                            <!-- END DYNAMIC BLOCK: packageTypeOptions -->
                            </select>
                        </span>

                        <!-- BEGIN DYNAMIC BLOCK: package -->
                        <span class="label130">[l]Package[/l]:</span>
                        <span>
                            <select name="plan" class="body" onChange="switchPackages(this.value); packageBillingChanged = true;">
                            <!-- BEGIN DYNAMIC BLOCK: packageOptions -->
                                <option value="{packageOptionsValue}" {packageOptionsSelected} >{packageOptionsLabel}</option>
                            <!-- END DYNAMIC BLOCK: packageOptions -->
                            </select>&nbsp;&nbsp;{packageDescription}
                        </span>
                        <!-- END DYNAMIC BLOCK: package -->

                        <!-- BEGIN DYNAMIC BLOCK: simplePackageSection -->
                        <span class="label130">[l]Package[/l]:</span>
                        <span>
                            <select name=plan class=body onchange="switchPackages(this.value);"></select>
                        </span>
                        <!-- END DYNAMIC BLOCK: simplePackageSection -->
                        <br />
                    <!-- END DYNAMIC BLOCK: packageType -->

                    <!-- BEGIN DYNAMIC BLOCK: simplePackageTypeSection -->
                        <span class="label130">[l]Package[/l]:</span>
                        <span>
                            {planText}
                        </span>
                        <br />
                    <!-- END DYNAMIC BLOCK: simplePackageTypeSection -->
                    
                    <!-- BEGIN DYNAMIC BLOCK: nextDueDate -->
                    <span class="label130">[l]Next Due Date[/l]:</span>
                    <span>{nextDueDate}</span>
                    <br />
                    <!-- END DYNAMIC BLOCK: nextDueDate -->

                    <script language="JavaScript" type="text/javascript">
                        <!--
                        var excludeFields = new Array();
                        <!-- BEGIN DYNAMIC BLOCK: excludeFields -->
                            excludeFields[{excludeFieldsKey}] = "{excludeFieldsValues}";
                        <!-- END DYNAMIC BLOCK: excludeFields -->
                        //-->
                    </script>

                    <!-- BEGIN DYNAMIC BLOCK: customField -->
                    <span class="label130" id="CT_{fieldId}_span">{fieldLabel}:</span>
                    <span>
                        <!-- BEGIN DYNAMIC BLOCK: customFieldTypeSimple -->
                        {simpleValue}
                        <!-- END DYNAMIC BLOCK: customFieldTypeSimple -->
                        <!-- BEGIN DYNAMIC BLOCK: customFieldTypeText -->
                        <input class="{fieldClass}" type=text name='CT_{fieldId}' size="{fieldWidth}" value="{fieldValue}" />
                        <!-- END DYNAMIC BLOCK: customFieldTypeText -->

                        <!-- BEGIN DYNAMIC BLOCK: customFieldTypeTextarea -->
                        <textarea name='CT_{fieldId}' class="body" style="vertical-align:top"  cols='{fieldWidth}' {fieldDisabled}>{fieldValue}</textarea>
                        <!-- END DYNAMIC BLOCK: customFieldTypeTextarea -->

                        <!-- BEGIN DYNAMIC BLOCK: customFieldTypeDropdown -->
                        <select name="CT_{fieldId}">
                            <!-- BEGIN DYNAMIC BLOCK: customFieldTypeDropdownOptions -->
                            <option size="30" value="{customFieldTypeDropdownOptionsValue}" {customFieldTypeDropdownOptionsValueSelected} >{customFieldTypeDropdownOptionsLabel}</option>
                            <!-- END DYNAMIC BLOCK: customFieldTypeDropdownOptions -->
                        </select>
                        <!-- END DYNAMIC BLOCK: customFieldTypeDropdown -->

                        <!-- BEGIN DYNAMIC BLOCK: customFieldTypeCountry -->
                        <select name="CT_{fieldId}">
                            {countries}
                        </select>
                        <!-- END DYNAMIC BLOCK: customFieldTypeCountry -->

                        <!-- BEGIN DYNAMIC BLOCK: customFieldTypeDate -->
                        <input type="text" name="CT_{fieldId}" id="CT_{fieldId}" value="" {readOnly}>
                        <!-- END DYNAMIC BLOCK: customFieldTypeDate -->
                        
                        <!-- BEGIN DYNAMIC BLOCK: customFieldTypeOther -->
                        <select style='width:{fieldWidth}px;' name="CT_{fieldId}">
                            <option value="1" {yesSelected} >[l]Yes[/l]</option>
                            <option value="0" {noSelected} >[l]No[/l]</option>
                        </select>
                        <!-- END DYNAMIC BLOCK: customFieldTypeOther -->
                    </span>
                    <br />
                    <!-- END DYNAMIC BLOCK: customField -->

                    <div id="addonsDiv"></div>

                    <input type="hidden" name='isDomainPackage' value="{isDomainPackage}" />
                        <!-- BEGIN DYNAMIC BLOCK: domainNameInfo -->
                            <span class="label130">[l]Domain Name[/l]:</span>
                            <span>
                                <input type="text" size="30" name="DomainName" value='{currentDomain}' class="required" onchange="CheckDomain(form,this.value)" >
                            </span>
                            <span id="message" style="float: text-align:center;left;width:100%;display:none">
                                <div style='color:red;background:#F0F6F5;text-align:center;border:0;font-weight:bold;' id='domainMessage'name='domainMessage'></div>
                            </span>
                            <span style="float: left;width:120px">
                            <div class='rowlabel' style='padding-left:10px;'>[l]Registration Length[/l]:</div>
                            </span>
                            <span style="float: left;width:280px;">
                              <select name="registration_years">
                              <!-- BEGIN DYNAMIC BLOCK: registrationLength -->
                                <option value="{registrationLengthValue}" {registrationLengthSelected} >{registrationLengthLabel}</option>
                              <!-- END DYNAMIC BLOCK: registrationLength -->
                              </select>
                            </span>
                            <script type="text/javascript">
                              function getTLDFields(domain)
                              {
                                  var selectedDomain = {selectedDomain};
                                  domain = encodeURIComponent(domain);
                                  new Ajax.Updater('tld_specific_fields', 'index.php?fuse=clients&view=GetTLDFields&domain='+domain+'&selectedDomain='+selectedDomain,
                                                   {onLoading : function(request) {resetStatus(lang('Loading TLD attributes'))},
                                                     onComplete: function(request) {unsetStatus(lang('Loaded'), 1000)}})
                              }
                            </script>
                            <div id="tld_specific_fields"></div>
                            <!-- BEGIN DYNAMIC BLOCK: ifCurrentDomain -->
                                <script type="text/javascript">
                                  onLoadFunctions.push(function() {getTLDFields('{currentDomain}');})
                                </script>
                            <!-- END DYNAMIC BLOCK: ifCurrentDomain -->
                            <input type=hidden id=r_DomainName name=r_DomainName value="Domain Name">
                            <!-- BEGIN DYNAMIC BLOCK: domainHandling -->
                            <span style="float: left;width:120px">
                                <div class='rowlabel' style='padding-left:10px'>[l]Domain Request[/l]: </div>
                            </span>
                            <span style="float: left;width:280px;">
                                {domainHandlingString}
                            </span>
                            <br />
                            <!-- END DYNAMIC BLOCK: domainHandling -->
                            <span style="float: left;width:120px">
                                <div class='rowlabel' style='padding-left:10px'>[l]Domain order ID[/l]: </div>
                            </span>
                            <br />
                            <span style="float: left;width:280px;">
                                <input type="text" size="30" name="registrar_orderid" value="{domainOrderId}" />&nbsp;&nbsp;
                                {domainOrderIdHelp}
                            </span>
                            <br />
                        <!-- END DYNAMIC BLOCK: domainNameInfo -->

                        <!-- BEGIN DYNAMIC BLOCK: domainNameInfoSimple -->
                            <span class="label130">[l]Domain Name[/l]:</span>
                            <span>
                                {currentDomain}
                            </span>
                            <br />
                        <!-- END DYNAMIC BLOCK: domainNameInfoSimple -->

                        <!-- BEGIN DYNAMIC BLOCK: domainNameInfoPending -->
                            <span class="label130">[l]Domain Name[/l]:</span>
                            <span>
                                [l]Not Available until Activation[/l]
                            </span>
                            <br />
                        <!-- END DYNAMIC BLOCK: domainNameInfoPending -->

                        <!-- BEGIN DYNAMIC BLOCK: domainUsernameInfo -->
                            <span class="label130">[l]User Name[/l]:</span>
                            <span>
                                <input type="text" size="30" name="UserName" value="{domainUsername}" class="required" />
                            </span>
                            <br />
                        <!-- END DYNAMIC BLOCK: domainUsernameInfo -->

                        <!-- BEGIN DYNAMIC BLOCK: domainUsernameInfoSimple -->
                            <span class="label130">[l]User Name[/l]:</span>
                            <span>
                                {domainUsername}
                            </span>
                            <br />
                        <!-- END DYNAMIC BLOCK: domainUsernameInfoSimple -->

                        <!-- BEGIN DYNAMIC BLOCK: domainUsernameInfoPending -->
                            <span class="label130">[l]User Name[/l]:</span>
                            <span>
                                [l]Not Available until Activation[/l]
                            </span>
                            <br />
                        <!-- END DYNAMIC BLOCK: domainUsernameInfoPending -->
                        <span class="label130">[l]Password[/l]:</span>
                        <span>
                            {passwordField}
                        </span>
                        <br />

                    <!-- BEGIN DYNAMIC BLOCK: serverFields -->
                        <input type="hidden" name='isServerPackage' value="0">
                        <div id='server_frame' class="viewFormRows" style="border-bottom: 0px none; padding: 0px 0px 3px; display:none">
                            <span class="label130">[l]Server[/l]:</span>
                            <span>
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <select id="serverid" name="serverid" class="body" onchange="switchServer(this.options[this.selectedIndex].value)">
                                            </select>&nbsp;&nbsp;
                                        </td>
                                        <td>
                                            <div class="warningtext">
                                                [l]Plugin[/l]: <span id="serverPluginName"></span>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </span>
                            <br />
                            </span>
                            <span style="float: left;width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
                                <span class="label130">[l]IP Address[/l]: </span>
                            </span>
                            <span style="float: left;width:280px;height:18px;">
                                <input type="text" name="CT_1" value="{IPAddress}" />
                                <input type=checkbox name=shared onClick="EnableSelect(this);" {checkedString} />&nbsp;[l]Use Shared IP[/l]
                                <br>
                                <select name="serverips" onChange="SetIP();">
                                    <option value="0">[l]Available Server IPs[/l]</option>
                                </select>
                            </span>
                            <br>
                        </div>
                    <!-- END DYNAMIC BLOCK: serverFields -->

                    <!-- BEGIN DYNAMIC BLOCK: serverFieldsCustomerView -->
                        <div id='server_frame' class="viewFormRows" style="border-bottom: 0px none; padding: 0px 0px 3px; display:block">
                            <span class="label130">[l]Server[/l]:</span>
                            <span>
                                {serverName}
                            </span>
                            <br />
                            <span class="label130">[l]IP Address[/l]:</span>
                            <span>
                                {IPAddress}
                            </span>
                            <br />
                        </div>
                    <!-- END DYNAMIC BLOCK: serverFieldsCustomerView -->

                    <!-- BEGIN DYNAMIC BLOCK: serverFieldsCustomerViewPending -->
                        <div id='server_frame' class="viewFormRows" style="border-bottom: 0px none; padding: 0px 0px 3px; display:block">
                            <span class="label130">[l]Server[/l]:</span>
                            <span>
                                [l]Not Available until Activation[/l]
                            </span>
                            <br />
                            <span class="label130">[l]IP Address[/l]:</span>
                            <span>
                                [l]Not Available until Activation[/l]
                            </span>
                        </div>
                    <!-- END DYNAMIC BLOCK: serverFieldsCustomerViewPending -->
                    <br />

                    <!-- BEGIN DYNAMIC BLOCK: customerView -->
                    <div id="actionsection">
                        <div class="clearline"></div>
                        {packageButtons}
                        <div class="clearline"></div>
                    </div>
                        <!-- BEGIN DYNAMIC BLOCK: changeDomainPassword -->
                        <input type="hidden" name="onlypassword" value='1' />
                        <input type="hidden" name="selectedDomain" value='{selectedDomainId}' />
            <input type="hidden" name="serverplugin" value='{serverPlugin}' />
                        <table width="400" border="0">
                            <input type=hidden name=removeArray value='{queryString3}' />
                            <!-- BEGIN DYNAMIC BLOCK: updateButton -->
                            <tr>
                                <td align=left>
                                    <input onclick='check(form,form.elements.length);return false;' class=button_medium type=submit value='[l]update[/l]' class=body>
                                </td>
                            </tr>
                            <!-- END DYNAMIC BLOCK: updateButton -->
                        </table>
                    </form>
                        <!-- END DYNAMIC BLOCK: changeDomainPassword -->
                    <!-- END DYNAMIC BLOCK: customerView -->
                </div>
            </div>
        </fieldset>
        <fieldset id="welcomeemail" style="display:none">
            <legend>[l]Welcome E-mail[/l]</legend>
            <div class="razmak">
                <p>{welcomeEmail}</p>
            </div>
        </fieldset>
    </form>
    <!-- END DYNAMIC BLOCK: packageSections -->
    <!-- END DYNAMIC BLOCK: packageForm -->
</div>
