| [ 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_button { 9 // 0.4 10 static function obj_struct(&$qfdb) 11 { 12 $qfdb->m['object'] = 'ibutton'; // string (fixed) 13 $qfdb->m['status'] = '13'; // 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_5'] = ''; // string 23 $qfdb->m['value_6'] = ''; // string 24 $qfdb->m['value_all'] = ''; // string 25 26 $qfdb->m['id'] = ''; // string 27 $qfdb->m['style'] = ''; // string 28 $qfdb->m['class'] = $qfdb->get_css_value('qfdb_button'); // string 29 $qfdb->m['title'] = ''; // string 30 $qfdb->m['others'] = ''; // string 31 32 $qfdb->m['display'] = 'one_cell'; // string 33 $qfdb->m['colspan_class'] = $qfdb->get_css_value('qfdb_tpl_colspan_button'); // string 34 $qfdb->m['colspan_others'] = ''; // string 35 $qfdb->m['ps_start'] = ''; // string 36 $qfdb->m['ps_end'] = ''; // string 37 38 $qfdb->m['object_properties'] = count($qfdb->m) +2; // int 39 } // end func 40 41 42 43 // 0.3 44 static function obj_html(&$qfdb) 45 { 46 // inicia a construcao do objeto text 47 if ($qfdb->m['value_'.$qfdb->get_status()]) { 48 $qfdb->m['value_all'] = $qfdb->m['value_'.$qfdb->get_status()]; 49 } 50 $object = $qfdb->m['ps_start'] . '<button type="'.$qfdb->m['type'].'"'; 51 if ($qfdb->m['style']) { 52 $object .= 'style="'.$qfdb->m['style'].'"'; 53 } 54 if ($qfdb->m['class']) { 55 $object .= ' class="'.$qfdb->m['class'].'"'; 56 } 57 if ($qfdb->m['title']) { 58 $object .= ' title="'.$qfdb->m['title'].'"'; 59 } 60 if ($qfdb->m['disabled'] == 'disabled') { 61 $object .= ' disabled="disabled"'; 62 } 63 if ($qfdb->m['id']) { 64 $object .= ' id="'.$qfdb->m['id'].'"'; 65 } 66 $object .= $qfdb->m['others'] . '> '.$qfdb->m['value_all'].'</button>'.$qfdb->m['ps_end']; 67 68 if ($qfdb->m['display'] == 'one_cell') { 69 $qfdb->add_output('html', qfdb_themes::themes_container_one_cell( array('content'=>$object, 'others'=>$qfdb->m['colspan_others'], 'class'=>$qfdb->m['colspan_class']) )); 70 } else { 71 $qfdb->add_output('html', $object); 72 } 73 } // end func 74 75 76 77 // 0.3 78 static function obj_db(&$qfdb) 79 { 80 self::obj_html($qfdb); 81 } // end func 82 83 84 85 // 0.3 86 static function obj_debug(&$qfdb) 87 { 88 } // end func 89 90 91 92 // 0.4 93 static function obj_fixed(&$qfdb) 94 { 95 $qfdb->fix_button_type(); 96 $qfdb->fix_others(); 97 $qfdb->fix_colspan_others(); 98 $qfdb->fix_display_2('one_cell'); 99 $qfdb->fix_disabled(); 100 } // end func 101 102 } // 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 |