| | |
| | | <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"]:null; |
| | | break; |
| | | } |
| | | |
| | |
| | | $fp = fopen($lng_file, "w"); |
| | | fwrite($fp, "<?php\n"); |
| | | foreach($wb_out as $key => $val) { |
| | | $val = str_replace("'", "\\'",$val); |
| | | $key = str_replace("'", "\\'",$key); |
| | | $new_line = '$wb["'.$key.'"] = '."'$val';\n"; |
| | | fwrite($fp, $new_line); |
| | | |