HomeHelpTrac

Changeset 15835 for trunk


Ignore:
Timestamp:
01/04/12 23:19:41 (5 months ago)
Author:
Alexander Trofimov
Message:

Form - docs and samples were updated because some necessary fields were added

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/classes/BxDolForm.php

    r15798 r15835  
    6868 * - object - form object name from sys_objects_form table this Form Display belongs to. 
    6969 * - title - Form Display title to display in studio forms builder. 
     70 * - view_mode - display form as read-only. 
    7071 * 
    7172 *   
    7273 * 3. Create Form Fields, add records to sys_form_inputs table: 
    7374 * - object - form object name from sys_objects_form table this Form Field belongs to. 
     75 * - module - module name this field belongs to. 
    7476 * - name - unique Form Field name in particular From Object. 
    7577 * - value - default value, or empty if there is no default value. 
     
    145147 *      You can inherit BxDolFormCheckerHelper class and add own pass functions, you will need to point your custom class in Form Object params array. 
    146148 * - db_params - serialized array of db_pass parameters. 
     149 * - editable - allow to edit this field from admin forms builder. 
     150 * - deletable - allow to delete this field from admin forms builder. 
    147151 *  
    148152 * 
  • trunk/samples/BxSampleForm.php

    r15805 r15835  
    5050-- SQL dump of form inputs: 
    5151 
    52 INSERT INTO `sys_form_inputs` (`object`, `name`, `value`, `values`, `checked`, `type`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`) VALUES 
    53 ('sample_form_objects', 'id', '', '', 0, 'hidden', 'ID', '', 0, 0, 0, '', '', '', '', '', '', '', ''), 
    54 ('sample_form_objects', 'header_contact', '', '', 0, 'block_header', 'All possible form input types', '', 0, 0, 0, '', '', '', '', '', '', '', ''), 
    55 ('sample_form_objects', 'text', '', '', 0, 'text', 'Text', '', 1, 0, 0, '', '', '', 'avail', '', 'Text is required', 'Xss', ''), 
    56 ('sample_form_objects', 'date', '', '', 0, 'datepicker', 'Date', '', 1, 0, 0, '', '', '', 'avail', '', 'Date is required', 'Date', ''), 
    57 ('sample_form_objects', 'datetime', '', '', 0, 'datetime', 'Datetime', '', 0, 0, 0, '', '', '', '', '', '', 'DateTime', ''), 
    58 ('sample_form_objects', 'number', '42', '', 0, 'number', 'Number', '', 0, 0, 0, '', '', '', '', '', '', 'Int', ''), 
    59 ('sample_form_objects', 'checkbox', '1', '', 0, 'checkbox', 'Checkbox', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', ''), 
    60 ('sample_form_objects', 'file', '', '', 0, 'file', 'File', '', 0, 0, 0, '', '', '', '', '', '', '', ''), 
    61 ('sample_form_objects', 'image', '', '', 0, 'image', 'Image', '', 0, 0, 0, 'a:1:{s:3:"src";s:85:"http://demo.boonex.com/m/photos/get_image/browse/d7bd9bb01ce45617d709dfd47826d4a3.jpg";}', '', '', '', '', '', '', ''), 
    62 ('sample_form_objects', 'password', '', '', 0, 'password', 'Password', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', ''), 
    63 ('sample_form_objects', 'slider', '21', '', 0, 'slider', 'Slider', '', 0, 0, 0, 'a:2:{s:3:"min";i:16;s:3:"max";i:99;}', '', '', '', '', '', 'Int', ''), 
    64 ('sample_form_objects', 'doublerange', '20-35', '', 0, 'doublerange', 'Doublerange', '', 0, 0, 0, 'a:2:{s:3:"min";i:16;s:3:"max";i:99;}', '', '', '', '', '', 'Xss', ''), 
    65 ('sample_form_objects', 'hidden', '', '', 0, 'hidden', 'Hidden', '', 0, 0, 0, '', '', '', '', '', '', '', ''), 
    66 ('sample_form_objects', 'switcher', '1', '', 0, 'switcher', 'Switcher', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', ''), 
    67 ('sample_form_objects', 'button', '_Befriend', '', 0, 'button', 'Button', '', 0, 0, 0, '', '', '', '', '', '', '', ''), 
    68 ('sample_form_objects', 'reset', '_Befriend', '', 0, 'reset', 'Reset', '', 0, 0, 0, '', '', '', '', '', '', '', ''), 
    69 ('sample_form_objects', 'submit', '_Befriend', '', 0, 'submit', 'Submit', '', 0, 0, 0, 'a:1:{s:5:"class";s:23:"bx-def-margin-sec-right";}', '', '', '', '', '', '', ''), 
    70 ('sample_form_objects', 'textarea', '', '', 0, 'textarea', 'Textarea', '', 0, 0, 0, '', '', '', '', '', '', 'XssHtml', ''), 
    71 ('sample_form_objects', 'select', '', 'a:3:{i:1;s:3:"one";i:2;s:3:"two";i:3;s:5:"three";}', 0, 'select', 'Select', '', 0, 0, 0, '', '', '', '', '', '', 'int', ''), 
    72 ('sample_form_objects', 'select_multiple', '', 'a:3:{i:1;s:3:"one";i:2;s:3:"two";i:4;s:5:"three";}', 0, 'select_multiple', 'Select Multiple', '', 0, 0, 0, '', '', '', '', '', '', 'Set', ''), 
    73 ('sample_form_objects', 'checkbox_set', '', 'a:3:{i:1;s:3:"one";i:2;s:3:"two";i:4;s:5:"three";}', 0, 'checkbox_set', 'Checkbox Set', '', 0, 0, 0, '', '', '', '', '', '', 'Set', ''), 
    74 ('sample_form_objects', 'radio_set', '', 'a:3:{i:1;s:3:"one";i:2;s:3:"two";i:3;s:5:"three";}', 0, 'radio_set', 'Radio Set', '', 0, 0, 0, '', '', '', '', '', '', 'Int', ''), 
    75 ('sample_form_objects', 'input_set', '', 'submit,reset', 0, 'input_set', 'Input Set', '', 0, 0, 0, '', '', '', '', '', '', '', ''), 
    76 ('sample_form_objects', 'custom', '', '', 0, 'custom', 'Custom', '', 0, 0, 0, '', '', '', '', '', '', 'Rgb', ''), 
    77 ('sample_form_objects', 'value', 'вот...', '', 0, 'value', 'Value', '', 0, 0, 0, '', '', '', '', '', '', '', ''), 
    78 ('sample_form_objects', 'captcha', '', '', 0, 'captcha', 'Captcha', '', 0, 0, 0, '', '', '', '', '', '', '', ''), 
    79 ('sample_form_objects', 'header_submit', '', '', 0, 'block_header', '', '', 0, 0, 0, '', '', '', '', '', '', '', ''), 
    80 ('sample_form_objects', 'do_submit', '_Submit', '', 0, 'submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', ''); 
     52INSERT INTO `sys_form_inputs` (`object`, `module`, `name`, `value`, `values`, `checked`, `type`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`, `editable`, `deletable`) VALUES 
     53('sample_form_objects', 'custom', 'id', '', '', 0, 'hidden', 'ID', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0), 
     54('sample_form_objects', 'custom',  'header_contact', '', '', 0, 'block_header', 'All possible form input types', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 1), 
     55('sample_form_objects', 'custom',  'text', '', '', 0, 'text', 'Text', '', 1, 0, 0, '', '', '', 'avail', '', 'Text is required', 'Xss', '', 1, 1), 
     56('sample_form_objects', 'custom',  'date', '', '', 0, 'datepicker', 'Date', '', 1, 0, 0, '', '', '', 'avail', '', 'Date is required', 'Date', '', 1, 1), 
     57('sample_form_objects', 'custom',  'datetime', '', '', 0, 'datetime', 'Datetime', '', 0, 0, 0, '', '', '', '', '', '', 'DateTime', '', 1, 1), 
     58('sample_form_objects', 'custom',  'number', '42', '', 0, 'number', 'Number', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 1), 
     59('sample_form_objects', 'custom',  'checkbox', '1', '', 0, 'checkbox', 'Checkbox', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 1), 
     60('sample_form_objects', 'custom',  'file', '', '', 0, 'file', 'File', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 1), 
     61('sample_form_objects', 'custom',  'image', '', '', 0, 'image', 'Image', '', 0, 0, 0, 'a:1:{s:3:"src";s:85:"http://demo.boonex.com/m/photos/get_image/browse/d7bd9bb01ce45617d709dfd47826d4a3.jpg";}', '', '', '', '', '', '', '', 1, 1), 
     62('sample_form_objects', 'custom',  'password', '', '', 0, 'password', 'Password', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 1), 
     63('sample_form_objects', 'custom',  'slider', '21', '', 0, 'slider', 'Slider', '', 0, 0, 0, 'a:2:{s:3:"min";i:16;s:3:"max";i:99;}', '', '', '', '', '', 'Int', '', 1, 1), 
     64('sample_form_objects', 'custom',  'doublerange', '20-35', '', 0, 'doublerange', 'Doublerange', '', 0, 0, 0, 'a:2:{s:3:"min";i:16;s:3:"max";i:99;}', '', '', '', '', '', 'Xss', '', 1, 1), 
     65('sample_form_objects', 'custom',  'hidden', '', '', 0, 'hidden', 'Hidden', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 1), 
     66('sample_form_objects', 'custom',  'switcher', '1', '', 0, 'switcher', 'Switcher', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 1), 
     67('sample_form_objects', 'custom',  'button', '_Befriend', '', 0, 'button', 'Button', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 1), 
     68('sample_form_objects', 'custom',  'reset', '_Befriend', '', 0, 'reset', 'Reset', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 1), 
     69('sample_form_objects', 'custom',  'submit', '_Befriend', '', 0, 'submit', 'Submit', '', 0, 0, 0, 'a:1:{s:5:"class";s:23:"bx-def-margin-sec-right";}', '', '', '', '', '', '', '', 1, 1), 
     70('sample_form_objects', 'custom',  'textarea', '', '', 0, 'textarea', 'Textarea', '', 0, 0, 0, '', '', '', '', '', '', 'XssHtml', '', 1, 1), 
     71('sample_form_objects', 'custom',  'select', '', 'a:3:{i:1;s:3:"one";i:2;s:3:"two";i:3;s:5:"three";}', 0, 'select', 'Select', '', 0, 0, 0, '', '', '', '', '', '', 'int', '', 1, 1), 
     72('sample_form_objects', 'custom',  'select_multiple', '', 'a:3:{i:1;s:3:"one";i:2;s:3:"two";i:4;s:5:"three";}', 0, 'select_multiple', 'Select Multiple', '', 0, 0, 0, '', '', '', '', '', '', 'Set', '', 1, 1), 
     73('sample_form_objects', 'custom',  'checkbox_set', '', 'a:3:{i:1;s:3:"one";i:2;s:3:"two";i:4;s:5:"three";}', 0, 'checkbox_set', 'Checkbox Set', '', 0, 0, 0, '', '', '', '', '', '', 'Set', '', 1, 1), 
     74('sample_form_objects', 'custom',  'radio_set', '', 'a:3:{i:1;s:3:"one";i:2;s:3:"two";i:3;s:5:"three";}', 0, 'radio_set', 'Radio Set', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 1), 
     75('sample_form_objects', 'custom',  'input_set', '', 'submit,reset', 0, 'input_set', 'Input Set', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 1), 
     76('sample_form_objects', 'custom',  'custom', '', '', 0, 'custom', 'Custom', '', 0, 0, 0, '', '', '', '', '', '', 'Rgb', '', 1, 1), 
     77('sample_form_objects', 'custom',  'value', 'вот...', '', 0, 'value', 'Value', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 1), 
     78('sample_form_objects', 'custom',  'captcha', '', '', 0, 'captcha', 'Captcha', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 1), 
     79('sample_form_objects', 'custom',  'header_submit', '', '', 0, 'block_header', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 1), 
     80('sample_form_objects', 'custom',  'do_submit', '_Submit', '', 0, 'submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 1); 
    8181 
    8282-- SQL dump of form inputs association with form display: 
Note: See TracChangeset for help on using the changeset viewer.