[Weberp-svn] SF.net SVN: weberp:[9530] trunk
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2012-08-19 20:29:10
|
Revision: 9530 http://weberp.svn.sourceforge.net/weberp/?rev=9530&view=rev Author: tim_schofield Date: 2012-08-19 20:29:03 +0000 (Sun, 19 Aug 2012) Log Message: ----------- Improvements for new user interface Modified Paths: -------------- trunk/BOMListing.php trunk/css/silverwolf/images/view_tree.png Modified: trunk/BOMListing.php =================================================================== --- trunk/BOMListing.php 2012-08-19 20:15:55 UTC (rev 9529) +++ trunk/BOMListing.php 2012-08-19 20:29:03 UTC (rev 9530) @@ -102,14 +102,13 @@ $YPos -=$line_height; $pdf->line($Page_Width-$Right_Margin, $YPos,$Left_Margin, $YPos); - $pdf->OutputD($_SESSION['DatabaseName'] . '_BOMListing_' . date('Y-m-d').'.pdf');//UldisN - $pdf->__destruct(); //UldisN + $pdf->OutputF($_SESSION['DatabaseName'] . '_BOMListing_' . date('Y-m-d').'.pdf');//UldisN + $pdf->__destruct(); //UldisN } else { /*The option to print PDF was not hit */ $title=_('Bill Of Material Listing'); include('includes/header.inc'); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Search') . '" alt="" />' . ' ' . $title . '</p><br />'; if (!isset($_POST['FromCriteria']) or !isset($_POST['ToCriteria'])) { /*if $FromCriteria is not set then show a form to allow input */ @@ -117,15 +116,20 @@ echo '<form onsubmit="return SubmitForm(this, \'\')" action=' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . ' method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<table class="selection"> - <tr> - <td>' . _('From Inventory Part Code') . ':' . '</font></td><td><input tabindex="1" type="text" name="FromCriteria" size="20" maxlength="20" value="1" /></td> - </tr>'; + echo '<table class="selection">'; + echo '<tr> + <th colspan="2" class="header"> + <img src="'.$rootpath.'/css/'.$theme.'/images/view_tree.png" title="' . _('Search') . '" alt="" />' . ' ' . $title . ' + </th> + </tr>'; + echo '<tr> + <td>' . _('From Inventory Part Code') . ':' . '</font></td><td><input tabindex="1" type="text" name="FromCriteria" size="20" maxlength="20" value="1" /></td> + </tr>'; echo '<tr><td>' . _('To Inventory Part Code') . ':' . '</td><td><input tabindex="2" type="text" name="ToCriteria" size="20" maxlength="20" value="zzzzzzz" /></td></tr>'; - echo '</table><br /><div class="centre"><button tabindex="3" type="submit" name="PrintPDF">' . _('Print PDF') . '</button></div><br />'; + echo '</table><div class="centre"><button tabindex="3" type="submit" name="PrintPDF">' . _('Print PDF') . '</button></div>'; echo '<script>defaultControl(document.forms[0].FromCriteria);</script>'; } include('includes/footer.inc');; Modified: trunk/css/silverwolf/images/view_tree.png =================================================================== --- trunk/css/silverwolf/images/view_tree.png 2012-08-19 20:15:55 UTC (rev 9529) +++ trunk/css/silverwolf/images/view_tree.png 2012-08-19 20:29:03 UTC (rev 9530) @@ -1,35 +1,6 @@ \x89PNG |