Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Cia del saskaitos userio paneleje

Parašė forumietis· 2008 Geg. 14 20:05:21
#1

<?php
include INFUSIONS."pinigu_sistema/includes/lang_functions.php";
function showmessage($message){
global $lang_functions;
opentable($lang_functions[0]);
echo "<center><b>".$message."</b></center>";
closetable();
}

function showmoney($userdatas, $type){
global $lang_functions, $db_prefix, $userdata;
$pinigai = dbarray(dbquery("SELECT * FROM ".$db_prefix."money_users WHERE userid = '".$userdatas."'"));
if($type == 0){
return $pinigai['pinigai'];   
}else if($type == 1){
return $pinigai['pinigai']/100;   
}else if($type == 2){
opentable($lang_functions['1']);
$pinigai[pinigailt] = $pinigai[pinigai]/100;
$goldsettings = dbarray(dbquery("SELECT * FROM ".$db_prefix."money_settings"));
echo "<center>".$lang_functions[2]." ".$userdata[user_name].$lang_functions[4]." ".$lang_functions[3]." ".$pinigai[pinigailt]." ".$goldsettings[valiuta]."</center>";
closetable();
}
}
?>




Kaip reikia sukurti sita koda kad rodytu panleje?