<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
    <head>
        <title>Area Admin</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=900px 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">Area administración: Consulta SQL</td>
							<td class="runner-cr"><img src="images/spacer.gif"></td>
						</tr>
						<tr class="runner-row style1 runner-b-wrapper">
							<td class="runner-cl"></td>
							<td class="runner-cc runner-brickcontents runner-wrapper">
								<div class="runner-s-fields">											
								<table cellpadding=0 cellspacing=0 border=0 width=100%>
									<tr class="runner-toprow header style1 runner-b-editfields">
										<td class="runner-cl">
											<img src="images/spacer.gif">
										</td>
										<td align=center class="runner-cc runner-cc1">
												{$sql_list}
										</td>
										<td class="runner-cr">
											<img src="images/spacer.gif">
										</td>
									</tr>     
									<tr class="runner-row style3 runner-b-editbuttons">
										<td class="runner-cl">
											<img src="images/spacer.gif">
										</td>
										<td class="runner-cc runner-brickcontents" align="center">
											<span class="runner-btnframe">
											<span class="runner-btnleft"></span>
											<span class="runner-btnright"></span>
											<a id="addsql" name="addsql" class="runner-button" href="#">Nueva consulta</a>
											</span>
											<a id="a_addsql" class="various fancybox.iframe" href="web_query.php?sql=add&check=yes&ie=UTF-8&iframe"></a>
											<span class="runner-btnframe">
											<span class="runner-btnleft"></span>
											<span class="runner-btnright"></span>
											<a id="editsql" name="editsql" class="runner-button" href="#">Editar</a>
											</span>
											<a id="a_editsql" class="various fancybox.iframe" href="web_query.php?sql=edit&ie=UTF-8&iframe"></a>
											<span class="runner-btnframe">
											<span class="runner-btnleft"></span>
											<span class="runner-btnright"></span>
											<a id="deletesql" name="deletesql" class="runner-button" href="#">Borrar artículos seleccionados</a>
											</span>
											<span class="runner-btnframe">
											<span class="runner-btnleft"></span>
											<span class="runner-btnright"></span>
											<a id="resultsql" name="resultsql" class="runner-button" href="#">Ver resultados</a>
											</span>
											<a id="a_resultsql" class="various fancybox.iframe" href="web_query.php?sql=result&ie=UTF-8&iframe"></a>
											</td>
										</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 align=center class="runner-cc runner-cc1">
												<textarea id="sql_content" style="background-color:white;width:500px;height:60px;text-align:left;font-weight:normal;font-size:10pt;padding:5px;" disabled></textarea>
										</td>
										<td class="runner-cr">
											<img src="images/spacer.gif">
										</td>
									</tr>     
								</table>
								</div>
							</td>
							<td class="runner-cr"></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-brickcontents" 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 al menú</a>
								</span>
							</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>
		<iframe id="aframe" style="display:none;position:absolute;" scrolling="no" frameborder="0"></iframe>
		<div id="alert"/>
		
    </body>
</html>