Mavzu: JohnCms Da Bosh sahifaga chiqarish
29. BahhTeeUz (4797) [off] | TXT | 58| 28 Nov 2016, 11:50
Megatron (28 Nov 2016, 11:33):
qalampir.ru/lider.zip

ko'rilarchi ishlidiganmi
Megatron,

<?

include '../lider/main.php';

?>



30. BahhTeeUz (4797) [off] | TXT | 58| 28 Nov 2016, 11:56
pages papkasini ichida lider_day.php fayli ochib yozamiz:

<?php

 defined
('_IN_JOHNCMS') or die('Error: restricted access');

 
$rootpath '';

$count_us mysql_result(mysql_query("select count(`id`) from `lider` where `time` >= '".time()."' and `user_id` = '".$user_id."'"),0);

echo 
'<div class="phdr"><b>Kun anketalari</b></div>';

echo 
'<div class="menu">';

$count mysql_result(mysql_query("select count(*) from `lider` where `time` >= '".time()."'"),0);

            

if    (
$count    0) {

            
$sets1 explode('|'file_get_contents('lider/sets.dat'));

            
$req mysql_query("select * from `lider` where `time` >= '".time()."' order by rand() limit 1");

            
$res mysql_fetch_array($req);

            
$us mysql_fetch_array(mysql_query("SELECT `name`, `yearofbirth`, `sex`, `dayb`, `monthb` FROM `users` WHERE `id` = '" $res['user_id'] . "' LIMIT 1"));

            echo 
'<table><tr>';

    if (
file_exists(($rootpath 'files/users/avatar/' $res['user_id'] . '.png'))){

            
$ava_u '<img src="' $system_set['homeurl'] . '/files/users/avatar/' $res['user_id'] . '.png" width="32" height="32" alt="" />';

}    else{

            
$ava_u '<img src="' $system_set['homeurl'] . '/images/' . ($us['sex'] == 'm' 'm' 'zh') . '_empty.png" />';}

            echo 
'<td width="32" height="32">'.$ava_u.'</td><td><a href ="../users/profile.php?user='.$res['user_id'].'"><b>' $us['name']. '</b></a>';

            echo 
'<br /><div class="status">' $res['text'] .'</div>' ;

            echo 
'</td></tr></table>';

    }else{echo 
'Mavjud emas';}

echo 
'</div>';

?>



va mainmenu.phpga

<?

include ('pages/lider_day.php');

?>



31. Megatron (195) [off] | TXT | 58| 28 Nov 2016, 11:57
baribir bo'madi
32. Megatron (195) [off] | TXT | 58| 28 Nov 2016, 11:59
hozir sinab ko'raychi bunisini ham
33. BahhTeeUz (4797) [off] | TXT | 58| 28 Nov 2016, 12:07
sarvarbek, offtop qilmang, bu forum kodida sintaksis chiqariladi do'stim :-)
34. MasteR_Tj (64) [off] | TXT | 58| 28 Nov 2016, 12:50
johncms 620 ga bosh saxifaga uzfor
dek man
bunday masalan Erkin mavzular [299/21905]
chiqarish kerak yordam beringlar aynan
manashunaqa chqishi kerak [299/21905]
35. MAVERICK (17) [off] | TXT | 58| 28 Nov 2016, 12:51
Johncmsda kutubxonadagi kategoriyalarni bosh sahifaga qanday chiqaradi ?
Ma'lumotlar
Mavzu id raqami: 434
Mavzuga oid xabarlar soni: 811 ta
So'ngi faollik vaqti: 25 Nov 2019, 12:40
Mavzuni ko'rishgan: 331 kishi
» txt shaklida yuklab olish
» Mavzudagi yangi xabarlardan xabardor bo'lishni rad etish
www.uzmasters.ru Onlayn 160 (0/160)
www.uzmasters.ru Forumga a'zo bo'lish
www.uzmasters.ru Forumdan qidirish
www.uzmasters.ru Bosh sahifa
Яндекс.Метрика UzMasterS.Ru