/[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.7 by ravilov, Wed Jun 6 10:54:22 2001 UTC revision 1.8 by ravilov, Thu Jun 7 06:06:05 2001 UTC
# Line 168  Line 168 
168          if ($old_netscape) echo "<LINK REL=\"StyleSheet\" HREF=\"style-ns.css\">\n";          if ($old_netscape) echo "<LINK REL=\"StyleSheet\" HREF=\"style-ns.css\">\n";
169                  else echo "<LINK REL=\"StyleSheet\" HREF=\"style.css\">\n";                  else echo "<LINK REL=\"StyleSheet\" HREF=\"style.css\">\n";
170  ?>  ?>
171  <TITLE><?= $product_name ?></TITLE>  <TITLE><?= ereg_replace("\r?\n(.*)$", " (\\1)", $product_name); ?></TITLE>
172  <?php if ($msg): ?>  <?php if ($msg): ?>
173  <META HTTP-EQUIV="Refresh" CONTENT="1; URL=?id=<?= $id ?>">  <META HTTP-EQUIV="Refresh" CONTENT="1; URL=?id=<?= $id ?>">
174  <?php else: ?>  <?php else: ?>
# Line 190  Line 190 
190  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%" HEIGHT="100%">  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%" HEIGHT="100%">
191  <TR>  <TR>
192  <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>  <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>
193  <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><?= ereg_replace("\r?\n(.*)$", "<BR><SMALL>\\1</SMALL>", $product_name); ?></B></TD></TR></TABLE></TD>
194  <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>  <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>
195  </TR>  </TR>
196  <FORM ENCTYPE="multipart/form-data" METHOD="post" ACTION="<?= $PHP_SELF ?>">  <FORM ENCTYPE="multipart/form-data" METHOD="post" ACTION="<?= $PHP_SELF ?>">
# Line 198  Line 198 
198          $row = DBQuery("SELECT product_id,naziv FROM products ORDER BY naziv");          $row = DBQuery("SELECT product_id,naziv FROM products ORDER BY naziv");
199          while (list($key, $val) = each($row)) {          while (list($key, $val) = each($row)) {
200                  list($_id, $name) = $val;                  list($_id, $name) = $val;
201                    $name = ereg_replace("\r?\n.*$", "", $name);
202                  $selected = ($id == $_id) ? " SELECTED" : "";                  $selected = ($id == $_id) ? " SELECTED" : "";
203                  echo "<OPTION VALUE=\"$_id\"$selected>$name</OPTION>\n";                  echo "<OPTION VALUE=\"$_id\"$selected>$name</OPTION>\n";
204          }          }
# Line 227  Line 228 
228  <UL>  <UL>
229  <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>
230  <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>
231  <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>
232  </UL>  </UL>
233  <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>
234  </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>

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.26