Hello sir,
Pleasure to help you all,
See to create a new page in whmcs, it very easy, do the following steps(sorry for my bad english).
Step1: If you need to create a page http://www.yourdomain.com/new.php , say for example, whereas new.php is that new php page you are going to create. So create a new file(new.php) at root directory and add the following data
define ('CLIENTAREA', true);
require 'dbconnect.php';
require 'includes/functions.php';
require 'includes/clientareafunctions.php';
$pagetitle = "newpage";
$breadcrumbnav = '<a href="new.php">' . $_LANG['globalsystemname'] . '</a>';
$templatefile = 'new';
$pageicon = '';
initialiseclientarea ($pagetitle, $pageicon, $breadcrumbnav);
$result = select_query ('tblannouncements', '', array ('published' => 'on'), 'date', 'DESC', '0,3');
while ($data = mysql_fetch_array ($result))
{
$id = $data['id'];
$date = $data['date'];
$title = $data['title'];
$announcement = $data['announcement'];
$date = frommysqldate ($date);
$announcements[] = array ('id' => $id, 'date' => $date, 'title' => $title, 'urlfriendlytitle' => getmodrewritefriendlystring ($title), 'text' => $announcement);
}
$smartyvalues['announcements'] = $announcements;
$smartyvalues['seofriendlyurls'] = $CONFIG['SEOFriendlyUrls'];
outputclientarea ($templatefile);
?>
and save the file.
(copy fully inorder to get data from database in your new page)
Step2: Goto templates->(yourtemplatename) There create a file "new.tpl" , and enter your HTML code.
note: enter only the code within <body></body> tags.
step3: Give this in your address bar http://www.yourdomain.com/new.php , now you will see your new page,.
[ change the keywork "new" to ur pagename wherever u want]
Enjoy. very simple.