Jump to content

only subdomain show


bigbossmaher

Recommended Posts

i want to make like in this thread

 

http://www.webhostingtalk.com/showthread.php?t=1241676

 

( i mean show only " I want to use a free subdomain. " if the product pid =10

 

the free package pid = 10

 

please modify the configureproductdomain.tpl file bolow and send it to me again

thank you

 

<link rel="stylesheet" type="text/css" href="templates/orderforms/{$carttpl}/style.css" />



<div id="order-boxes">



<p>{$LANG.cartproductdomaindesc}</p>



<form method="post" action="{$smarty.server.PHP_SELF}?a=add&pid={$pid}">

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

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

{/foreach}



{if $errormessage}<div class="errorbox">{$errormessage|replace:'<li>':'  #  '}  #  </div><br />{/if}



<table width="90%" align="center" cellspacing="1" cellpadding="5">

<tr class="orderheadingrow"><td colspan="2"></td></tr>



{if $incartdomains}

<tr class="orderrow1"><td width="10"><input type="radio" name="domainoption" value="incart" id="selincart" onclick="document.getElementById('register').style.display='none';document.getElementById('transfer').style.display='none';document.getElementById('owndomain').style.display='none';document.getElementById('subdomain').style.display='none';document.getElementById('incart').style.display=''" /></td><td><label for="selincart">{$LANG.cartproductdomainuseincart}</label></td></tr>

{/if}



<tr id="incart" class="orderrow2"><td colspan="2" class="textcenter">

<select name="incartdomain">

{foreach key=num item=incartdomain from=$incartdomains}

<option value="{$incartdomain}">{$incartdomain}</option>

{/foreach}

</select>

</td></tr>



{if $registerdomainenabled}

<tr class="orderrow1"><td width="10"><input type="radio" name="domainoption" value="register" id="selregister" onclick="document.getElementById('register').style.display='';document.getElementById('transfer').style.display='none';document.getElementById('owndomain').style.display='none';document.getElementById('subdomain').style.display='none';document.getElementById('incart').style.display='none'" /></td><td><label for="selregister">{$LANG.orderdomainoption1part1} {$companyname} {$LANG.orderdomainoption1part2}</label></td></tr>

{/if}



<tr id="register" class="orderrow2"><td colspan="2" class="textcenter">

www. <input type="text" name="sld[0]" size="40" value="{$sld}" /> <select name="tld[0]">

{foreach key=num item=listtld from=$registertlds}

<option value="{$listtld}"{if $listtld eq $tld} selected="selected"{/if}>{$listtld}</option>

{/foreach}

</select>

</td></tr>



{if $transferdomainenabled}

<tr class="orderrow1"><td width="10"><input type="radio" name="domainoption" value="transfer" id="seltransfer" onclick="document.getElementById('register').style.display='none';document.getElementById('transfer').style.display='';document.getElementById('owndomain').style.display='none';document.getElementById('subdomain').style.display='none';document.getElementById('incart').style.display='none'" /></td><td><label for="seltransfer">{$LANG.orderdomainoption3} {$companyname}</label></td></tr>

{/if}



<tr id="transfer" class="orderrow2"><td colspan="2" class="textcenter">

www. <input type="text" name="sld[1]" size="40" value="{$sld}" /> <select name="tld[1]">

{foreach key=num item=listtld from=$transfertlds}

<option value="{$listtld}"{if $listtld eq $tld} selected="selected"{/if}>{$listtld}</option>

{/foreach}

</select>

</td></tr>



{if $owndomainenabled}

<tr class="orderrow1"><td width="10"><input type="radio" name="domainoption" value="owndomain" id="selowndomain" onclick="document.getElementById('register').style.display='none';document.getElementById('transfer').style.display='none';document.getElementById('owndomain').style.display='';document.getElementById('subdomain').style.display='none';document.getElementById('incart').style.display='none'" /></td><td><label for="selowndomain">{$LANG.orderdomainoption2}</label></td></tr>

{/if}



<tr id="owndomain" class="orderrow2"><td colspan="2" class="textcenter">

www. <input type="text" name="sld[2]" size="40" value="{$sld}" /> . <input type="text" name="tld[2]" size="7" value="{php}

global $tld;

echo substr($tld,1);

{/php}" />

</td></tr>



{if $subdomains}

<tr class="orderrow1"><td width="10"><input type="radio" name="domainoption" value="subdomain" id="selsubdomain" onclick="document.getElementById('register').style.display='none';document.getElementById('transfer').style.display='none';document.getElementById('owndomain').style.display='none';document.getElementById('subdomain').style.display='';document.getElementById('incart').style.display='none'" /></td><td><label for="selsubdomain">{$LANG.orderdomainoption4}</label></td></tr>

{/if}



<tr id="subdomain" class="orderrow2"><td colspan="2" class="textcenter">

http:// <input type="text" name="sld[3]" size="40" value="{$sld}" /> <select name="tld[3]">{foreach from=$subdomains key=subid item=subdomain}<option value="{$subid}">{$subdomain}</option>{/foreach}</select>

</td></tr>



<tr class="orderheadingrow"><td colspan="2"></td></tr>

</table>



<script language="javascript" type="text/javascript">

document.getElementById('incart').style.display='none';

document.getElementById('register').style.display='none';

document.getElementById('transfer').style.display='none';

document.getElementById('owndomain').style.display='none';

document.getElementById('subdomain').style.display='none';

document.getElementById('sel{$domainoption}').checked='true';

document.getElementById('{$domainoption}').style.display='';

</script>



{if $availabilityresults}



<h1>{$LANG.choosedomains}</h1>



<div class="center90">

<table class="styled">

<tr><th>{$LANG.domainname}</th><th>{$LANG.domainstatus}</th><th>{$LANG.domainmoreinfo}</th></tr>

{foreach key=num item=result from=$availabilityresults}

<tr><td>{$result.domain}</td><td class="{if $result.status eq $searchvar}textgreen{else}textred{/if}">{if $result.status eq $searchvar}<input type="checkbox" name="domains[]" value="{$result.domain}"{if $num eq 0} checked{/if} /> {$LANG.domainavailable}{else}{$LANG.domainunavailable}{/if}</td><td>{if $result.regoptions}<select name="domainsregperiod[{$result.domain}]">{foreach key=period item=regoption from=$result.regoptions}{if $regoption.$domainoption}<option value="{$period}">{$period} {$LANG.orderyears} @ {$regoption.$domainoption}</option>{/if}{/foreach}</select>{/if}</td></tr>

{/foreach}

</table>

</div>



{/if}



{if $freedomaintlds}* <em>{$LANG.orderfreedomainregistration} {$LANG.orderfreedomainappliesto}: {$freedomaintlds}</em>{/if}



<p align="center"><input type="submit" value="{$LANG.ordercontinuebutton}" /></p>



</form>



</div>

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