49 struct tm
column::get_dValue() {
return dValue;}
53 sValue = std::to_string(value);
61 iValue = atoi(value.c_str());
62 fValue = atof(value.c_str());
101 string input_type_fld;
105 if (
input_type !=
"hidden") cout <<
"required ";
108 while (
db.
res->next())
126 cout <<
"<input type=\"" << input_type_fld <<
"\" name=\"" <<
post_code <<
"\" id=\"" <<
post_code <<
"\" ";
129 cout <<
" required ";
130 if (
col_type ==
'i') cout <<
" size=\"1\" ";
131 else if (
col_type ==
'f') cout <<
" size=\"5\" ";
132 else if (
col_type ==
'd') cout <<
" size=\"6\" ";
133 else cout <<
" size=\"12\" ";
135 if (post_code ==
"iid")
137 cout <<
" value=\"" << to_string(iid) <<
"\" ";
141 if (showExisting) cout <<
" value=\"" <<
get_sValue() <<
"\" ";
143 cout <<
" placeholder=\"" <<
placeholder <<
"\">\n";
void set_value(int value)
void show_inputField(int iid, bool showExisting=false)
string drop_down_keyField
string drop_down_showField
string curr_format(float dv, string the_curr="")
void dateStr2tm(string dStr, tm *target_tm)
string drop_down_keyFieldQuote