$stt++; echo "<tr>\r\n\t\t\t\t\t\t\t\t\t\t<td class='info1' width='10px'>{$stt}</td>"; $hanghoa->set_idhang($item_chitiet['idHang']); $data_hanghoa = $hanghoa->listhanghoa(); echo "<td class='info1' width='70px'>" . $data_hanghoa[0][TenLoai] . "</td>\r\n\t\t\t\t\t\t\t\t\t\t<td class='info1' width='70px'>" . $data_hanghoa[0][TenCongTy] . "</td>\r\n\t\t\t\t\t\t\t\t\t\t<td class='info1' width='150px'>" . $data_hanghoa[0][TenHang] . "</td>\r\n\t\t\t\t\t\t\t\t\t\t<td class='info1' width='40px'>Cái</td>\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t<td class='info1' width='40px'>{$item_chitiet['SoLuong']}</td>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t<td align='center' width='130px'> \t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t" . xulygia($data_hanghoa[0][Gia]) . " \r\n\t\t\t\t\t\t\t\t\t\t</td> \r\n\t\t\t\t\t\t\t\t\t\t<td align='center' width='130px'>" . xulygia($data_hanghoa[0][Gia] * $item_chitiet[SoLuong]) . "\r\n\t\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\t</tr>"; } } ?> <tr> <td class='info1'width="10px"></td> <td class='info1' colspan="3" width="290px" align="center">Cộng</td> <td class='info1'width="40px" align="center">X</td> <td class='info1'width="40px" align="center">X</td> <td class='info1'width="130px" align="center">X</td> <td class='info1'width="130px" align="center"><?php echo xulygia($data[0]['TongTien']); ?> </td> </tr> </table> <div id="xk_bottom"> <p><strong>Tổng số tiền</strong> (viết bằng chữ): <?php echo doc_so($data[0]['TongTien']); ?> </p> <p><div class="right" style="margin-right:100px;"> <br/> Xuất. ngày <?php echo $ngaydat; ?> tháng <?php
$stt++; echo "<tr>\r\n\t\t\t\t\t\t\t\t\t\t<td class='info1' width='10px'>{$stt}</td>"; $hanghoa->set_idhang($item_chitiet['idHang']); $data_hanghoa = $hanghoa->listhanghoa(); echo "<td class='info1' width='70px'>" . $data_hanghoa[0][TenLoai] . "</td>\r\n\t\t\t\t\t\t\t\t\t\t<td class='info1' width='70px'>" . $data_hanghoa[0][TenCongTy] . "</td>\r\n\t\t\t\t\t\t\t\t\t\t<td class='info1' width='150px'>" . $data_hanghoa[0][TenHang] . "</td>\r\n\t\t\t\t\t\t\t\t\t\t<td class='info1' width='40px'>Cái</td>\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t<td class='info1' width='40px'>{$item_chitiet['SoLuong']}</td>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t<td align='center' width='130px'> \t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t" . xulygia($data_hanghoa[0][Gia]) . " \r\n\t\t\t\t\t\t\t\t\t\t</td> \r\n\t\t\t\t\t\t\t\t\t\t<td align='center' width='130px'>" . xulygia($data_hanghoa[0][Gia] * $item_chitiet[SoLuong]) . "\r\n\t\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\t</tr>"; } } ?> <tr> <td class='info1'width="10px"></td> <td class='info1' colspan="3" width="290px" align="center">Cộng</td> <td class='info1'width="40px" align="center">X</td> <td class='info1'width="40px" align="center">X</td> <td class='info1'width="130px" align="center">X</td> <td class='info1'width="130px" align="center"><?php echo xulygia($tongtien); ?> </td> </tr> </table> <div id="xk_bottom"> <p><strong>Tổng số tiền</strong> (viết bằng chữ): <?php echo doc_so($tongtien); ?> </p> <p><div class="right" style="margin-right:100px;"> <br/> Xuất. ngày <?php echo $ngaydat; ?> tháng <?php
<td class=title width="50px">Xóa</td> </tr> <?php $stt = 0; $phieuxuat = new PhieuXuat(); $data_phieuxuat = $phieuxuat->listphieuxuat(); foreach ($data_phieuxuat as $item_phieuxuat) { $stt++; echo "<tr height='20px'>"; echo "<td align=center width='50px'>{$stt}</td>"; echo "<td align=center width='100px'>{$item_phieuxuat['idPhieuXuat']}</td>"; echo "<td align=center width='100px'><textarea id='username{$stt}' readonly='readonly' cols='5' rows='2' disabled >{$item_phieuxuat['BoPhan']}</textarea></td>"; echo "<td align=center width='70px'><input type='text' class='tim' id='ngayxuat{$stt}' value='{$item_phieuxuat['NgayXuat']}' size='7' disabled='disabled'/></td>"; echo "<td align=center width='70px'><font style='font-weight:900; color:#FF0'>" . xulygia($item_phieuxuat['TongTien']) . "</font></td>"; echo "<td align=center width='80px'><textarea id='nguoinhan{$stt}' cols='7' rows='2' disabled='disabled' >{$item_phieuxuat['NguoiNhan']}</textarea></td>"; echo "<td align=center width='100px'><input type='text' id='dienthoai{$stt}' value='{$item_phieuxuat['DienThoai']}' size='9' disabled='disabled' /></td>"; echo "<td align=center width='100px'><textarea id='diadiemgiao{$stt}' cols='9' rows='2' disabled='disabled'>{$item_phieuxuat['DiaChi']}</textarea></td>"; echo "<td align=center width='100px'><input type='text' id='ghichu{$stt}' value='"; if ($item_donhang['GhiChu'] != "") { echo $item_donhang['GhiChu']; } echo "' size='10' disabled='disabled'/></td>"; ?> <td align=center width='50px'> <a href='modules/xuatkho/phieuxuatkho_xuat_xemlai.php?id=<?php echo $item_phieuxuat['idPhieuXuat']; ?> ' target="_blank" >Xem</a></td> <td align=center width='50px'> <a href='#' onclick=xoaphieuxuat('<?php
require_once '../../../libraries/phieunhap.php'; require_once '../../../libraries/function.php'; $phieunhap = new PhieuNhap(); $data_phieunhap = $phieunhap->listphieunhap(); $stt = 0; if ($data_phieunhap == 0) { echo "<tr><td colspan='8'> <div align='center'>Không có phiếu nhập</div> </td> </tr>"; } else { foreach ($data_phieunhap as $item_phieunhap) { $stt++; $ngaynhap = substr($item_phieunhap[NgayNhap], -2) . '-' . substr($item_phieunhap[NgayNhap], 5, 2) . '-' . substr($item_phieunhap[NgayNhap], 0, 4); echo "<tr height='20px'>"; echo "<td align=center width='50px'>{$stt}</td>"; echo "<td align=center width='100px'><input type='text' id='maphieu{$stt}' value='{$item_phieunhap['idPhieuNhap']}' size='25' disabled='disabled'/></td>"; echo "<td align=center width='100px'><input type='text' id='ngaynhap{$stt}' value='{$ngaynhap}' size='25' disabled='disabled'/></td>"; echo "<td align=center width='100px'><font style='font-weight:900; color:#FF0'>" . xulygia($item_phieunhap[TongTien]) . "</font></td>"; echo "<td align=center width='150px'><input type='text' id='ghichu{$stt}' value='{$item_phieunhap['GhiChu']}' size='30'/></td>"; ?> <td align=center width='100px'><a href='modules/nhapkho/chitiet.php?id=<?php echo $item_phieunhap[idPhieuNhap]; ?> ' target='_blank'>Chi Tiết</a></td> <td align=center width='100px'> <a href='#' onclick="suaphieunhap('<?php echo $item_phieunhap[idPhieuNhap]; ?> ',document.getElementById('ghichu<?php echo $stt; ?> ').value)">Sửa</a></td> <?php echo "<td align=center width='100px'><a href='#' onclick=xoaphieunhap('{$item_phieunhap['idPhieuNhap']}')>Xóa</a></td>";
').value, document.getElementById('ghichu<?php echo $stt; ?> ').value )">Sửa</a></td> <?php echo "<td align=center width='30px'><a href='#' onclick=xoadonhang('{$item_donhang['idDonHang']}')>Xóa</a></td>"; echo "</tr>"; } else { echo "<tr height='20px'>"; echo "<td align=center width='50px'>{$stt}</td>"; echo "<td align=center width='100px'>{$item_donhang['idDonHang']}</td>"; echo "<td align=center width='100px'><textarea id='username{$stt}' readonly='readonly' cols='5' rows='1' disabled >{$item_donhang['Username']}</textarea></td>"; echo "<td align=center width='70px'><input type='text' id='ngaydat{$stt}' value='{$item_donhang['ThoiDiemDatHang']}' size='7' disabled='disabled'/>\r\n\t\t\t\t\t\t\t\t\t\t<input type='text' id='ngaygiao{$stt}' value='{$item_donhang['ThoiDiemGiaoHang']}' size='7' disabled='disabled'/></td>"; echo "<td align=center width='70px'><font style='font-weight:900; color:#CCC'>" . xulygia($item_donhang['TongTien']) . "</font></td>"; echo "<td align=center width='80px'><textarea id='nguoinhan{$stt}' cols='7' rows='2' disabled='disabled' >{$item_donhang['TenNguoiNhan']}</textarea></td>"; echo "<td align=center width='100px'><input type='text' id='dienthoai{$stt}' value='{$item_donhang['DienThoai']}' size='9' disabled='disabled'/></td>"; echo "<td align=center width='100px'><textarea id='diadiemgiao{$stt}' cols='9' rows='2' disabled='disabled' >{$item_donhang['DiaDiemGiaoHang']}</textarea></td>"; echo "<td align=center width='100px'><input type='text' id='ghichu{$stt}' value='{$item_donhang['GhiChu']}' size='10' disabled='disabled'/></td>"; ?> <td align=center width='30px'> <a href='modules/donhang/chitiet.php?id=<?php echo $item_donhang[idDonHang]; ?> ' target="_blank" >Chi Tiết</a></td> <td align=center width='30px'> X </td> <?php echo "<td align=center width='30px'><a href='#' onclick=xoadonhang('{$item_donhang['idDonHang']}')>Xóa</a></td>"; echo "</tr>"; }