1 |
<? |
2 |
include("util.php"); |
3 |
$auth = true; |
4 |
if ($auth && (!isset($PHP_AUTH_USER) || !isset($PHP_AUTH_PW))) |
5 |
$auth = false; |
6 |
if ($auth) { |
7 |
include("conn.php"); |
8 |
DBOpen(); |
9 |
$row = DBQuery("SELECT password FROM users WHERE (login='$PHP_AUTH_USER')"); |
10 |
DBClose(); |
11 |
if (count($row) <= 0) $auth = false; |
12 |
if ($auth) { |
13 |
$row = $row[0]; |
14 |
if ($PHP_AUTH_PW != $row[0]) $auth = false; |
15 |
} |
16 |
} |
17 |
if (!$auth || $relogin == $PHP_AUTH_USER) { |
18 |
Header("WWW-Authenticate: Basic realm=\"fcproducts\""); |
19 |
Header("HTTP/1.0 401 Unauthorized"); |
20 |
echo "<HTML><B>No access.</B></HTML>\n"; |
21 |
exit; |
22 |
} |
23 |
// if (!$id) { echo "<HTML><B>No product ID!</B></HTML>\n"; exit; } |
24 |
if (!$id) { $id=1; } |
25 |
$error = ""; |
26 |
$msg = false; |
27 |
$err = 0; |
28 |
DBOpen(); |
29 |
$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')"); |
30 |
if (is_array($row[0]) && count($row[0]) > 0) bool_fix($row[0]); |
31 |
list($ok_market, $ok_production, $ok_purchasing, $ok_economics, |
32 |
$ok_risks, $ok_competition, $ok_potential, $ok_portfolio, |
33 |
$ok_sales, $ok_quality, $ok_dosage, $ok_evaluation, |
34 |
$ok_comment) = $row[0]; |
35 |
if ($save) { |
36 |
$error = ""; |
37 |
$q = array(); |
38 |
if ($error == "" && $ok_market > 0) { |
39 |
if (!CheckURL($info_market)) { $error = "Invalid URL."; $err = 1; } |
40 |
if ($error == "") array_push($q, "link_market='$info_market',cust_existing='$cust_existing',cust_potential='$cust_potential',fc_price='$fc_price'"); |
41 |
} |
42 |
if ($error == "" && $ok_competition > 0) { |
43 |
if (!CheckURL($info_competition)) { $error = "Invalid URL."; $err = 2; } |
44 |
if ($error == "") array_push($q, "link_competition='$info_competition',competitors='$competitors',holders='$holders',market_size='$market_size'"); |
45 |
} |
46 |
if ($error == "" && $ok_quality > 0) { |
47 |
if (!CheckURL($info_quality)) { $error = "Invalid URL."; $err = 3; } |
48 |
if ($error == "") array_push($q, "link_quality='$info_quality',quality='$quality',registrations='$registrations',last_fda='$last_fda'"); |
49 |
} |
50 |
if ($error == "" && $ok_production > 0) { |
51 |
if (!CheckURL($info_production)) { $error = "Invalid URL."; $err = 4; } |
52 |
if ($error == "") array_push($q, "link_production='$info_production',cap_nominal='$cap_nominal',cap_util='$cap_util'"); |
53 |
} |
54 |
if ($error == "" && $ok_potential > 0) { |
55 |
if (!CheckURL($info_potential)) { $error = "Invalid URL."; $err = 5; } |
56 |
if ($error == "") array_push($q, "link_potential='$info_potential',ther_class='$ther_class',indication='$indication'"); |
57 |
} |
58 |
if ($error == "" && $ok_dosage > 0) { |
59 |
if (!CheckURL($info_dosage)) { $error = "Invalid URL."; $err = 6; } |
60 |
if ($error == "") array_push($q, "link_dosage='$info_dosage',sales_1999='$sales_1999',launch_year='$launch_year'"); |
61 |
} |
62 |
if ($error == "" && $ok_purchasing > 0) { |
63 |
if (!CheckURL($info_purchasing)) { $error = "Invalid URL."; $err = 7; } |
64 |
if ($error == "") array_push($q, "link_purchasing='$info_purchasing',mat_raw='$mat_raw',suppliers='$suppliers',mat_cost='$mat_cost'"); |
65 |
} |
66 |
if ($error == "" && $ok_portfolio > 0) array_push($q, "fc_rank='$fc_rank',fc_share='$fc_share'"); |
67 |
if ($error == "" && $ok_evaluation > 0) array_push($q, "maturity='$maturity',comp_intensity='$comp_intensity',comp_position='$comp_position'"); |
68 |
if ($error == "" && $ok_economics > 0) { |
69 |
if (!CheckURL($info_economics)) { $error = "Invalid URL."; $err = 8; } |
70 |
if ($error == "") array_push($q, "link_economics='$info_economics',cogs='$cogs',op_income='$op_income',break_even='$break_even',m3='$m3'"); |
71 |
} |
72 |
if ($error == "" && $ok_risks > 0) { |
73 |
if (!CheckURL($info_risks)) { $error = "Invalid URL."; $err = 9; } |
74 |
if ($error == "") array_push($q, "link_risks='$info_risks',risks='$risks'"); |
75 |
} |
76 |
if ($error == "" && $ok_sales > 0) { |
77 |
list($name, $tmp, $type) = array($HTTP_POST_FILES["sales_img"]["name"], |
78 |
$HTTP_POST_FILES["sales_img"]["tmp_name"], |
79 |
$HTTP_POST_FILES["sales_img"]["type"]); |
80 |
if ($name) { |
81 |
list($maj, $min) = split("/", $type); |
82 |
if ($maj != "image") $error = "Only image files (GIF, JPEG, PNG) can be accepted."; |
83 |
if ($error == "") { |
84 |
$content = ""; |
85 |
$fp = fopen($tmp, "rb"); |
86 |
while (!feof($fp)) $content .= fgets($fp, 1024); |
87 |
fclose($fp); |
88 |
$md5 = md5($content); |
89 |
$ext = ""; |
90 |
switch ($min) { |
91 |
case "jpeg": case "jpg": $ext = ".jpg"; break; |
92 |
case "gif": $ext = ".gif"; break; |
93 |
case "png": $ext = ".png"; break; |
94 |
default: $x = strlen($name); while ($name[$x - 1] != "." && --$x > 0); if ($x > 0) $ext = substr($name, $x); break; |
95 |
} |
96 |
if (!move_uploaded_file($tmp, "img/".$md5.$ext)) |
97 |
$error = "An error occured while uploading image."; |
98 |
} |
99 |
if ($error == "") { |
100 |
$row = DBQuery("SELECT sales_img FROM products WHERE (product_id=$id)"); |
101 |
if ($row[0][0]) @unlink("img/".$row[0][0]); |
102 |
array_push($q, "link_sales='$name',sales_img='$md5$ext'"); |
103 |
} |
104 |
} |
105 |
} |
106 |
if ($error == "" && $ok_comment > 0) array_push($q, "comment='$comment'"); |
107 |
if ($error == "") { |
108 |
if (count($q) > 0) $q = "UPDATE products SET ".join(",", $q)." WHERE (product_id=$id)"; |
109 |
else $q = ""; |
110 |
$ret = ($q != "") ? DBQuery($q) : array(1); |
111 |
if ($ret[0] <= 0) $error = "Unable to update data."; |
112 |
} |
113 |
if ($error == "") $msg = true; else $edit = 1; |
114 |
} else { |
115 |
$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)"); |
116 |
if (count($row) <= 0) { echo "<HTML><B>No such product ID.</B></HTML>"; exit; } |
117 |
list($info_market, $info_production, $info_purchasing, |
118 |
$info_economics, $info_risks, $info_competition, |
119 |
$info_potential, $info_quality, $info_dosage, |
120 |
$info_sales, $comment, $cust_potential, $cust_existing, |
121 |
$fc_price, $competitors, $holders, $market_size, |
122 |
$quality, $registrations, $last_fda, $cap_nominal, |
123 |
$cap_util, $ther_class, $indication, $sales_1999, |
124 |
$launch_year, $mat_raw, $suppliers, $mat_cost, |
125 |
$fc_rank, $fc_share, $maturity, $comp_intensity, |
126 |
$comp_position, $cogs, $op_income, $break_even, |
127 |
$m3, $sales_img, $risks) = $row[0]; |
128 |
} |
129 |
$row = DBQuery("SELECT naziv FROM products WHERE (product_id=$id)"); |
130 |
list($product_name) = $row[0]; |
131 |
DBClose(); |
132 |
?> |
133 |
<HTML> |
134 |
<HEAD> |
135 |
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> |
136 |
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> |
137 |
<?php |
138 |
$ns_ua="Mozilla/4."; |
139 |
$old_netscape=false; |
140 |
if (substr($HTTP_USER_AGENT,0,strlen($ns_ua)) == $ns_ua) { |
141 |
$old_netscape=true; |
142 |
print '<LINK REL="StyleSheet" HREF="style-ns.css">'; |
143 |
} else { |
144 |
print '<LINK REL="StyleSheet" HREF="style.css">'; |
145 |
} |
146 |
?> |
147 |
<TITLE><?= $product_name ?></TITLE> |
148 |
<?php if ($msg): ?> |
149 |
<META HTTP-EQUIV="Refresh" CONTENT="1; URL=?id=<?= $id ?>"> |
150 |
<?php else: ?> |
151 |
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript"> |
152 |
<!-- // begin |
153 |
// Empty for now... |
154 |
// end --> |
155 |
</SCRIPT> |
156 |
<?php endif; ?> |
157 |
</HEAD> |
158 |
<BODY BGCOLOR="#FFFFFF" LINK="#000000" VLINK="#000000" ALINK="#FF0000"> |
159 |
<?php if ($msg): ?> |
160 |
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" HEIGHT="100%"><TR><TD ALIGN="center" VALIGN="middle"> |
161 |
<TABLE BORDER="5" BORDERCOLOR="#000000" CELLSPACING="0" CELLPADDING="20"><TR><TD> |
162 |
<FONT COLOR="#008000" STYLE="font-size: 32px;"><B><TT>Data successfully saved.</TT></B></FONT> |
163 |
</TD></TR></TABLE> |
164 |
</TD></TR></TABLE> |
165 |
<?php else: ?> |
166 |
<FORM ENCTYPE="multipart/form-data" METHOD="post" ACTION="<?= $PHP_SELF ?>"> |
167 |
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%" HEIGHT="100%"> |
168 |
<TR> |
169 |
<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> |
170 |
<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> |
171 |
<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> |
172 |
</TR> |
173 |
<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> |
174 |
<TR><TD COLSPAN="3" ALIGN="center" HEIGHT="1%"><HR WIDTH="100%" SIZE="2"></TD></TR> |
175 |
<TR> |
176 |
|
177 |
<TD WIDTH="33%" ALIGN="center" VALIGN="top"> |
178 |
<TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%"> |
179 |
<TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Market Position of Fine Chemicals</B></TD></TR> |
180 |
<TR><?php if ($ok_market >= 0): ?><TD CLASS="cell1" ALIGN="left" VALIGN="top"> |
181 |
<UL> |
182 |
<LI>customers: existing: <?php if ($edit && $ok_market > 0): ?><INPUT TYPE="text" CLASS="text" NAME="cust_existing" VALUE="<?= $cust_existing ?>"><?php else: ?><?= $cust_existing ?><?php endif; ?><BR>potential: <?php if ($edit && $ok_market > 0): ?><INPUT TYPE="text" CLASS="text" NAME="cust_potential" VALUE="<?= $cust_potential ?>"><?php else: ?><?= $cust_potential ?><?php endif; ?></LI> |
183 |
<LI>FC price and trend: <?php if ($edit && $ok_market > 0): ?><INPUT TYPE="text" CLASS="text" NAME="fc_price" VALUE="<?= $fc_price ?>"><?php else: ?><?= $fc_price ?><?php endif; ?></LI> |
184 |
</UL> |
185 |
<P<?php if ($err == 1): ?> CLASS="error" <?php endif; ?>><?php if ($edit && $ok_market > 0): ?>"<B>more data</B>" URL: <INPUT TYPE="text" CLASS="text" NAME="info_market" VALUE="<?= $info_market ?>"><?php elseif ($info_market): ?><B><A HREF="<?= $info_market ?>">more data</A></B><?php else: ?> <?php endif; ?></P> |
186 |
</TD><?php else: ?><TD CLASS="cell1" ALIGN="center" VALIGN="middle"><?= $msg_no_data ?></TD><?php endif; ?></TR> |
187 |
</TABLE> |
188 |
</TD> |
189 |
|
190 |
<TD WIDTH="33%" ALIGN="center" VALIGN="top"> |
191 |
<TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%"> |
192 |
<TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Competition</B></TD></TR> |
193 |
<TR><?php if ($ok_competition >= 0): ?><TD CLASS="cell1" ALIGN="left" VALIGN="top"> |
194 |
<UL> |
195 |
<LI>relevant competitors: <?php if ($edit && $ok_competition > 0): ?><INPUT TYPE="text" CLASS="text" NAME="competitors" VALUE="<?= $competitors ?>"><?php else: ?><?= $competitors ?><?php endif; ?></LI> |
196 |
<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> |
197 |
<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> |
198 |
</UL> |
199 |
<P<?php if ($err == 2): ?> CLASS="error" <?php endif; ?>><?php if ($edit && $ok_competition > 0): ?>"<B>more data</B>" 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: ?> <?php endif; ?></P> |
200 |
</TD><?php else: ?><TD CLASS="cell1" ALIGN="center" VALIGN="middle"><?= $msg_no_data ?></TD><?php endif; ?></TR> |
201 |
</TABLE> |
202 |
</TD> |
203 |
|
204 |
<TD WIDTH="33%" ALIGN="center" VALIGN="top"> |
205 |
<TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%"> |
206 |
<TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Quality and Regulations</B></TD></TR> |
207 |
<TR><?php if ($ok_quality >= 0): ?><TD CLASS="cell1" ALIGN="left" VALIGN="top"> |
208 |
<UL> |
209 |
<LI>product quality: <?php if ($edit && $ok_quality > 0): ?><INPUT TYPE="text" CLASS="text" NAME="quality" VALUE="<?= $quality ?>"><?php else: ?><?= $quality ?><?php endif; ?></LI> |
210 |
<LI>registration submissions: <?php if ($edit && $ok_quality > 0): ?><INPUT TYPE="text" CLASS="text" NAME="registrations" VALUE="<?= $registrations ?>"><?php else: ?><?= $registrations ?><?php endif; ?></LI> |
211 |
<LI>date of last FDA inspection: <?php if ($edit && $ok_quality > 0): ?><INPUT TYPE="text" CLASS="text" NAME="last_fda" VALUE="<?= $last_fda ?>"><?php else: ?><?= $last_fda ?><?php endif; ?></LI> |
212 |
</UL> |
213 |
<P<?php if ($err == 3): ?> CLASS="error" <?php endif; ?>><?php if ($edit && $ok_quality > 0): ?>"<B>more data</B>" URL: <INPUT TYPE="text" CLASS="text" NAME="info_quality" VALUE="<?= $info_quality ?>"><?php elseif ($info_quality): ?><B><A HREF="<?= $info_quality ?>">more data</A></B><?php else: ?> <?php endif; ?></P> |
214 |
</TD><?php else: ?><TD CLASS="cell1" ALIGN="center" VALIGN="middle"><?= $msg_no_data ?></TD><?php endif; ?></TR> |
215 |
</TABLE> |
216 |
</TD> |
217 |
|
218 |
</TR> |
219 |
<TR> |
220 |
|
221 |
<TD WIDTH="33%" ALIGN="center" VALIGN="top"> |
222 |
<TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%"> |
223 |
<TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Production</B></TD></TR> |
224 |
<TR><?php if ($ok_production >= 0): ?><TD CLASS="cell1" ALIGN="left" VALIGN="top"> |
225 |
<UL> |
226 |
<LI>nominal capacity: <?php if ($edit && $ok_production > 0): ?><INPUT TYPE="text" CLASS="text" NAME="cap_nominal" VALUE="<?= $cap_nominal ?>"><?php else: ?><?= $cap_nominal ?><?php endif; ?></LI> |
227 |
<LI>capacity utilisation: <?php if ($edit && $ok_production > 0): ?><INPUT TYPE="text" CLASS="text" NAME="cap_util" VALUE="<?= $cap_util ?>"><?php else: ?><?= $cap_util ?><?php endif; ?></LI> |
228 |
</UL> |
229 |
<P<?php if ($err == 4): ?> CLASS="error" <?php endif; ?>><?php if ($edit && $ok_production > 0): ?>"<B>more data</B>" URL: <INPUT TYPE="text" CLASS="text" NAME="info_production" VALUE="<?= $info_production ?>"></SPAN><?php elseif ($info_production): ?><B><A HREF="<?= $info_production ?>">more data</A></B><?php else: ?> <?php endif; ?></P> |
230 |
</TD><?php else: ?><TD CLASS="cell1" ALIGN="center" VALIGN="middle"><?= $msg_no_data ?></TD><?php endif; ?></TR> |
231 |
</TABLE> |
232 |
</TD> |
233 |
|
234 |
<TD WIDTH="33%" ALIGN="center" VALIGN="top"> |
235 |
<TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%"> |
236 |
<TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Therapeutic Potential</B></TD></TR> |
237 |
<TR><?php if ($ok_potential >= 0): ?><TD CLASS="cell1" ALIGN="left" VALIGN="top"> |
238 |
<UL> |
239 |
<LI>therapeutic class: <?php if ($edit && $ok_potential > 0): ?><INPUT TYPE="text" CLASS="text" NAME="ther_class" VALUE="<?= $ther_class ?>"><?php else: ?><?= $ther_class ?><?php endif; ?></LI> |
240 |
<LI>main indication: <?php if ($edit && $ok_potential > 0): ?><INPUT TYPE="text" CLASS="text" NAME="indication" VALUE="<?= $indication ?>"><?php else: ?><?= $indication ?><?php endif; ?></LI> |
241 |
</UL> |
242 |
<P<?php if ($err == 5): ?> CLASS="error" <?php endif; ?>><?php if ($edit && $ok_potential > 0): ?>"<B>more data</B>" URL: <INPUT TYPE="text" CLASS="text" NAME="info_potential" VALUE="<?= $info_potential ?>"></SPAN><?php elseif ($info_potential): ?><B><A HREF="<?= $info_potential ?>">more data</A></B><?php else: ?> <?php endif; ?></P> |
243 |
</TD><?php else: ?><TD CLASS="cell1" ALIGN="center" VALIGN="middle"><?= $msg_no_data ?></TD><?php endif; ?></TR> |
244 |
</TABLE> |
245 |
</TD> |
246 |
|
247 |
<TD WIDTH="33%" ALIGN="center" VALIGN="top"> |
248 |
<TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%"> |
249 |
<TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Dosage Form Market</B></TD></TR> |
250 |
<TR><?php if ($ok_dosage >= 0): ?><TD CLASS="cell1" ALIGN="left" VALIGN="top"> |
251 |
<UL> |
252 |
<LI>sales 1999 and 5-year trend: <?php if ($edit && $ok_dosage > 0): ?><INPUT TYPE="text" CLASS="text" NAME="sales_1999" VALUE="<?= $sales_1999 ?>"><?php else: ?><?= $sales_1999 ?><?php endif; ?></LI> |
253 |
<LI>originator & year of launch: <?php if ($edit && $ok_dosage > 0): ?><INPUT TYPE="text" CLASS="text" NAME="launch_year" VALUE="<?= $launch_year ?>"><?php else: ?><?= $launch_year ?><?php endif; ?></LI> |
254 |
</UL> |
255 |
<P<?php if ($err == 6): ?> CLASS="error" <?php endif; ?>><?php if ($edit && $ok_dosage > 0): ?>"<B>more data</B>" URL: <INPUT TYPE="text" CLASS="text" NAME="info_dosage" VALUE="<?= $info_dosage ?>"></SPAN><?php elseif ($info_dosage): ?><B><A HREF="<?= $info_dosage ?>">more data</A></B><?php else: ?> <?php endif; ?></P> |
256 |
</TD><?php else: ?><TD CLASS="cell1" ALIGN="center" VALIGN="middle"><?= $msg_no_data ?></TD><?php endif; ?></TR> |
257 |
</TABLE> |
258 |
</TD> |
259 |
|
260 |
</TR> |
261 |
<TR> |
262 |
|
263 |
<TD WIDTH="33%" ROWSPAN="2" ALIGN="center" VALIGN="top"> |
264 |
<TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%"> |
265 |
<TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Purchasing</B></TD></TR> |
266 |
<TR><?php if ($ok_purchasing >= 0): ?><TD CLASS="cell1" ALIGN="left" VALIGN="top"> |
267 |
<UL> |
268 |
<LI>key intermediates/raw materials: <?php if ($edit && $ok_purchasing > 0): ?><INPUT TYPE="text" CLASS="text" NAME="mat_raw" VALUE="<?= $mat_raw ?>"><?php else: ?><?= $mat_raw ?><?php endif; ?></LI> |
269 |
<LI>approved suppliers: <?php if ($edit && $ok_purchasing > 0): ?><INPUT TYPE="text" CLASS="text" NAME="suppliers" VALUE="<?= $suppliers ?>"><?php else: ?><?= $suppliers ?><?php endif; ?></LI> |
270 |
<LI>material cost trend (standards): <?php if ($edit && $ok_purchasing > 0): ?><INPUT TYPE="text" CLASS="text" NAME="mat_cost" VALUE="<?= $mat_cost ?>"><?php else: ?><?= $mat_cost ?><?php endif; ?></LI> |
271 |
</UL> |
272 |
<P<?php if ($err == 7): ?> CLASS="error" <?php endif; ?>><?php if ($edit && $ok_purchasing > 0): ?>"<B>more data</B>" URL: <INPUT TYPE="text" CLASS="text" NAME="info_purchasing" VALUE="<?= $info_purchasing ?>"><?php elseif ($info_purchasing): ?><B><A HREF="<?= $info_purchasing ?>">more data</A></B><?php else: ?> <?php endif; ?></P> |
273 |
</TD><?php else: ?><TD CLASS="cell1" ALIGN="center" VALIGN="middle"><?= $msg_no_data ?></TD><?php endif; ?></TR> |
274 |
</TABLE> |
275 |
</TD> |
276 |
|
277 |
<TD WIDTH="33%" ALIGN="center" VALIGN="top"> |
278 |
<TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%"> |
279 |
<TR><TD CLASS="cell2" ALIGN="center" VALIGN="middle"><?php if ($ok_portfolio >= 0): ?><B>Rank in FC portfolio: <?php if ($edit && $ok_portfolio > 0): ?><INPUT TYPE="text" CLASS="text2" NAME="fc_rank" VALUE="<?= $fc_rank ?>"><?php else: ?><?= $fc_rank ?><?php endif; ?><BR>Share in FC portfolio: <?php if ($edit && $ok_portfolio > 0): ?><INPUT TYPE="text" CLASS="text2" NAME="fc_share" VALUE="<?= $fc_share ?>"><?php else: ?><?= $fc_share ?><?php endif; ?></B><?php else: ?><?= $msg_no_data ?><?php endif; ?></TD></TR> |
280 |
</TABLE> |
281 |
</TD> |
282 |
|
283 |
<TD WIDTH="33%" ROWSPAN="2" ALIGN="center" VALIGN="top"> |
284 |
<TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%"> |
285 |
<TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><SPAN CLASS="red"><B>Product Evaluation</B></SPAN></TD></TR> |
286 |
<TR><?php if ($ok_evaluation >= 0): ?><TD CLASS="cell2" ALIGN="left" VALIGN="top"> |
287 |
<UL> |
288 |
<LI><B>Maturity: <?php if ($edit && $ok_evaluation > 0): ?><INPUT TYPE="text" CLASS="text2" NAME="maturity" VALUE="<?= $maturity ?>"><?php else: ?><?= $maturity ?><?php endif; ?></B></LI> |
289 |
<LI><B>Competitive intensity: <?php if ($edit && $ok_evaluation > 0): ?><INPUT TYPE="text" CLASS="text2" NAME="comp_intensity" VALUE="<?= $comp_intensity ?>"><?php else: ?><?= $comp_intensity ?><?php endif; ?></B></LI> |
290 |
<LI CLASS="red"><B>Competitive position: <?php if ($edit && $ok_evaluation > 0): ?><INPUT TYPE="text" CLASS="text2" NAME="comp_position" VALUE="<?= $comp_position ?>"><?php else: ?><?= $comp_position ?><?php endif; ?></B></LI> |
291 |
</UL> |
292 |
</TD><?php else: ?><TD CLASS="cell2" ALIGN="center" VALIGN="middle"><?= $msg_no_data ?></TD><?php endif; ?></TR> |
293 |
</TABLE> |
294 |
</TD> |
295 |
|
296 |
</TR> |
297 |
<TR> |
298 |
|
299 |
<TD WIDTH="33%" ROWSPAN="3" ALIGN="center" VALIGN="top"> |
300 |
<TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%"> |
301 |
<TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Sales: realisation&plan / Price trend</B></SPAN></TD></TR> |
302 |
<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: ?> <?php endif; ?><?php else: ?><?= $msg_no_data ?><?php endif; ?></TD></TR> |
303 |
</TABLE> |
304 |
</TD> |
305 |
|
306 |
</TR> |
307 |
<TR> |
308 |
|
309 |
<TD WIDTH="33%" ALIGN="center" VALIGN="top"> |
310 |
<TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%"> |
311 |
<TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Product Economics</B></TD></TR> |
312 |
<TR><?php if ($ok_economics >= 0): ?><TD CLASS="cell1" ALIGN="left" VALIGN="middle"> |
313 |
<UL> |
314 |
<LI>% COGS: <?php if ($edit && $ok_economics > 0): ?><INPUT TYPE="text" CLASS="text" NAME="cogs" VALUE="<?= $cogs ?>"><?php else: ?><?= $cogs ?><?php endif; ?></LI> |
315 |
<LI>% operating income: <?php if ($edit && $ok_economics > 0): ?><INPUT TYPE="text" CLASS="text" NAME="op_income" VALUE="<?= $op_income ?>"><?php else: ?><?= $op_income ?><?php endif; ?></LI> |
316 |
<LI>break even point: <?php if ($edit && $ok_economics > 0): ?><INPUT TYPE="text" CLASS="text" NAME="break_even" VALUE="<?= $break_even ?>"><?php else: ?><?= $break_even ?><?php endif; ?></LI> |
317 |
<LI>US$ /m<SUP>3</SUP>/ day: <?php if ($edit && $ok_economics > 0): ?><INPUT TYPE="text" CLASS="text" NAME="m3" VALUE="<?= $m3 ?>"><?php else: ?><?= $m3 ?><?php endif; ?></LI> |
318 |
</UL> |
319 |
<P<?php if ($err == 8): ?> CLASS="error" <?php endif; ?>><?php if ($edit && $ok_economics > 0): ?>"<B>more data</B>" URL: <INPUT TYPE="text" CLASS="text" NAME="info_economics" VALUE="<?= $info_economics ?>"><?php elseif ($info_economics): ?><B><A HREF="<?= $info_economics ?>">more data</A></B><?php else: ?> <?php endif; ?></P> |
320 |
</TD><?php else: ?><TD CLASS="cell2" ALIGN="center" VALIGN="middle"><?= $msg_no_data ?></TD><?php endif; ?></TR> |
321 |
</TABLE> |
322 |
</TD> |
323 |
|
324 |
<TD WIDTH="33%" ROWSPAN="2" ALIGN="center" VALIGN="top"> |
325 |
<TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%"> |
326 |
<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 |
327 |
$out = str_replace("&", "&", $comment); |
328 |
$out = str_replace(" ", " ", $out); |
329 |
$out = str_replace("<", "<", $out); |
330 |
$out = str_replace(">", ">", $out); |
331 |
$out = ereg_replace("\r?\n", "<BR>", $out); |
332 |
echo $out; |
333 |
?></BLOCKQUOTE><?php endif; ?><?php else: ?><BR><BR><BR><BR><P CLASS="center"><?= $msg_no_data ?></P><?php endif; ?></TD></TR> |
334 |
</TABLE> |
335 |
</TD> |
336 |
|
337 |
</TR> |
338 |
<TR> |
339 |
|
340 |
<TD WIDTH="33%"> |
341 |
<TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%"> |
342 |
<TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Risks</B></TD></TR> |
343 |
<TR><?php if ($ok_risks >= 0): ?><TD CLASS="cell1" ALIGN="left" VALIGN="middle"> |
344 |
<UL> |
345 |
<LI>key risks: <?php if ($edit && $ok_risks > 0): ?><INPUT TYPE="text" CLASS="text" NAME="risks" VALUE="<?= $risks ?>"><?php else: ?><?= $risks ?><?php endif; ?></LI> |
346 |
</UL> |
347 |
<P<?php if ($err == 9): ?> CLASS="error" <?php endif; ?>><?php if ($edit && $ok_risks > 0): ?>"<B>more data</B>" URL: <INPUT TYPE="text" CLASS="text" NAME="info_risks" VALUE="<?= $info_risks ?>"><?php elseif ($info_risks): ?><B><A HREF="<?= $info_risks ?>">more data</A></B><?php else: ?> <?php endif; ?></P> |
348 |
</TD><?php else: ?><TD CLASS="cell1" ALIGN="center" VALIGN="middle"><?= $msg_no_data ?></TD><?php endif; ?></TR> |
349 |
</TABLE> |
350 |
</TD> |
351 |
|
352 |
</TR> |
353 |
<TR> |
354 |
<TD ALIGN="left" VALIGN="top"><?php if ($error): ?><FONT COLOR="#FF0000" SIZE="2"><B><?= $error ?></B><?php else: ?> <?php endif; ?></TD> |
355 |
<TD COLSPAN="2" ALIGN="right"><?php if ($edit): ?><INPUT TYPE="submit" CLASS="button" VALUE="Cancel"> <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> |
356 |
</TR> |
357 |
</TABLE> |
358 |
</TD></TR> |
359 |
</TABLE> |
360 |
<INPUT TYPE="hidden" NAME="id" VALUE="<?= $id ?>"></FORM> |
361 |
<?php endif; ?> |
362 |
</BODY> |
363 |
</HTML> |