/[fcproducts]/index.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

Diff of /index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dpavlin, Wed Jun 6 07:04:04 2001 UTC revision 1.9 by ravilov, Thu Jun 21 09:59:50 2001 UTC
# Line 3  Line 3 
3          $auth = true;          $auth = true;
4          if ($auth && (!isset($PHP_AUTH_USER) || !isset($PHP_AUTH_PW)))          if ($auth && (!isset($PHP_AUTH_USER) || !isset($PHP_AUTH_PW)))
5                  $auth = false;                  $auth = false;
6            if ($change) { $id = $new_id; $edit = false; }
7          if ($auth) {          if ($auth) {
8                  include("conn.php");                  include("conn.php");
9                  DBOpen();                  DBOpen();
# Line 11  Line 12 
12                  if (count($row) <= 0) $auth = false;                  if (count($row) <= 0) $auth = false;
13                  if ($auth) {                  if ($auth) {
14                          $row = $row[0];                          $row = $row[0];
15                          if ($PHP_AUTH_PW != $row[0]) $auth = false;                          if (substr($row[0], 0, 5) == "auth_") {
16                                    switch (strtoupper(substr($row[0], 5))) {
17                                            case "POP3":
18                                                    include("auth_POP3.php");
19                                                    $pop = new POP3();
20                                                    $pop->connect("intranet.pliva.hr");
21                                                    $ret = $pop->checklogin($PHP_AUTH_USER, $PHP_AUTH_PW);
22                                                    $pop->quit();
23                                                    if (!$ret) $auth = false;
24                                                    break;
25                                            default: $auth = false; break;
26                                    }
27                            } else {
28                                    $pw = md5($PHP_AUTH_USER.$PHP_AUTH_PW);
29                                    if ($pw != $row[0]) $auth = false;
30                            }
31                            # if ($PHP_AUTH_PW != $row[0]) $auth = false;
32                  }                  }
33          }          }
34          if (!$auth) {          if (!$auth || $relogin == $PHP_AUTH_USER) {
35                  Header("WWW-Authenticate: Basic realm=\"fcproducts\"");                  Header("WWW-Authenticate: Basic realm=\"fcproducts\"");
36                  Header("HTTP/1.0 401 Unauthorized");                  Header("HTTP/1.0 401 Unauthorized");
37                  echo "<HTML><B>No access.</B></HTML>\n";                  echo "<HTML><B>No access.</B></HTML>\n";
38                  exit;                  exit;
39          }          }
40  //      if (!$id) { echo "<HTML><B>No product ID!</B></HTML>\n"; exit; }          # if (!$id) { echo "<HTML><B>No product ID!</B></HTML>\n"; exit; }
41          if (!$id) { $id=1; }          DBOpen();
42            if (!$id) {
43                    $id = 1;
44                    $row = DBQuery("SELECT MIN(product_id) FROM products");
45                    if ($row[0]) $id = $row[0][0];
46            }
47          $error = "";          $error = "";
48          $msg = false;          $msg = false;
49          $err = 0;          $err = 0;
         DBOpen();  
50          $row = DBQuery("SELECT market,production,purchasing,economics,risks,competition,potential,portfolio,sales,quality,dosage,evaluation,comment FROM user_product WHERE (product_id=$id) AND (login='$PHP_AUTH_USER')");          $row = DBQuery("SELECT market,production,purchasing,economics,risks,competition,potential,portfolio,sales,quality,dosage,evaluation,comment FROM user_product WHERE (product_id=$id) AND (login='$PHP_AUTH_USER')");
         if (is_array($row[0]) && count($row[0]) > 0) bool_fix($row[0]);  
51          list($ok_market, $ok_production, $ok_purchasing, $ok_economics,          list($ok_market, $ok_production, $ok_purchasing, $ok_economics,
52                  $ok_risks, $ok_competition, $ok_potential, $ok_portfolio,                  $ok_risks, $ok_competition, $ok_potential, $ok_portfolio,
53                  $ok_sales, $ok_quality, $ok_dosage, $ok_evaluation,                  $ok_sales, $ok_quality, $ok_dosage, $ok_evaluation,
54                  $ok_comment) = $row[0];                  $ok_comment) = array(-1, -1, -1, -1, -1, -1, -1, -1, -1,
55                    -1, -1, -1, -1);
56            if (is_array($row[0])) {
57                    bool_fix($row[0]);
58                    list($ok_market, $ok_production, $ok_purchasing,
59                            $ok_economics, $ok_risks, $ok_competition,
60                            $ok_potential, $ok_portfolio, $ok_sales, $ok_quality,
61                            $ok_dosage, $ok_evaluation, $ok_comment) = $row[0];
62            }
63          if ($save) {          if ($save) {
64                  $error = "";                  $error = "";
65                  $q = array();                  $q = array("cas_no='$cas_no'");
66                  if ($error == "" && $ok_market > 0) {                  if ($error == "" && $ok_market > 0) {
67                          if (!CheckURL($info_market)) { $error = "Invalid URL."; $err = 1; }                          if (!CheckURL($info_market)) { $error = "Invalid URL."; $err = 1; }
68                          if ($error == "") array_push($q, "link_market='$info_market',cust_existing='$cust_existing',cust_potential='$cust_potential',fc_price='$fc_price'");                          if ($error == "") array_push($q, "link_market='$info_market',cust_existing='$cust_existing',cust_potential='$cust_potential',fc_price='$fc_price'");
# Line 112  Line 140 
140                  }                  }
141                  if ($error == "") $msg = true; else $edit = 1;                  if ($error == "") $msg = true; else $edit = 1;
142          } else {          } else {
143                  $row = DBQuery("SELECT link_market,link_production,link_purchasing,link_economics,link_risks,link_competition,link_potential,link_quality,link_dosage,link_sales,comment,cust_potential,cust_existing,fc_price,competitors,holders,market_size,quality,registrations,last_fda,cap_nominal,cap_util,ther_class,indication,sales_1999,launch_year,mat_raw,suppliers,mat_cost,fc_rank,fc_share,maturity,comp_intensity,comp_position,cogs,op_income,break_even,m3,sales_img,risks FROM products WHERE (product_id=$id)");                  $row = DBQuery("SELECT link_market,link_production,link_purchasing,link_economics,link_risks,link_competition,link_potential,link_quality,link_dosage,link_sales,comment,cust_potential,cust_existing,fc_price,competitors,holders,market_size,quality,registrations,last_fda,cap_nominal,cap_util,ther_class,indication,sales_1999,launch_year,mat_raw,suppliers,mat_cost,fc_rank,fc_share,maturity,comp_intensity,comp_position,cogs,op_income,break_even,m3,sales_img,risks,cas_no FROM products WHERE (product_id=$id)");
144                  if (count($row) <= 0) { echo "<HTML><B>No such product ID.</B></HTML>"; exit; }                  if (count($row) <= 0) { echo "<HTML><B>No such product ID.</B></HTML>"; exit; }
145                  list($info_market, $info_production, $info_purchasing,                  list($info_market, $info_production, $info_purchasing,
146                          $info_economics, $info_risks, $info_competition,                          $info_economics, $info_risks, $info_competition,
# Line 124  Line 152 
152                          $launch_year, $mat_raw, $suppliers, $mat_cost,                          $launch_year, $mat_raw, $suppliers, $mat_cost,
153                          $fc_rank, $fc_share, $maturity, $comp_intensity,                          $fc_rank, $fc_share, $maturity, $comp_intensity,
154                          $comp_position, $cogs, $op_income, $break_even,                          $comp_position, $cogs, $op_income, $break_even,
155                          $m3, $sales_img, $risks) = $row[0];                          $m3, $sales_img, $risks, $cas_no) = $row[0];
156          }          }
157          $row = DBQuery("SELECT naziv FROM products WHERE (product_id=$id)");          $row = DBQuery("SELECT naziv FROM products WHERE (product_id=$id)");
158          list($product_name) = $row[0];          list($product_name) = $row[0];
         DBClose();  
159  ?>  ?>
160  <HTML>  <HTML>
161  <HEAD>  <HEAD>
162  <META HTTP-EQUIV="Pragma" CONTENT="no-cache">  <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
163  <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">  <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
164  <LINK REL="StyleSheet" HREF="style.css">  <?php
165  <TITLE><?= $product_name ?></TITLE>          $ns_ua = "Mozilla/4.";
166            $old_netscape = (substr($HTTP_USER_AGENT, 0, strlen($ns_ua)) == $ns_ua) ?
167                    true : false;
168            if ($old_netscape) $old_netscape = strstr($HTTP_USER_AGENT, "MSIE") ? false : true;
169            if ($old_netscape) echo "<LINK REL=\"StyleSheet\" HREF=\"style-ns.css\">\n";
170                    else echo "<LINK REL=\"StyleSheet\" HREF=\"style.css\">\n";
171    ?>
172    <TITLE><?= ereg_replace("\r?\n(.*)$", " (\\1)", $product_name); ?></TITLE>
173  <?php if ($msg): ?>  <?php if ($msg): ?>
174  <META HTTP-EQUIV="Refresh" CONTENT="1; URL=?id=<?= $id ?>">  <META HTTP-EQUIV="Refresh" CONTENT="1; URL=?id=<?= $id ?>">
175  <?php else: ?>  <?php else: ?>
# Line 157  Line 191 
191  <FORM ENCTYPE="multipart/form-data" METHOD="post" ACTION="<?= $PHP_SELF ?>">  <FORM ENCTYPE="multipart/form-data" METHOD="post" ACTION="<?= $PHP_SELF ?>">
192  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%" HEIGHT="100%">  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%" HEIGHT="100%">
193  <TR>  <TR>
194  <TD ALIGN="left" VALIGN="top" ROWSPAN="2" WIDTH="33%" HEIGHT="1%"><TABLE BORDER="0" CELLSPACING="0"><TR><TD CLASS="title1"><B>FINE CHEMICALS</B></TD></TR></TABLE></TD>  <TD ALIGN="left" VALIGN="top" WIDTH="33%" HEIGHT="1%"><TABLE BORDER="0" CELLSPACING="0"><TR><TD CLASS="title1"><B>FINE CHEMICALS</B></TD></TR></TABLE></TD>
195  <TD ALIGN="center" VALIGN="top" ROWSPAN="2" WIDTH="33%" HEIGHT="1%"><TABLE BORDER="0" CELLSPACING="0"><TR><TD CLASS="title2"><B><?= $product_name ?></B></TD></TR></TABLE></TD>  <TD ALIGN="center" VALIGN="top" ROWSPAN="2" WIDTH="33%" HEIGHT="1%"><TABLE BORDER="0" CELLSPACING="0"><TR><TD CLASS="title2"><B><?= $product_name ?><?php if ($edit): ?><BR><SMALL>CAS No: <INPUT TYPE="text" CLASS="text" NAME="cas_no" VALUE="<?= $cas_no ?>"></SMALL><?php else: ?><?php if ($cas_no): ?><BR><SMALL>CAS No: <?= $cas_no ?></SMALL><?php endif; ?><?php endif; ?></B></TD></TR></TABLE></TD>
196  <TD ALIGN="right" VALIGN="top" WIDTH="33%" HEIGHT="1%"><TABLE BORDER="0" CELLSPACING="0"><TR><TD CLASS="title3"><B>PRODUCT MATRIX</B></TD></TR></TABLE></TD>  <TD ALIGN="right" VALIGN="top" WIDTH="33%" HEIGHT="1%" COLSPAN="2"><TABLE BORDER="0" CELLSPACING="0"><TR><TD CLASS="title3"><B>PRODUCT MATRIX</B></TD></TR></TABLE></TD>
197  </TR>  </TR>
198  <TR><TD ALIGN="right" VALIGN="middle" HEIGHT="1%"><B>Date of last change:</B> <?php $tmp = getlastmod(); echo date("F d, Y.", $tmp)." at ".date("H:i:s", $tmp); ?></TD></TR>  <TR><TD ALIGN="left" VALIGN="bottom"><?php if ($edit): ?>&nbsp;<?php else: ?><HR WIDTH="100%" SIZE="1" NOSHADE><INPUT TYPE="submit" NAME="change" VALUE="Change" CLASS="button"> product to <SELECT NAME="new_id" ONCHANGE="document.forms[0].elements['change'].click();"><?php
199  <TR><TD COLSPAN="3" ALIGN="center" HEIGHT="1%"><HR WIDTH="100%" SIZE="2"></TD></TR>          $row = DBQuery("SELECT product_id,naziv FROM products ORDER BY naziv");
200            while (list($key, $val) = each($row)) {
201                    list($_id, $name) = $val;
202                    $name = ereg_replace("\r?\n.*$", "", $name);
203                    $selected = ($id == $_id) ? " SELECTED" : "";
204                    echo "<OPTION VALUE=\"$_id\"$selected>$name</OPTION>\n";
205            }
206    ?></SELECT><?php endif; ?></TD><TD ALIGN="right" VALIGN="bottom" HEIGHT="1%" COLSPAN="2"><B>Date of last change:</B> <?php $tmp = getlastmod(); echo date("F d, Y.", $tmp)." at ".date("H:i:s", $tmp); ?></TD></TR>
207    <TR><TD COLSPAN="4" ALIGN="center" HEIGHT="1%"><HR WIDTH="100%" SIZE="2"></TD></TR>
208  <TR>  <TR>
209    
210  <TD WIDTH="33%" ALIGN="center" VALIGN="top">  <TD WIDTH="33%" ALIGN="center" VALIGN="top">
# Line 185  Line 227 
227  <UL>  <UL>
228  <LI>relevant competitors: <?php if ($edit && $ok_competition > 0): ?><INPUT TYPE="text" CLASS="text" NAME="competitors" VALUE="<?= $competitors ?>"><?php else: ?><?= $competitors ?><?php endif; ?></LI>  <LI>relevant competitors: <?php if ($edit && $ok_competition > 0): ?><INPUT TYPE="text" CLASS="text" NAME="competitors" VALUE="<?= $competitors ?>"><?php else: ?><?= $competitors ?><?php endif; ?></LI>
229  <LI>holders of the US DMF: <?php if ($edit && $ok_competition > 0): ?><INPUT TYPE="text" CLASS="text" NAME="holders" VALUE="<?= $holders ?>"><?php else: ?><?= $holders ?><?php endif; ?></LI>  <LI>holders of the US DMF: <?php if ($edit && $ok_competition > 0): ?><INPUT TYPE="text" CLASS="text" NAME="holders" VALUE="<?= $holders ?>"><?php else: ?><?= $holders ?><?php endif; ?></LI>
230  <LI>API market size 1999: <?php if ($edit && $ok_competition > 0): ?><INPUT TYPE="text" CLASS="text" NAME="market_size" VALUE="<?= $market_size ?>"><?php else: ?><?= $market_size ?><?php endif; ?> t/US$</LI>  <LI>API market size 1999: <?php if ($edit && $ok_competition > 0): ?><INPUT TYPE="text" CLASS="text" NAME="market_size" VALUE="<?= $market_size ?>"><?php else: ?><?= $market_size ?><?php endif; ?></LI>
231  </UL>  </UL>
232  <P<?php if ($err == 2): ?> CLASS="error" <?php endif; ?>><?php if ($edit && $ok_competition > 0): ?>&quot;<B>more data</B>&quot; URL: <INPUT TYPE="text" CLASS="text" NAME="info_competition" VALUE="<?= $info_competition ?>"><?php elseif ($info_competition): ?><B><A HREF="<?= $info_competition ?>">more data</A></B><?php else: ?>&nbsp;<?php endif; ?></P>  <P<?php if ($err == 2): ?> CLASS="error" <?php endif; ?>><?php if ($edit && $ok_competition > 0): ?>&quot;<B>more data</B>&quot; URL: <INPUT TYPE="text" CLASS="text" NAME="info_competition" VALUE="<?= $info_competition ?>"><?php elseif ($info_competition): ?><B><A HREF="<?= $info_competition ?>">more data</A></B><?php else: ?>&nbsp;<?php endif; ?></P>
233  </TD><?php else: ?><TD CLASS="cell1" ALIGN="center" VALIGN="middle"><?= $msg_no_data ?></TD><?php endif; ?></TR>  </TD><?php else: ?><TD CLASS="cell1" ALIGN="center" VALIGN="middle"><?= $msg_no_data ?></TD><?php endif; ?></TR>
234  </TABLE>  </TABLE>
235  </TD>  </TD>
236    
237  <TD WIDTH="33%" ALIGN="center" VALIGN="top">  <TD WIDTH="33%" ALIGN="center" VALIGN="top" COLSPAN="2">
238  <TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%">  <TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%">
239  <TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Quality and Regulations</B></TD></TR>  <TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Quality and Regulations</B></TD></TR>
240  <TR><?php if ($ok_quality >= 0): ?><TD CLASS="cell1" ALIGN="left" VALIGN="top">  <TR><?php if ($ok_quality >= 0): ?><TD CLASS="cell1" ALIGN="left" VALIGN="top">
# Line 235  Line 277 
277  </TABLE>  </TABLE>
278  </TD>  </TD>
279    
280  <TD WIDTH="33%" ALIGN="center" VALIGN="top">  <TD WIDTH="33%" ALIGN="center" VALIGN="top" COLSPAN="2">
281  <TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%">  <TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%">
282  <TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Dosage Form Market</B></TD></TR>  <TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Dosage Form Market</B></TD></TR>
283  <TR><?php if ($ok_dosage >= 0): ?><TD CLASS="cell1" ALIGN="left" VALIGN="top">  <TR><?php if ($ok_dosage >= 0): ?><TD CLASS="cell1" ALIGN="left" VALIGN="top">
# Line 271  Line 313 
313  </TABLE>  </TABLE>
314  </TD>  </TD>
315    
316  <TD WIDTH="33%" ROWSPAN="2" ALIGN="center" VALIGN="top">  <TD WIDTH="33%" ROWSPAN="2" ALIGN="center" VALIGN="top" COLSPAN="2">
317  <TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%">  <TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%">
318  <TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><SPAN CLASS="red"><B>Product Evaluation</B></SPAN></TD></TR>  <TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><SPAN CLASS="red"><B>Product Evaluation</B></SPAN></TD></TR>
319  <TR><?php if ($ok_evaluation >= 0): ?><TD CLASS="cell2" ALIGN="left" VALIGN="top">  <TR><?php if ($ok_evaluation >= 0): ?><TD CLASS="cell2" ALIGN="left" VALIGN="top">
# Line 290  Line 332 
332  <TD WIDTH="33%" ROWSPAN="3" ALIGN="center" VALIGN="top">  <TD WIDTH="33%" ROWSPAN="3" ALIGN="center" VALIGN="top">
333  <TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%">  <TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%">
334  <TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Sales: realisation&amp;plan / Price trend</B></SPAN></TD></TR>  <TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Sales: realisation&amp;plan / Price trend</B></SPAN></TD></TR>
335  <TR><TD CLASS="cell1" ALIGN="center" VALIGN="middle" HEIGHT="100%"><?php if ($ok_sales >= 0): ?><?php if ($edit && $ok_sales > 0): ?><B>Please choose an image to display here.</B><BR><BR><INPUT TYPE="file" CLASS="file" NAME="sales_img" VALUE="<?= $info_sales ?>"><BR><SMALL><I><B>NOTE:</B> The previously specified image will be used if no image is specified.</I></SMALL><?php elseif ($sales_img): ?><IMG SRC="img/<?= $sales_img ?>" BORDER="0"><?php else: ?>&nbsp;<?php endif; ?><?php else: ?><?= $msg_no_data ?><?php endif; ?></TD></TR>  <TR><TD CLASS="cell1" ALIGN="center" VALIGN="middle" HEIGHT="100%"><?php if ($ok_sales >= 0): ?><?php if ($edit && $ok_sales > 0): ?><B>Please choose an image to display here.</B><BR><BR><INPUT TYPE="file" CLASS="file" NAME="sales_img" VALUE="<?= $info_sales ?>"><BR><SMALL><I><B>NOTE:</B> The previously specified image will be used if no image is specified.</I></SMALL><?php elseif ($sales_img): ?><IMG SRC="img/<?= $sales_img ?>" BORDER="0" ALT=""><?php else: ?>&nbsp;<?php endif; ?><?php else: ?><?= $msg_no_data ?><?php endif; ?></TD></TR>
336  </TABLE>  </TABLE>
337  </TD>  </TD>
338    
# Line 312  Line 354 
354  </TABLE>  </TABLE>
355  </TD>  </TD>
356    
357  <TD WIDTH="33%" ROWSPAN="2" ALIGN="center" VALIGN="top">  <TD WIDTH="33%" ROWSPAN="2" ALIGN="center" VALIGN="top" COLSPAN="2">
358  <TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%">  <TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%">
359  <TR><TD CLASS="cell2" ALIGN="left" VALIGN="top"><B>Comments</B><BR><?php if ($ok_comment >= 0): ?><?php if ($edit && $ok_comment > 0): ?><TEXTAREA NAME="comment" WRAP="virtual" CLASS="ta2"><?= $comment ?></TEXTAREA><?php else: ?><BLOCKQUOTE><?php  <TR><TD CLASS="cell2" ALIGN="left" VALIGN="top"><B>Comments</B><BR><?php if ($ok_comment >= 0): ?><?php if ($edit && $ok_comment > 0): ?><TEXTAREA NAME="comment" WRAP="virtual" CLASS="ta2"><?= $comment ?></TEXTAREA><?php else: ?><BLOCKQUOTE><?php
360          $out = str_replace("&", "&amp;", $comment);          $out = str_replace("&", "&amp;", $comment);
# Line 321  Line 363 
363          $out = str_replace(">", "&gt;", $out);          $out = str_replace(">", "&gt;", $out);
364          $out = ereg_replace("\r?\n", "<BR>", $out);          $out = ereg_replace("\r?\n", "<BR>", $out);
365          echo $out;          echo $out;
366  ?></BLOCKQUOTE><?php endif; ?><?php else: ?><BR><BR><BR><BR><P CLASS="center"><?= $msg_no_data ?></P><?php endif; ?></TD></TR>  ?></BLOCKQUOTE><?php endif; ?><?php else: ?><BR><BR><BR><P CLASS="center"><?= $msg_no_data ?></P><?php endif; ?></TD></TR>
367  </TABLE>  </TABLE>
368  </TD>  </TD>
369    
370  </TR>  </TR>
371  <TR>  <TR>
372    
373  <TD WIDTH="33%">  <TD WIDTH="33%" HEIGHT="1%">
374  <TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%">  <TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%">
375  <TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Risks</B></TD></TR>  <TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Risks</B></TD></TR>
376  <TR><?php if ($ok_risks >= 0): ?><TD CLASS="cell1" ALIGN="left" VALIGN="middle">  <TR><?php if ($ok_risks >= 0): ?><TD CLASS="cell1" ALIGN="left" VALIGN="middle">
# Line 342  Line 384 
384    
385  </TR>  </TR>
386  <TR>  <TR>
387  <TD ALIGN="left" VALIGN="top"><?php if ($error): ?><FONT COLOR="#FF0000" SIZE="2"><B><?= $error ?></B><?php else: ?>&nbsp;<?php endif; ?></TD>  <TD ALIGN="left" VALIGN="top" COLSPAN="2"><?php if ($error): ?><FONT COLOR="#FF0000" SIZE="2"><B><?= $error ?></B><?php else: ?>&nbsp;<?php endif; ?></TD>
388  <TD COLSPAN="2" ALIGN="right"><?php if ($edit): ?><INPUT TYPE="submit" CLASS="button" VALUE="Cancel">&nbsp;<INPUT TYPE="submit" CLASS="button" NAME="save" VALUE="Save"><?php else: ?><INPUT TYPE="hidden" NAME="edit" VALUE="1"><INPUT TYPE="submit" CLASS="button" VALUE="Edit..."><?php endif; ?></TD>  <TD ALIGN="left" VALIGN="middle"><?php if ($edit): ?>&nbsp;<?php else: ?><SMALL CLASS="info">&nbsp;&nbsp;Logged in as <B><?= $PHP_AUTH_USER ?></B>.&nbsp;&nbsp;[<A HREF="?relogin=<?= $PHP_AUTH_USER ?>" CLASS="logout">Logout</A>]</SMALL><?php endif; ?></TD>
389    <TD ALIGN="right"><?php if ($edit): ?><INPUT TYPE="submit" CLASS="button" VALUE="Cancel">&nbsp;<INPUT TYPE="submit" CLASS="button" NAME="save" VALUE="Save"><?php else: ?><INPUT TYPE="hidden" NAME="edit" VALUE="1"><INPUT TYPE="submit" CLASS="button" VALUE="Edit..."><?php endif; ?></TD>
390  </TR>  </TR>
391  </TABLE>  </TABLE>
392  </TD></TR>  </TD></TR>
393    <INPUT TYPE="hidden" NAME="id" VALUE="<?= $id ?>">
394  </TABLE>  </TABLE>
395  <INPUT TYPE="hidden" NAME="id" VALUE="<?= $id ?>"></FORM>  </FORM>
396  <?php endif; ?>  <?php endif; ?>
397  </BODY>  </BODY>
398    <?php DBClose(); ?>
399  </HTML>  </HTML>

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.26