<div id="left" >
<?php
include('navigator.php');
?>
</div>
<div id="right" >
<?php
if($manualQuery == ""){
echo " <a class=\"button\" href=\"javascript: window.location='index.php?view=Design'\" title=\"Show Design\" ><span><b>Design</b></span></a>";
}
?>
<a class="button" href="javascript: window.location='index.php?view=SQL'" title="Show MySQL" ><span><b>Show MySQL</b></span></a>
<a class="button" href="javascript: window.location='index.php?view=Run'" title="Run Query" ><span><b>Run</b></span></a>
<div class="clear"></div>
<br/>
<div>
<form id="myForm" method="post" action="saveQuery.php">
<table>
<tr><th colspan=2>Report Save Options</th></tr>
<tr>
<td class="td2" style="text-align:right;"> Owner : </td>
<td class="td2"> <?php echo $currentUser; ?></td>
</tr>
<tr>
<td class="td2" style="text-align:right;"> Report Name : </td>
<td class="td2" ><input class="input1" type="text" name="reportName" value="<?php echo $_SESSION['session_rptName']; ?>" size="70"/></td>
</tr>
<tr>
<td class="td2" style="text-align:right;"> Share : </td>
<td class="td2">
<?php
if($_SESSION['session_rptOwner'] == $currentUser){
$n = ""; $r = ""; $f = "";
if($_SESSION['session_rptShare'] == "No"){ $n = "Checked"; }
if($_SESSION['session_rptShare'] == "ReadOnly"){ $r = "Checked"; }
if($_SESSION['session_rptShare'] == "Full"){ $f = "Checked"; }
echo " <input type=\"radio\" name=\"share\" value=\"No\" $n /> No
<input type=\"radio\" name=\"share\" value=\"ReadOnly\" $r /> Yes (read only)
<input type=\"radio\" name=\"share\" value=\"Full\" $f /> Yes (read & save) ";
}
else {
echo $_SESSION['session_rptShare'];
}
?>
</td>
</tr>
</table>
<br/>
<div style="margin-left: 450px;">
<?php
if($tbl != "" || $manualQuery !=""){
echo " <a class=\"button\" href=\"javascript: submitMyForm2();\" title=\"Save Report\" ><span><b>Save Report</b></span></a>";
}
?>
</div>
</form>
<div class="clear"></div>
<br/>
</div>
</div>