1var t_no = ""; 2var t_res = ""; 3 4$(function() { 5 6 $(document) 7 // 表示æã®å¦ç --> åãã¼ã¸ã®å ±éå¦çã¯ãc_func.js 8 .ready( function () { 9 // åæãã¹ã¯ã¼ã夿´ãã¤ã¢ãã°åæè¨å® 10 $("#pass_chg_dialog").dialog({ 11 autoOpen: false, 12 modal: true, 13 height: 'auto', 14 width: 'auto', 15 buttons: { 16 "夿´": function(){ 17 btn_OK_ChgDialog(); 18 }, 19 "ãã£ã³ã»ã«": function(){ 20 $(this).dialog('close'); 21 } 22 } 23 }); 24 // ãã¹ã¯ã¼ãåæåãã¤ã¢ãã°åæè¨å® 25 $("#pass_clear_dialog").dialog({ 26 autoOpen: false, 27 modal: true, 28 height: 'auto', 29 width: 'auto', 30 buttons: { 31 "åæå": function(){ 32 btn_OK_ClearDialog(); 33 }, 34 "ãã£ã³ã»ã«": function(){ 35 $(this).dialog('close'); 36 } 37 } 38 }); 39// // ãã°ã¢ã¦ãå¦çããã 40// $.ajax({ 41// type: "POST", 42// scriptCharset: 'utf-8', 43// url: "./logout.php", 44// success: function() { 45// }, 46// error: function(XMLHttpRequest, textStatus, errorThrown) { 47// this; // thisã¯ä»ã®ã³ã¼ã«ããã¯é¢æ°åæ§ã«AJAXéä¿¡æã®ãªãã·ã§ã³ã示ãã¾ãã 48// } 49// }); 50 }); 51 52 // ã¦ã¼ã¶IDããã¹ã¯ã¼ãã§Enterãã¼æ¼ä¸æã®å¦ç 53 $('#u_id_in,#u_pass_in').keypress(function(e){ 54 if ( e.which == 13 ) { 55 // ããã«å¦çãè¨è¿° 56 $('#btn_login').trigger("click"); 57 } 58 }); 59 60 // ããã°ã¤ã³ããã¿ã³å¦ç 61 $('#btn_login').click( function() { 62 63 // å ¥åå 容åå¾ 64 var u_id = trim($('#u_id_in').val()); 65 var u_pass = trim($('#u_pass_in').val()); 66 t_no = ""; 67 t_res = ""; 68 69 // ãã°ã¤ã³å¦ç 70 var data_in = {"u_id": u_id,"u_pass": u_pass}; 71 $.ajax({ 72 type: "POST", 73 scriptCharset: 'utf-8', 74 async: false, 75 data: data_in, 76 dataType: "json", 77 url: "./login.php", 78 success: function(rs,dataType) { 79 if(rs.err.length == 0){ 80 if(rs.res >= "1"){ 81 t_no = rs.t_no; 82 t_res = rs.res; 83 $('#u_pass_chg_1').val(""); 84 $('#u_pass_chg_2').val(""); 85 $("#pass_chg_dialog").dialog('open'); 86 }else{ 87 //location.href = "./top.php"; 88 $('#private_login').attr('action', "top.php"); 89 $('#private_login').submit(); 90 } 91 }else{ 92 showMsgDialog(rs.err,"ãã°ã¤ã³ã¨ã©ã¼"); 93 } 94 }, 95 error: function(XMLHttpRequest, textStatus, errorThrown) { 96 this; 97 showMsgDialog(errorThrown,"AjaxErr(" + textStatus + ")"); 98 } 99 }); 100 }); 101 102 // ãã¹ã¯ã¼ããå¿ããæ¹ã¯ãã¡ãã¯ãªãã¯å¦ç 103 $('#pwd_forget_link').click( function() { 104 $('#t_no_in').val(""); 105 $('#m_addr_in').val(""); 106 $("#pass_clear_dialog").dialog('open'); 107 }); 108 109 // ãçµäºããã¿ã³å¦ç 110 $('#btn_end').click( function() { 111 window.close(); 112 return false; 113 }); 114 115}); 116 117function btn_OK_ChgDialog() 118{ 119 var u_id = trim($('#u_id_in').val()); 120 var u_pass_1 = $('#u_pass_chg_1').val(); 121 var u_pass_2 = $('#u_pass_chg_2').val(); 122 123 var data_in = {"u_id": u_id,"t_no": t_no,"u_pass_1": u_pass_1,"u_pass_2": u_pass_2,"t_res": t_res}; 124 $.ajax({ 125 type: "POST", 126 scriptCharset: 'utf-8', 127 async: false, 128 data: data_in, 129 dataType: "json", 130 url: "./login_pass_chg.php", 131 success: function(rs,dataType) { 132 if(rs.err.length == 0){ 133 location.href = "./top.php"; 134 }else{ 135 showMsgDialog(rs.err,"ãã°ã¤ã³ã¨ã©ã¼"); 136 } 137 }, 138 error: function(XMLHttpRequest, textStatus, errorThrown) { 139 this; 140 showMsgDialog(errorThrown,"AjaxErr(" + textStatus + ")"); 141 } 142 }); 143 144} 145 146function btn_OK_ClearDialog() 147{ 148 var t_no = trim($('#t_no_in').val()); 149 var m_addr = $('#m_addr_in').val(); 150 151 var data_in = {"t_no": t_no,"m_addr": m_addr}; 152 $.ajax({ 153 type: "POST", 154 scriptCharset: 'utf-8', 155 async: false, 156 data: data_in, 157 dataType: "json", 158 url: "./login_pass_clear.php", 159 success: function(rs,dataType) { 160 if(rs.err.length == 0){ 161 showMsgDialog(rs.msg,"åæåå®äº"); 162 $("#pass_clear_dialog").dialog('close'); 163 }else{ 164 showMsgDialog(rs.err,"åæåã¨ã©ã¼"); 165 } 166 }, 167 error: function(XMLHttpRequest, textStatus, errorThrown) { 168 this; 169 showMsgDialog(errorThrown,"AjaxErr(" + textStatus + ")"); 170 } 171 }); 172 173}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.