Chakira
11-02-2013, بتوقيت غرينيتش 02:00 AM
http://www.iqpic.com/uploads/iqpic133710403917.png
،،،
--------------------------------
حلول كوم لخدمات الويب المتكاملة - الصفحة الرئيسية
--------------------------------
مؤسسة حلول كوم لخدمات الويب المتكاملة
--------------------------------
4- شرح طريقة اضافة صفحه فرعية لــWHMCS
--------------------------------
نبدأ على بركة الله :-
نعدل على الكود code طبعا xxx رابط الصفحه فل يكن host.php حسب الصفحة
http://im26.gulfup.com/2014-06-17/1339936919451.gif
ثم نحفظها بصيغة php
ونرفعها على مجلد الرئيسي www او whmcs
الكود code :
رمز PHP:
<code style="white-space:nowrap"> <code> <?php
define("CLIENTAREA",true);
//define("FORCESSL",true); # Uncomment to force the page to use https://
require("dbconnect.php");
require("includes/functions.php");
require("includes/clientareafunctions.php");
$pagetitle = $_LANG['clientareatitle'];
$breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>';
$breadcrumbnav .= ' > <a href="xxx.php">اسم الصفحه</a>';
initialiseClientArea($pagetitle,'',$breadcrumbnav) ;
# To assign variables to the template system use the following syntax.
# These can then be referenced using {$variablename} in the template.
$smartyvalues["variablename"] = $value;
# Check login status
if ($_SESSION['uid']) {
# 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=".(int)$_SESSION['uid']);
$data = mysql_fetch_array($result);
$clientname = $data[0];
$smartyvalues["clientname"] = $clientname;
} else {
# User is not logged in
}
# Define the template filename to be used without the .tpl extension
$templatefile = "اسم قالب template الصفحه ";
outputClientArea($templatefile);
?> </code> </code>
وشكرآ
https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©
،،،
--------------------------------
حلول كوم لخدمات الويب المتكاملة - الصفحة الرئيسية
--------------------------------
مؤسسة حلول كوم لخدمات الويب المتكاملة
--------------------------------
4- شرح طريقة اضافة صفحه فرعية لــWHMCS
--------------------------------
نبدأ على بركة الله :-
نعدل على الكود code طبعا xxx رابط الصفحه فل يكن host.php حسب الصفحة
http://im26.gulfup.com/2014-06-17/1339936919451.gif
ثم نحفظها بصيغة php
ونرفعها على مجلد الرئيسي www او whmcs
الكود code :
رمز PHP:
<code style="white-space:nowrap"> <code> <?php
define("CLIENTAREA",true);
//define("FORCESSL",true); # Uncomment to force the page to use https://
require("dbconnect.php");
require("includes/functions.php");
require("includes/clientareafunctions.php");
$pagetitle = $_LANG['clientareatitle'];
$breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>';
$breadcrumbnav .= ' > <a href="xxx.php">اسم الصفحه</a>';
initialiseClientArea($pagetitle,'',$breadcrumbnav) ;
# To assign variables to the template system use the following syntax.
# These can then be referenced using {$variablename} in the template.
$smartyvalues["variablename"] = $value;
# Check login status
if ($_SESSION['uid']) {
# 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=".(int)$_SESSION['uid']);
$data = mysql_fetch_array($result);
$clientname = $data[0];
$smartyvalues["clientname"] = $clientname;
} else {
# User is not logged in
}
# Define the template filename to be used without the .tpl extension
$templatefile = "اسم قالب template الصفحه ";
outputClientArea($templatefile);
?> </code> </code>
وشكرآ
https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©