PageRenderTime 60ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 1ms

/PO/detail_tmp.php

https://github.com/tlezotte/ePOS
PHP | 1767 lines | 1508 code | 85 blank | 174 comment | 194 complexity | f2d83223271746a2a3987d4578d5dbec MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /**
  3. * Request System
  4. *
  5. * detail.php displays detailed information on PO.
  6. *
  7. * @version 1.5
  8. * @link http://www.yourdomain.com/go/Request/
  9. * @author Thomas LeZotte (tom@lezotte.net)
  10. *
  11. * @package PO
  12. * @filesource
  13. *
  14. * PHP Debug
  15. * @link http://phpdebug.sourceforge.net/
  16. * PDF Toolkit
  17. * @link http://www.accesspdf.com/
  18. */
  19. /**
  20. * - Forward BlackBerry users to BlackBerry version
  21. */
  22. require_once('../include/BlackBerry.php');
  23. /**
  24. * - Start Page Loading Timer
  25. */
  26. include_once('../include/Timer.php');
  27. $starttime = StartLoadTimer();
  28. /**
  29. * - Set debug mode
  30. */
  31. $debug_page = false;
  32. include_once('debug/header.php');
  33. /**
  34. * - Database Connection
  35. */
  36. require_once('../Connections/connDB.php');
  37. /**
  38. * - Config Information
  39. */
  40. require_once('../include/config.php');
  41. /**
  42. * - Check User Access
  43. */
  44. require_once('../security/check_user.php');
  45. /**
  46. * - Form Validation
  47. */
  48. //include('vdaemon/vdaemon.php');
  49. /* -------------------------------------------------------------
  50. * ------------- START FINANCE PROCESSING -------------------
  51. * -------------------------------------------------------------
  52. */
  53. if ($_POST['action'] == 'finance_update') {
  54. $changePlant = false;
  55. $changeDepartment = false;
  56. /* ----- Controller changes Plant ----- */
  57. if ($_POST['currentPlant'] != $_POST['plant']) {
  58. $plant_sql = "UPDATE PO SET plant='" . $_POST['plant'] . "' WHERE id=" . $_POST['type_id']; // Update Bill to Plant
  59. $dbh->query($plant_sql);
  60. if ($default['debug_capture'] == 'on') {
  61. debug_capture($_SESSION['eid'], $_POST['id'], 'debug', $_SERVER['PHP_SELF'], addslashes(htmlentities($plant_sql))); // Record transaction for history
  62. }
  63. $changePlant = true;
  64. }
  65. /* ----- Controller changes Department ----- */
  66. if ($_POST['currentDepartment'] != $_POST['department']) {
  67. $dept_sql = "UPDATE PO SET department='" . $_POST['department'] . "' WHERE id=" . $_POST['type_id']; // Update Department
  68. $dbh->query($dept_sql);
  69. if ($default['debug_capture'] == 'on') {
  70. debug_capture($_SESSION['eid'], $_POST['id'], 'debug', $_SERVER['PHP_SELF'], addslashes(htmlentities($dept_sql))); // Record transaction for history
  71. }
  72. $changeDepartment = false; // Turned off because we are not checking for departments now (HQ)
  73. }
  74. /* ----- Forward to new Controller ----- */
  75. if ($changePlant OR $changeDepartment) {
  76. $forward = "router.php?type_id=" . $_POST['type_id'] . "&approval=controller&plant=" . $_POST['plant'] . "&department=" . $_POST['department']; // Check Controler
  77. header("Location: ".$forward);
  78. exit();
  79. }
  80. /* ----- Cycle through items ----- */
  81. for ($x=1; $x <= $_POST['items_count']; $x++) {
  82. $item = "item" . $x; // Item ID
  83. $item_COA = $item . "_newCOA"; // COA value
  84. $item_COAid = $item_COA . "id"; // COA value ID
  85. if (strlen($_POST[$item_COAid]) > 0) {
  86. $item_sql = "UPDATE Items SET cat='" . $_POST[$item_COAid] . "' WHERE id=" . $_POST[$item];
  87. $dbh->query($item_sql);
  88. if ($default['debug_capture'] == 'on') {
  89. debug_capture($_SESSION['eid'], $_POST['id'], 'debug', $_SERVER['PHP_SELF'], addslashes(htmlentities($item_sql))); // Record transaction for history
  90. }
  91. }
  92. }
  93. /* ----- Update CER numbers and Credit Card ----- */
  94. $po_sql = "UPDATE PO SET cer='" . $_POST['cer'] . "',
  95. creditcard='" . $_POST['creditcard'] . "'
  96. WHERE id=" . $_POST['type_id'];
  97. $dbh->query($po_sql);
  98. if ($default['debug_capture'] == 'on') {
  99. debug_capture($_SESSION['eid'], $_POST['id'], 'debug', $_SERVER['PHP_SELF'], addslashes(htmlentities($po_sql))); // Record transaction for history
  100. }
  101. }
  102. /* -------------------------------------------------------------
  103. * ------------- END FINANCE PROCESSING -------------------
  104. * -------------------------------------------------------------
  105. */
  106. /* -------------------------------------------------------------
  107. * ---------- START DENIAL PROCESSING --------------------------
  108. * -------------------------------------------------------------
  109. */
  110. if (substr($_POST['auth'],0,3) == 'app' OR $_POST['auth'] == 'controller') {
  111. if (array_key_exists('yes_x', $_POST)) { $yn = "yes"; } // Set approval button pressed
  112. if (array_key_exists('no_x', $_POST)) { $yn = "no"; } // Set approval button pressed
  113. /* ---------------- Check to see if a Comment was provided ---------------- */
  114. if (empty($_POST['Com']) AND $yn == 'no') {
  115. $_SESSION['error'] = "A denied Requisition requires you to enter a Comment.";
  116. $_SESSION['redirect'] = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
  117. header("location: ../error.php");
  118. exit();
  119. }
  120. /* ---------------- Change status for non approved request ---------------- */
  121. if ($yn == 'no') {
  122. setRequestStatus($_POST['type_id'], 'X'); // Update PO status
  123. }
  124. /* ---------------- Update the approvals for the PO ---------------- */
  125. $auth_sql = "UPDATE Authorization
  126. SET ".$_POST['auth']."yn='" . $yn . "',
  127. ".$_POST['auth']."Date=NOW(),
  128. ".$_POST['auth']."Com='" . htmlentities($_POST['Com'], ENT_QUOTES, 'UTF-8') . "'
  129. WHERE id = ".$_POST['auth_id'];
  130. $dbh->query($auth_sql);
  131. if ($default['debug_capture'] == 'on') {
  132. debug_capture($_SESSION['eid'], $_POST['id'], 'debug', $_SERVER['PHP_SELF'], addslashes(htmlentities($auth_sql))); // Record transaction for history
  133. }
  134. if ($_POST['auth'] == 'controller') {
  135. $forward = "router.php?type_id=" . $_POST['type_id'] . "&approval=app0"; // Forward to Approver 1
  136. } else {
  137. $forward = "router.php?type_id=" . $_POST['type_id'] . "&approval=" . $_POST['auth'] . "&yn=" . $yn; // Record Controllers Approval
  138. }
  139. header("Location: ".$forward);
  140. exit();
  141. }
  142. /* -------------------------------------------------------------
  143. * ---------- END DENIAL PROCESSING ----------------------------
  144. * -------------------------------------------------------------
  145. */
  146. /* -------------------------------------------------------------
  147. * ------------- START UPDATE PROCESSING -----------------------
  148. * -------------------------------------------------------------
  149. */
  150. if ($_POST['stage'] == "update") {
  151. /* -------------------------------------------------------------
  152. * ---------- START REQUESTER PROCESSING -----------------------
  153. * -------------------------------------------------------------
  154. */
  155. if ($_POST['auth'] == "req") {
  156. /* ---------------- START CANCEL PURCHASE ORDER -------------- */
  157. if ($_POST['cancel'] == 'yes') {
  158. setRequestStatus($_POST['type_id'], 'C'); // Update PO status
  159. header("location: list.php?action=my&access=0");
  160. exit();
  161. }
  162. /* --------- END CANCEL PURCHASE ORDER ----------------------- */
  163. /* ---------------- START COPY PURCHASE ORDER ---------------- */
  164. // if (array_key_exists('copyrequest_x',$_POST)) {
  165. // /* Getting PO information */
  166. // $PO = $dbh->getRow("SELECT *, DATE_FORMAT(reqDate,'%M %e, %Y') AS _reqDate
  167. // FROM PO
  168. // WHERE id = ?",array($_POST['type_id']));
  169. //
  170. // /* -- Read $PO into $_SESSION -- */
  171. // foreach ($PO as $key => $value) {
  172. // $_SESSION[$key] = $value;
  173. // }
  174. //
  175. // header("location: information.php");
  176. // exit();
  177. // }
  178. /* --------- END COPY PURCHASE ORDER ----------------------- */
  179. /* ---------------- START RESEND PURCHASE ORDER ---------------- */
  180. if (array_key_exists('restorerequest_x',$_POST)) {
  181. setRequestStatus($_POST['type_id'], 'N'); // Update PO status
  182. header("location: router.php?type_id=" . $_POST['type_id'] . "&approval=app0"); // Forward to router as new Request
  183. exit();
  184. }
  185. /* --------- END RESEND PURCHASE ORDER ----------------------- */
  186. }
  187. /* -------------------------------------------------------------
  188. * ---------- END REQUESTER PROCESSING -----------------------
  189. * -------------------------------------------------------------
  190. */
  191. }
  192. /* -------------------------------------------------------------
  193. * ------------- END UPDATE PROCESSING -----------------------
  194. * -------------------------------------------------------------
  195. */
  196. /* -------------------------------------------------------------
  197. * ------------- START PURCHASING PROCESSING -------------------
  198. * -------------------------------------------------------------
  199. */
  200. if ($_POST['action'] == 'purchasing_update') {
  201. /* ------------- Adding supplier contact information ------------- */
  202. if (array_key_exists('sendPO_x',$_POST)) {
  203. print_r($_POST);
  204. exit();
  205. }
  206. /* ------------- Adding supplier contact information ------------- */
  207. if (array_key_exists('addContact_x',$_POST)) {
  208. $status = ($_POST['cc_save'] == 'no') ? '1' : '0';
  209. $sql = "INSERT INTO Contacts VALUES (NULL,
  210. '" . $_POST['id'] . "',
  211. '" . $_SESSION['eid'] . "',
  212. NOW(),
  213. '" . $_POST['cc_name'] . "',
  214. '" . $_POST['cc_phone'] . "',
  215. '" . $_POST['cc_ext'] . "',
  216. '" . $_POST['cc_fax'] . "',
  217. '" . $_POST['cc_email'] . "',
  218. '" . $status . "'
  219. )";
  220. $dbh->query($sql);
  221. header("location: " . $_SERVER['PHP_SELF'] . "?id=" . $_POST['id']);
  222. exit();
  223. }
  224. /* ------------- Adding payment information ------------- */
  225. if (array_key_exists('addPayment_x',$_POST)) {
  226. $sql = "INSERT INTO Payments VALUES (NULL,
  227. '" . $_POST['id'] . "',
  228. '" . $_SESSION['eid'] . "',
  229. NOW(),
  230. '" . mysql_real_escape_string($_POST['pay_amount']) . "',
  231. '" . mysql_real_escape_string($_POST['paymentDate']) . "',
  232. '0')";
  233. $dbh->query($sql);
  234. header("location: " . $_SERVER['PHP_SELF'] . "?id=" . $_POST['id']);
  235. exit();
  236. }
  237. /* ------------- Update payment information ------------- */
  238. if (array_key_exists('updatePayments_x',$_POST)) {
  239. for ($i=1; $i <= $_POST['payments_count']; $i++) {
  240. $pay_id = "pay_id" . $i;
  241. $pay_amount = "pay_amount" . $i;
  242. $pay_date = "pay_date" . $i;
  243. $pay_remove = "pay_remove" . $i;
  244. $pay_status = ($_POST[$pay_remove] == 'yes') ? 1 : 0;
  245. $sql = "UPDATE Payments SET pay_eid = '" . $_SESSION['eid'] . "',
  246. pay_recorded = NOW(),
  247. pay_amount = '" . mysql_real_escape_string($_POST[$pay_amount]) . "',
  248. pay_date = '" . mysql_real_escape_string($_POST[$pay_date]) . "',
  249. pay_status = '" . $pay_status . "'
  250. WHERE pay_id = " . $_POST[$pay_id];
  251. $dbh->query($sql);
  252. }
  253. header("location: " . $_SERVER['PHP_SELF'] . "?id=" . $_POST['id']);
  254. exit();
  255. }
  256. /* ------------- Purchaser marks Request as Complete ------------- */
  257. if (array_key_exists('completed_x',$_POST)) {
  258. /* Record Purchasing agent */
  259. $auth_sql = "UPDATE Authorization SET issuer='" . $_SESSION['eid'] . "',
  260. issuerDate=NOW(),
  261. level='O'
  262. WHERE id = " . $_POST['auth_id'];
  263. $dbh->query($auth_sql);
  264. /* Update Request Status */
  265. $po_sql = "UPDATE PO SET po='" . $_POST['po'] . "',
  266. status='O'
  267. WHERE id = " . $_POST['id'];
  268. $dbh->query($po_sql);
  269. sendCompleted($_POST['req'],$_POST['id'],htmlspecialchars($_POST['purpose']),$_POST['po'], $_SESSION['eid']); // Send email to Requester
  270. //sendVendor($_POST['id']);
  271. header("location: " . $_SERVER['PHP_SELF'] . "?id=" . $_POST['id']);
  272. exit();
  273. }
  274. /* ------------- Add Vendor and change Terms when Purchasing changes Vendor ------------- */
  275. if (strlen($_POST['vendSearch']) > 0) {
  276. $supplier2 = "sup2='" . $_POST['supplierNew'] . "',";
  277. $supplier2 .= "terms='" . $_POST['supplierNewTerms'] . "',";
  278. } else {
  279. $supplier2 = "terms='".$_POST['terms']."',";
  280. }
  281. /* ------------- Creating update fields ------------- */
  282. $PO = "fob='".$_POST['fob']."',
  283. via='".$_POST['via']."',
  284. purchaseUpdate=NOW(),
  285. reqType='".$_POST['reqtype']."',
  286. $supplier2
  287. private='".$_POST['private']."',
  288. hot='".$_POST['hot']."'
  289. ";
  290. $sql = "UPDATE PO SET $PO WHERE id = ".$_POST['id'];
  291. $dbh->query($sql);
  292. History($_SESSION['eid'], 'update', $_SERVER['PHP_SELF'], addslashes(htmlentities($sql))); // Record transaction for history
  293. header("location: " . $_SERVER['PHP_SELF'] . "?id=" . $_POST['id']);
  294. exit();
  295. }
  296. /* -------------------------------------------------------------
  297. * ------------- END PURCHASING PROCESSING -------------------
  298. * -------------------------------------------------------------
  299. */
  300. /* -------------------------------------------------------------
  301. * ------------- START DATABASE CONNECTIONS -------------------
  302. * -------------------------------------------------------------
  303. */
  304. /* ------------- Getting PO information ------------- */
  305. $PO = $dbh->getRow("SELECT *, DATE_FORMAT(reqDate,'%M %e, %Y') AS _reqDate
  306. FROM PO
  307. WHERE id = ?",array($_GET['id']));
  308. /* ------------- Getting Authoriztions for above PO ------------- */
  309. $AUTH = $dbh->getRow("SELECT * FROM Authorization WHERE type_id = ? and type = 'PO'",array($PO['id']));
  310. /* ------------- Get Employee names from Standards database ------------- */
  311. $EMPLOYEES = $dbh->getAssoc("SELECT eid, CONCAT(fst,' ',lst) AS name
  312. FROM Standards.Employees");
  313. /* ------------- Getting Vendor information from Standards ------------- */
  314. $VENDOR = $dbh->getAssoc("SELECT BTVEND, BTNAME FROM Standards.Vendor");
  315. /* ------------- Getting Company information from Standards ------------- */
  316. //$COMPANY = $dbh->getAssoc("SELECT id, name FROM Standards.Companies");
  317. /* ------------- Getting Plant information from Standards ------------- */
  318. $plant_sql = "SELECT id, name FROM Standards.Plants WHERE status = '0'";
  319. $PLANTS = $dbh->getAssoc($plant_sql);
  320. $plant_query = $dbh->prepare($plant_sql);
  321. $PLANT = $dbh->getRow("SELECT * FROM Standards.Plants WHERE id=" . $PO['plant']);
  322. /* ------------- Getting Department information from Standards ------------- */
  323. $dept_sql = "SELECT id, CONCAT('(',id,') ',name) AS fullname FROM Standards.Department WHERE status='0' ORDER BY name";
  324. $DEPARTMENT = $dbh->getAssoc($dept_sql);
  325. $dept_query = $dbh->prepare($dept_sql);
  326. /* ------------- Getting Category information from Standards ------------- */
  327. $COA = $dbh->getAssoc("SELECT CONCAT(coa_account,'-',coa_suffix) AS id, coa_description AS name
  328. FROM Standards.COA
  329. WHERE coa_plant=" . $PLANT['conbr']);
  330. /* ------------- Getting CER numbers from CER ------------- */
  331. $cer_sql = "SELECT id, cer FROM CER WHERE cer IS NOT NULL ORDER BY cer+0";
  332. $CER = $dbh->getAssoc($cer_sql);
  333. $cer_query = $dbh->prepare($cer_sql);
  334. /* ------------- Getting Vendor terms from Standards ------------- */
  335. $terms_sql = "SELECT terms_id AS id, terms_name AS name FROM Standards.VendorTerms ORDER BY name";
  336. $TERMS = $dbh->getAssoc($terms_sql);
  337. $terms_query = $dbh->prepare($terms_sql);
  338. /* ------------- Get items related to this Request -------------*/
  339. $items_sql = "SELECT * FROM Items WHERE type_id = ".$PO['id'];
  340. $items_query = $dbh->prepare($items_sql);
  341. $items_sth = $dbh->execute($items_query);
  342. $items_count = $items_sth->numRows();
  343. /* ------------- Get Purchase Request users ------------- */
  344. $purchaser_sql = $dbh->prepare("SELECT U.eid, E.fst, E.lst, E.email
  345. FROM Users U
  346. INNER JOIN Standards.Employees E ON U.eid = E.eid
  347. WHERE U.role = 'purchasing'
  348. AND E.status = '0'
  349. AND U.eid <> '08745'
  350. ORDER BY E.lst ASC");
  351. /* ------------- Get Purchase Request users ------------- */
  352. $financer_sql = $dbh->prepare("SELECT U.eid, E.fst, E.lst, E.email
  353. FROM Users U
  354. INNER JOIN Standards.Employees E ON U.eid = E.eid
  355. WHERE U.role = 'financing'
  356. AND E.status = '0'
  357. AND U.eid <> '08745'
  358. ORDER BY E.lst ASC");
  359. /* ------------- Get Vendor Payments ------------- */
  360. $payments = $dbh->query("SELECT * FROM Payments WHERE request_id=" . $PO['id'] . " AND pay_status='0' ORDER BY pay_date ASC");
  361. $payments_count = $payments->numRows();
  362. /* ------------- Get Contact Information ------------- */
  363. $contacts_sql="SELECT * FROM Contacts WHERE request_id=" . $PO['id'] . " AND status='0' ORDER BY id DESC";
  364. $contacts_query=$dbh->prepare($contacts_sql);
  365. $contacts_sth = $dbh->execute($contacts_query);
  366. $contacts_count = $contacts_sth->numRows();
  367. $contacts2_sql="SELECT * FROM Contacts WHERE request_id=" . $PO['id'] . " ORDER BY id DESC";
  368. $contacts2_query=$dbh->prepare($contacts2_sql);
  369. /* ------------- Get Contact Information Vendor List ------------- */
  370. /* ------------- Getting Comments Information ------------- */
  371. $post_sql = "SELECT * FROM Postings
  372. WHERE request_id = ".$_GET['id']."
  373. AND type = 'global'
  374. ORDER BY posted DESC";
  375. $LAST_POST = $dbh->getRow($post_sql); // Get the last posted comment
  376. $post_query = $dbh->prepare($post_sql);
  377. $post_sth = $dbh->execute($post_query);
  378. $post_count = $post_sth->numRows();
  379. /* -------------------------------------------------------------
  380. * ------------- END DATABASE CONNECTIONS -------------------
  381. * -------------------------------------------------------------
  382. */
  383. /* -------------------------------------------------------------
  384. * ------------- START VARIABLES -------------------------------
  385. * -------------------------------------------------------------
  386. */
  387. /* ------------- Check current level and current user ------------- */
  388. if (array_key_exists('approval', $_GET)) {
  389. if ($PO['status'] != 'N') {
  390. switch ($PO['status']) {
  391. case 'C': $message="This Requisition has been marked Canceled."; break;
  392. case 'X': $message="This Requisition has been marked Not Approved."; break;
  393. case 'A': $message="This Requisition has been already Approved."; break;
  394. case 'O': $message="This Requisition has been Kicked off to the Vendor."; break;
  395. }
  396. unset($_GET['approval']);
  397. } elseif ($_GET['approval'] != $AUTH['level']) {
  398. $message="This Requisition is currently not at your approval level.";
  399. unset($_GET['approval']);
  400. } elseif ($_GET['approval'] == $AUTH['level'] AND $AUTH[$_GET['approval']] == $_SESSION['eid']) {
  401. $_GET['approval'] = $_GET['approval'];
  402. }
  403. }
  404. /* ------------- Set message for Message Center ------------- */
  405. switch ($_GET['approval']) {
  406. // case 'controller': $message="Finance can edit the Finance area and fields highlighted in <span style=\"color:#009900;\">GREEN</span>."; break;
  407. }
  408. $highlight='class="highlight"'; // Highlighted style sheet class
  409. /* ------------- Set items display mode ------------- */
  410. if ($_GET['approval'] == 'controller') {
  411. $displayItem = "display"; // Display Items detail
  412. } else {
  413. $displayItem = "none"; // Don't display Items detail
  414. }
  415. /* -------------------------------------------------------------
  416. * ------------- END VARIABLES -------------------------------
  417. * -------------------------------------------------------------
  418. */
  419. /**
  420. * - Display attachments from V3
  421. */
  422. include_once('attachment.php');
  423. $phone_char=array('(', ')', ' ', '-', '.');
  424. $format_phone="(000)000-0000";
  425. /* ------------- Setup onLoad javascript program ------------- */
  426. $ONLOAD_OPTIONS.="function() {
  427. new Effect.Pulsate('hotMessage', {delay:2, duration:5});
  428. new Effect.Pulsate('messageCenter', {delay:2, duration:5});
  429. }";
  430. if (isset($ONLOAD_OPTIONS)) { $ONLOAD="onLoad=\"$ONLOAD_OPTIONS\""; }
  431. ?>
  432. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  433. <html><!-- InstanceBegin template="/Templates/vnmain.dwt.php" codeOutsideHTMLIsLocked="false" -->
  434. <head>
  435. <!-- InstanceBeginEditable name="doctitle" -->
  436. <title><?= $default['title1']; ?></title>
  437. <!-- InstanceEndEditable -->
  438. <meta http-equiv="imagetoolbar" content="no">
  439. <meta name="copyright" content="2004 Your Company" />
  440. <meta name="author" content="Thomas LeZotte" />
  441. <link type="text/css" href="/Common/Print.css" rel="stylesheet" media="print">
  442. <link type="text/css" href="../default.css" charset="UTF-8" rel="stylesheet">
  443. <?php if ($default['rss'] == 'on') { ?>
  444. <link rel="alternate" type="application/rss+xml" title="Purchase Requisition Announcements" href="<?= $default['URL_HOME']; ?>/PO/<?= $default['rss_file']; ?>">
  445. <link rel="alternate" type="application/rss+xml" title="Capital Acquisition Announcements" href="<?= $default['URL_HOME']; ?>/CER/<?= $default['rss_file']; ?>">
  446. <?php } ?>
  447. <script type="text/javascript" src="/Common/js/overlibmws.js"></script>
  448. <!-- InstanceBeginEditable name="head" -->
  449. <link type="text/css" rel="stylesheet" href="/Common/js/yahoo/container/assets/container.css">
  450. <link href="/Common/js/autoassist/autoassist.css" rel="stylesheet" type="text/css">
  451. <link type="text/css" href="/Common/js/greybox5/gb_styles.css" rel="stylesheet" media="all">
  452. <link rel="stylesheet" type="text/css" href="<?= $default['URL_HOME']; ?>/style/dd_tabs.css" />
  453. <style type="text/css">
  454. form.inplaceeditor-form a {
  455. color:#FFFFFF;
  456. }
  457. </style>
  458. <script type="text/javascript">
  459. <!--
  460. function MM_openBrWindow(theURL,winName,features) { //v2.0
  461. window.open(theURL,winName,features);
  462. }
  463. //-->
  464. </script><!-- InstanceEndEditable -->
  465. <?php if ($ONLOAD_OPTIONS) { ?>
  466. <script language="javascript">
  467. AJS.AEV(window, "load", <?= $ONLOAD_OPTIONS; ?>);
  468. </script>
  469. <?php } ?>
  470. </head>
  471. <body class="yui-skin-sam">
  472. <img src="/Common/images/CompanyPrint.gif" alt="Your Company" width="437" height="61" id="Print" />
  473. <div id="noPrint">
  474. <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="">
  475. <tbody>
  476. <tr>
  477. <td valign="top"><a href="../home.php" title="<?= $default['title1']; ?> Home"><img name="Company" src="/Common/images/Company.gif" width="300" height="50" border="0"></a></td>
  478. <td align="right" valign="top">
  479. <!-- InstanceBeginEditable name="topRightMenu" --><!-- #BeginLibraryItem "/Library/help.lbi" --><table cellspacing="0" cellpadding="0" summary="" border="0">
  480. <tr>
  481. <td width="30"><a href="../Common/calculator.php" onClick="window.open(this.href,this.target,'width=281,height=270'); return false;" <?php help('', 'Calculator', 'default'); ?>><img src="../images/xcalc.png" width="16" height="14" border="0"></a></td>
  482. <td><a href="../Help/index.php" rel="gb_page_fs[]"><img src="../images/help.gif" width="18" height="18" border="0" align="absmiddle"></a></td>
  483. <td class="DarkHeaderSubSub">&nbsp;<a href="../Help/index.php" rel="gb_page_fs[]" class="dark">Help</a></td>
  484. </tr>
  485. </table>
  486. <!-- #EndLibraryItem --><!-- InstanceEndEditable --></td>
  487. </tr>
  488. <tr>
  489. <td valign="bottom" align="right" colspan="2"><!-- InstanceBeginEditable name="rightMenu" -->
  490. <?php include('../include/menu/main_right.php'); ?>
  491. <!-- InstanceEndEditable --></td>
  492. <td>
  493. </td>
  494. </tr>
  495. <tr>
  496. <td width="100%" colspan="3"><table cellspacing="0" cellpadding="0" width="100%" summary="" border="0">
  497. <tbody>
  498. <tr>
  499. <td width="4" colspan="4" height="4"><img height="4" alt="" src="../images/c-ghtl.gif" width="4"></td>
  500. <td colspan="4"><table cellspacing="0" cellpadding="0" width="100%" summary="" background="../images/c-ght.gif" border="0">
  501. <tbody>
  502. <tr>
  503. <td height="4"></td>
  504. </tr>
  505. </tbody>
  506. </table></td>
  507. <td class="BGColorDark" valign="top" rowspan="2"><table cellspacing="0" cellpadding="0" width="100%" summary="" background="../images/c-ght.gif" border="0">
  508. <tbody>
  509. <tr>
  510. <td height="4"></td>
  511. </tr>
  512. </tbody>
  513. </table></td>
  514. <td width="4" colspan="4" height="4"><img height="4" alt="" src="../images/c-ghtr.gif" width="4"></td>
  515. </tr>
  516. <tr>
  517. <td class="BGGrayLight" rowspan="3"></td>
  518. <td class="BGGrayMedium" rowspan="3"></td>
  519. <td class="BGGrayDark" rowspan="3"></td>
  520. <td class="BGColorDark" rowspan="3"></td>
  521. <td class="BGColorDark" rowspan="3"><!-- InstanceBeginEditable name="leftMenu" --><?php include('../include/menu/main_left.php'); ?><!-- InstanceEndEditable --></td>
  522. <td class="BGColorDark" rowspan="3"></td>
  523. <td class="BGColorDark" rowspan="2"></td>
  524. <td class="BGColorDark" rowspan="2"></td>
  525. <td class="BGColorDark" rowspan="2"></td>
  526. <td class="BGGrayDark" rowspan="2"></td>
  527. <td class="BGGrayMedium" rowspan="2"></td>
  528. <td class="BGGrayLight" rowspan="2"></td>
  529. </tr>
  530. <tr>
  531. <td class="BGColorDark" width="100%"><?php
  532. if (isset($_SESSION['username'])) {
  533. ?>
  534. <div align="right" class="FieldNumberDisabled">&nbsp;</div>
  535. <?php
  536. } else {
  537. echo "&nbsp;";
  538. }
  539. ?>
  540. </td>
  541. </tr>
  542. <tr>
  543. <td valign="top"><img height="20" alt="" src="../images/c-ghct.gif" width="25"></td>
  544. <td valign="top" colspan="2"><table cellspacing="0" cellpadding="0" width="100%" summary="" background="../images/c-ghb.gif" border="0">
  545. <tbody>
  546. <tr>
  547. <td height="4"></td>
  548. </tr>
  549. </tbody>
  550. </table></td>
  551. <td valign="top" colspan="4"><img height="20" alt="" src="../images/c-ghbr.gif" width="4"></td>
  552. </tr>
  553. <tr>
  554. <td width="4" colspan="4" height="4"><img height="4" alt="" src="../images/c-ghbl.gif" width="4"></td>
  555. <td><table height="4" cellspacing="0" cellpadding="0" width="100%" summary="" background="../images/c-ghb.gif" border="0">
  556. <tbody>
  557. <tr>
  558. <td></td>
  559. </tr>
  560. </tbody>
  561. </table></td>
  562. <td><img height="4" alt="" src="../images/c-ghcb.gif" width="3"></td>
  563. <td colspan="7"></td>
  564. </tr>
  565. </tbody>
  566. </table></td>
  567. </tr>
  568. </tbody>
  569. </table>
  570. </div>
  571. <!-- InstanceBeginEditable name="main" -->
  572. <?php
  573. if ($_SESSION['request_access'] == '3') {
  574. echo "&nbsp;<img src=\"/Common/images/adminAction.gif\" onClick=\"new Effect.toggle('adminPanel', 'slide')\">";
  575. echo "&nbsp;<img src=\"/Common/images/adminSQLAction.gif\" onClick=\"new Effect.toggle('debugPanel', 'slide')\">";
  576. include('../Administration/include/detail.php');
  577. include('../Administration/include/sql_debug.php');
  578. }
  579. ?>
  580. <table cellspacing="0" cellpadding="0" width="100%" summary="" border="0">
  581. <tbody>
  582. <tr>
  583. <td height="2"></td>
  584. </tr>
  585. <tr>
  586. <td><table cellspacing="0" cellpadding="0" width="100%" summary="" border="0">
  587. <tbody>
  588. <tr>
  589. <td align="center">
  590. <div id="hotMessage" style="width: 98%;margin:3px auto;display:<?= ($PO['hot'] == 'yes') ? display : none; ?>">This Requisition has been tagged HOT!!</div>
  591. <div id="messageCenter" style="width: 98%;margin:3px auto;display:<?= (isset($message)) ? display : none; ?>"><?= $message; ?></div>
  592. <form action="<?= $_SERVER['PHP_SELF']; ?>" method="POST" name="Form" id="Form" runat="vdaemon">
  593. <table border="0" cellpadding="0" cellspacing="0">
  594. <tr>
  595. <td>
  596. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  597. <tr>
  598. <td></td>
  599. <td height="26" valign="bottom">
  600. <table border="0" align="right" cellpadding="0" cellspacing="0">
  601. <tr>
  602. <?php if ($_SESSION['eid'] == $PO['req'] and ! empty($PO['po'])) { ?>
  603. <td><div id="ddcolortabs">
  604. <ul>
  605. <li id="inactive"><a href="checkInformation.php?id=<?= $PO['id']; ?>" <?php help('', 'Request Purchasing to send Vendor a check.', 'default'); ?> rel="gb_page_center[750, 450]"><span>Check&nbsp;Request</span></a></li>
  606. </ul>
  607. </div></td>
  608. <td>
  609. <div id="ddcolortabs">
  610. <ul>
  611. <li id="inactive"><a href="packingSlip.php?id=<?= $_GET['id']; ?>&po=<?= $PO['po']; ?>&req=<?= $PO['req']; ?>&issuer=<?= $AUTH['issuer']; ?>" <?php help('', 'Send electronic packing slip to Puchasing', 'default'); ?> rel="gb_page_center[500, 300]"><span>Packing&nbsp;Slip</span></a></li>
  612. </ul>
  613. </div></td>
  614. <?php } ?>
  615. <td><div id="ddcolortabs">
  616. <ul>
  617. <li id="inactive"><a href="javascript: window.print();" <?php help('', 'Click here to print this Request', 'default'); ?>><span>Print&nbsp;Requisition</span></a></li>
  618. </ul>
  619. </div></td>
  620. <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  621. </tr>
  622. </table></td>
  623. </tr>
  624. <tr class="BGAccentVeryDark">
  625. <td width="50%" height="30" nowrap class="DarkHeaderSubSub">&nbsp;&nbsp;Purchase Order Requisition...</td>
  626. <td width="50%"></td>
  627. </tr>
  628. </table>
  629. </td>
  630. </tr>
  631. <tr>
  632. <td class="BGAccentVeryDarkBorder"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  633. <tr>
  634. <td valign="top" class="BGAccentDarkBorder"><table width="100%" border="0">
  635. <tr>
  636. <td height="25" colspan="4" class="BGAccentDark"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  637. <tr>
  638. <td><img src="../images/info.png" width="16" height="16" align="texttop"><strong>&nbsp;Information</strong></td>
  639. <td><div align="right" class="mainsection">Status: <strong><?= reqStatus($PO['status']); ?></strong>
  640. <input type="hidden" name="status" value="<?= $PO['status']; ?>">
  641. &nbsp;&nbsp;</div></td>
  642. </tr>
  643. </table></td>
  644. </tr>
  645. <tr>
  646. <td nowrap>Requisition Number:</td>
  647. <td class="label"><?= $_GET['id']; ?></td>
  648. <td nowrap>&nbsp;</td>
  649. <td>&nbsp;</td>
  650. </tr>
  651. <tr>
  652. <td width="12%" nowrap>Purchase Order Number:</td>
  653. <td width="45%" class="label"><?= ($PO['creditcard'] == 'yes') ? "Credit Card" : $PO['po']; ?></td>
  654. <td width="13%" nowrap><table width="100%" border="0" cellspacing="0" cellpadding="0">
  655. <tr>
  656. <td nowrap>CER Number:</td>
  657. <td width="35" align="right"><a href="cer_list.php" rel="gb_page_center[700, 600]" <?php help('', 'Click here to get a list of approved Capital Acquisition Requests', 'default'); ?>><img src="../images/detail.gif" width="18" height="20" border="0" align="absmiddle"></a></td>
  658. </tr>
  659. </table></td>
  660. <td width="26%"><table border="0" cellspacing="0" cellpadding="0">
  661. <tr>
  662. <td class="label"><a href="../CER/detail.php?id=<?= $PO['cer']; ?>" class="dark" rel="gb_page_fs[]"><?= $CER[$PO['cer']]; ?></a></td>
  663. <td><?php if (!empty($PO['cer'])) { ?>
  664. <a href="<?= $default['URL_HOME']; ?>/CER/print.php?id=<?= $PO['cer']; ?>" <?php help('', 'Click here to print this Capital Acquisition Request', 'default'); ?>><img src="../images/printer.gif" border="0" align="absmiddle"></a>
  665. <?php } ?></td>
  666. </tr>
  667. </table></td>
  668. </tr>
  669. <tr>
  670. <td>Requisitioner:</td>
  671. <td class="label"><?= caps($EMPLOYEES[$PO['req']]); ?></td>
  672. <td nowrap>Requisition Date:</td>
  673. <td class="label"><?= $PO['_reqDate']; ?></td>
  674. </tr>
  675. <?php if (!empty($PO['incareof']) AND $PO['req'] != $PO['incareof']) { ?>
  676. <tr>
  677. <td><img src="/Common/images/menupointer2.gif" width="4" height="7" align="absmiddle"> In Care Of:</td>
  678. <td class="label"><?= caps($EMPLOYEES[$PO['incareof']]); ?></td>
  679. <td>&nbsp;</td>
  680. <td>&nbsp;</td>
  681. </tr>
  682. <?php } ?>
  683. <tr>
  684. <td height="5" colspan="4"><img src="../images/spacer.gif" width="5" height="5"></td>
  685. </tr>
  686. <?php if (strlen($PO['sup2']) == 6) { ?>
  687. <tr>
  688. <td nowrap>Final Vendor: </td>
  689. <td nowrap class="label"><?= caps($VENDOR[$PO['sup2']]) . " (" . strtoupper($PO['sup2']) . ")"; ?><?php
  690. /* Getting suppliers from Suppliers */
  691. $SUPPLIER = $dbh->getRow("SELECT BTVEND AS id, BTNAME AS name, BTADR1 AS address, BTADR3 AS city, BTPRCD AS state, BTPOST AS zip5, BTWPAG AS web
  692. FROM Standards.Vendor
  693. WHERE BTVEND = '".$PO['sup2']."'");
  694. ?><span class="padding"><a href="../Common/vendor_map.php?id=<?= strtoupper($SUPPLIER['id']); ?>&name=<?= caps($SUPPLIER['name']); ?>&address=<?= $SUPPLIER['address']; ?> <?= $SUPPLIER['city']; ?>, <?= $SUPPLIER['state']; ?> <?= $SUPPLIER['zip5']; ?>" title="<?= caps($SUPPLIER['name']); ?>'s Location" rel="gb_page_center[602, 602]"><img src="/Common/images/map.gif" width="20" height="20" border="0" align="absmiddle"></a><?php if (!empty($SUPPLIER['web'])) { ?>&nbsp;<a href="http://<?= $SUPPLIER['web']; ?>" title="<?= caps($SUPPLIER['name']); ?>'s website." rel="gb_page_fs[]"><img src="/Common/images/globe.gif" width="18" height="18" border="0" align="absmiddle"></a>
  695. <?php } ?><a href="../Administration/vendor_details.php?id=<?= $SUPPLIER[id]; ?>" title="<?= caps($SUPPLIER['name']); ?> information" rel="gb_page[400, 511]"><img src="../images/detail.gif" width="18" height="20" border="0" align="absmiddle"></a>&nbsp;<a href="fax.php?id=<?= $PO['sup']; ?>&company=<?= $PO['company']; ?>" title="Generate a fax cover sheet" target="_blank"><img src="../images/printer.gif" border="0" align="absmiddle"></a></span></td>
  696. <td>Kickoff Date:</td>
  697. <td class="label"><?= ($AUTH['issuerDate'] == '0000-00-00 00:00:00' OR is_null($AUTH['issuerDate'])) ? $blank : date("F j, Y", strtotime($AUTH['issuerDate'])); ?></td>
  698. </tr>
  699. <?php } ?>
  700. <tr>
  701. <td nowrap><?= (empty($PO['po'])) ? Recommended : Final; ?> Vendor:</td>
  702. <td nowrap class="label"><?= caps($VENDOR[$PO['sup']]) . " (" . strtoupper($PO['sup']) . ")"; ?><?php
  703. /* Getting suppliers from Suppliers */
  704. $SUPPLIER = $dbh->getRow("SELECT BTVEND AS id, BTNAME AS name, BTADR1 AS address, BTADR3 AS city, BTPRCD AS state, BTPOST AS zip5, BTWPAG AS web
  705. FROM Standards.Vendor
  706. WHERE BTVEND = '".$PO['sup']."'");
  707. ?><span class="padding"><a href="../Common/vendor_map.php?id=<?= strtoupper($SUPPLIER['id']); ?>&name=<?= caps($SUPPLIER['name']); ?>&address=<?= $SUPPLIER['address']; ?> <?= $SUPPLIER['city']; ?>, <?= $SUPPLIER['state']; ?> <?= $SUPPLIER['zip5']; ?>" title="<?= caps($SUPPLIER['name']); ?>'s Location" rel="gb_page_center[602, 602]"><img src="/Common/images/map.gif" width="20" height="20" border="0" align="absmiddle"></a><?php if (!empty($SUPPLIER['web'])) { ?>&nbsp;<a href="http://<?= $SUPPLIER['web']; ?>" title="<?= caps($SUPPLIER['name']); ?>'s website." rel="gb_page_fs[]"><img src="/Common/images/globe.gif" width="18" height="18" border="0" align="absmiddle"></a>
  708. <?php } ?><a href="../Administration/vendor_details.php?id=<?= $SUPPLIER[id]; ?>" title="<?= caps($SUPPLIER['name']); ?> information" rel="gb_page[400, 511]"><img src="../images/detail.gif" width="18" height="20" border="0" align="absmiddle"></a>&nbsp;<a href="fax.php?id=<?= $PO['sup']; ?>&company=<?= $PO['company']; ?>" title="Generate a fax cover sheet" target="_blank"><img src="../images/printer.gif" border="0" align="absmiddle"></a></span></td>
  709. <?php if (strlen($PO['sup2']) != 6 AND !empty($PO['po'])) { ?>
  710. <td>Kickoff Date:</td>
  711. <td class="label"><?= ($AUTH['issuerDate'] == '0000-00-00 00:00:00' OR is_null($AUTH['issuerDate'])) ? $blank : date("F j, Y", strtotime($AUTH['issuerDate'])); ?></td>
  712. <?php } else { ?>
  713. <td>&nbsp;</td>
  714. <td>&nbsp;</td>
  715. <?php } ?>
  716. </tr>
  717. <!-- <tr>
  718. <td>Company:</td>
  719. <td class="label"><?= caps($COMPANY[$PO[company]]); ?></td>
  720. <td nowrap>&nbsp;</td>
  721. <td>&nbsp;</td>
  722. </tr>-->
  723. <tr>
  724. <td>Bill to Plant: </td>
  725. <td class="label"><?= caps($PLANTS[$PO['plant']]); ?><input type="hidden" name="currentPlant" id="currentPlant" value="<?= $PO['plant']; ?>"></td>
  726. <td>Deliver to Plant: </td>
  727. <td class="label"><?= caps($PLANTS[$PO['ship']]); ?></td>
  728. </tr>
  729. <tr>
  730. <td>Department:</td>
  731. <td class="label"><?= caps($DEPARTMENT[$PO['department']]); ?><input type="hidden" name="currentDepartment" id="currentDepartment" value="<?= $PO['department']; ?>"></td>
  732. <td>Job Number: </td>
  733. <td class="label"><?= $PO['job']; ?></td>
  734. </tr>
  735. <tr>
  736. <td height="5" colspan="4"><img src="../images/spacer.gif" width="5" height="5"></td>
  737. </tr>
  738. <tr>
  739. <td valign="top" nowrap>Purpose / Usage:</td>
  740. <td colspan="3" class="label"><?= caps(stripslashes($PO['purpose'])); ?></td>
  741. </tr>
  742. </table></td>
  743. </tr>
  744. <!--
  745. <tr>
  746. <td>&nbsp;</td>
  747. </tr>
  748. <tr>
  749. <td class="BGAccentDarkBorder"><table width="100%" border="0">
  750. <tr>
  751. <td width="100%" height="25" colspan="6" class="BGAccentDark"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  752. <tr>
  753. <td>&nbsp;<a href="javascript:switchTracking();" class="black" <?php help('', 'Show or Hide the Track Shipments', 'default'); ?>><strong><img src="../images/package.gif" width="16" height="16" border="0" align="texttop">&nbsp;Track Shipments </strong></a></td>
  754. <td width="120">&nbsp;</td>
  755. </tr>
  756. </table></td>
  757. </tr>
  758. <td>&nbsp;</td>
  759. </table>
  760. </td>
  761. </tr>
  762. -->
  763. <tr>
  764. <td>&nbsp;</td>
  765. </tr>
  766. <tr><td class="BGAccentDarkBorder"><table width="100%" border="0">
  767. <tr>
  768. <td height="25" class="BGAccentDark"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  769. <tr>
  770. <td>&nbsp;<a href="javascript:void(0);" onClick="new Effect.toggle('itemsContainer','blind')" class="black" <?php help('', 'Show or Hide the Item Information', 'default'); ?>><strong><img src="../images/text.gif" width="16" height="16" border="0" align="texttop">&nbsp;Item Information</strong></a></td>
  771. <td width="120"><a href="javascript:toggleItemDisplay('itemsContainer');" class="viewcomments">View All Details </a></td>
  772. </tr>
  773. </table></td>
  774. </tr>
  775. <tr>
  776. <td>
  777. <div id="itemsContainer">
  778. <table width="100%" border="0">
  779. <tr>
  780. <td width="35" class="HeaderAccentDark">&nbsp;</td>
  781. <td width="35" class="HeaderAccentDark">Unit</td>
  782. <td width="80" nowrap class="HeaderAccentDark">Company#&nbsp;</td>
  783. <td width="60" nowrap class="HeaderAccentDark">Manuf#&nbsp;</td>
  784. <td class="HeaderAccentDark">Item Description</td>
  785. <td width="80" nowrap class="HeaderAccentDark">Price</td>
  786. </tr>
  787. <?php
  788. while($items_sth->fetchInto($ITEMS)) {
  789. $count_items++;
  790. $row_color = ($count_items % 2) ? FFFFFF : DFDFBF;
  791. ?>
  792. <!-- Start of Item<?= $count_items; ?> -->
  793. <tr <?php pointer($row_color); ?>>
  794. <td width="50" bgcolor="#<?= $row_color; ?>" class="label"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  795. <tr>
  796. <td><a href="javascript:switchItems('itemDetails<?= $count_items; ?>', 'collapsed');" id="itemDetails<?= $count_items; ?>A" <?php help('', 'View more details on this item', 'default'); ?>><img src="../images/1rightarrow.gif" name="itemDetails<?= $count_items; ?>I" width="16" height="16" border="0" id="itemDetails<?= $count_items; ?>I">
  797. <input name="item<?= $count_items; ?>" type="hidden" id="item<?= $count_items; ?>" value="<?= $ITEMS['id']; ?>">
  798. </a></td>
  799. <td><strong><?= $ITEMS['qty']; ?></strong></td>
  800. </tr>
  801. </table></td>
  802. <td class="label" bgcolor="#<?= $row_color; ?>"><?= strtoupper($ITEMS['unit']); ?></td>
  803. <td class="label" bgcolor="#<?= $row_color; ?>"><?= strtoupper(stripslashes($ITEMS['part'])); ?></td>
  804. <td class="label" bgcolor="#<?= $row_color; ?>"><?= strtoupper(stripslashes($ITEMS['manuf'])); ?></td>
  805. <td nowrap bgcolor="#<?= $row_color; ?>" class="label">
  806. <?php
  807. if (strlen($ITEMS['descr']) > 50) {
  808. echo caps(substr(stripslashes($ITEMS['descr']), 0, 50));
  809. echo "...<a href=\"javascript:void(0);\" class=black onmouseover=\"return overlib('" . caps(stripslashes($ITEMS['descr'])) . "', TEXTPADDING, 10, WIDTH, 300, WRAPMAX, 300, AUTOSTATUS, BGCOLOR, '#000000', CGCOLOR, '#E68B2C', FGCOLOR, '#B0D585');\" onmouseout=\"nd();\"><img src=\"../images/bubble.gif\" width=14 height=17 border=0 align=absmiddle></a>";
  810. } else {
  811. echo caps(stripslashes($ITEMS['descr']));
  812. }
  813. ?></td>
  814. <td bgcolor="#<?= $row_color; ?>" class="label"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  815. <tr>
  816. <td><strong>$</strong></td>
  817. <td align="right"><strong><?php $d=(substr($ITEMS['price'], -2, 2) == '00') ? 2 : 4; echo number_format($ITEMS['price'],$d); ?><?= ($d == 2) ? "<img src=\"/Common/images/spacer.gif\" width=\"18\" height=\"5\">" : ''; ?></strong></td>
  818. </tr>
  819. </table></td>
  820. </tr>
  821. <tr <?php pointer($row_color); ?> id="itemDetails<?= $count_items; ?>" style="display:<?= $displayItem; ?>">
  822. <td colspan="6" bgcolor="#<?= $row_color; ?>" class="label"><table border="0">
  823. <tr>
  824. <td width="20">&nbsp;</td>
  825. <td width="200">&nbsp;</td>
  826. <td width="24">&nbsp;</td>
  827. <td width="100" class="gHeader">GL Code </td>
  828. <td width="250" class="gHeader">Name</td>
  829. </tr>
  830. <tr>
  831. <td>&nbsp;</td>
  832. <td><?= ($_GET['approval'] == 'controller') ? Recommended : Item; ?> Category: </td>
  833. <td class="label"><?= checkCategory($count_items, $PLANT['conbr'], $PO['department'], $ITEMS['cat']); ?></td>
  834. <td class="label"><?= $PLANT['conbr'] . "-" . $PO['department'] . "-" . $ITEMS['cat']; ?></td>
  835. <td class="label"><?= caps($COA[$ITEMS['cat']]); ?></td>
  836. </tr>
  837. <?php if ($_GET['approval'] == 'controllerOFF') { ?>
  838. <tr>
  839. <td>&nbsp;</td>
  840. <td>Change Category: </td>
  841. <td class="label">&nbsp;</td>
  842. <td class="label"><div id="item<?= $count_items; ?>_newGLnumber"></div></td>
  843. <td class="label"><input id="item<?= $count_items; ?>_newCOA" name="iteā€¦

Large files files are truncated, but you can click here to view the full file