CoolFace
Apppublic

kenken999/php

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
web_query.htm90 linesDownload Raw Back to templates
1<html>2<head>3	<meta http-equiv="X-UA-Compatible" content="IE=Edge">4	<link rel="stylesheet" href="include/css/jquery-ui.css" type="text/css">5	<script type="text/javascript" src="include/js/jquery.min.js"></script>6	<script type="text/javascript" src="include/js/jquery-ui.js"></script>7</head>8<body>9<script type="text/javascript">10	$(function() {11		$("#tabs").tabs();12	});13</script>14{$b_includes}15<style type="text/css">16	body 	{ font: 12px Verdana, Arial, helvetica, sans-serif; }17	td, th 	{ font: 11px Verdana, Arial, helvetica, sans-serif; padding: 2px;}18	th 		{ font-weight: bold; padding: 2px 4px; }19	li 		{ list-style: none; }20	.sql_area {21		text-align: left;22		border: 1px solid #999;23		padding: 5px;24		font-family: Tahoma, sans-serif;25		font-weight: bold;26		width: 90%;27	}28	.sql_result { border: 1px solid #ccc; }29		.sql_result th { padding: 5px; background: #4e6d9c; color: #fff; }30		.sql_result td { padding: 5px; background: #c5d4eb; }31		32	#table-container { width: 740px; height: 400px; overflow: auto; }33</style>34 35<div class="demo">36 37<div id="tabs">38	<ul>39		<li><a href="#tabs-1">SQL Query</a></li>40		<li><a href="#tabs-2" id="view_sql">View results</a></li>41	</ul>42	<div id="tabs-1">43	<div>44	SQL query name:&nbsp;<input id=sql_name type=text value="{$sql_name}" size=40 style="margin-bottom:10px">45	</div>46	<div>47	<textarea class="sql_area" rows="21" cols="80" id="sql_textarea">{$sql_query}</textarea>		48	</div>49	</div>50	<div id="tabs-2">51		<div id="table-container">52		{BEGIN sql_message_block}53			<p>No records to display</p>54		{END sql_message_block}55		{BEGIN sql_result_block}56		<div>57			<b>{$total_count}</b> records {BEGIN first_rec}(displaying first 50){END first_rec}58		</div>59		<table class="sql_result" cellpadding="1" cellspacing="1" border="0">60			<tr>61				<thead>62					<tr>63						{$res_head}64					</tr>65				</thead>66				<tbody>67					{$res_body}68				</tbody>69			</tr>70		</table>71		{END sql_result_block}72		{BEGIN sql_error_block}73			{$sql_error}74		{END sql_error_block}75		</div>76	</div>77	<div id=check_button>78		<input style="margin-left:15px" type=checkbox id=go_permiss>&nbsp;Proceed to permissions screen79	</div>80	<div align=center style="padding:10px" id="sql_button">81		<input id="save_sql" type=button value="Save">&nbsp;&nbsp;&nbsp;&nbsp;82		<input id="cancel_sql" type=button value="Cancel">83	</div>84</div>85 86</div><!-- End demo -->87<div id="alert">88</div>89</body>90</html>