<?php

session_start();
include("DMMYSQLG.php");
require_once('DFJSISCI.inc');
require_once('DF80000.php');
//$_SESSION['al']='0A';
if($_SESSION['vendedor']=='' || $_SESSION['tipven']==''){
	echo "<h2>Vuelva a identificarse!!</h2>";
	exit();
}
$dt_parame=mysqli_fetch_array(mysqli_query($con ,"SELECT * from dgparame"));
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="DG2B000_PR.css" type="text/css"/>
<script type="text/javascript" language="javascript" src="DSSCRIPT.js"></script>
<script type="text/javascript" language="javascript" src="DG2B0002_PR.js"></script>
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<form name="mainForm" id="mainForm" method="post" action="" target="_self" onsubmit="return false">
<input type="text" name="bot" id="bot" value="">
<input type="hidden" name="idDetSel" id="idDetSel" value="">
<input type="hidden" name="virtualKey_focus" id="virtualKey_focus" value="NO_FOCUS">
<table  border="0" cellpadding="0" cellspacing="0" align="center">
  <!--DWLayoutTable-->
  <tr>
    <td height="20"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td height="20" class="titVenta">CAJERO(A):<?php

	$dt_catven=mysqli_fetch_array(mysqli_query($con ,"SELECT * FROM dgcatven WHERE cod_ven='".$_SESSION['vendedor']."'")); 
	echo $dt_catven['nom_ven'].' '.$dt_catven['ap_pat_ven'].' '.$dt_catven['ap_mat_ven'];?></td>
    <td height="20" class="titVenta"><?php
echo whatday($_SESSION['fecven']).', '.chfecha($_SESSION['fecven'],'Y-m-d','d de M de Y');?></td>
  </tr>
  <tr>
    <td width="10" height="80"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="340">
		<div style="width:340px; height:80px" id="divMenu">
		<table cellpadding="0" cellspacing="0" border="0" align="right">
			<tr>
			<td></td>
			<td><?php
if($dt_parame['lug_imp_tic']=='CF'){ ?><img src="img_punt/caja.png" alt="Capturar Pago" width="80" height="80" onclick="habScrCaj();"/><?php
}?></td>
			<td><?php
if($dt_parame['lug_imp_tic']=='VM'){ ?><img src="img_punt/lineas/cuadro.png" alt="Imprimir Pedido" width="80" height="80" onclick="imprimePedido();nuevoPedido();"/><?php
}?></td>
			<td><img src="img_punt/cancelar.png" alt="Cancelar Pedido" width="80" height="80" onclick="cancelaVenta();"/></td>
			</tr>
		</table>
		</div></td>
    <td width="650" align="left" valign="top" class="basCellLinea">
		<div style="width:650px;" id="divLineas"></div>	</td>
  </tr>
  <tr>
    <td height="80"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td rowspan="2" class="basCellCalculadora"><div style="width:340px; height:150px;" id="divCalculadora">
      <?php
require_once('DG240002_MEN.php');?>
    </div></td>
    <td class="basCellGrupo" valign="top">
	  <div style="width:650px; height:80px" id="divGrupos"></div>	</td>
  </tr>
  <tr>
    <td height="70"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td rowspan="2" class="basCellProducto" valign="top">
		<div style="width:650px; height:300px;" id="divProductos"></div><div style="width:650px; height:385px; display:none;" id="divScrPag"><?php
include("DG240003_MEN.php")?></div>		</td>
  </tr>
  
  <tr>
    <td height="315"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td  class="basCellDetVen"><div style="width:340px; height:315px;" id="divDetVen"><?php
require_once("DG240001_MEN.php");?></div></td>
  </tr>
</table>
</form>
</body>
</html>
