wotex.html 3.37 KB
Newer Older
1
2
<!-- Inclure l'en-tête commun -->
${(host.substr(host.length-6,6) == '.onion') ? HTML_TOR_HEAD:HTML_HEAD}
tykayn's avatar
tykayn committed
3
<title >${currencyName}-monit : ${MENU_LANG['WOTEX']}</title >
4
<link
tykayn's avatar
tykayn committed
5
6
7
8
9
10
11
12
		href='//cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css'
		rel='stylesheet'
		type='text/css' />
<script
		crossorigin='anonymous'
		integrity='sha256-MlusDLJIP1GRgLrOflUQtshyP0TwT/RHXsI1wWGnQhs='
		src='https://code.jquery.com/jquery-3.5.0.slim.min.js' ></script >
<script src='/js/dataTables.min.js' ></script >
13
14
15
<script type='text/javascript' >

  $(document).ready(function () {
tykayn's avatar
tykayn committed
16
17
18
    $('table, #table').DataTable({
      paging: false
    } );
19
20
21
  });
</script >

tykayn's avatar
tykayn committed
22
<script type='text/javascript' >
23

tykayn's avatar
tykayn committed
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
  function onLoadedPage() {
    var to = decodeURIComponent(querySt('to') || '');
    var pending = querySt('pending') == 'on' ? 'checked' : '';
    var mode = querySt('mode');

    document.getElementById('to').value = to || '';
    if (window.location.search) {
      document.getElementById('pending').checked = pending;
    } else {
      // Default checked
      document.getElementById('pending').checked = 'checked';
    }

    if (mode == 'u2w') {
      document.getElementById('modeu2w').checked = 'checked';
    } else {
      document.getElementById('modew2u').checked = 'checked';
    }

    var params = [
      'pending=' + (pending == 'checked' ? 'on' : (!window.location.search ? 'on' : '')),
      'mode=' + mode,
    ];

    var links = document.getElementsByTagName('a');
    for (var i = 0; i < links.length; i++) {
      links[i].href += '&' + params.join('&');
    }
  }

  function querySt(ji) {

    var hu = window.location.search.substring(1);
    var gy = hu.split('&');

    for (i = 0; i < gy.length; i++) {
      ft = gy[i].split('=');
      if (ft[0] == ji) {
        return ft[1];
      }
    }
  }

  function resetAll() {
    window.location = '/';
    return false;
  }
</script >
72
</head>
tykayn's avatar
tykayn committed
73
74
75
<body>
<!-- Afficher le menu -->
${printMenu(MENU_LANG, help, "WOTEX")}
tykayn's avatar
tykayn committed
76
77
<main onload='onLoadedPage()' >

tykayn's avatar
tykayn committed
78

tykayn's avatar
tykayn committed
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128

	<!-- Afficher le titre et le formulaire -->
	<h1 >${LANG['TITLE']}</h1 >
	<form
			action=''
			method='GET'
			onreset='resetAll()' >
		<div >
			<label for='to' >${LANG['TEST_UID']} :</label >
			<input
					id='to'
					name='to'
					type='text' >
			<br >
			<input
					checked='checked'
					id='pending'
					name='pending'
					type='checkbox' >
			<label for='pending' >${LANG['CHECKBOX_PENDING_DATA']}</label >
			<br >
			<input
					checked='checked'
					id='modew2u'
					name='mode'
					type='radio'
					value='w2u' >${LANG['MODE_W2U']}
		</div >
		<input
				id='modeu2w'
				name='mode'
				type='radio'
				value='u2w' >${LANG['MODE_U2W']}</div>
		<br >
		<input
				class='input is-primary button'
				type='submit' />
		<input
				class='input is-warning button'
				type='reset'
				value='Reset' />
		</div>
	</form >
	<hr />
	<!-- Afficher la légende -->
	${(typeof(help) == 'undefined' || help != 'no') ? `
	<p >${LANG['LEGEND_TITLE']} :</p >

	<span class='isMember' >${LANG['LEGEND_BLACK']}</span ></br>
	<span class='isSentry' >${LANG['LEGEND_BLUE']}</span ></br>
Baptiste Lemoine's avatar
Baptiste Lemoine committed
129
130
	<span class='isPending' >${LANG['LEGEND_ORANGE']}</span ></br>
	<span class='isNonMember' >${LANG['LEGEND_RED']}</span ></br>
tykayn's avatar
tykayn committed
131
132
133
134
135
136
137
138
139
140

	<hr />
	`:``}
	<!-- Afficher tout les plus courts chemins -->
	${searchResult}
	<!-- Afficher les membres référents -->
	<h2 >${LANG['CURRENT_SENTRIES']} :</h2 >
	${sentriesHTML}
</main >
</body>
141
</html>