| | |
| | | <input type=\"hidden\" name=\"id\" value=\"{tmpl_var name='id'}\"> |
| | | |
| | | <div class=\"buttonHolder buttons\"> |
| | | <button class=\"positive iconstxt icoPositive\" type=\"button\" value=\"{tmpl_var name='btn_save_txt'}\" onclick=\"submitForm('pageForm','".$module."/".$formDef["action"]."');\"><span>{tmpl_var name='btn_save_txt'}</span></button> |
| | | <button class=\"negative iconstxt icoNegative\" type=\"button\" value=\"{tmpl_var name='btn_cancel_txt'}\" onclick=\"loadContent('".$module."/".$formDef["list_default"]."');\"><span>{tmpl_var name='btn_cancel_txt'}</span></button> |
| | | <button class=\"positive iconstxt icoPositive\" type=\"button\" value=\"{tmpl_var name='btn_save_txt'}\" onclick=\"ISPConfig.submitForm('pageForm','".$module."/".$formDef["action"]."');\"><span>{tmpl_var name='btn_save_txt'}</span></button> |
| | | <button class=\"negative iconstxt icoNegative\" type=\"button\" value=\"{tmpl_var name='btn_cancel_txt'}\" data-load-content=\"".$module."/".$formDef["list_default"]."\"><span>{tmpl_var name='btn_cancel_txt'}</span></button> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | case 'TEXT': |
| | | $type = 'text'; |
| | | $typevalue = ''; |
| | | $defaultValue = 'NULL'; |
| | | $defaultValue = NULL; |
| | | break; |
| | | case 'DATE': |
| | | $type = 'int64'; |
| | | $type = 'date'; |
| | | $typevalue = ''; |
| | | $defaultValue = ($field["default"] != '')?$field["default"]:'0'; |
| | | $defaultValue = ($field["default"] != '')?$field["default"]:'0000-00-00'; |
| | | break; |
| | | } |
| | | |