<!DOCTYPE html>
<HTML {$html_attrs}><HEAD><TITLE>{$pagetitle}</TITLE>
<META content=IE=7 http-equiv=X-UA-Compatible>
<META content="text/html; charset=utf-8" http-equiv=Content-Type><LINK rel=stylesheet type=text/css href="styles/default.css">{BEGIN rtlCSS}<LINK rel=stylesheet type=text/css href="styles/defaultRTL.css">{END rtlCSS}{BEGIN styleCSSFiles}<LINK rel=stylesheet type=text/css href="{$stylepath}">{END styleCSSFiles}{BEGIN pageCSSFiles}<LINK rel=stylesheet type=text/css href="{$pagestylepath}">{END pageCSSFiles}<!--[if IE]><LINK rel=stylesheet type=text/css href="styles/defaultIE.css">{BEGIN IEcssFiles}<LINK rel=stylesheet type=text/css href="{$stylepathIE}">{END IEcssFiles}<![endif]-->
<META name=GENERATOR content="MSHTML 11.00.10570.1001"></HEAD>
<BODY class="{$stylename}" {$bodyattrs}>{BEGIN body}{$header} 
<TABLE class=runner-toptable cellPadding=0>
  <TBODY>
  <TR class=runner-header>
    <TD class=runner-top colSpan=3>
      {BEGIN container_toplinks}
      <TABLE class="runner-c runner-c-toplinks" cellPadding=0>
        <TBODY>
        <TR class="{$cheaderclass_toplinks}">
          <TD class=runner-cl><IMG src="images/spacer.gif"></TD>
          <TD class=runner-cc></TD>
          <TD class=runner-cr><IMG src="images/spacer.gif"></TD></TR>
        <TR class="runner-row style1">
          <TD class=runner-cl></TD>
          <TD class=runner-cc>
            <TABLE class=runner-hc cellPadding=0 border=0>
              <TBODY>
              <TR>
                <TD class="runner-cc filler">
                  </TD>
                {BEGIN export_link}<TD class="runner-cc runner-br runner-b-toplinks_export" {$brickclass_toplinks_export}>
                  <SPAN><SPAN class=runner-btnframe><SPAN class=runner-btnleft></SPAN><SPAN class=runner-btnright></SPAN><A class=runner-button href="venta_export.php" target=_blank {$exportlink_attrs}>Exportar resultados</A> 
                  </SPAN></SPAN></TD>{END export_link}</TR></TBODY></TABLE></TD>
          <TD class=runner-cr></TD></TR>
        <TR class="{$cfooterclass_toplinks}">
          <TD class=runner-cl><IMG src="images/spacer.gif"></TD>
          <TD class=runner-cc></TD>
          <TD class=runner-cr><IMG src="images/spacer.gif"></TD></TR></TBODY></TABLE>{END container_toplinks}
      {BEGIN container_search}
      <TABLE class="runner-c runner-c-search" cellPadding=0>
        <TBODY>
        <TR class="{$cheaderclass_search}">
          <TD class=runner-cl><IMG src="images/spacer.gif"></TD>
          <TD class=runner-cc></TD>
          <TD class=runner-cr><IMG src="images/spacer.gif"></TD></TR>
        <TR class="runner-row style1">
          <TD class=runner-cl></TD>
          <TD class=runner-cc>
            <TABLE class=runner-hc cellPadding=0 border=0>
              <TBODY>
              <TR>
                <TD class="runner-cc filler">
                  
                  <P align=center><STRONG><FONT 
                  size=5>VENTAS</FONT></STRONG></P></TD>
                {BEGIN details_block}<TD class="runner-cc runner-br runner-b-details_found" {$brickclass_details_found}>
                  <SPAN><SPAN 
                  {$details_attrs}>Detalles encontrados: <B><SPAN 
                  class=runner-details_found_count>{$records_found}</SPAN></B> 
                  </SPAN></SPAN></TD>
                {END details_block}{BEGIN pages_block}<TD class="runner-cc runner-br runner-b-page_of" {$brickclass_page_of}>
                  <SPAN><SPAN 
                  {$pages_attrs}>Página <B>{$page}</B> / <B>{$maxpages}</B> </SPAN></SPAN></TD>
                {END pages_block}{BEGIN recordspp_block}<TD class="runner-cc runner-br runner-b-recsperpage" {$brickclass_recsperpage}>
                  <SPAN><SPAN id=recordspp_block{$id} name="recordspp_block{$id}">Resultados por página:&nbsp;{$recsPerPage} 
              </SPAN></SPAN></TD>{END recordspp_block}</TR></TBODY></TABLE></TD>
          <TD class=runner-cr></TD></TR>
        <TR class="{$cfooterclass_search}">
          <TD class=runner-cl><IMG src="images/spacer.gif"></TD>
          <TD class=runner-cc></TD>
          <TD class=runner-cr><IMG src="images/spacer.gif"></TD></TR></TBODY></TABLE>{END container_search}</TD></TR>
  <TR class=runner-body>
    <TD class="runner-left {$blockclass_left}">
      {BEGIN container_logg}
      <TABLE class="runner-c runner-c-logg" cellPadding=0>
        <TBODY>
        <TR class="{$cheaderclass_logg}">
          <TD class=runner-cl><IMG src="images/spacer.gif"></TD>
          <TD class=runner-cc></TD>
          <TD class=runner-cr><IMG src="images/spacer.gif"></TD></TR>
        {BEGIN security_block}<TR class="runner-row style1 runner-b-loggedas {$brickclass_loggedas}">
          <TD class=runner-cl></TD>
          <TD class="runner-cc runner-brickcontents">
            
            <DIV id=login_block{$id}>{BEGIN loggedas_message}<SPAN>Conectado como&nbsp;<B>{$username}</B><BR><BR></SPAN>{END loggedas_message}{BEGIN guestloginbutton}<SPAN class=runner-btnframe><SPAN class=runner-btnleft></SPAN><SPAN class=runner-btnright></SPAN><A class=runner-button href="#" {$guestloginlink_attrs}>Conectar</A> </SPAN>{END guestloginbutton}{BEGIN logoutbutton}<SPAN class=runner-btnframe><SPAN class=runner-btnleft></SPAN><SPAN class=runner-btnright></SPAN><A class=runner-button href="login.php?a=logout" {$logoutlink_attrs}>Desconectarse</A> </SPAN><!-- Permissions -->
            {END logoutbutton}{BEGIN adminarea_link}<DIV><SPAN class=runner-btnframe><SPAN class=runner-btnleft></SPAN><SPAN class=runner-btnright></SPAN><A class=runner-button href="admin_rights_list.php" {$adminarealink_attrs}>Area Admin</A> </SPAN></DIV>
            {END adminarea_link}{BEGIN changepwd_link}<DIV><SPAN class=runner-btnframe><SPAN class=runner-btnleft></SPAN><SPAN class=runner-btnright></SPAN><A class=runner-button href="changepwd.php" {$changepwdlink_attrs}>Cambiar contraseña</A> 
            </SPAN></DIV>{END changepwd_link}</DIV></TD>
          <TD class=runner-cr></TD></TR>
        {END security_block}<TR class="{$cfooterclass_logg}">
          <TD class=runner-cl><IMG src="images/spacer.gif"></TD>
          <TD class=runner-cc></TD>
          <TD class=runner-cr><IMG src="images/spacer.gif"></TD></TR></TBODY></TABLE>{END container_logg}
      {BEGIN container_left}
      <TABLE class="runner-c runner-c-left" cellPadding=0>
        <TBODY>
        <TR class="{$cheaderclass_left}">
          <TD class=runner-cl><IMG src="images/spacer.gif"></TD>
          <TD class=runner-cc></TD>
          <TD class=runner-cr><IMG src="images/spacer.gif"></TD></TR>
        {BEGIN searchPanel}<TR class="runner-row style1 runner-b-searchpanel {$brickclass_searchpanel}">
          <TD class=runner-cl></TD>
          <TD class="runner-cc runner-brickcontents">
            
            <DIV class=searchPanelContainer>{$adv_search_panel} </DIV></TD>
          <TD class=runner-cr></TD></TR>
        {END searchPanel}{BEGIN menu_block}{$mainmenu}{END menu_block}<TR class="{$cfooterclass_left}">
          <TD class=runner-cl><IMG src="images/spacer.gif"></TD>
          <TD class=runner-cc></TD>
          <TD class=runner-cr><IMG src="images/spacer.gif"></TD></TR></TBODY></TABLE>{END container_left}</TD>
    <TD class="runner-center {$blockclass_center}">
      {BEGIN container_recordcontrols}
      <TABLE class="runner-c runner-c-recordcontrols" cellPadding=0>
        <TBODY>
        <TR class="{$cheaderclass_recordcontrols}">
          <TD class=runner-cl><IMG src="images/spacer.gif"></TD>
          <TD class=runner-cc></TD>
          <TD class=runner-cr><IMG src="images/spacer.gif"></TD></TR>
        <TR class="runner-row style1">
          <TD class=runner-cl></TD>
          <TD class=runner-cc>
            <TABLE class=runner-hc cellPadding=0 border=0>
              <TBODY>
              <TR>
                {BEGIN newrecord_controls_block}<TD class="runner-cc runner-bl runner-b-recordcontrols_new" {$brickclass_recordcontrols_new}>
                  <SPAN>{BEGIN add_link}<SPAN class=runner-btnframe><SPAN class=runner-btnleft></SPAN><SPAN class=runner-btnright></SPAN><A class=runner-button href="#" {$addlink_attrs}>Nueva Venta</A> 
                  </SPAN>{END add_link}</SPAN></TD>
                {END newrecord_controls_block}{BEGIN record_controls_block}<TD class="runner-cc runner-bl runner-b-recordcontrol" {$brickclass_recordcontrol}>
                  <SPAN>{BEGIN exportselected_link}<SPAN class=runner-btnframe {$exportselectedlink_span}><SPAN class=runner-btnleft></SPAN><SPAN class=runner-btnright></SPAN><A class=runner-button href="#" {$exportselectedlink_attrs}>Exportar seleccionados</A> 
                  </SPAN>{END exportselected_link}</SPAN></TD>
                {END record_controls_block}<TD class="runner-cc filler">
                  </TD></TR></TBODY></TABLE></TD>
          <TD class=runner-cr></TD></TR>
        <TR class="{$cfooterclass_recordcontrols}">
          <TD class=runner-cl><IMG src="images/spacer.gif"></TD>
          <TD class=runner-cc></TD>
          <TD class=runner-cr><IMG src="images/spacer.gif"></TD></TR></TBODY></TABLE>{END container_recordcontrols}
      {BEGIN container_message}
      <TABLE class="runner-c runner-c-message" cellPadding=0>
        <TBODY>
        <TR class="{$cheaderclass_message}">
          <TD class=runner-cl><IMG src="images/spacer.gif"></TD>
          <TD class=runner-cc></TD>
          <TD class=runner-cr><IMG src="images/spacer.gif"></TD></TR>
        <TR class="runner-row style1">
          <TD class=runner-cl></TD>
          <TD class=runner-cc>
            <TABLE class=runner-hc cellPadding=0 border=0>
              <TBODY>
              <TR>
                {BEGIN message_block}<TD class="runner-cc runner-bc runner-b-message" {$brickclass_message}>
                  <SPAN>
                  <DIV class=runner-message>{$message}</DIV></SPAN></TD>{END message_block}</TR></TBODY></TABLE></TD>
          <TD class=runner-cr></TD></TR>
        <TR class="{$cfooterclass_message}">
          <TD class=runner-cl><IMG src="images/spacer.gif"></TD>
          <TD class=runner-cc></TD>
          <TD class=runner-cr><IMG src="images/spacer.gif"></TD></TR></TBODY></TABLE>{END container_message}
      {BEGIN container_grid}
      {BEGIN grid_block}<TABLE class="runner-c runner-c-grid runner-b-grid" cellPadding=0>
        <THEAD>{BEGIN grid_header}
        <TR class="runner-toprow style1 {$gridHeader_class}">{BEGIN record_header}
          <TH class=runner-cl><IMG src="images/spacer.gif"></TH>
          {BEGIN edit_column}<TH class=runner-cc iEditCont="edit">
            <IMG src="images/icon_edit.gif"></TH>
          {END edit_column}{BEGIN view_column}<TH class=runner-cc iEditCont="view">
            <IMG src="images/icon_view.gif"></TH>
          {END view_column}{BEGIN checkbox_column}<TH class="runner-cc runner-bc">
            <INPUT type=checkbox 
            {$checkboxheader_attrs}></TH>
          {END checkbox_column}{BEGIN venta_dtable_column}<TH class=runner-cc></TH>
          {END venta_dtable_column}{BEGIN idventa_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN idventa_fieldheader}<A {$idventa_orderlinkattrs}>Nº venta </A>{END idventa_fieldheader}</TH>
          {END idventa_fieldheadercolumn}{BEGIN fecha_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN fecha_fieldheader}<A {$fecha_orderlinkattrs}>Fecha </A>{END fecha_fieldheader}</TH>
          {END fecha_fieldheadercolumn}{BEGIN cliente_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN cliente_fieldheader}<A {$cliente_orderlinkattrs}>Cliente </A>{END cliente_fieldheader}</TH>
          {END cliente_fieldheadercolumn}{BEGIN total_venta_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN total_venta_fieldheader}<A {$total_venta_orderlinkattrs}>Total Venta </A>{END total_venta_fieldheader}</TH>
          {END total_venta_fieldheadercolumn}{BEGIN total_cobro_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN total_cobro_fieldheader}<A {$total_cobro_orderlinkattrs}>Total Cobro </A>{END total_cobro_fieldheader}</TH>
          {END total_cobro_fieldheadercolumn}{BEGIN observacion_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN observacion_fieldheader}<A {$observacion_orderlinkattrs}>Observación </A>{END observacion_fieldheader}</TH>
          {END observacion_fieldheadercolumn}{BEGIN cobrada_fieldheadercolumn}<TH class="runner-cc runner-clast">
            {BEGIN cobrada_fieldheader}<A {$cobrada_orderlinkattrs}>Cobrada </A>{END cobrada_fieldheader}</TH>
          {END cobrada_fieldheadercolumn}<TH class=runner-cr><IMG src="images/spacer.gif"></TH>
          {BEGIN endrecordheader_block}<TH class=runner-cs></TH>{END endrecordheader_block}{END record_header}</TR>{END grid_header}</THEAD>
        <TBODY>
        {BEGIN grid_row}<TR class="runner-row style1 {$rowclass}" {$rowattrs} {$rowstyle}>{BEGIN grid_record}
          <TD class=runner-cl {$rowstyle}></TD>
          {BEGIN edit_column}<TD class="runner-cc runner-bc" iEditCont="edit" {$rowstyle}>
            {BEGIN edit_link}<A {$editlink_attrs}><FONT color=#7d9ec0 
            size=2><STRONG>Editar</STRONG></FONT></A>{END edit_link}</TD>
          {END edit_column}{BEGIN view_column}<TD class="runner-cc runner-bc" iEditCont="view" {$rowstyle}>
            {BEGIN view_link}<A {$viewlink_attrs}><FONT color=#0000ff 
            size=2><STRONG>Ticket</STRONG></FONT></A>{END view_link}</TD>
          {END view_column}{BEGIN checkbox_column}<TD class="runner-cc runner-bc" iEditCont="checkBox" {$rowstyle}>
            {BEGIN checkbox}<INPUT type=checkbox {$checkbox_attrs}>{END checkbox}</TD>
          {END checkbox_column}{BEGIN venta_dtable_column}<TD class="runner-cc runner-nowrap" {$rowstyle}>
            {BEGIN det_venta_dtable_link}<SPAN><A 
            {$det_venta_dtablelink_attrs}><STRONG><FONT 
            size=2>Detalle</FONT></STRONG> <SPAN dir=ltr {$det_venta_childnumber_attr}>{BEGIN det_venta_childcount}({$det_venta_childnumber}){END det_venta_childcount}</SPAN> </A>&nbsp; 
            </SPAN>{END det_venta_dtable_link}{BEGIN cobro_dtable_link}<SPAN><A 
            {$cobro_dtablelink_attrs}><STRONG><FONT color=#009300 
            size=2>Cobro</FONT></STRONG> <SPAN dir=ltr {$cobro_childnumber_attr}>{BEGIN cobro_childcount}({$cobro_childnumber}){END cobro_childcount}</SPAN> </A>&nbsp; 
            </SPAN>{END cobro_dtable_link}</TD>
          {END venta_dtable_column}{BEGIN idventa_fieldcolumn}<TD class="runner-cc  {$idventa_class}" {$idventa_style}>
            
            <P align=center>{$idventa_value}</P></TD>
          {END idventa_fieldcolumn}{BEGIN fecha_fieldcolumn}<TD class="runner-cc  {$fecha_class}" {$fecha_style}>
            {$fecha_value}</TD>
          {END fecha_fieldcolumn}{BEGIN cliente_fieldcolumn}<TD class="runner-cc  {$cliente_class}" {$cliente_style}>
            <STRONG><EM>{$cliente_value}</EM></STRONG></TD>
          {END cliente_fieldcolumn}{BEGIN total_venta_fieldcolumn}<TD class="runner-cc  {$total_venta_class}" {$total_venta_style}>
            {$total_venta_value}</TD>
          {END total_venta_fieldcolumn}{BEGIN total_cobro_fieldcolumn}<TD class="runner-cc  {$total_cobro_class}" {$total_cobro_style}>
            {$total_cobro_value}</TD>
          {END total_cobro_fieldcolumn}{BEGIN observacion_fieldcolumn}<TD class="runner-cc  {$observacion_class}" {$observacion_style}>
            {$observacion_value}</TD>
          {END observacion_fieldcolumn}{BEGIN cobrada_fieldcolumn}<TD class="runner-cc runner-clast {$cobrada_class}" {$cobrada_style}>
            {$cobrada_value}</TD>
          {END cobrada_fieldcolumn}<TD class=runner-cr {$rowstyle}></TD>
          {BEGIN endrecord_block}<TD class=runner-cs {$endrecordblock_attrs}>
            </TD>{END endrecord_block}{END grid_record}</TR>
        {END grid_row}{BEGIN grid_footer}{BEGIN totals_row}<TR class="runner-row footer style1 {$gridFooter_class}">{BEGIN totals_record}
          <TD class=runner-cl></TD>
          {BEGIN edit_column}<TD class=runner-cc>
            </TD>
          {END edit_column}{BEGIN view_column}<TD class=runner-cc>
            </TD>
          {END view_column}{BEGIN checkbox_column}<TD class=runner-cc>
            </TD>
          {END checkbox_column}{BEGIN venta_dtable_column}<TD class=runner-cc>
            </TD>
          {END venta_dtable_column}{BEGIN idventa_fieldfootercolumn}<TD class="runner-cc  {$idventa_class}">
            </TD>
          {END idventa_fieldfootercolumn}{BEGIN fecha_fieldfootercolumn}<TD class="runner-cc  {$fecha_class}">
            </TD>
          {END fecha_fieldfootercolumn}{BEGIN cliente_fieldfootercolumn}<TD class="runner-cc  {$cliente_class}">
            </TD>
          {END cliente_fieldfootercolumn}{BEGIN total_venta_fieldfootercolumn}<TD class="runner-cc  {$total_venta_class}">{BEGIN total_venta_showtotal}
            Total: {$total_venta_total}{END total_venta_showtotal}</TD>
          {END total_venta_fieldfootercolumn}{BEGIN total_cobro_fieldfootercolumn}<TD class="runner-cc  {$total_cobro_class}">{BEGIN total_cobro_showtotal}
            Total: {$total_cobro_total}{END total_cobro_showtotal}</TD>
          {END total_cobro_fieldfootercolumn}{BEGIN observacion_fieldfootercolumn}<TD class="runner-cc  {$observacion_class}">
            </TD>
          {END observacion_fieldfootercolumn}{BEGIN cobrada_fieldfootercolumn}<TD class="runner-cc runner-clast {$cobrada_class}">
            </TD>
          {END cobrada_fieldfootercolumn}<TD class=runner-cr></TD>
          {BEGIN endrecordtotals_block}<TD class=runner-cs>
            </TD>{END endrecordtotals_block}{END totals_record}</TR>
        {END totals_row}<TR class="runner-bottomrow style1{$gridFooter_class}">{BEGIN record_footer}
          <TD class=runner-cl><IMG src="images/spacer.gif"></TD>
          {BEGIN edit_column}<TD class=runner-cc></TD>
          {END edit_column}{BEGIN view_column}<TD class=runner-cc></TD>
          {END view_column}{BEGIN checkbox_column}<TD class=runner-cc></TD>
          {END checkbox_column}{BEGIN venta_dtable_column}<TD class=runner-cc></TD>
          {END venta_dtable_column}{BEGIN idventa_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END idventa_fieldheadercolumn}{BEGIN fecha_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END fecha_fieldheadercolumn}{BEGIN cliente_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END cliente_fieldheadercolumn}{BEGIN total_venta_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END total_venta_fieldheadercolumn}{BEGIN total_cobro_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END total_cobro_fieldheadercolumn}{BEGIN observacion_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END observacion_fieldheadercolumn}{BEGIN cobrada_fieldheadercolumn}<TD class="runner-cc runner-clast"></TD>
          {END cobrada_fieldheadercolumn}<TD class=runner-cr><IMG src="images/spacer.gif"></TD>
          {BEGIN endrecordfooter_block}<TD class=runner-cs></TD>{END endrecordfooter_block}{END record_footer}</TR>{END grid_footer}</TBODY></TABLE>{END grid_block}{END container_grid}
      {BEGIN container_pagination}
      <TABLE class="runner-c runner-c-pagination" cellPadding=0>
        <TBODY>
        <TR class="{$cheaderclass_pagination}">
          <TD class=runner-cl><IMG src="images/spacer.gif"></TD>
          <TD class=runner-cc></TD>
          <TD class=runner-cr><IMG src="images/spacer.gif"></TD></TR>
        <TR class="runner-row style1">
          <TD class=runner-cl></TD>
          <TD class=runner-cc>
            <TABLE class=runner-hc cellPadding=0 border=0>
              <TBODY>
              <TR>
                {BEGIN pagination_block}<TD class="runner-cc runner-bc runner-b-pagination" {$brickclass_pagination}>
                  <SPAN>{$pagination}</SPAN></TD>{END pagination_block}</TR></TBODY></TABLE></TD>
          <TD class=runner-cr></TD></TR>
        <TR class="{$cfooterclass_pagination}">
          <TD class=runner-cl><IMG src="images/spacer.gif"></TD>
          <TD class=runner-cc></TD>
          <TD class=runner-cr><IMG src="images/spacer.gif"></TD></TR></TBODY></TABLE>{END container_pagination}</TD>
    <TD class="runner-right {$blockclass_right}"></TD></TR>
  <TR class=runner-footer>
    <TD class=runner-bottom 
colSpan=3><!--%%bottom%%--></TD></TR></TBODY></TABLE>{$footer}{END body} </BODY></HTML>
