%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
freeid=requesta("freeid")
conn.open constr
suffixlist=lcase(getfreedomainsuffix(freeid,isfree))
call setHeaderAndfooter()
call setDomainLeft()
tpl.set_file "main",USEtemplate&"/services/domain/default.html"
if isfree then tpl.set_var "freeid",freeid,false
tpl.set_block "main", "suffixlist", "mylist"
trcur=1
buttontype="checkbox"
if isfree then buttontype="radio"
for each suffixstr in split(suffixlist,",")
if trim(suffixstr)<>"" and left(trim(suffixstr),1)="." then
trstr=""
selectedstr=""
if trcur mod 5 =0 then trstr="
"
if instr(".com,.cn,.net",trim(suffixstr))>0 then selectedstr=" checked "
tpl.set_var "trstr",trstr,false
tpl.set_var "buttontype",buttontype,false
tpl.set_var "selectedstr",selectedstr,false
tpl.set_var "suffixstr",suffixstr,false
tpl.parse "mylist", "suffixlist", true
trcur=trcur+1
end if
next
selectstr=""
if instr(suffixlist,"[save]")>0 then
selectstr=""
end if
tpl.set_var "savelist",selectstr,false
tpl.set_function "main","Price","tpl_function"
tpl.set_function "main","cnPrice","tpl_cnfunction"
tpl.set_function "main","cnrenewPrice","tpl_cnrenewfunction"
tpl.parse "mains", "main",false
tpl.p "mains"
set tpl=nothing
conn.close
function tpl_cnrenewfunction(v)
renewprices=GetNeedPrice(session("user_name"),v,1,"renew")
tpl_cnrenewfunction=renewprices
end function
function tpl_cnfunction(v)
tpl_cnfunction=GetNeedPrice(session("user_name"),v,1,"new")
end function
%>