Jump to content

Problems with client domain contact information display!


byteman

Recommended Posts

Hi All,

This is my first post so please accept my apologies if I posted it to the wrong section..

O.k this is the situation:

The domain contact information in the client area of my WHMCS installation is not displaying correctly. I suspect that something is wrong with the tpl file but I'm not sure what exactly (I'm not really very good at this coding stuff...sorry).

Attached are some screenshots of the errors and below is my whmcs/templates/portal/clientareadomaincontactinfo.tpl file

Please any help is very very appreciated...

many thanks.

 

{literal}

<script language="javascript">

function usedefaultwhois(id) {

jQuery("."+id.substr(0,id.length-1)+"customwhois").attr("disabled", true);

jQuery("."+id.substr(0,id.length-1)+"defaultwhois").attr("disabled", false);

jQuery('#'+id.substr(0,id.length-1)+'1').attr("checked", "checked");

}

function usecustomwhois(id) {

jQuery("."+id.substr(0,id.length-1)+"customwhois").attr("disabled", false);

jQuery("."+id.substr(0,id.length-1)+"defaultwhois").attr("disabled", true);

jQuery('#'+id.substr(0,id.length-1)+'2').attr("checked", "checked");

}

</script>

{/literal}

<h2>{$LANG.domaincontactinfo}</h2>

<p>{$LANG.domainname}: <strong>{$domain}</strong> {foreach key=contactdetail name=contacts item=values from=$contactdetails} {if !$smarty.foreach.contacts.first} - <a href="clientarea.php?action=domaincontacts#{$contactdetail}">{$LANG.jumpto} {$contactdetail}</a>{/if}{/foreach}

</p>

{if $error}

<div class="errorbox">{$error}</div>

<br />

{/if}

<form method="post" action="{$smarty.server.PHP_SELF}?action=domaincontacts">

<input type="hidden" name="sub" value="save">

<input type="hidden" name="domainid" value="{$domainid}">

{foreach from=$contactdetails name=contactdetails key=contactdetail item=values}

<p><strong><a name="{$contactdetail}"></a>{$contactdetail}</strong>{if not $smarty.foreach.contactdetails.first} - <a href="clientarea.php?action=domaincontacts#">{$LANG.top}</a>{/if}</p>

 

<p><input type="radio" name="wc[{$contactdetail}]" id="{$contactdetail}1" value="contact" onclick="usedefaultwhois(id)"{if $defaultns} checked{/if} /> <label for="{$contactdetail}1">{$LANG.domaincontactusexisting}</label></p>

<table id="{$contactdetail}defaultwhois">

<tr>

<td width="150" align="right">{$LANG.domaincontactchoose}</td>

<td><select name="sel[{$contactdetail}]" id="{$contactdetail}3" class="{$contactdetail}defaultwhois" onclick="usedefaultwhois(id)">

<option value="u{$clientsdetails.userid}">{$LANG.domaincontactprimary}</option>

{foreach key=num item=contact from=$contacts}

<option value="c{$contact.id}">{$contact.name}</option>

{/foreach}

</select></td>

</tr>

</table>

<p><input type="radio" name="wc[{$contactdetail}]" id="{$contactdetail}2" value="custom" onclick="usecustomwhois(id)"{if !$defaultns} checked{/if} /> <label for="{$contactdetail}2">{$LANG.domaincontactusecustom}</label></p>

<table width="100%" border="0" cellpadding="10" cellspacing="0" id="{$contactdetail}customwhois">

{foreach key=name item=value from=$values}

<tr>

<td width="150" align="right">{$name}</td>

<td><input type="text" name="contactdetails[{$contactdetail}][{$name}]" value="{$value}" size="30" class="{$contactdetail}customwhois" /></td>

</tr>

{/foreach}

</table>

{/foreach}

<p align="center">

<input type="submit" value="{$LANG.clientareasavechanges}">

</p>

</form>

<form method="post" action="{$smarty.server.PHP_SELF}?action=domaindetails">

<input type="hidden" name="id" value="{$domainid}" />

<p align="center">

<input type="submit" value="{$LANG.clientareabacklink}" />

</p>

</form><br />

1.My Domains.jpg

2.contact information.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated