با سلام
من یک صفحه جدید در سیستم whmcs ایجاد کردم با استفاده از مستندات خود whmcs اما این صفحه عملیات مربوط به توابع رو نشون نمیده مثلا من میخوام قیمت دامنه ها توی ان صفحه جداگانه نمایش داده بشه هنگام نمایش هیچ محتویاتی نمایش نمیدهد چطور میتونم توابع رو فراخونی کنم

محتویات فایل php اصلی
کد PHP:
<?php  define("CLIENTAREA",true); //define("FORCESSL",true); // Uncomment to force the page to use https://  require("init.php");  $ca = new WHMCS_ClientArea();  $ca->setPageTitle("قیمت دامنه ها");  $ca->addToBreadCrumb('index.php',$whmcs->get_lang('globalsystemname')); $ca->addToBreadCrumb('domainprice.php','قیمت دامنه ها');  $ca->initPage();  //$ca->requireLogin(); // Uncomment this line to require a login to access this page  # To assign variables to the template system use the following syntax. # These can then be referenced using {$variablename} in the template.  $ca->assign('variablename', $value);  # Check login status if ($ca->isLoggedIn()) {    # User is logged in - put any code you like here    # Here's an example to get the currently logged in clients first name    $result = mysql_query("SELECT firstname FROM tblclients WHERE id=".$ca->getUserID());   $data = mysql_fetch_array($result);   $clientname = $data[0];    $ca->assign('clientname', $clientname);  } else {    # User is not logged in  }  # Define the template filename to be used without the .tpl extension  $ca->setTemplate('domainprice');  $ca->output();  ?>
و یک فایل tpl با نام domainprice در قالب ایجاد شده که محتویات این فایل شامل
کد PHP:

<br />{if $lookup}
{if 
$available}<p align="center" class="textgreen" style="font-size:18px;">{$LANG.domainavailable1} <strong>{$domain}{$ext}</strong> {$LANG.domainavailable2}</p>{elseif $invalid}<p align="center" class="textred" style="font-size:18px;">{$LANG.ordererrordomaininvalid}</p>{elseif $error}<p align="center" class="textred" style="font-size:18px;">{$LANG.domainerror}</p>{else}<p align="center" class="textred" style="font-size:18px;">{$LANG.domainunavailable1} <strong>{$domain}{$ext}</strong> {$LANG.domainunavailable2}</p>{/if}
{if !
$invalid}<h2>{$LANG.morechoices}</h2><form method="post" action="{$systemsslurl}cart.php?a=add&domain=register">  <table width="100%" border="0" cellpadding="10" cellspacing="0" class="data domain">    <tr class="title_gr">      <td width="20"></td>      <td>{$LANG.domainname}</td>      <td>{$LANG.domainstatus}</td>      <td>{$LANG.domainmoreinfo}</td>    </tr>    {foreach key=num item=result from=$availabilityresults}    <tr>      <td>{if $result.status eq "available"}        <input type="checkbox" name="domains[]" value="{$result.domain}{if $num eq "0" && $available}checked {/if}/>        <input type="hidden" name="domainsregperiod[{$result.domain}]" value="{$result.period}/>        {else}X{/if}</td>      <td>{$result.domain}</td>      <td class="{if $result.status eq "available"}textgreen{else}textred{/if}">{if $result.status eq "available"}{$LANG.domainavailable}{else}{$LANG.domainunavailable}{/if}</td>      <td>{if $result.status eq "unavailable"}<a href="http://{$result.domain}target="_blank">WWW</a> <a href="#" onclick="window.open('whois.php?domain={$result.domain}','whois','width=500,height=400,scrollbars=yes');return false">WHOIS</a>{else}        <select name="domainsregperiod[{$result.domain}]">          {foreach key=period item=regoption from=$result.regoptions}          <option value="{$period}">{$period} {$LANG.orderyears} @ {$regoption.register}</option>          {/foreach}        </select>        {/if}</td>    </tr>    {/foreach}  </table>  <p align="center">    <input type="submit" value="{$LANG.ordernowbutton}class="submit" />  </p></form>{/if}
{else}<
table width="100%" border="0" cellpadding="10" cellspacing="0" class="domain">  <tr class="title_gr">    <td>{$LANG.domaintld}</td>    <td>{$LANG.domainminyears}</td>    <td>{$LANG.domainsregister}</td>    <td>{$LANG.domainstransfer}</td>    <td>{$LANG.domainsrenew}</td>  </tr>  {foreach key=num item=tldpricelist from=$tldpricelist}  <tr>    <td style="direction:ltr">{$tldpricelist.tld}</td>    <td>{$tldpricelist.period}</td>    <td>{if $tldpricelist.register}{$tldpricelist.register}{else}{$LANG.domainregnotavailable}{/if}</td>    <td>{if $tldpricelist.transfer}{$tldpricelist.transfer}{else}{$LANG.domainregnotavailable}{/if}</td>    <td>{if $tldpricelist.renew}{$tldpricelist.renew}{else}{$LANG.domainregnotavailable}{/if}</td>  </tr>  {/foreach}</table>{/if}<br />