/[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.1 - (hide annotations)
Tue Oct 23 16:13:59 2001 UTC (21 years, 1 month ago) by ravilov
Branch: MAIN
Added an author's CV. Added a secondary main article. Added the Related fields to news editor, and also fixed some bugs in it. Other bugfixes and improvements.

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

  ViewVC Help
Powered by ViewVC 1.1.26