| 
      
      
      From: <vv...@us...> - 2012-04-16 21:38:11
      
     | 
| Revision: 5251
          http://web-erp.svn.sourceforge.net/web-erp/?rev=5251&view=rev
Author:   vvs2012
Date:     2012-04-16 21:38:05 +0000 (Mon, 16 Apr 2012)
Log Message:
-----------
xhtml
Modified Paths:
--------------
    trunk/StockCounts.php
    trunk/StockDispatch.php
    trunk/StockLocMovements.php
    trunk/StockLocStatus.php
    trunk/StockLocTransfer.php
    trunk/StockLocTransferReceive.php
Modified: trunk/StockCounts.php
===================================================================
--- trunk/StockCounts.php	2012-04-16 21:09:34 UTC (rev 5250)
+++ trunk/StockCounts.php	2012-04-16 21:38:05 UTC (rev 5251)
@@ -10,6 +10,7 @@
 include('includes/header.inc');
 
 echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">';
+echo '<div>';
 echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
 
 echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' .
@@ -28,9 +29,9 @@
 
 echo '<table class="selection"><tr>';
 if ($_GET['Action']=='View'){
-	echo '<td><a href="' . $rootpath . '/StockCounts.php?' . SID . '&Action=Enter">' . _('Resuming Entering Counts') . '</a> </td><td>' . _('Viewing Entered Counts') . '</td>';
+	echo '<td><a href="' . $rootpath . '/StockCounts.php?' . SID . '&Action=Enter">' . _('Resuming Entering Counts') . '</a> </td><td>' . _('Viewing Entered Counts') . '</td>';
 } else {
-	echo '<td>'._('Entering Counts') .'</td><td> <a href="' . $rootpath . '/StockCounts.php?' . SID . '&Action=View">' . _('View Entered Counts') . '</a></td>';
+	echo '<td>'._('Entering Counts') .'</td><td> <a href="' . $rootpath . '/StockCounts.php?' . SID . '&Action=View">' . _('View Entered Counts') . '</a></td>';
 }
 echo '</tr></table><br />';
 
@@ -87,9 +88,9 @@
 	while ($myrow=DB_fetch_array($result)){
 
 		if (isset($_POST['Location']) and $myrow['loccode']==$_POST['Location']){
-			echo '<option selected="selected" value="' . $myrow['loccode'] . '">' . $myrow['locationname'];
+			echo '<option selected="selected" value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>';
 		} else {
-			echo '<option value="' . $myrow['loccode'] . '">' . $myrow['locationname'];
+			echo '<option value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>';
 		}
 	}
 	echo '</select></th></tr>';
@@ -112,7 +113,7 @@
 //END OF action=ENTER
 } elseif ($_GET['Action']=='View'){
 
-	if (isset($_POST['DEL']) && is_array($_POST['DEL']) ){
+	if (isset($_POST['DEL']) AND is_array($_POST['DEL']) ){
 		foreach ($_POST['DEL'] as $id=>$val){
 			if ($val == 'on'){
 				$sql = "DELETE FROM stockcounts WHERE id='".$id."'";
@@ -126,7 +127,7 @@
 	//START OF action=VIEW
 	$SQL = "select * from stockcounts";
 	$result = DB_query($SQL, $db);
-	echo '<input type="hidden" name=Action value="View" />';
+	echo '<input type="hidden" name="Action" value="View" />';
 	echo '<table cellpadding="2" class="selection">';
 	echo "<tr>
 		<th>" . _('Stock Code') . "</th>
@@ -149,7 +150,8 @@
 //END OF action=VIEW
 }
 
-echo '</form>';
+echo '</div>
+      </form>';
 include('includes/footer.inc');
 
 ?>
\ No newline at end of file
Modified: trunk/StockDispatch.php
===================================================================
--- trunk/StockDispatch.php	2012-04-16 21:09:34 UTC (rev 5250)
+++ trunk/StockDispatch.php	2012-04-16 21:38:05 UTC (rev 5251)
@@ -228,10 +228,10 @@
 	$result = DB_query($sql, $db);
 	$myrow = DB_fetch_array($result);
 	$DefaultLocation = $myrow['defaultlocation'];
-	echo '<br/>
-         <form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">
-         <table class="selection">';
-	echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
+	echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">';
+    echo '<div>
+          <br />';
+    echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
 	$sql = "SELECT loccode,
 			locationname
 		FROM locations";
@@ -242,7 +242,7 @@
 	echo '<table class="selection">
          <tr>
              <td>' . _('Dispatch Percent') . ':</td>
-             <td><input type ="text" name="Percent" class="number" size="8" value="0" />
+             <td><input type ="text" name="Percent" class="number" size="8" value="0" /></td>
          </tr>';
 	echo '<tr>
               <td>' . _('From Stock Location') . ':</td>
@@ -276,11 +276,11 @@
 	$SQL="SELECT categoryid, categorydescription FROM stockcategory  ORDER BY categorydescription";
 	$result1 = DB_query($SQL,$db);
 	if (DB_num_rows($result1)==0){
-		echo '</table></td></tr>
-			</table>
-			<p>';
+		echo '</table>';
 		prnMsg(_('There are no stock categories currently defined please use the link below to set them up'),'warn');
 		echo '<br /><a href="' . $rootpath . '/StockCategories.php">' . _('Define Stock Categories') . '</a>';
+        echo '</div>
+              </form>';
 		include ('includes/footer.inc');
 		exit;
 	}
@@ -308,24 +308,26 @@
 	}
 	echo '</select></td></tr>';
 
-	echo '<tr></tr><tr></tr><tr><td>' . _('Report Type') . ':</td>';
+	echo '<tr><td>' . _('Report Type') . ':</td>';
 	echo '<td><select name="ReportType">';
 	echo '<option selected="selected" value="Batch">' . _('Create Batch') . '</option>';
 	echo '<option value="Report">' . _('Report Only') . '</option>';
-	echo '</select></td><td> </td></tr>';
+	echo '</select></td><td> </td></tr>';
 
 
 	echo '<tr><td>' . _('Template') . ':</td>';
 	echo '<td><select name="template">';
 	echo '<option selected="selected" value="standard">' . _('Standard') . '</option>';
 	echo '<option value="simple">' . _('Simple') . '</option>';
-	echo '</select></td><td> </td></tr>';
+	echo '</select></td><td> </td></tr>';
 
 	echo '</table>
          <br/>
          <div class="centre">
               <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" />
          </div>';
+    echo '</div>
+          </form>';
 
 	include('includes/footer.inc');
 
Modified: trunk/StockLocMovements.php
===================================================================
--- trunk/StockLocMovements.php	2012-04-16 21:09:34 UTC (rev 5250)
+++ trunk/StockLocMovements.php	2012-04-16 21:38:05 UTC (rev 5251)
@@ -8,6 +8,7 @@
 include('includes/header.inc');
 
 echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">';
+echo '<div>';
 echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
 
 echo '<p class="page_title_text"><img src="' . $rootpath . '/css/' . $theme . '/images/magnifier.png" title="' . _('Search') .
@@ -113,7 +114,7 @@
 	$DisplayTranDate = ConvertSQLDate($myrow['trandate']);
 
 
-		printf('<td><a target="_blank" href="' . $rootpath . '/StockStatus.php?StockID=%s">%s</td>
+		printf('<td><a target="_blank" href="' . $rootpath . '/StockStatus.php?StockID=%s">%s</a></td>
 				<td>%s</td>
 				<td>%s</td>
 				<td>%s</td>
@@ -146,7 +147,8 @@
 //end of while loop
 
 echo '</table>';
-echo '</form>';
+echo '</div>
+      </form>';
 
 include('includes/footer.inc');
 
Modified: trunk/StockLocStatus.php
===================================================================
--- trunk/StockLocStatus.php	2012-04-16 21:09:34 UTC (rev 5250)
+++ trunk/StockLocStatus.php	2012-04-16 21:38:05 UTC (rev 5251)
@@ -16,6 +16,7 @@
 
 
 echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">';
+echo '<div>';
 echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
 
 $sql = "SELECT loccode,
@@ -106,8 +107,7 @@
           <option value="OnOrder">' . _('Only items currently on order') . '</option>';
 }
 
-echo '</td>
-     </tr>
+echo '</select></td></tr>
      </table>';
 
 echo '<br />
@@ -326,8 +326,9 @@
 	//end of while loop
 
 	echo '</table>';
-	echo '</form>';
 } /* Show status button hit */
+echo '</div>
+      </form>';
 include('includes/footer.inc');
 
 ?>
\ No newline at end of file
Modified: trunk/StockLocTransfer.php
===================================================================
--- trunk/StockLocTransfer.php	2012-04-16 21:09:34 UTC (rev 5250)
+++ trunk/StockLocTransfer.php	2012-04-16 21:38:05 UTC (rev 5251)
@@ -244,11 +244,12 @@
 	echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . _('Dispatch') . '" alt="" />' . ' ' . $title . '</p>';
 
 	echo '<form enctype="multipart/form-data" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">';
+    echo '<div>';
 	echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
 
 	echo '<table class="selection">';
 	echo '<tr>
-			<th colspan="4"><input type="hidden" name="Trf_ID" value="' . $Trf_ID . '" /><font size="3" color="blue">'. _('Inventory Location Transfer Shipment Reference').' # '. $Trf_ID. '</font></th>
+			<th colspan="4"><input type="hidden" name="Trf_ID" value="' . $Trf_ID . '" /><h3>'. _('Inventory Location Transfer Shipment Reference').' # '. $Trf_ID. '</h3></th>
 		</tr>';
 
 	$sql = "SELECT loccode, locationname FROM locations";
@@ -362,8 +363,9 @@
 
 	echo '<script type="text/javascript">defaultControl(document.forms[0].StockID0);</script>';
 
-	echo '</form>
-		</div>';
+	echo '</div>
+          </div>
+          </form>';
 	include('includes/footer.inc');
 }
 ?>
\ No newline at end of file
Modified: trunk/StockLocTransferReceive.php
===================================================================
--- trunk/StockLocTransferReceive.php	2012-04-16 21:09:34 UTC (rev 5250)
+++ trunk/StockLocTransferReceive.php	2012-04-16 21:38:05 UTC (rev 5251)
@@ -372,7 +372,7 @@
 	$result = DB_query($sql,$db,$ErrMsg,$DbgMsg);
 
 	if(DB_num_rows($result) == 0){
-		echo '</table></form><H3>' . _('Transfer') . ' #' . $_GET['Trf_ID'] . ' '. _('Does Not Exist') . '</H3><hr />';
+		echo '<h3>' . _('Transfer') . ' #' . $_GET['Trf_ID'] . ' '. _('Does Not Exist') . '</h3><br />';
 		include('includes/footer.inc');
 		exit;
 	}
@@ -411,6 +411,7 @@
 	echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . _('Dispatch') .
 		'" alt="" />' . ' ' . $title . '</p>';
 	echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?'. SID . '" method="post">';
+    echo '<div>';
 	echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
 
 	prnMsg(_('Please Verify Shipment Quantities Received'),'info');
@@ -420,7 +421,7 @@
 	echo '<br />
 			<table class="selection">';
 	echo '<tr>
-			<th colspan="7"><font size="3" color="blue">' . _('Location Transfer Reference'). ' #' . $_SESSION['Transfer']->TrfID . ' '. _('from').' ' . $_SESSION['Transfer']->StockLocationFromName . ' '. _('to'). ' ' . $_SESSION['Transfer']->StockLocationToName . '</font></th>
+			<th colspan="7"><h3>' . _('Location Transfer Reference'). ' #' . $_SESSION['Transfer']->TrfID . ' '. _('from').' ' . $_SESSION['Transfer']->StockLocationFromName . ' '. _('to'). ' ' . $_SESSION['Transfer']->StockLocationToName . '</h3></th>
 		</tr>';
 
 	$tableheader = '<tr>
@@ -468,7 +469,7 @@
 		if ($TrfLine->Controlled==1){
 			echo '<td class="number"><input type="hidden" name="Qty' . $i . '" value="' . locale_number_format($Qty,$TrfLine->DecimalPlaces) . '" /><a href="' . $rootpath .'/StockTransferControlled.php?TransferItem=' . $i . '" />' . $Qty . '</a></td>';
 		} else {
-			echo '<td><input type="text" class="number" name="Qty' . $i . '" maxlength="10" class="number" size="auto" value="' . locale_number_format($Qty,$TrfLine->DecimalPlaces) . '" /></td>';
+			echo '<td><input type="text" class="number" name="Qty' . $i . '" maxlength="10" size="auto" value="' . locale_number_format($Qty,$TrfLine->DecimalPlaces) . '" /></td>';
 		}
 
 		echo '<td>' . $TrfLine->PartUnit . '</td>';
@@ -495,6 +496,7 @@
 			<input type="submit" name="ProcessTransfer" value="'. _('Process Inventory Transfer'). '" />
 			<br />
 		</div>
+        </div>
 		</form>';
 	echo '<a href="'.htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'). '?NewTransfer=true">'. _('Select A Different Transfer').'</a>';
 
@@ -502,7 +504,8 @@
 
 	echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . _('Dispatch') . '" alt="" />' . ' ' . $title . '</p>';
 
-	echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post" name="form1">';
+	echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post" id="form1">';
+    echo '<div>';
 	echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
 
 	$LocResult = DB_query("SELECT locationname, loccode FROM locations",$db);
@@ -526,7 +529,7 @@
 		<input type="submit" name="RefreshTransferList" value="' . _('Refresh Transfer List') . '" /></td>
 		</tr>
 		</table>
-		<p />';
+		<br />';
 
 	$sql = "SELECT DISTINCT reference,
 				locations.locationname as trffromloc,
@@ -542,7 +545,7 @@
 		$LocResult = DB_query($LocSql,$db);
 		$LocRow = DB_fetch_array($LocResult);
 		echo '<table class="selection">';
-		echo '<tr><th colspan="4"><font size="3" color="blue">'._('Pending Transfers Into').' '.$LocRow['locationname'].'</font></th></tr>';
+		echo '<tr><th colspan="4"><h3>'._('Pending Transfers Into').' '.$LocRow['locationname'].'</h3></th></tr>';
 		echo '<tr>
 			<th>'. _('Transfer Ref'). '</th>
 			<th>'. _('Transfer From'). '</th>
@@ -567,7 +570,8 @@
 	} else if (!isset($_POST['ProcessTransfer'])) {
 		prnMsg(_('There are no incoming transfers to this location'), 'info');
 	}
-	echo '</form>';
+	echo '</div>
+          </form>';
 }
 include('includes/footer.inc');
 ?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |