nickname!=''){
?>
ID.' ja minu FB id on '.$current_user->fbuid.'
'; echo '
'; } /*koera pilt*/ echo '
'; echo '
Halda oma koeri
'; ?> id="add-dog">
Lisa koer
Muuda olemasolevate koerte andmeid
'; } /*koera pilt*/ echo '
';
if($row['dog_picture']==''){
echo '
'; /*koera kaal*/ echo '
'; } echo '
';
echo $echo2;
if($iscurrent=='yes'){ echo ''; }
echo '';
$i++;
}
} else {
echo 'Hetkel ei ole te veel ühtegi koera lisanud!';
}
} else {
echo '
';
if($iscurrent=='yes'){
echo '
lae pilt
';
}
} else {
echo '
';
/*koera nimi*/
if($iscurrent=='yes'){ echo ''; } else { echo $row['dog_name']; }
echo '
';
/*koera tõug*/
if($iscurrent=='yes'){ echo ''; } else { echo $row['breed']; }
echo '
';
/*koera vanus*/
$agestamp = time()-$row['dog_age'];
if($iscurrent=='yes'){ echo ' ('.ceil($agestamp/60/60/24/365).' a.)'; } else { echo date('d.m.Y',$row['dog_age']).' ('.ceil($agestamp/60/60/24/365).' a.)'; }
echo '
'; /*koera kaal*/ echo '
Kaal:
';
if($iscurrent=='yes'){ echo ''; } else { echo $row['dog_weight']; }
echo ' kg
';
/*koera mikrokiip*/
if($row['microchip']!='' || $iscurrent!=''){
echo 'Mikrokiip:
';
if($iscurrent=='yes'){ echo ''; } else { echo $row['microchip']; }
echo '
';
}
/*koera allergia*/
if($row['allergies']!='' || $iscurrent!=''){
echo 'Allergiate info:
';
if($iscurrent=='yes'){ echo ''; } else { echo $row['allergies']; }
echo '
';
}
/*koera toidualane info*/
if($row['nutrition_info']!='' || $iscurrent!=''){
echo 'Toitumislaane teave:
';
if($iscurrent=='yes'){ echo ''; } else { echo $row['nutrition_info']; }
echo '
';
}
/*koera vaktsiin*/
if($row['vaccine']!='' || $iscurrent!=''){
echo 'Vaktsineerimiste info:
';
if($iscurrent=='yes'){ echo ''; } else { echo $row['vaccine']; }
echo '
';
}
/*koera sugu*/
if($row['sex']!='' || $iscurrent!=''){
echo 'Sugu:
';
if($row['sex']=='Isane'){ $malecheck='selected'; } elseif($row['sex']=='Emane'){ $femalecheck='selected'; } else { $nosexcheck='selected'; }
if($iscurrent=='yes'){ echo ''; } else { echo $row['location']; }
echo '
';
}
/*koera eluviis*/
if($row['lifestyle']!='' || $iscurrent!=''){
echo 'Eluviis:
';
if($iscurrent=='yes'){ echo ''; } else { echo $row['lifestyle']; }
echo '
';
}
/*koera lühikirjeldus*/
if($row['description']!='' || $iscurrent!=''){
echo 'Lühikirjeldus:
';
if($iscurrent=='yes'){ echo ''; } else { echo $row['descrition']; }
echo '
';
}
/*koera värvus*/
if($row['color']!='' || $iscurrent!=''){
echo 'Värvus:
';
if($iscurrent=='yes'){ echo ''; } else { echo $row['color']; }
echo '
';
}
/*koera tiinus*/
if($row['dog_pregnant']==1){
echo 'Tiine:
';
if($iscurrent=='yes'){ echo ''; } else { echo 'Jah'; }
echo '
';
} else {
echo 'Tiine:
';
if($iscurrent=='yes'){ echo ''; } else { echo 'Ei'; }
echo '
';
}
/*koera omaniku nimi*/
$queryownername = mysql_query('SELECT * FROM wp_dog_base AS wdb INNER JOIN wp_users AS wu ON wu.ID='.$row['owners_id'].' LIMIT 1');
$rowname = mysql_fetch_array($queryownername);
echo 'Omaniku nimi:
'.$rowname['display_name'].'
';
/*koera omaniku aadress*/
if($row['owners_address']!='' || $iscurrent!=''){
echo 'Omaniku aadress:
';
if($iscurrent=='yes'){ echo ''; } else { echo $row['owners_address']; }
echo '
';
}
/*koera cv ligipääs*/
if($row['show_cv']==1){
echo 'Näitan seda CV-d:
';
if($iscurrent=='yes'){ echo ''; }
echo '
';
} else {
echo 'Näitan seda CV-d:
';
if($iscurrent=='yes'){ echo ''; }
echo '
';
}
echo '
Koera saavutused
'; $querydogevents = mysql_query('SELECT * FROM wp_dog_events WHERE dog_id="'.$row['id'].'" ORDER BY event_date DESC'); if(mysql_num_rows($querydogevents)!=0){ while($row = mysql_fetch_array($querydogevents)){ echo 'Üritus:
'.$row['event'].'
Ürituse lühikirjeldus:
'.$row['event_description'].'
Ürituse toimumise aeg:
'.date('d.m.Y',$row['event_date']).'
'; echo '
';
}
} else {
echo 'Üritusi ja näitusi pole.'; echo '
'; } echo '