include 'header.php';
include 'bibfunctions.inc.php';
$ref = $_GET['ref'];
$proc = "select * from inproceedings where reference = '".$ref."'";
$r_proc = mysql_query($proc);
if(($proc_num = mysql_num_rows($r_proc))>
0) { while($row = mysql_fetch_object($r_proc)){ if ($row->visible != 0) { ?>
@inproceedings{
reference;?>,
author = {
author;?>},
title = {
title;?>},
booktitle = {
booktitle;?>},
publisher = {
publisher;?>},
address = {
address;?>},
editor = {
editor;?>},
volume = {
volume;?>},
series = {
series;?>},
year = {
year;?>},
month = {
month;?>},
pages = {
pages;?>},
url = {
url;?>},
location = {
location;?>},
}
}
}
}
$tr = "select * from inbook where reference = '".$ref."'";
$r_proc = mysql_query($tr);
if(($proc_num = mysql_num_rows($r_proc))>
0) { while($row = mysql_fetch_object($r_proc)){ if ($row->visible != 0) { ?>
@inbook{
reference;?>,
author = {
author;?>},
chapter = {
chapter;?>},
title = {
title;?>},
page = {
page;?>},
year = {
year;?>},
publisher = {
publisher;?>},
url = {
url;?>},
}
}
}
}
$phd = "select * from phdthesis where reference = '".$ref."'";
$r_proc = mysql_query($phd);
if(($proc_num = mysql_num_rows($r_proc))>
0) { while($row = mysql_fetch_object($r_proc)){ if ($row->visible != 0) { ?>
if ($row->
type == "Master's Thesis") { ?> @msthesis{
reference;?>,
} else { ?>
@phdthesis{
reference;?>,
} ?>
author = {
author;?>},
title = {
title;?>},
school = {
school;?>},
year = {
year;?>},
month = {
month;?>},
url = {
url;?>},
}
}
}
}
$art = "select * from article where reference = '".$ref."'";
$r_proc = mysql_query($art);
if(($proc_num = mysql_num_rows($r_proc))>
0) { while($row = mysql_fetch_object($r_proc)){ if ($row->visible != 0) { ?>
@article{
reference;?>,
author = {
author;?>},
title = {
title;?>},
journal = {
journal;?>},
publisher = {
publisher;?>},
address = {
address;?>},
editor = {
editor;?>},
volume = {
volume;?>},
number = {
number;?>},
series = {
series;?>},
year = {
year;?>},
month = {
month;?>},
pages = {
pages;?>},
url = {
url;?>},
location = {
location;?>},
}
}
}
}
include 'footer.php';
?>