| Autor | Zpráva | ||
|---|---|---|---|
| table Profil * |
#1 · Zasláno: 25. 9. 2013, 11:42:22
Dobrý den,
potřeboval bych poradit s jedním problémem. Zde na mém zkušebním webu mi běží můj web http://erasttest.comehere.cz/ Jak vidíte tam kde zobrazuji online uživatele tak mi tam leze text z seznamu interpretů Přikládám kody: css .card-l, .card-r {
float: left;
width: 40px;
margin: 0 15px 10px 0;
padding: 10px 0;
text-align: center;
border-right: 1px solid #ccc;
border-bottom: 1px solid #ccc;
font-size: 75%;
}
.card-r {
float: right;
margin: 0 0 15px 15px;
}
.card-title {
margin: 0 0 5px 0;
font-size: 130%;
color: green;
}
.card-photo {
margin: 0 auto; padding:0;
border: none;
}
.card-desc {
margin: 5px 10px; padding:0;
text-align: left;
font-size: 100%;
}
.card-info {
margin: 5px 20px 0 10px; padding:0;
text-align: right;
font-size: 90%;
color: #666;
}Zobrazení online uživatelů a seznamu alb: <?
////// To update session status for plus_login table to get who is online ////////
if ($user->is_logged()){
$tm=date("Y-m-d H:i:s");
$q=mysql_query("update uzivatele set status='ON',tm='$tm' where id='" .$user->id ."'");
echo mysql_error();}
///// ////////////// End of updating login status for who is online ///////
// Find out who is online /////////
$gap=10; // change this to change the time in minutes, This is the time for which active users are collected.
$tm=date ("Y-m-d H:i:s", mktime (date("H"),date("i")-$gap,date("s"),date("m"),date("d"),date("Y")));
//// Let us update the table and set the status to OFF
////for the users who have not interacted with
////pages in last 10 minutes ( set by $gap variable above ) ///
$ut=mysql_query("update uzivatele set status='OFF' where tm < '$tm'");
echo mysql_error();
/// Now let us collect the userids from table who are online ////////
$qt=mysql_query("select jmeno,ip,status from uzivatele where tm > '$tm' and status='ON'");
echo mysql_error();
include("geoiploc.php");
while($nt=mysql_fetch_array($qt)){
$ip = $nt['ip'];
$vlajka = getCountryFromIP($ip, "code");
echo '<div class="card-l">';
echo'<p class="card-photo"><img width="45" title='.$nt[jmeno].' src=img/logo.png alt='.$nt[jmeno].'></p>';
echo'<p class="card-info">'.$nt[jmeno].'</p>';
echo'</div>';
}
?>
<br>
<font size="5" face="Smokum" color="black"> Seznam interpretů:
</font> <br />
<?php
$query = "SELECT Contentgroup, count(distinct Album, Contentgroup) as pocet_alb
FROM `zahranicni`
group by Contentgroup ";
$result = mysql_query($query) or die(Mysql_error());
While($results=MySQL_Fetch_Assoc($result))
{ ?>
<a href= "/zobraz.php?interpret=<?php print $results['Contentgroup'] ?>"><font size="3" color="black"> <?php print $results['Contentgroup']?> - (<?php print $results['pocet_alb']?>)</font></a> <br>
<?php } ?> |
||
| margin Profil * |
#2 · Zasláno: 25. 9. 2013, 11:55:42
Řádek 40 PHP kódu, dej brku clear.
|
||
| peta Profil |
#3 · Zasláno: 25. 9. 2013, 11:56:41
Dej nadpisu clear
|
||
| table Profil * |
#4 · Zasláno: 25. 9. 2013, 11:57:25
Děkuji mnohokrát.
|
||
|
Časová prodleva: 13 let
|
|||
0