noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
stock_histo.php
Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  *   This file is part of NOALYSS.
00005  *
00006  *   NOALYSS is free software; you can redistribute it and/or modify
00007  *   it under the terms of the GNU General Public License as published by
00008  *   the Free Software Foundation; either version 2 of the License, or
00009  *   (at your option) any later version.
00010  *
00011  *   NOALYSS is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *   GNU General Public License for more details.
00015  *
00016  *   You should have received a copy of the GNU General Public License
00017  *   along with NOALYSS; if not, write to the Free Software
00018  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 /* $Revision$ */
00021 
00022 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00023 
00024 /**
00025  * @file
00026  * @brief show the result of stock history
00027  *
00028  */
00029 
00030 ?>
00031 <div class="content">
00032         <?php echo $nav_bar?>
00033 <table class="result">
00034         <tr>
00035                 <th><?php echo $tb->get_header(0);?></th>
00036                 <th><?php echo $tb->get_header(1);?></th>
00037                 <th><?php echo $tb->get_header(2);?></th>
00038                 <th><?php echo $tb->get_header(3);?></th>
00039                 <th>Opération</th>
00040                 <th><?php echo $tb->get_header(4);?></th>
00041                 <th><?php echo $tb->get_header(5);?></th>
00042                 <th><?php echo $tb->get_header(6);?></th>
00043                 <th><?php echo $tb->get_header(7);?></th>
00044         </tr>
00045         <?php 
00046 
00047         for ($i=0;$i<$max_row;$i++):
00048                 $row=Database::fetch_array($res, $i);
00049                 $class=($i%2==0)?' class="even" ':' class="odd" ';
00050         ?>
00051         <tr <?php echo $class?>>
00052                 <td>
00053                         <?php echo $row['cdate']?>
00054                 </td>
00055                 <td>
00056                         <?php echo HtmlInput::card_detail($row['sg_code'],"",' class="line" ',true)?>
00057                 </td>
00058                 <td>
00059                         <?php echo $row['r_name']?>
00060                 </td>
00061                 <td>
00062                         <?php if (trim($row['qcode'])!='') : ?>
00063                         <?php echo HtmlInput::card_detail($row['qcode'],$row['fname'],' class="line" ')?>
00064                         <?php endif; ?>
00065                 </td>
00066                 <td>
00067                         <?php if (trim($row['jr_internal'])!='') : ?>
00068                         <?php echo HtmlInput::detail_op($row['jr_id'],$row['jr_internal'])?>
00069                         <?php endif; ?>
00070                 </td>
00071                 <td>
00072                         <?php echo $row['ccomment']?>
00073                 </td>
00074                 <td class="num">
00075                         <?php echo nbm($row['j_montant'])?>
00076                 </td>
00077                 <td class="num">
00078                         <?php echo nbm($row['sg_quantity'])?>
00079                 </td>
00080                 <td>
00081                         <?php echo $row['direction']?>
00082                 </td>
00083         </tr>
00084         <?php endfor;?>
00085 </table>
00086         <?php echo $nav_bar?>
00087 </div>
 All Data Structures Namespaces Files Functions Variables Enumerations