Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current page link now shows up as number without the hyperlink #6

Open
wants to merge 73 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
6523db0
Removed hyperlink for current page number in paging string
apmuthu Jun 3, 2014
2935d7c
Synch with upstream
apmuthu Jun 14, 2014
ae9f5f0
Removed Link display of current page number in paging list
apmuthu Jun 14, 2014
f689504
Extend CSS to filter form for default.css class ajaxCRUD
apmuthu Jun 15, 2014
09062df
SQL to Table display functions added to preheader file
apmuthu Jun 16, 2014
c6b67d3
LOCAL JS scope fix
apmuthu Jun 23, 2014
83869b3
Upstream v8.93 code backported
apmuthu Jun 26, 2014
59aab25
CSV Table Output now has the table name appended to the filename
apmuthu Jun 27, 2014
61efa5f
CSV export Field Separator now manually settable from default comma t…
apmuthu Jun 27, 2014
5a7a4e4
Check isset first before is_array in examples/where_clause_test.php
apmuthu Jun 27, 2014
f722f37
Selectbox value to be urlencoded whilst the displayed value remains n…
apmuthu Jun 27, 2014
7d1869f
defineAllowableValuesFromSQL function added
apmuthu Jun 27, 2014
019c826
Fixed Missing </center> closing tag when Add Form is absent
apmuthu Jun 28, 2014
0ce4119
Remove deprecated constructor
apmuthu Apr 22, 2018
cadb857
Fixed urlencoded filter values issue
apmuthu Jan 25, 2019
3dde408
Added documentation locally
apmuthu Jan 27, 2019
5147bb1
Added checkbox function makeTick() in example4.php
apmuthu Feb 20, 2019
ae152ff
Addressed FF29+ textbox reversion from spinner of numerical field inp…
apmuthu Mar 3, 2019
9eba475
New methods added: disableAjaxFilterBox(), disableAjaxFilterBoxAllFie…
apmuthu Mar 3, 2019
0c251c8
Updated main class to v9.1
apmuthu Mar 9, 2019
d0bae42
Extra CSS Table Styles added
apmuthu Mar 9, 2019
5352faf
Initialise $attach_params for each $row_button all parameters processing
apmuthu Mar 20, 2019
e2109d2
Replaced all tabs with 4 space indenting
apmuthu Mar 21, 2019
e577d75
Added class property $AjaxFilterBoxStyle
apmuthu Mar 22, 2019
6bda748
Mysqli => fetch_array_assoc added
apmuthu Mar 24, 2019
5c03815
Preserving custom queries on image replace
apmuthu Mar 28, 2019
a34da40
Center the tick mark in the maketick function of example4
apmuthu May 10, 2019
761d6b3
Added Missing Images for examples
apmuthu May 26, 2019
ddd25a1
Added options for Indian States and TamilNadu Districts
apmuthu May 26, 2019
6bcd800
Start session in preheader only if not already started
apmuthu Aug 22, 2019
bd53b55
Right Align for numeric fields and table caption for sql table displa…
apmuthu Aug 23, 2019
f4dd250
Added table border collapse for Show SQL Row and Rows
apmuthu Aug 24, 2019
e00db6c
Added $uploadText, substituted translations for Upload, Cancel strings
apmuthu Sep 1, 2019
cab2dcc
Demo tables re-execution of install.php protected
apmuthu Mar 30, 2020
9607b79
Removed missing url gif background, enabled month/year control in dat…
apmuthu Mar 30, 2020
8adf996
Replaced static dead URLs with archived ones in extra_css files
apmuthu Mar 31, 2020
0554af1
Missing colors and images added to extra_css files
apmuthu Mar 31, 2020
a91aca2
Updated docs, added css screenshots, example5, data-url replaced imag…
apmuthu Mar 31, 2020
ed9222d
Updated README.md with Linux Install commands
apmuthu Apr 2, 2020
0f69d8d
Graceful defaults in preheader.php
apmuthu Apr 2, 2020
24d2835
Updated SimpleClear CSS skin, unzipped CSS screenshots
apmuthu Apr 15, 2020
82e31a0
Added function get_field_names($result) to preheader.php
apmuthu May 4, 2020
45bbece
Added general purpose function get_select_options($options)
apmuthu May 18, 2020
f835570
Missing bracket in extra functions fixed
apmuthu May 28, 2020
11ad7cd
$exactSearch settable in allowable values for dropdown select boxes
apmuthu May 30, 2020
8f04853
Read Only fields without exactSearch not to be forced as list options
apmuthu May 31, 2020
545e99d
Optimised events example page
apmuthu Jun 18, 2020
4b14f95
Example events data updated to remain current on date of install
apmuthu Jun 18, 2020
c85d626
$headerAdded typo and img closing tag fixed
apmuthu Jun 18, 2020
35994d2
Cleaned up events readme.txt
apmuthu Jun 19, 2020
34be0b0
Fixed class path in example events and missing calendar.gif in local …
apmuthu Jun 19, 2020
7972076
Linked the Events Application to be listed in the links shown after t…
apmuthu Jun 19, 2020
eb2f746
ShortOpenTag replaced with normal php escape string and typos fixed
apmuthu Jun 29, 2020
8eb8a6c
Fixed deprecated js function getPreventDefault() with defaultPrevente…
apmuthu Jun 29, 2020
9875fc5
Examples Index added
apmuthu Jun 29, 2020
0cda5fd
Reverted commit at https://github.com/apmuthu/ajaxcrud/commit/8eb8a6c…
apmuthu Jul 19, 2020
326cfaf
Pagination optimised if more than 10 page links
apmuthu Aug 15, 2020
a8192f7
Wrapped field in backquotes in MySQL INSERT - safe when column name i…
apmuthu Aug 17, 2020
dd1ca16
Example readme note to add computed field in display
apmuthu Oct 31, 2020
47e0b64
AjaxCRUD Training files added
apmuthu Nov 27, 2020
3d94ba8
Added method disallowEditAllFields() and example for other encodings …
apmuthu Dec 4, 2020
139b623
JS in HTML Form with parameter passing
apmuthu Dec 18, 2020
faf3e54
Form fields in calculated JS validation, action attribute removal
apmuthu Dec 25, 2020
af59ed3
Extended defineAllowableValuesFromSQL() for two dimensional array
apmuthu Feb 11, 2021
38bfb4b
Added addComputedField method to class
apmuthu Feb 20, 2021
dbc36de
Added JS example of table elements with conditional styling in traini…
apmuthu Feb 27, 2021
fe100ea
Reports example added
apmuthu Feb 27, 2021
aaa9b9b
Typo in class for $this object fixed
apmuthu Jul 16, 2021
13f086c
Added second training report and theme screenshots
apmuthu Aug 3, 2021
a9b634e
MySQL to HTML table
apmuthu Feb 6, 2024
d2a72d3
PHP 7.2 fixes and short url off
apmuthu Feb 7, 2024
526681d
Added Quick 'b dirty WebForm to training folder
apmuthu Jun 6, 2024
8c2cf16
Updated DB User/Pass info in WebForm README.md
apmuthu Jun 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 59 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ http://www.ajaxcrud.com/api/

Any questions or issues? -- support forum and reference material featured on the website www.ajaxcrud.com

[Event Example](examples/events)

USING EXAMPLE SCRIPTS:

1) To install this class you must first manually CREATE a database. This is done (locally) by going
Expand All @@ -19,10 +21,65 @@ USING EXAMPLE SCRIPTS:
5) Navigate to the file "/examples/example.php" to test out the class!!



~Loud Canvas Media Staff
www.loudcanvas.com

#Caveats by Ap.Muthu
* Do not name any field bearing the case insensitive string **email** or **password** if *jquery* is used for input masking
* Refer the [upstream issues](https://github.com/iceman101184/ajaxcrud/issues)
* Class constructor is now `__construct`
* CSV export now has table name as part of file name
* HTML5 Browser and PHP > 5.3 needed for email and other newer form field types.
* Extra CSS included with and without Data URLs in them
* The datepicker `calendar.gif` file must be in the same folder as the executing table script

NB: Make sure you include any "header" info (e.g. any HTML, echo statements, etc) AFTER you
include the ajaxCRUD class.
include the ajaxCRUD class.

## Class Properties / Variables Added
````
$LOCAL_JS = false; variable set to true in the preheader file for local js usage instead of from CDN
$AjaxFilterBoxStyle = array() // array (sub fieldname) holding style of select box
$exportCSVSeparator = ','; // sets the CSV field separator
$uploadText // translatable value for button / text
````

## Class Methods Added
````
disallowEditAllFields()
setAjaxFilterBoxStyle($field_name, $style)
disableAjaxFilterBox($field_name) // filters must pre-exist
disableAjaxFilterBoxAllFields() // filters must pre-exist
defineAllowableValuesFromSQL($field, $sql, $onedit_textbox = FALSE, $exactSearch = TRUE)
resetExactSearchField($field)
setExportCSVSeparator($value=',')
addComputedField($cFld, $cFn=false) // Add a computed field with display function name
````

## Generic SQL to HTML Table functions added to preheader.php
* `showSQLRecord($selectSQL, $titles=Array(), $caption='')`
* `showSQLRows($selectSQL, $titles=Array(), $caption='')
* `showRow($row, $isHead=false)`
* `get_field_names($result)`
* Override MySQL connection parameters

## General purpose functions added
* `get_field_names($mysql_result)` to serve as default headings for columns displayed
* `get_select_options($options_array)` converts an array to a set of html select box options

# Linux installation (change PHPLIBDIR as needed)
````
PHPLIBDIR=/var/www/libraries
mkdir -p ${PHPLIBDIR}
cd ${PHPLIBDIR}
wget -c --no-check-certificate https://github.com/apmuthu/ajaxcrud/archive/master.zip -O ajaxcrud.zip
unzip ajaxcrud.zip
rm ajaxcrud.zip
mv ajaxcrud-master ajaxcrud
````

# Training files
* A set of HTML, PHP and JS files for teaching / reference purposes are available in the `training` folder.
* The `training` folder now has a Quick 'n' dirty WebForm training example as well


Loading