/[health_html]/autor.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /autor.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Sat Oct 27 16:54:50 2001 UTC (18 years, 3 months ago) by ravilov
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -2 lines
Rearranged the menu system on plivamed.net. Other fixes/improvements.

1 ravilov 1.1 <?php
2     if (!$id) exit;
3     include_once("inc/global.php");
4     include_once("inc/util.php");
5 ravilov 1.2 if (!include("inc/conn.php")) exit;
6     if (!$dbh) exit;
7 ravilov 1.1 $sql = "SELECT ime, cv, slika FROM autori WHERE (autor_id = $id)";
8     $sth = $dbh->prepare($sql);
9     if (!$sth) error("Cannot prepare query: \"$sql\"");
10     if (!$sth->execute()) error("Cannot execute query: \"$sql\"");
11     $row = $sth->fetchrow_array();
12     $sth->finish();
13     $dbh->disconnect();
14     if ($row) list($ime, $cv, $slika) = $row;
15     if ($slika) {
16     $picdir = $HTTP_SERVER_VARS["DOCUMENT_ROOT"]."/img/autori_cv";
17     list($w, $h) = PicSize($slika, $picdir);
18     }
19     ?>
20     <HTML>
21     <HEAD>
22     <TITLE><?= $ime; ?></TITLE>
23     <LINK REL="Shortcut Icon" HREF="favicon.ico">
24     <LINK REL="StyleSheet" TYPE="text/css" HREF="stil.php">
25     </HEAD>
26 ravilov 1.2 <BODY BGCOLOR="#FFFFFF" TEXT="#000000" ONLOAD="if (document.forms[0].elements[0]) document.forms[0].elements[0].focus();">
27 ravilov 1.1 <FORM>
28     <CENTER>
29     <BR>
30     <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
31     <TR><TD ALIGN="left" VALIGN="middle"><B><?= $ime; ?></B></TD></TR>
32     <TR><TD ALIGN="left" VALIGN="top">
33     <?php if ($slika): ?><IMG SRC="img/autori_cv/<?= $slika; ?>"<?= $w ? " WIDTH=\"$w\"" : ""; ?><?= $h ? " HEIGHT=\"$h\"" : ""; ?> ALT="" BORDER="0" ALIGN="left" VSPACE="5" HSPACE="5"><?php endif; ?>
34     <P CLASS="ptext">
35     <?= ParseNewline(MyEscape($cv), true); ?>
36     </P>
37     </TD></TR>
38     <TR><TD ALIGN="right" VALIGN="middle"><BR><BR><INPUT TYPE="button" VALUE="Zatvori" CLASS="bsmall" ONCLICK="self.close();"></TD></TR>
39     </TABLE>
40     </CENTER>
41     </FORM>
42     </BODY>
43     </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26