I was wondering if anyone can help with my situation. I love the admin tools for Appgini but for the user's front end. I would like just a plain table with no other content on it (header, login info, etc) that I can easily embed as an iframe. I have trouble looking through the exported coding to take that coding out. Any help would be greatly appreciated!
-Robert
Displaying table within iframe
Re: Displaying table within iframe
Like this = http://www.dx27.net/dx27cluster1/1spot.php
Link contains 10 lines of info,
My coding
<html>
<head>
<meta http-equiv="refresh" content="" >
<link rel="stylesheet" type="text/css" href="1spot.css" />
</head>
<body><center>
<div class="CSSTable" >
<table>
<tr>
<td>Date</td>
<td>Submitter</td>
<td>Freq</td>
<td>RST</td>
<td>Mode</td>
<td>QRZ</td>
<td>Comments</td>
</tr>
<?php
$d=dirname(__FILE__);
include("$d/config.php");
$db=mysql_connect($dbServer, $dbUsername, $dbPassword) or die("Could not connect");
mysql_select_db($dbDatabase,$db) or die("Could not select database");
$result = mysql_query("SELECT id, Date, Submitter, Freq, QRZ, RST, Mode, Country, Comments FROM DX27 ORDER by `id` DESC LIMIT 0, 10");
while($recordset = mysql_fetch_array($result)){
echo '<tr>'.
'<td>'.$recordset["Date"].'</td>'.
'<td>'.$recordset["Submitter"].'</td>'.
'<td>'.$recordset["Freq"].'</td>'.
'<td>'.$recordset["RST"].'</td>'.
'<td>'.$recordset["Mode"].'</td>'.
'<td>'.$recordset["QRZ"].'</td>'.
'<td>'.$recordset["Comments"].'</td>'.
'</tr>';
}
My css file
.CSSTable {
position:center top;
margin:0px;padding:0px;
width:650;
border:1px solid #000000;
-moz-border-radius-bottomleft:0px;
-webkit-border-bottom-left-radius:0px;
border-bottom-left-radius:0px;
-moz-border-radius-bottomright:0px;
-webkit-border-bottom-right-radius:0px;
border-bottom-right-radius:0px;
-moz-border-radius-topright:0px;
-webkit-border-top-right-radius:0px;
border-top-right-radius:0px;
-moz-border-radius-topleft:0px;
-webkit-border-top-left-radius:0px;
border-top-left-radius:0px;
}.CSSTable table{
width:650;
height:65;
margin:0px;padding:0px;
}.CSSTable tr:last-child td:last-child {
-moz-border-radius-bottomright:0px;
-webkit-border-bottom-right-radius:0px;
border-bottom-right-radius:0px;
}
.CSSTable table tr:first-child td:first-child {
-moz-border-radius-topleft:0px;
-webkit-border-top-left-radius:0px;
border-top-left-radius:0px;
}
.CSSTable table tr:first-child td:last-child {
-moz-border-radius-topright:0px;
-webkit-border-top-right-radius:0px;
border-top-right-radius:0px;
}.CSSTable tr:last-child td:first-child{
-moz-border-radius-bottomleft:0px;
-webkit-border-bottom-left-radius:0px;
border-bottom-left-radius:0px;
}.CSSTable tr:hover td{
}
.CSSTable tr:nth-child(odd){ background-color:#ffaa56; }
.CSSTable tr:nth-child(even) { background-color:#ffffff; }
.CSSTable td{
vertical-align:middle;
border:1px solid #000000;
border-width:0px 1px 1px 0px;
text-align:left;
padding:2px;
font-size:14px;
font-family:Arial;
font-weight:normal;
color:#000000;
}.CSSTable tr:last-child td{
border-width:0px 1px 0px 0px;
}.CSSTable tr td:last-child{
border-width:0px 0px 1px 0px;
}.CSSTable tr:last-child td:last-child{
border-width:0px 0px 0px 0px;
}
.CSSTable tr:first-child td{
background:-o-linear-gradient(bottom, #ff7f00 5%, #bf5f00 100%); background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ff7f00), color-stop(1, #bf5f00) );
background:-moz-linear-gradient( center top, #ff7f00 5%, #bf5f00 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff7f00", endColorstr="#bf5f00"); background: -o-linear-gradient(top,#ff7f00,bf5f00);
background-color:#ff7f00;
border:0px solid #000000;
text-align:center;
border-width:0px 0px 1px 1px;
font-size:14px;
font-family:Arial;
font-weight:bold;
color:#ffffff;
}
.CSSTable tr:first-child:hover td{
background:-o-linear-gradient(bottom, #ff7f00 5%, #bf5f00 100%); background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ff7f00), color-stop(1, #bf5f00) );
background:-moz-linear-gradient( center top, #ff7f00 5%, #bf5f00 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff7f00", endColorstr="#bf5f00"); background: -o-linear-gradient(top,#ff7f00,bf5f00);
background-color:#ff7f00;
}
.CSSTable tr:first-child td:first-child{
border-width:0px 0px 1px 0px;
}
.CSSTable tr:first-child td:last-child{
border-width:0px 0px 1px 1px;
}
Link contains 10 lines of info,
My coding
<html>
<head>
<meta http-equiv="refresh" content="" >
<link rel="stylesheet" type="text/css" href="1spot.css" />
</head>
<body><center>
<div class="CSSTable" >
<table>
<tr>
<td>Date</td>
<td>Submitter</td>
<td>Freq</td>
<td>RST</td>
<td>Mode</td>
<td>QRZ</td>
<td>Comments</td>
</tr>
<?php
$d=dirname(__FILE__);
include("$d/config.php");
$db=mysql_connect($dbServer, $dbUsername, $dbPassword) or die("Could not connect");
mysql_select_db($dbDatabase,$db) or die("Could not select database");
$result = mysql_query("SELECT id, Date, Submitter, Freq, QRZ, RST, Mode, Country, Comments FROM DX27 ORDER by `id` DESC LIMIT 0, 10");
while($recordset = mysql_fetch_array($result)){
echo '<tr>'.
'<td>'.$recordset["Date"].'</td>'.
'<td>'.$recordset["Submitter"].'</td>'.
'<td>'.$recordset["Freq"].'</td>'.
'<td>'.$recordset["RST"].'</td>'.
'<td>'.$recordset["Mode"].'</td>'.
'<td>'.$recordset["QRZ"].'</td>'.
'<td>'.$recordset["Comments"].'</td>'.
'</tr>';
}
My css file
.CSSTable {
position:center top;
margin:0px;padding:0px;
width:650;
border:1px solid #000000;
-moz-border-radius-bottomleft:0px;
-webkit-border-bottom-left-radius:0px;
border-bottom-left-radius:0px;
-moz-border-radius-bottomright:0px;
-webkit-border-bottom-right-radius:0px;
border-bottom-right-radius:0px;
-moz-border-radius-topright:0px;
-webkit-border-top-right-radius:0px;
border-top-right-radius:0px;
-moz-border-radius-topleft:0px;
-webkit-border-top-left-radius:0px;
border-top-left-radius:0px;
}.CSSTable table{
width:650;
height:65;
margin:0px;padding:0px;
}.CSSTable tr:last-child td:last-child {
-moz-border-radius-bottomright:0px;
-webkit-border-bottom-right-radius:0px;
border-bottom-right-radius:0px;
}
.CSSTable table tr:first-child td:first-child {
-moz-border-radius-topleft:0px;
-webkit-border-top-left-radius:0px;
border-top-left-radius:0px;
}
.CSSTable table tr:first-child td:last-child {
-moz-border-radius-topright:0px;
-webkit-border-top-right-radius:0px;
border-top-right-radius:0px;
}.CSSTable tr:last-child td:first-child{
-moz-border-radius-bottomleft:0px;
-webkit-border-bottom-left-radius:0px;
border-bottom-left-radius:0px;
}.CSSTable tr:hover td{
}
.CSSTable tr:nth-child(odd){ background-color:#ffaa56; }
.CSSTable tr:nth-child(even) { background-color:#ffffff; }
.CSSTable td{
vertical-align:middle;
border:1px solid #000000;
border-width:0px 1px 1px 0px;
text-align:left;
padding:2px;
font-size:14px;
font-family:Arial;
font-weight:normal;
color:#000000;
}.CSSTable tr:last-child td{
border-width:0px 1px 0px 0px;
}.CSSTable tr td:last-child{
border-width:0px 0px 1px 0px;
}.CSSTable tr:last-child td:last-child{
border-width:0px 0px 0px 0px;
}
.CSSTable tr:first-child td{
background:-o-linear-gradient(bottom, #ff7f00 5%, #bf5f00 100%); background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ff7f00), color-stop(1, #bf5f00) );
background:-moz-linear-gradient( center top, #ff7f00 5%, #bf5f00 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff7f00", endColorstr="#bf5f00"); background: -o-linear-gradient(top,#ff7f00,bf5f00);
background-color:#ff7f00;
border:0px solid #000000;
text-align:center;
border-width:0px 0px 1px 1px;
font-size:14px;
font-family:Arial;
font-weight:bold;
color:#ffffff;
}
.CSSTable tr:first-child:hover td{
background:-o-linear-gradient(bottom, #ff7f00 5%, #bf5f00 100%); background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ff7f00), color-stop(1, #bf5f00) );
background:-moz-linear-gradient( center top, #ff7f00 5%, #bf5f00 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff7f00", endColorstr="#bf5f00"); background: -o-linear-gradient(top,#ff7f00,bf5f00);
background-color:#ff7f00;
}
.CSSTable tr:first-child td:first-child{
border-width:0px 0px 1px 0px;
}
.CSSTable tr:first-child td:last-child{
border-width:0px 0px 1px 1px;
}
23.17
Re: Displaying table within iframe
Thanks, appreciate the help with this