<!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="inf_utilidades_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>Informe de 
                  Utilidades</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>
                <TD class="runner-cc filler">
                  <SPAN><SPAN class=runner-btnframe><SPAN class=runner-btnleft></SPAN><SPAN class=runner-btnright></SPAN><A id=New_Button13 class=runner-button href="#" typeid="ib">Generar&nbsp;PDF</A></SPAN></SPAN></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 checkbox_column}<TH class="runner-cc runner-bc">
            <INPUT type=checkbox 
            {$checkboxheader_attrs}></TH>
          {END checkbox_column}{BEGIN fecha_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN fecha_fieldheader}<A {$fecha_orderlinkattrs}>Fecha </A>{END fecha_fieldheader}</TH>
          {END fecha_fieldheadercolumn}{BEGIN idventa_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN idventa_fieldheader}<A {$idventa_orderlinkattrs}>Nº Venta </A>{END idventa_fieldheader}</TH>
          {END idventa_fieldheadercolumn}{BEGIN idarticulo_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN idarticulo_fieldheader}<A {$idarticulo_orderlinkattrs}>Código </A>{END idarticulo_fieldheader}</TH>
          {END idarticulo_fieldheadercolumn}{BEGIN nombre_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN nombre_fieldheader}<A {$nombre_orderlinkattrs}>Artículo </A>{END nombre_fieldheader}</TH>
          {END nombre_fieldheadercolumn}{BEGIN costo_unidad_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN costo_unidad_fieldheader}<A {$costo_unidad_orderlinkattrs}>Costo x unid. </A>{END costo_unidad_fieldheader}</TH>
          {END costo_unidad_fieldheadercolumn}{BEGIN cantidad_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN cantidad_fieldheader}<A {$cantidad_orderlinkattrs}>Cantidad </A>{END cantidad_fieldheader}</TH>
          {END cantidad_fieldheadercolumn}{BEGIN costo_total_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN costo_total_fieldheader}<A {$costo_total_orderlinkattrs}>Costo Total </A>{END costo_total_fieldheader}</TH>
          {END costo_total_fieldheadercolumn}{BEGIN precio_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN precio_fieldheader}<A {$precio_orderlinkattrs}>Precio x unid. </A>{END precio_fieldheader}</TH>
          {END precio_fieldheadercolumn}{BEGIN importe_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN importe_fieldheader}<A {$importe_orderlinkattrs}>Importe x unid. </A>{END importe_fieldheader}</TH>
          {END importe_fieldheadercolumn}{BEGIN subtotal_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN subtotal_fieldheader}<A {$subtotal_orderlinkattrs}>Sub total </A>{END subtotal_fieldheader}</TH>
          {END subtotal_fieldheadercolumn}{BEGIN descuento_fieldheadercolumn}<TH class="runner-cc ">
            {BEGIN descuento_fieldheader}<A {$descuento_orderlinkattrs}>Descuento </A>{END descuento_fieldheader}</TH>
          {END descuento_fieldheadercolumn}{BEGIN ganancia_fieldheadercolumn}<TH class="runner-cc runner-clast">
            {BEGIN ganancia_fieldheader}<A {$ganancia_orderlinkattrs}>Ganancia </A>{END ganancia_fieldheader}</TH>
          {END ganancia_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 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 fecha_fieldcolumn}<TD class="runner-cc  {$fecha_class}" {$fecha_style}>
            {$fecha_value}</TD>
          {END fecha_fieldcolumn}{BEGIN idventa_fieldcolumn}<TD class="runner-cc  {$idventa_class}" {$idventa_style}>
            {$idventa_value}</TD>
          {END idventa_fieldcolumn}{BEGIN idarticulo_fieldcolumn}<TD class="runner-cc  {$idarticulo_class}" {$idarticulo_style}>
            {$idarticulo_value}</TD>
          {END idarticulo_fieldcolumn}{BEGIN nombre_fieldcolumn}<TD class="runner-cc  {$nombre_class}" {$nombre_style}>{$nombre_value}</TD>
          {END nombre_fieldcolumn}{BEGIN costo_unidad_fieldcolumn}<TD class="runner-cc  {$costo_unidad_class}" {$costo_unidad_style}>
            {$costo_unidad_value}</TD>
          {END costo_unidad_fieldcolumn}{BEGIN cantidad_fieldcolumn}<TD class="runner-cc  {$cantidad_class}" {$cantidad_style}>
            
            <P align=center>{$cantidad_value}</P></TD>
          {END cantidad_fieldcolumn}{BEGIN costo_total_fieldcolumn}<TD class="runner-cc  {$costo_total_class}" {$costo_total_style}>
            {$costo_total_value}</TD>
          {END costo_total_fieldcolumn}{BEGIN precio_fieldcolumn}<TD class="runner-cc  {$precio_class}" {$precio_style}>{$precio_value}</TD>
          {END precio_fieldcolumn}{BEGIN importe_fieldcolumn}<TD class="runner-cc  {$importe_class}" {$importe_style}>
            {$importe_value}</TD>
          {END importe_fieldcolumn}{BEGIN subtotal_fieldcolumn}<TD class="runner-cc  {$subtotal_class}" {$subtotal_style}>
            {$subtotal_value}</TD>
          {END subtotal_fieldcolumn}{BEGIN descuento_fieldcolumn}<TD class="runner-cc  {$descuento_class}" {$descuento_style}>
            {$descuento_value}</TD>
          {END descuento_fieldcolumn}{BEGIN ganancia_fieldcolumn}<TD class="runner-cc runner-clast {$ganancia_class}" {$ganancia_style}>
            {$ganancia_value}</TD>
          {END ganancia_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 checkbox_column}<TD class=runner-cc>
            </TD>
          {END checkbox_column}{BEGIN fecha_fieldfootercolumn}<TD class="runner-cc  {$fecha_class}">
            </TD>
          {END fecha_fieldfootercolumn}{BEGIN idventa_fieldfootercolumn}<TD class="runner-cc  {$idventa_class}">
            </TD>
          {END idventa_fieldfootercolumn}{BEGIN idarticulo_fieldfootercolumn}<TD class="runner-cc  {$idarticulo_class}">
            </TD>
          {END idarticulo_fieldfootercolumn}{BEGIN nombre_fieldfootercolumn}<TD class="runner-cc  {$nombre_class}">
            </TD>
          {END nombre_fieldfootercolumn}{BEGIN costo_unidad_fieldfootercolumn}<TD class="runner-cc  {$costo_unidad_class}">{BEGIN costo_unidad_showtotal}
            Total: {$costo_unidad_total}{END costo_unidad_showtotal}</TD>
          {END costo_unidad_fieldfootercolumn}{BEGIN cantidad_fieldfootercolumn}<TD class="runner-cc  {$cantidad_class}">
            </TD>
          {END cantidad_fieldfootercolumn}{BEGIN costo_total_fieldfootercolumn}<TD class="runner-cc  {$costo_total_class}">{BEGIN costo_total_showtotal}
            Total: {$costo_total_total}{END costo_total_showtotal}</TD>
          {END costo_total_fieldfootercolumn}{BEGIN precio_fieldfootercolumn}<TD class="runner-cc  {$precio_class}">
            </TD>
          {END precio_fieldfootercolumn}{BEGIN importe_fieldfootercolumn}<TD class="runner-cc  {$importe_class}">{BEGIN importe_showtotal}
            Total: {$importe_total}{END importe_showtotal}</TD>
          {END importe_fieldfootercolumn}{BEGIN subtotal_fieldfootercolumn}<TD class="runner-cc  {$subtotal_class}">{BEGIN subtotal_showtotal}
            Total: {$subtotal_total}{END subtotal_showtotal}</TD>
          {END subtotal_fieldfootercolumn}{BEGIN descuento_fieldfootercolumn}<TD class="runner-cc  {$descuento_class}">{BEGIN descuento_showtotal}
            Total: {$descuento_total}{END descuento_showtotal}</TD>
          {END descuento_fieldfootercolumn}{BEGIN ganancia_fieldfootercolumn}<TD class="runner-cc runner-clast {$ganancia_class}">{BEGIN ganancia_showtotal}
            Total: {$ganancia_total}{END ganancia_showtotal}</TD>
          {END ganancia_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 checkbox_column}<TD class=runner-cc></TD>
          {END checkbox_column}{BEGIN fecha_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END fecha_fieldheadercolumn}{BEGIN idventa_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END idventa_fieldheadercolumn}{BEGIN idarticulo_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END idarticulo_fieldheadercolumn}{BEGIN nombre_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END nombre_fieldheadercolumn}{BEGIN costo_unidad_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END costo_unidad_fieldheadercolumn}{BEGIN cantidad_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END cantidad_fieldheadercolumn}{BEGIN costo_total_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END costo_total_fieldheadercolumn}{BEGIN precio_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END precio_fieldheadercolumn}{BEGIN importe_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END importe_fieldheadercolumn}{BEGIN subtotal_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END subtotal_fieldheadercolumn}{BEGIN descuento_fieldheadercolumn}<TD class="runner-cc "></TD>
          {END descuento_fieldheadercolumn}{BEGIN ganancia_fieldheadercolumn}<TD class="runner-cc runner-clast"></TD>
          {END ganancia_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>
