PHP Classes

File: Documentation_and_Demo/Examples/examplePage4.php

Recommend this page to a friend!
  Classes of enri_pin  >  Easy Tables  >  Documentation_and_Demo/Examples/examplePage4.php  >  Download  
File: Documentation_and_Demo/Examples/examplePage4.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Easy Tables
Show, edit and export database table records
Author: By
Last change:
Date: 3 years ago
Size: 2,735 bytes


Class file image Download
<!doctype html>
<div id="container">
        <h2>Example 4</h2>
            <li>Friendly Display</li>
            <li>Changing the default alignments in a column</li>
            <li>Changing the default colors for columns and column headers</li>
            <li>Setting a specific width for each column</li>
            <li>Disabling options for Insert, Delete and Update rows</li>
            <li>Allowing export data only in PDF format</li>

            <div id="tableContainer"></div>
            <script type="text/javascript">
            <table class="cod">
            <tr><th>HTML and Javascript</th></tr>
<pre class="brush: js;">
&ltdiv id="tableContainer">&lt/div&gt
&ltscript type="text/javascript"&gt
    configFile:"example4.php", //Name of the php configuration file
    exportOptions:["PDF"], //Allowing export only in PDF format
    deleteRow:false, //Disabling the option to delete rows
    newRow:false, //Disabling the option to insert a new row
    updateRow:false //Disabling the option to udpdate rows
            <table class="cod"><tr><th>PHP configuration file parameters</th></tr><tr><td>
<pre class="brush: js;">
//DataSource Configuration Parameters

//Changing the default column width

//Displaying a picture instead of a particular string in a column
    'Y'=>'&ltimg src="easyTables/css/accept.png"&gt',
    'N'=>'&ltimg src="easyTables/css/cancel.png"&gt'

//Changing the default color in the odd rows cells of two columns

//Changing the default color in the even rows cells of two columns

//Changing the default text alignment in two columns

//Changing the default column header color in three colums

//Changing the default color of the active sort column

//Changing the default font color of the active sort column