<!-- Javascript to handle view actions. DO NOT TOUCH -->
<script>
var handlerFunc = function(t) {
    if(t.responseText!="") setStatus(t.responseText, 1000, 'statusContainer');
}
var errFunc = function(t) {
    alert('Error ' + t.status + ' -- ' + t.statusText);
}
<!-- BEGIN DYNAMIC BLOCK: checkbox_updatejs -->
function UpdatePublic(objCheck)
{
    if(objCheck.checked) value=1;
    else value=0;
    
    new Ajax.Request(   'index.php?fuse=reports&action=UpdatePublic',
                        {parameters : 'reporttype={REPORTTYPE}&reportname={REPORTNAME}&publishvalue=' + value,
                         onSuccess  : handlerFunc,
                         onFailure  : errFunc}
                     )
}
<!-- END DYNAMIC BLOCK: checkbox_updatejs -->


<!-- BEGIN DYNAMIC BLOCK: checkbox2_updatejs -->
function UpdateDropdown(objCheck){
    if(objCheck.checked) value=1;
    else value=0;
    new Ajax.Request(   'index.php?fuse=reports&action=UpdateDropdown',
                        {parameters :'reporttype={REPORTTYPE}&reportname={REPORTNAME}&dropdownvalue='+value,
                         onSuccess  : handlerFunc,
                         onFailure  : errFunc}
                     )
}
<!-- END DYNAMIC BLOCK: checkbox2_updatejs -->

<!-- BEGIN DYNAMIC BLOCK: checkbox3_updatejs -->
function UpdateDashboard(objCheck){
    if(objCheck.checked) value=1;
    else value=0;
    
    new Ajax.Request(   'index.php?fuse=reports&action=UpdateDashboard',
                        {parameters :'reporttype={REPORTTYPE}&reportname={REPORTNAME}&dashboardvalue='+value,
                         onSuccess  : handlerFunc,
                         onFailure  : errFunc}
                     )
}
<!-- END DYNAMIC BLOCK: checkbox3_updatejs -->
</script>

<div style="margin-bottom: 10px; margin-top: 12px;" class="table-summary">
    <h2>Report Management</h2>
    The reports available below can be found in your plugins/reports directory
</div>

<div class="blue-box" style="padding-top:10px;padding:4px !important;">
    <table class="automation">
        <tbody>
            <tr>
                <td width="300">
                    <select onchange="jumpMenu('self',this,0);" style="width:auto;">
                        <!-- BEGIN DYNAMIC BLOCK: dropdownoption -->
                        <option {REPORTSELECTED} value="{REPORTURL}"> &nbsp;&nbsp;&nbsp;{REPORTNAME}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <!-- END DYNAMIC BLOCK: dropdownoption -->
                    </select>&nbsp;&nbsp;
                </td>
                <td align='left'>
                    <form method=post action=index.php name='report_options'>
                    <!-- BEGIN DYNAMIC BLOCK: checkbox -->
                    <input type=checkbox onclick='UpdatePublic(this);' name='public' {PUBLICCHECKED}>&nbsp;[l]Public[/l]&nbsp;{publicHelpPopup}
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <!-- END DYNAMIC BLOCK: checkbox -->

                    <!-- BEGIN DYNAMIC BLOCK: checkbox3 -->
                    <input type=checkbox onclick='UpdateDashboard(this);' name='dashboard' {DASHBOARDCHECKED}>&nbsp;[l]Show graph in my dashboard[/l]
                    <!-- END DYNAMIC BLOCK: checkbox3 -->

                    <!-- BEGIN DYNAMIC BLOCK: nonadmincheckbox -->
                    <!-- <input type=checkbox name=home {SHOWHOMECHECK}>&nbsp;[l]View in My Right Panel[/l] -->
                    <!-- END DYNAMIC BLOCK: nonadmincheckbox -->
                    </form>
                </td>
            </tr>
        </tbody>
    </table>
</div>

<br/>