Commit 12b3b7bc50ee82e5de11503304d200b9ccc48306
1 parent
c89d70c1
Exists in
master
and in
5 other branches
Corrigindo tratamento de campos de senha na exportação para html
Showing
2 changed files
with
37 additions
and
7 deletions
Show diff stats
android/res/raw/theme.css
| ... | ... | @@ -26,13 +26,42 @@ input |
| 26 | 26 | margin-right: 0.5em; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | +input:focus | |
| 30 | +{ | |
| 31 | + outline:none; | |
| 32 | +} | |
| 33 | + | |
| 29 | 34 | input[type="text"] |
| 30 | 35 | { |
| 31 | 36 | border: 1px solid #004000 |
| 32 | 37 | } |
| 33 | 38 | |
| 39 | +input[type="text"]:focus | |
| 40 | +{ | |
| 41 | + border: 1px solid #008000 | |
| 42 | +} | |
| 43 | + | |
| 44 | +input[type="password"] | |
| 45 | +{ | |
| 46 | + border: 1px solid #400000 | |
| 47 | +} | |
| 48 | + | |
| 49 | +input[type="password"]:focus | |
| 50 | +{ | |
| 51 | + border: 1px solid #800000 | |
| 52 | +} | |
| 53 | + | |
| 54 | +#terminal | |
| 55 | +{ | |
| 56 | + z-index: 10; | |
| 57 | + background-color: black; | |
| 58 | +} | |
| 59 | + | |
| 34 | 60 | #pfbar |
| 35 | 61 | { |
| 62 | + z-index: -1; | |
| 63 | + position: fixed; | |
| 64 | + bottom: 1px; | |
| 36 | 65 | width: 49em; |
| 37 | 66 | background: black; |
| 38 | 67 | color: white; |
| ... | ... | @@ -57,6 +86,7 @@ a |
| 57 | 86 | font-size: 15px; |
| 58 | 87 | font-family: arial; |
| 59 | 88 | display: inline-block; |
| 89 | + border-radius: 3px; | |
| 60 | 90 | } |
| 61 | 91 | |
| 62 | 92 | .IW001 |
| ... | ... | @@ -458,6 +488,3 @@ a |
| 458 | 488 | { |
| 459 | 489 | width: 41em; |
| 460 | 490 | } |
| 461 | - | |
| 462 | - | |
| 463 | - | ... | ... |
src/lib3270/html.c
| ... | ... | @@ -178,13 +178,15 @@ |
| 178 | 178 | |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | - static void open_input(struct html_info *info, int addr) | |
| 181 | + static void open_input(struct html_info *info, int addr, const char *type) | |
| 182 | 182 | { |
| 183 | 183 | char name[30]; |
| 184 | 184 | |
| 185 | 185 | snprintf(name,29,"F%04d",addr); |
| 186 | 186 | |
| 187 | - append_string(info,"<input type=\"text\" name=\""); | |
| 187 | + append_string(info,"<input type=\""); | |
| 188 | + append_string(info,type); | |
| 189 | + append_string(info,"\" name=\""); | |
| 188 | 190 | append_string(info,name); |
| 189 | 191 | append_string(info,"\""); |
| 190 | 192 | info->mode = HTML_MODE_INPUT_TEXT; |
| ... | ... | @@ -256,9 +258,10 @@ |
| 256 | 258 | if(!FA_IS_PROTECTED(fa)) |
| 257 | 259 | { |
| 258 | 260 | // Input field |
| 259 | - char *text = lib3270_get_field_at(session,baddr+col+1); | |
| 261 | + unsigned char attr = get_field_attribute(session,baddr+col+1); | |
| 262 | + char * text = lib3270_get_field_at(session,baddr+col+1); | |
| 260 | 263 | |
| 261 | - open_input(&info,baddr+col+1); | |
| 264 | + open_input(&info,baddr+col+1,FA_IS_ZERO(attr) ? "password" : "text"); | |
| 262 | 265 | |
| 263 | 266 | if(text) |
| 264 | 267 | { | ... | ... |