Download .zip |
Info | Example | Demos | Screenshots | View files (363) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2017-10-04 (1 month ago) | Not enough user ratings | Total: 175 This week: 96 | All time: 8,229 This week: 3 |
Version | License | PHP version | Categories | |||
forme 1.0 | MIT/X Consortium ... | 7 | HTML, PHP 5, Databases |
Description | Author | |||
This package can build form and manage MySQL table records with XML. Recommendations HTML forms from XML document with PHP I need to pick a date and return it to a form Innovation Award
|
FormE is a php class for manage tables in MySql Databases. Create your own form only manipulating xml files. Lot of component, help you to write your form.
Input, password, date, checkbox, radio, Bing map, linked combobox and so on in Bootstrap framework, use template for personalize input.
You can see examples here.
`
$myForm = new Forms("myXML.xml", "ID=1"); `
### Add "form" Tag :
form type "block"
<row x-col="10" style="..." class="..." >
<boxInput x-col="2" style="..." class="...">
</boxInput>
<boxInput x-col="3">
</boxInput>
<boxInput x-col="5">
</boxInput>
</row>
<row x-col="10" style="...">
<boxInput x-col="2">
</boxInput>
<boxInput x-col="2" style="..." class="...">
</boxInput>
<boxInput x-col="2">
</boxInput>
<boxInput x-col="2" class="...">
</boxInput>
<boxInput x-col="2">
</boxInput>
</row>
form type "horizontal" is quite different
<boxInput x-col="9">
<label x-col="2">Avatar</label>
<DBIcon x-col="3" style="width:150px; height:150px">ANAAvatar2</DBIcon>
</boxInput>
<boxInput x-col="9">
<label x-col="2">ID</label>
<DBInput x-col="1">ANAId</DBInput>
</boxInput>
optionally use "style" and/or "class" for personalize yours tags
<label>Name</label>
<DBInput placeholder="Name" required="required">ANAName
<help x-title="Name">Insert the Name...</help>
</DBInput>
OR
<label>Name</label>
<DBInput2 placeholder="Name" x-image="user">ANAName</DBInput2>
OR
<label>Birthday</label>
<DBDateIT>ANADtNasc</DBDateIT>
... FINALLY insert DBApply tag for send data in MySql Database
<DBApply>Salva</DBApply>
<label>Name</label>
label of Input
<DBInput placeholder="Name" required="required" >ANAName
<help x-title="Name title">Insert Name ...</help>
</DBInput>
<DBInput size="20" data-mask='099.099.099.099' placeholder="To IP">IPEnd
<help x-title="IP">Insert IP in range of 192.168.0.1-192.168.0.254 !!!</help>
</DBInput>
<DBInput2 placeholder="Nome" x-image="user">ANANome</DBInput2>
like input with image - x-image = specify the icon at the left of input fontawesome
<DBDateEN data-defaultViewDate="today">ANADtIscr</DBDateEN>
Input date with notation dd-mm-yyyy (IT) or mm/dd/yyyy (EN). It is possible specify many other parameters according with bootstrap-datepicker
<DBCheck x-descr="Rock" x-states="Rock|norock">ANAmuRock</DBCheck>
<DBCheck x-descr="Disco" x-states="Yes|No">ANAmuDisco</DBCheck>
<DBCheck x-descr="Lyrics" x-states="1|0">ANAmuClas</DBCheck>
<DBRadio>ANATipo
<option value="CA">Caucasico</option>
<option value="AS">Asiatico</option>
<option value="AF">Africano</option>
<option value="MO">Mongolico</option>
<option value="AM">Americano</option>
</DBRadio>
<DBComboBox size="1" placeholder="Dug">ANAGR_DUGId
<DBOption x-tbRef="Dug" x-tbKey="DUGId" x-tbDescr="DUGDescr" x-tbOrder="DUGDescr"></DBOption>
</DBComboBox>
DBOption parameters - x-tbRef = Linked table in MySql Database - x-tbKey = Key of linked table that match with value of tag DBComboBox - x-tbDescr = Value of field (of linked Table) to show in combobox - x-tbOrder = Order to linked table
(select * from Dug where Dug.DUGId=ANAGR.ANAGR_DUGId order by Dug.DUGDescr)
<boxInput x-col="2">
<label>Continente</label>
<DBComboBoxCascade size="1" placeholder="Continenti" x-cbCascade="grpAA" x-valid="showMap">ANAG_COId
<DBOption x-tbRef="Continenti" x-tbKey="COId" x-tbDescr="CODescr" x-tbOrder="CODescr"></DBOption>
</DBComboBoxCascade>
</boxInput>
<boxInput x-col="2">
<label>Stato</label>
<DBComboBoxCascade size="1" placeholder="Stato" x-cbCascade="grpAA" required="required" x-valid="showMap">ANAG_STId
<DBOption x-tbRef="Stato" x-tbKey="STId" x-tbDescr="STDescr" x-tbOrder="STDescr" x-tbParentKey="COId"></DBOption>
</DBComboBoxCascade>
</boxInput>
<boxInput x-col="3">
<label>Citta</label>
<DBComboBoxCascade size="1" placeholder="Citta" x-cbCascade="grpAA" x-valid="showMap">ANAG_CTId
<DBOption x-tbRef="Citta" x-tbKey="CTId" x-tbDescr="CTDescr" x-tbOrder="CTDescr" x-tbParentKey="STId"></DBOption>
</DBComboBoxCascade>
</boxInput>
DbComboBoxCascade is an extension of DbComboBox and use for linked combobox - x-cbCascade = Identifier of linked group of combobox (obbligatory), the order in xml file is important ! DBOption - x-tbRef/x-tbKey/x-tbDescr/x-tbOrder = like in DBOption of DBComboBox - x-tbParentKey = Key of linked table to parent Table
example Stato: (select * from Stato where Stato.STId=ANAGR.ANAG_STId and Stato.COId=ANAGR.ANAG_COId order by Stato.STDescr)
<DBSearch placeholder="Search..." x-valid="showSearch" x-SearchTable='Stato' x-SearchField='STDescr' x-SearchReturn='STDescr'>ANASearch
<DBSearchReturn>
<span>
<img src="img/@STFlag@"/> @STDescr@
</span>
</DBSearchReturn>
</DBSearch>
DBSearch is a text control that auto-populate in according with text entered
DBSearchReturn: contain a block of data for populate the window that appear in bottom at text control, it is crypted with a key that you have specified in FormE.ini.php
<DBInputFile placeholder="File" x-upload="upload2">ANAlinkFile1</DBInputFile>
Upload a File - x-upload = Directory where the file are uploaded, if not specified the default value is stored in FormE.ini.php
<DBMapBing style="width:400px; height:400px">ANAMap</DBMapBing>
Show a map in your page. Look the examples for a simple use of that control.
<DBIcon style="width:150px; height:150px" x-descr="[drag here !!]">ANAAvatar2</DBIcon>
Small images in MySql table, use LONGTEXT. Drag and Drop into this control
<DBTextArea rows="8" cols="200">ANANote</DBTextArea>
:+1:
Screenshots | ||
Files |
File | Role | Description | ||
---|---|---|---|---|
css (8 files) | ||||
fonts (1 file) | ||||
img (250 files) | ||||
js (13 files, 1 directory) | ||||
lib (4 files) | ||||
FormE.ini.php | Aux. | Auxiliary script | ||
FormE.sql | Data | Auxiliary data | ||
frmAnag5_block.xml | Data | Auxiliary data | ||
frmAnag5_horizontal.xml | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
main_v3.php | Example | Example script | ||
main_v4.php | Example | Example script | ||
README.md | Doc. | Documentation | ||
_feAutoComplete.php | Example | Example script | ||
_feCascade.php | Example | Example script | ||
_fePost.php | Class | Class source |
Files | / | css |
File | Role | Description |
---|---|---|
bootstrap-datepick...ndalone.164.min.css | Data | Auxiliary data |
bootstrap3.min.css | Data | Auxiliary data |
bootstrap4.min.css | Data | Auxiliary data |
datepicker3.css | Data | Auxiliary data |
fileinput.css | Data | Auxiliary data |
font-awesome.css | Data | Auxiliary data |
jasny-bootstrap.min.css | Data | Auxiliary data |
jquery-ui.min.css | Data | Auxiliary data |
Files | / | img |
Files | / | js |
File | Role | Description | ||
---|---|---|---|---|
locales (76 files) | ||||
bootstrap-datepicker.164.min.js | Data | Auxiliary data | ||
bootstrap-datepicker.js | Data | Auxiliary data | ||
bootstrap3.min.js | Data | Auxiliary data | ||
bootstrap4.min.js | Data | Auxiliary data | ||
FormE.js | Data | Auxiliary data | ||
jasny-bootstrap.min.js | Data | Auxiliary data | ||
jquery-3.2.1.min.js | Data | Auxiliary data | ||
jquery-ui.min.js | Data | Auxiliary data | ||
jquery.mask.js | Data | Auxiliary data | ||
jquery.mask.min.js | Data | Auxiliary data | ||
jquery.min.js | Data | Auxiliary data | ||
npm3.js | Data | Auxiliary data | ||
tether4.min.js | Data | Auxiliary data |
Files | / | js | / | locales |
Files | / | lib |
File | Role | Description |
---|---|---|
FormE.class.php | Class | Class source |
FormE.DB.class.php | Class | Class source |
FormE.func.php | Aux. | Auxiliary script |
userPostFunc.php | Aux. | Auxiliary script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
99% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.