PageRenderTime 39ms CodeModel.GetById 33ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/coopcoffeebeans/Customer/product_start.php

https://github.com/gypsyfarm/gypsyfarm
PHP | 196 lines | 149 code | 40 blank | 7 comment | 4 complexity | eb87f268da9d2a2f48fd904d26197b2a MD5 | raw file
  1<?php
  2require("../functions.php");
  3#require("../tables.php");
  4session_start();
  5
  6require("../check_login.php");
  7
  8?>
  9<html>
 10
 11<head>
 12<title>Cooperative Coffees - Order and Contact Database system</title>
 13
 14<link REL="stylesheet" TYPE="text/css" HREF="../general.css">
 15
 16
 17</head>
 18<?
 19
 20 #require("../Bill/left_menu.php"); 
 21 echo '<table border="0" width="100%" cellspacing="0" cellpadding="0">';
 22  echo '<tr>';
 23    echo '<td width="150" valign="top">';
 24      echo '<table border="1" width="140" cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" cellpadding="2">';
 25        echo '<tr>';
 26      echo '<td width="100%" bordercolor="#228B22" bgcolor="#228B22"><font face="Verdana" size="1" color="#FFFFFF"><b>::';
 27        
 28        echo "<a href=\"javascript:poptastic('Help.php?x=47A$menu_user_type');\"><font face='Verdana' size='1' color='#FFFFFF'>help</font</a>";
 29        
 30        echo '</tr>';
 31        echo '<tr>';
 32          echo '<td width="600" bordercolor="#228B22" bgcolor="#FFFFFF">';
 33          
 34                     echo '<font face="Verdana" size="1">*<a href="../index.php">Back to Main Menu</a></font><br>';
 35           echo '<hr>';   	
 36	   echo '<font face="Verdana" size="1">*<a href="cooporder.php">Create a new Order</a></font><br>';
 37           echo '<hr>';
 38	   echo '<font face="Verdana" size="1">*<a href="reports/index.php">View Reports</a></font><br>';
 39           echo '<hr>';
 40	   echo '<font face="Verdana" size="1">*<a href="../Contact_Search/contact_start.php">Contact Database</a></font><br>';
 41           echo '<hr>';
 42	   echo '<font face="Verdana" size="1">*<a href="password.php">Change Password</a></font><br>';
 43           echo '<hr>';
 44	   echo '<font face="Verdana" size="1">*<a href="../logout.php">Log out</a></font><br>';
 45	   
 46	           
 47            echo '</td>';
 48        echo '</tr>';
 49        
 50              echo '</table>';
 51    echo '</td>';
 52 
 53
 54
 55
 56    echo '<td  valign="top">';
 57      echo '<table border="1"  width="100%" bordercolor="#FFFFFF" cellspacing="0" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" cellpadding="2">';
 58        echo '<tr>';
 59          echo '<td width="100%" bordercolor="#228B22" bgcolor="#228B22"><font face="Verdana" size="1" color="#FFFFFF"><b>::';
 60            echo '<u>C</u>ontent:</b></font></td>';
 61        echo '</tr>';
 62        echo '<tr>';
 63          echo '<td width="100%" bordercolor="#228B22" bgcolor="#FFFFFF">';
 64            echo '<p align="right">ยค ';
 65            echo date('H:i, jS F');
 66            echo '</p>';
 67 
 68 
 69//********Present the Menus*********************************************
 70if (isset($_SESSION['contact_id']))  {
 71 
 72 echo '<center> <b>Quick search for Lots by Item Code</b> </center><br>';
 73 echo '<table border="1"  width="100%" bordercolor="#FFFFFF" cellspacing="1" bordercolorlight="#FFFF44" bordercolordark="#44FFFF" cellpadding="2">';
 74 echo '<tr bgcolor="FFFF44">';
 75 echo '<td align=center>';
 76 echo '<a href="product_results.php?quicksearch=A"> A </a></td>';
 77  echo '<td align=center><a href="product_results.php?quicksearch=B"> B </a></td>';
 78  echo '<td align=center><a href="product_results.php?quicksearch=C"> C </a></td>';
 79  echo '<td align=center><a href="product_results.php?quicksearch=D"> D </a></td>';
 80  echo '<td align=center><a href="product_results.php?quicksearch=E"> E </a></td>';
 81  echo '<td align=center><a href="product_results.php?quicksearch=F"> F </a></td>';
 82  echo '<td align=center><a href="product_results.php?quicksearch=G"> G </a></td>';
 83  echo '<td align=center><a href="product_results.php?quicksearch=H"> H </a></td>';
 84  echo '<td align=center><a href="product_results.php?quicksearch=I"> I </a></td>';
 85  echo '<td align=center><a href="product_results.php?quicksearch=J"> J </a></td>';
 86  echo '<td align=center><a href="product_results.php?quicksearch=K"> K </a></td>';
 87  echo '<td align=center><a href="product_results.php?quicksearch=L"> L </a></td>';
 88  echo '<td align=center><a href="product_results.php?quicksearch=M"> M </a></td>';
 89  echo '<td align=center><a href="product_results.php?quicksearch=N"> N </a></td>';
 90  echo '<td align=center><a href="product_results.php?quicksearch=O"> O </a></td>';
 91  echo '<td align=center><a href="product_results.php?quicksearch=P"> P </a></td>';
 92  echo '<td align=center><a href="product_results.php?quicksearch=Q"> Q </a></td>';
 93  echo '<td align=center><a href="product_results.php?quicksearch=R"> R </a></td>';
 94  echo '<td align=center><a href="product_results.php?quicksearch=S"> S </a></td>';
 95  echo '<td align=center><a href="product_results.php?quicksearch=T"> T </a></td>';
 96  echo '<td align=center><a href="product_results.php?quicksearch=U"> U </a></td>';
 97  echo '<td align=center><a href="product_results.php?quicksearch=V"> V </a></td>';
 98  echo '<td align=center><a href="product_results.php?quicksearch=W"> W </a></td>';
 99  echo '<td align=center><a href="product_results.php?quicksearch=X"> X </a></td>';
100  echo '<td align=center><a href="product_results.php?quicksearch=Y"> Y </a></td>';
101  echo '<td align=center><a href="product_results.php?quicksearch=Z"> Z </a></td>';
102 echo '</tr></table>';    
103     #ok ????
104 
105  # now put in search fields 
106  echo '<p>&nbsp<p>';
107  echo '<form name=frmMain method=post action="product_results.php?quicksearch=no">';
108 echo '<center> <b>Manual Search [You Can Combine fields. Text fields can be partial (e.g "C" will get "CRG"  and "COP")]</b> </center><br>';
109
110 echo '<table border="0"  width="100%" bordercolor="#FFFFFF" cellspacing="0" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" cellpadding="2">';
111echo '<tr>';
112echo '<td>';
113      echo 'Item Code: <input type=text name=item_code size=5 value="';
114      echo '">';
115      
116   
117      
118      
119 echo '</td><td>';     
120     echo '<b>Lot Ship: ';
121     echo '<input type=text name=lot_ship size=10 value="">';
122  echo '</td><td>';   
123          echo '<b>Warehouse: ';
124     echo '<input type=text name=warehouse size=5 value="">';
125
126
127     
128     echo "</td>";
129         echo "<td>";
130               echo 'Include Inactive Items: <input type=checkbox name="inactive_items_too"';
131               echo '<br>';
132               echo '<font color=red>Must use manual search to get inactive items</font>';
133    echo "</td>"; 
134        echo "<td>";
135      
136     echo 'Sort: <select name="sort_option">';
137    echo '<option value="1" ';
138    echo '> warehouse, item_code';
139    echo '<option value="2" ';
140    echo '> Item Nbr.';
141    echo "</select>";          
142    echo "</td>"; 
143     echo "</tr>";
144   echo '</table>';
145      echo '<table width=100%><tr>';
146      echo '<td>';
147           echo '<b>Scribd ID: ';
148     echo '<input type=text name=scribd_id size=10 value="">';
149      echo '</td>';
150            echo '<td align=left>';
151                echo '<b>Date in Warehouse: ';
152     echo '<input type=text name=arrival_date size=10 value="">';     
153      
154      echo '</td>';
155      echo '<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>';
156      echo '<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>';
157            echo '<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>';
158      echo '</tr>';
159      echo '</table>';
160   echo '<table width=100%><tr>';
161   echo '<td width=50% align=center>';
162        echo'<input type="submit" value="search" name="search">';  
163    echo '</td><td width=50% align=center>';
164         echo'<input type="reset" value="reset" name="reset">';  
165      
166    echo '</tr></table>';    
167 
168 
169 echo '</form>';           
170}     
171else {  
172    if (isset($userid)) {
173      // if they've tried and failed to log in
174        echo 'Could not log you in';
175    }
176    else {
177      // they have not tried to log in yet or have logged out
178      echo '<font size=4 color=black>You are not logged in, please enter a valid userid and password.</font>';
179    }
180}
181?>
182
183
184            <hr noshade size="1" color="#228B22">
185             
186          </td>
187        </tr>
188      </table>
189    </td>
190  </tr>
191</table>
192
193
194</body>
195
196</html>