<script type="text/javascript">
    var gridsavedstate = '{GRIDSAVEDSTATE}';
    if(gridsavedstate!=""){
        gridsavedstate = Ext.util.JSON.decode(gridsavedstate);
    } else {
        //set default settings
        gridsavedstate = Ext.util.JSON.decode('{"sortinfo":{field : "dateactivated",dir: "asc"},"displaysize":"25","usertypefilter":"allclients"}');
    }
</script>
<!-- BEGIN DYNAMIC BLOCK: advancedsearchblock -->
<script type="text/javascript">
    var customsearchtype = "{advancedsearchtype}";
    var customsearchfield = "{advancedsearchfieldid}";
    var customsearchstring = "{advancedsearchstring}";
</script>
<div class="notice">
    <div class="inside">
        <h6 style="float:left;">[l]Advanced Search Query[/l]</h6><a href="index.php?fuse=clients&view=ViewUsers" class="button" style="margin:0px !important; float:right;">[l]Clear Query[/l]</a>
        <br/>
        <p>
            <b>[l]Type[/l]</b>: <span style="background:#FFFFCC none repeat scroll 0 0;">{advancedsearchtypepretty}</span><br/>
            <b>[l]Field Name[/l]</b>: <span style="background:#FFFFCC none repeat scroll 0 0;">{advancedsearchfieldname}</span>&nbsp;&nbsp;&nbsp;
            <b>[l]Query[/l]</b>: <span style="background:#FFFFCC none repeat scroll 0 0;">{advancedsearchstring}</span><br/><br/>
        </p>
    </div>
</div>
<!-- END DYNAMIC BLOCK: advancedsearchblock -->

<span class="grid-meta" id="clientlistlabel"></span>
<div class="blue-box" style="padding:4px !important;">
    <table class="automation">
        <tbody>
            <tr>
                <td>
                    <!-- BEGIN DYNAMIC BLOCK: hasaddpermissions -->
                    <div id="adduserbutton"></div>
                    <!-- END DYNAMIC BLOCK: hasaddpermissions -->
                </td>
                <td align="right">[l]Filter Type[/l]: &nbsp;&nbsp;</td>
                <td align="left" style="width:100px;">
                    <input type="text" id="usertype" size="50"/>
                </td>
                <td align="right" style="width:80px">[l]Display[/l]: &nbsp;&nbsp;</td>
                <td align="left" style="width:60px">
                    <input type="text" id="local-states-with-qtip" size="20"/>
                </td>
            </tr>
        </tbody>
    </table>
</div>


<div>
    <div id="topic-grid"></div>
</div>