| [ Index ] |
PHP Cross Reference of Quick Form DataBase |
[Summary view] [Print] [Text view]
1 <?php 2 if (!defined('QFDB_SECURITY')) { 3 die("You can't access this file directly..."); 4 } 5 6 7 8 class qfdbobj_ibutton { 9 // 0.4 10 static function obj_struct(&$qfdb) 11 { 12 $qfdb->m['object'] = 'ibutton'; // string (fixed) 13 $qfdb->m['status'] = '24'; // string 14 $qfdb->m['if'] = ''; // string 15 $qfdb->m['alias'] = ''; // string 16 17 $qfdb->m['type'] = 'button'; // string 18 $qfdb->m['disabled'] = 'false'; // string 19 20 $qfdb->m['value_1'] = ''; // string 21 $qfdb->m['value_3'] = ''; // string 22 $qfdb->m['value_all'] = ''; // string 23 24 $qfdb->m['id'] = ''; // string 25 $qfdb->m['style'] = ''; // string 26 $qfdb->m['class'] = $qfdb->get_css_value('qfdb_button'); // string 27 $qfdb->m['title'] = ''; // string 28 $qfdb->m['others'] = ''; // string 29 30 $qfdb->m['display'] = 'one_cell'; // string 31 $qfdb->m['colspan_class'] = $qfdb->get_css_value('qfdb_tpl_colspan_ibutton'); // string 32 $qfdb->m['colspan_others'] = ''; // string 33 $qfdb->m['ps_start'] = ''; // string 34 $qfdb->m['ps_end'] = ''; // string 35 36 $qfdb->m['object_properties'] = count($qfdb->m) +2; // int 37 } // end func 38 39 40 41 // 0.3 42 static function obj_html(&$qfdb) 43 { 44 // inicia a construcao do objeto text 45 if ($qfdb->m['value_'.$qfdb->get_status()]) { 46 $qfdb->m['value_all'] = $qfdb->m['value_'.$qfdb->get_status()]; 47 } 48 $object = $qfdb->m['ps_start'] . '<input type="'.$qfdb->m['type'].'"'. 49 'value="'.$qfdb->m['value_all'].'"'; 50 if ($qfdb->m['style']) { 51 $object .= 'style="'.$qfdb->m['style'].'"'; 52 } 53 if ($qfdb->m['class']) { 54 $object .= ' class="'.$qfdb->m['class'].'"'; 55 } 56 if ($qfdb->m['title']) { 57 $object .= ' title="'.$qfdb->m['title'].'"'; 58 } 59 if ($qfdb->m['disabled'] == 'disabled') { 60 $object .= ' disabled="disabled"'; 61 } 62 if ($qfdb->m['id']) { 63 $object .= ' id="'.$qfdb->m['id'].'"'; 64 } 65 $object .= $qfdb->m['others'] . ' />'.$qfdb->m['ps_end']; 66 67 if ($qfdb->m['display'] == 'one_cell') { 68 $qfdb->add_output('html', qfdb_themes::themes_container_one_cell( array('content'=>$object, 'others'=>$qfdb->m['colspan_others'], 'class'=>$qfdb->m['colspan_class']) )); 69 } else { 70 $qfdb->add_output('html', $object); 71 } 72 } // end func 73 74 75 76 // 0.3 77 static function obj_db(&$qfdb) 78 { 79 self::obj_html($qfdb); 80 } // end func 81 82 83 84 // 0.3 85 static function obj_debug(&$qfdb) 86 { 87 } // end func 88 89 90 91 // 0.4 92 static function obj_fixed(&$qfdb) 93 { 94 $qfdb->fix_others(); 95 $qfdb->fix_colspan_others(); 96 $qfdb->fix_button_type(); 97 $qfdb->fix_display_2(); 98 $qfdb->fix_disabled(); 99 } // end func 100 101 } // end class
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri Nov 14 17:48:13 2008 | Cross-referenced by PHPXref 0.7 |