PageSourceSearch

https://www.gyosei-shiga.or.jp/sgk/js/private_login.js

js gyosei-shiga.or.jp collected 2026-10-02 18:32:24 UTC 4,245 bytes, 173 lines download raw bytes

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.