|
' . $sor["dr"] . ' ' . $sor["nume"] .' ' . $sor["prenume"] . '
Functia: ' . $sor["functia"] .'
Departament: ' . $sor["departament"] .'
Telefon: (+4)0264-584037, int ' . $sor["nr_tel"] . '
Fax: (+4)0264-420042
Birou: '. $sor["birou"] .' ';
$mail=substr($sor["e_mail"],0,strpos($sor["e_mail"],"@"));
if ($sor["e_mail"] != "")
{
echo 'E-mail: ' . $mail . '@itim-cj.ro ';
};
if ($sor["webpage"] != "")
{
echo 'Webpage: '. $sor["webpage"] .'';
};
echo'
|
';}
else {
echo '
' . $sor["dr"] . ' ' . $sor["nume"] .' ' . $sor["prenume"] . '
Functia: ' . $sor["functia"] .'
Departament: ' . $sor["departament"] .'
Telefon: (+4)0264-584037, int ' . $sor["nr_tel"] . '
Fax: (+4)0264-420042
Birou: '. $sor["birou"] .' ';
$mail=substr($sor["e_mail"],0,strpos($sor["e_mail"],"@"));
if ($sor["e_mail"] != "")
{
echo 'E-mail: ' . $mail . '@itim-cj.ro ';
};
if ($sor["webpage"] != "")
{
echo 'Webpage: '. $sor["webpage"] .'';
};
echo' |
|
';
}
$par++;
?>
}
//And we display the results
while($result = mysql_fetch_array( $data ))
{
echo $result['nume'];
echo " ";
echo $result['prenume'];
echo "
Pagina: ' . $cur_page . ' din ' . $total_pages . '
';*/
// Now if there is more than one page create the links for the other pages
if ($total_pages > 1)
{
echo '
';
// Give the first page to start counting to display all the pages upto the total pages
$page_count = 1;
$album = '';
while ( $page_count <= $total_pages )
{
// Check and see if the page link being created is the current page, because we don't need a link to the
// current page
if ( $page_count == $cur_page )
{
echo '
' . $page_count . '';
}
// Otherwise create the links for the additional pages and point them back to the current php page
// Make sure you pass all the needed variables that were passed initially
else
{
echo '
' . $page_count . '
';
}
// Up the $page_count for the while statement and then close the while statement
$page_count++;
}
// Echo the closing p tag then close the if statement for if there is more than one page
echo '
';
}
// Then close the div for the page info
echo '
';
$par=1;
while ($sor = mysql_fetch_array($result))
{/*
if ($szin=="lightgrey") {
$szin="white";
}
else {
$szin="lightgrey";bgcolor=""
}*/
if ($par%2 == 1){
echo '
|
' . $sor["dr"] . ' ' . $sor["nume"] .' ' . $sor["prenume"] . '
Functia: ' . $sor["functia"] .'
Departament: ' . $sor["departament"] .'
Telefon: (+4)0264-584037, int ' . $sor["nr_tel"] . '
Fax: (+4)0264-420042
Birou: '. $sor["birou"] .' ';
$mail=substr($sor["e_mail"],0,strpos($sor["e_mail"],"@"));
if ($sor["e_mail"] != "")
{
echo 'E-mail: ' . $mail . '@itim-cj.ro ';
};
if ($sor["webpage"] != "")
{
echo 'Webpage: '. $sor["webpage"] .'';
};
echo' |
';}
else {
echo '
' . $sor["dr"] . ' ' . $sor["nume"] .' ' . $sor["prenume"] . '
Functia: ' . $sor["functia"] .'
Departament: ' . $sor["departament"] .'
Telefon: (+4)0264-584037, int ' . $sor["nr_tel"] . '
Fax: (+4)0264-420042
Birou: '. $sor["birou"] .' ';
$mail=substr($sor["e_mail"],0,strpos($sor["e_mail"],"@"));
if ($sor["e_mail"] != "")
{
echo 'E-mail: ' . $mail . '@itim-cj.ro ';
};
if ($sor["webpage"] != "")
{
echo 'Webpage: '. $sor["webpage"] .'';
};
echo' |
|
';
}
$par++;
?>
}
}
?>