CLICK HERE TO BUY IT TODAY! OR GET IT FREE VIA TRIALPAY  

PHP Demo Application - Source Code

/Application/View/Templates/Grid/FlexiGrid.htm

<div style="display:none;">
    <div class="filter" id="fg_filter_block_[##INDEX##]">
        <input type="hidden" value="0" id="fg_filter_count_[##INDEX##]" />
        <div class="filterHeading">
            <div class="viewRecordsButton" id="fg_view_[##INDEX##]">
                [##VIEWMATCHINGRECORDS##]   
            </div>   
            <div class="filterSelectBlock">
                <label for="selectFilter_[##INDEX##]">[##SELECTCOLUMN##]</label><br /> 
                <select id="fg_add_filter_[##INDEX##]" class="selectFilter">
                    <option value="-1">[##PLEASESELECT##] -&gt;</option>
                    [##FILTEROPTIONS##]
                </select>
            </div>
        </div>
        <div class="filterBlock" id="divFilter_[##INDEX##]" style="display:none;">
            <table id="fg_tableFilters_[##INDEX##]" cellpadding="0" cellspacing="0" class="tableFilters">
            </table>
        </div>        
    </div>
    <table id='tblFilterSkeleton'>
        <tr id='filterRow_##index##'>
            <td class="col1">
                <label id="labValue_##index##" for="txtValue_##index##">##displaylabel##</label>
            </td>
            <td class="col2">
                <select id="selectOperator_##index##" name="selectOperator_##index##" onchange="hideResults('##table##')"><OPTION>match_options</OPTION></select>
            </td>
            <td class="col3">
                <input type="text" id="txtValue_##index##" name="txtValue_##index##" maxlength="##maxlength##" class="inputText" />
            </td>
            <td class="col4">
                <div id="closeButton_##index##" class="closeButton"></div>
            </td>
        </tr> 
    </table>
    <div id="fg_dialog_form_[##INDEX##]" title="Select Record"></div>    
    <div id="fg_dialog_grid_[##INDEX##]" title="Edit Record"></div>
    <div id="fg_rowid_values_[##INDEX##]"></div>    
</div>
<table id="flex_[##INDEX##]" style="display:none"></table>
<script type="text/javascript">
$("#flex_[##INDEX##]").flexigrid (
    {
      uniqueIndex: '[##INDEX##]',
      type: '[##TYPE##]',
      dataObject: '[##DATA_OBJECT##]',
      baseUrl: '[##BASE_URL##]',
      displayColumn: '[##DISPLAY_COLUMN##]',
      returnId: '[##RETURN_ID##]',
      returnDisplay: '[##RETURN_DISPLAY##]',
      defaultImage: '[##DEFAULT_IMAGE##]',
      colModel: [
      [##COLUMNS##]
      ],
      buttons: [
      [##BUTTONS##]
      ],
      sort: [##SORT##],
      title: "[##HEADING##]",
      useRp: true,
      rp: [##RECORDS_PER_PAGE##],
      showTableToggleBtn: false,
      exportToPDF: [##PDF_SUPPORT##],
      exportToExcel: true,
      exportToWord: true,
      name: 'flex_[##INDEX##]',
      onClick: [##ONCLICK##],
      onDblClick: [##ONDBLCLICK##]
    }
);
// Bind Events
$('#fg_add_filter_[##INDEX##]').bind("change", function() { hideResults([##INDEX##]); addFilter(this, '[##BASE_URL##]', '[##DATE_FORMAT##]'); });
</script>

PHP Demo Source Code Index