<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
    <head>
        <title>Informe: Totales</title>
		<meta http-equiv="X-UA-Compatible" content="IE=7">
        <link type="text/css" href="styles/default.css" rel="stylesheet">
		<link type="text/css" href="styles/BoldAqua/style.css" rel="stylesheet">
		<!--[if IE]>
			<link REL="stylesheet" href="styles/defaultIE.css" type="text/css">
			<link REL="stylesheet" href="styles/BoldAqua/styleIE.css" type="text/css">
		<![endif]-->
        {$h_includes}
    </head>
    <body class="BoldAqua">
        {$b_includes}
	<table cellpadding=0 cellspacing=0 border=0 height=100% width=100% align=center class="runner-toptable">
		<tr><td>{$header}</td></tr>
            <tr>
                <td style="vertical-align:top;padding-top:20px">
					<div class="runner-s-1">
                    <table cellpadding=0 cellspacing=0 border=0 width=600px align=center class="runner-c">
						<tr class="runner-toprow style2 header">
							<td class="runner-cl"><img src="images/spacer.gif"></td>
							<td class="runner-cc">Informe: Totales{$report_title}{$report_table}</td>
							<td class="runner-cr"><img src="images/spacer.gif"></td>
						</tr>
						<tr class="runner-row style1 runner-b-wrapper">
							<td class="runner-cl"><img src="images/spacer.gif"></td>
							<td class="runner-cc runner-brickcontents runner-wrapper">
								<div class="runner-s-fields">											
								<table cellpadding=0 cellspacing=0 border=0 width=100% id="trt">
									<tr class="runner-toprow header style1 runner-b-editfields">
										<td class="runner-cl">
											<img src="images/spacer.gif">
										</td>
										<td class="runner-cc runner-cc1" width="20%" colspan=2>Nombre del campo</td>
										<td class="runner-cc runner-cc1" width="20%"></td>
										
										<td class="runner-cc runner-cc1"  name=show_fields>Mostrar</td>
										<td class="runner-cc runner-cc1" >Min</td>
										<td class="runner-cc runner-cc1" >Max</td>
										<td class="runner-cc runner-cc1" >Sum</td>
										<td class="runner-cc runner-cc1" >Media</td>
										<td class="runner-cc runner-cc1" >Curr</td>
										<td class="runner-cr">
											<img src="images/spacer.gif">
										</td>
									</tr>
									<tr class="runner-row header style1 runner-b-editfields">
										<td class="runner-cl">
											<img src="images/spacer.gif">
										</td>
										<td class="runner-cc runner-cc1" width="20%" colspan=2>&nbsp;</td>
										<td class="runner-cc runner-cc1" width="20%">&nbsp;</td>
										<td align=center class="runner-cc runner-cc1"  name=show_fields><input type=checkbox id=allshow></td>
										<td align=center class="runner-cc runner-cc1" ><input type=checkbox id=allmin></td>
										<td align=center class="runner-cc runner-cc1" ><input type=checkbox id=allmax></td>
										<td align=center class="runner-cc runner-cc1" ><input type=checkbox id=allsum></td>
										<td align=center class="runner-cc runner-cc1" ><input type=checkbox id=allavg></td>
										<td align=center class="runner-cc runner-cc1" ><input type=checkbox id=allcurr></td>
										<td class="runner-cr">
											<img src="images/spacer.gif">
										</td>
									</tr>
									{$tgFields}
								</table>
								</div>
							</td>
							<td class="runner-cr"><img src="images/spacer.gif"></td>
						</tr>
                        <tr class="runner-row style2 runner-b-editbuttons">
							<td class="runner-cl">
								<img src="images/spacer.gif">
							</td>
							<td id="btns" class="runner-cc runner-cc1" align="center">
								<span class="runner-btnframe">
								<span class="runner-btnleft"></span>
								<span class="runner-btnright"></span>
								<a id="backbtn" name="backbtn" class="runner-button" href="#">Regresar</a>
								</span>
								<span style="position:absolute;" id="jumptospan"></span>
								<span class="runner-btnframe">
								<span class="runner-btnleft"></span>
								<span class="runner-btnright"></span>
								<a id="jumpto" name="jumpto" class="runner-button" href="#" onclick="event.cancelBubble = true;return false;" onmouseover="event.cancelBubble = true;return false;">Ir a ...</a>
								</span>
								<span class="runner-btnframe">
								<span class="runner-btnleft"></span>
								<span class="runner-btnright"></span>
								<a id="sqlbtn" name="sqlbtn" class="runner-button" href="#">Consulta SQL</a>
								</span>
								<a id="sql_query" class="various fancybox.iframe" href="web_query.php?name=where_condition&ie=UTF-8&iframe"></a>
								<span class="runner-btnframe">
								<span class="runner-btnleft"></span>
								<span class="runner-btnright"></span>
								<a id="nextbtn" name="nextbtn" class="runner-button" href="#">Siguiente</a>
								</span>
								{BEGIN b_is_report_save}
								<span class="runner-btnframe" id="saveasbtnbox">
								<span class="runner-btnleft"></span>
								<span class="runner-btnright"></span>
								<a id="saveasbtn" name="saveasbtn" class="runner-button" href="#">Grabar como...</a>
								</span>
								{END b_is_report_save}															
								{BEGIN b_is_report_name}
								<span class="runner-btnframe" id="savebtnbox">
								<span class="runner-btnleft"></span>
								<span class="runner-btnright"></span>
								<a id="savebtn" name="savebtn" class="runner-button" href="#">Guardar</a>
								</span>
								{END b_is_report_name}
								<span class="runner-btnframe">
								<span class="runner-btnleft"></span>
								<span class="runner-btnright"></span>
								<a id="previewbtn" name="previewbtn" class="runner-button" href="#">Previsualizar</a>
								</span>
								<a id="preview" class="various fancybox.iframe" href="dreport.php?rname={$report_name_preview}&param=preview&ie=UTF-8&iframe"></a>
							</td>
							<td class="runner-cr">
								<img src="images/spacer.gif">
							</td>
						</tr>
						<tr class="runner-bottomrow style2">
							<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>
                    </table>
					</div>
                </td>
            </tr>
	<tr><td>{$footer}</td></tr>
        </table>
        
        <style>
{literal}
	div.action { position: absolute;  width: 170px; padding: 0; font-size:11px}
	td {font-size:11px}
{/literal}
</style>
<iframe id="framejump" style="display:none;position:absolute;" scrolling="no" frameborder="0"></iframe>
<div id="menujump" class=action style="display:none;position:absolute;">
	<table width=100% cellpadding=0 cellspacing=0 border=0 style="background-color:#F4F7FB;border: solid 1px blue;">
		<tr><td id=row0 style="cursor:pointer;padding:5px;">Tablas</td></tr>
		<tr><td id=row1 style="cursor:pointer;padding:5px;">Relaciones entre tablas</td></tr>
		<tr><td id=row2 style="cursor:pointer;padding:5px;">Condición Where</td></tr>
		<tr><td id=row3 style="cursor:pointer;padding:5px;">Agrupar campos</td></tr>
		<tr><td id=row4 style="cursor:pointer;padding:5px;">Totales</td></tr>
		<tr><td id=row5 style="cursor:pointer;padding:5px;">Varios</td></tr>
		<tr><td id=row6 style="cursor:pointer;padding:5px;">Ordenar campos</td></tr>
		<tr><td id=row7 style="cursor:pointer;padding:5px;">Editor de estilo</td></tr>
		<tr><td id=row8 style="cursor:pointer;padding:5px;">Configuración del informe</td></tr>
		<tr><td id=row9 style="cursor:pointer;padding:5px;">Permisos dinámicos</td></tr>
		<tr><td id=row10 style="cursor:pointer;padding:5px;;border-top:1px solid blue;">Volver al menú de Informes</td></tr>
		<tr><td id=row11 style="cursor:pointer;padding:5px;">Volver al programa principal</td></tr>
	</table>
</div>
       <iframe id="aframe" style="display:none;position:absolute;" scrolling="no" frameborder="0"></iframe>
        <div id="alert"/>
    </body>
</html>