<?php
session_start();
if (!isset($_SESSION['nick'])){
 header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/index.php" );
}

include("emenux.php");
 //------INI-Coneccion Local
require ("conecta.php");
 //-----INI-Coneccion Local
 //Recibe descripcion
 $sql="SELECT sum(stock*costo_contable) 
FROM m07005"; 
$res=mysql_query($sql,$con); 
while ($fila=mysql_fetch_row($res)){
 $tot=$fila[0];
}//wend
$total=number_format($tot,0,".",",");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>

<TITLE>Entrada de Usuarios</TITLE>

<link rel="stylesheet" href="styles.css">
<style type="text/css">
<!--
.Estilo2 {font-size: 16px}
-->
</style>
</HEAD>
<BODY>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" align=center 
border=0>
  <TBODY>
  <TR>
    <TD vAlign=center align=middle height="100%">
      <TABLE height=400 cellSpacing=0 cellPadding=0 width=718 border=0>
        <TBODY>
        <TR>
          <TD width="718" height=22>
            <TABLE height=22 cellSpacing=0 cellPadding=0 width="100%" 
              border=0><TBODY>
              <TR>
                <TD vAlign=top align=left width=24><A 
                  href="index.php"><IMG 
                  height=22 src="images/xc_left.gif" width=24 
                  border=0></A></TD>
                <TD vAlign=top align=left width="100%"><IMG height=22 
                  src="images/xc_center.gif" width="100%" 
                border=0></TD>
              <TD vAlign=top align=right width=24><IMG height=22 
                  src="images/xc_right.gif" width=24 
              border=0></TD></TR></TBODY></TABLE></TD></TR>
        <TR>
          <TD class=BottomTable vAlign=top 
          background=images/xc_stripes.gif height="100%">
            <TABLE class=IconsTable height=33 cellSpacing=0 cellPadding=0 
            width="100%" border=0>
              <TBODY>
              <TR>
                <TD height="32"><div align="right" class="larger">
                  <div align="right">Vemol</div>
                </div></TD>
                </TR></TBODY></TABLE>
            <TABLE cellSpacing=0 cellPadding=0 width="715" 
              border=0>
              <TBODY>
              <TR>
                <TD width=23 height=18>&nbsp;</TD>
                <TD vAlign=top align=left width=27 height=18>&nbsp;</TD>
                <TD width=35 height=18>&nbsp;</TD>
                <TD width="609" height=18 class=LeftMenu><div align="center">INFORME DE INVENTARIO GENERAL </div></TD>
                <TD width=21 height=18>&nbsp;</TD></TR>
              <TR>
                <TD height="100%" colspan="2">
                  <TABLE cellSpacing=0 cellPadding=0 width="14" border=0>
                      <TBODY>
                      <TR>
                        <TD width=10 align="left" valign="top">&nbsp;</TD>
                        <TD width=4>&nbsp;</TD>
                        </TR>
                      <TR>
                        <TD width=10 align="left" valign="top">&nbsp;</TD>
                        <TD width=4>&nbsp;</TD>
                        </TR>
                      <TR>
                        <TD width=10>&nbsp;</TD>
                        <TD>&nbsp;</TD>
                        </TR></TBODY>
                  </TABLE></TD>
                <TD width=35 height="100%">&nbsp;</TD>
                <TD width=609 
                height="100%" align=middle vAlign=top class=contentcell><span class="BoldText Estilo2">TOTAL INVENTARIO: <?php echo "$ $total" ?></span></TD>
                <TD width=21 height="100%">&nbsp;</TD></TR>
              <TR>
                <TD width=23 height=8>&nbsp;</TD>
                <TD width=27 height=8>&nbsp;</TD>
                <TD width=35 height=8>&nbsp;</TD>
                <TD width="609" height=8>&nbsp;</TD>
        <TD width=21 
      height=8>&nbsp;</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY>
<!-- /Footer -->
<script language="JavaScript" src="menu.js"></script>
<script language="JavaScript" src="menu_tpl.js"></script>
<script language="JavaScript">
	new menu (MENU_ITEMS, MENU_POS);
</script>
</TABLE>
</BODY>
<?php
	mysql_close($con);
?>
</HTML>