/[suikacvs]/webroot/www/js/jste/test.html
Suika

Contents of /webroot/www/js/jste/test.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.23 - (hide annotations) (download) (as text)
Mon Jan 26 11:25:57 2009 UTC (16 years, 7 months ago) by wakaba
Branch: MAIN
Changes since 1.22: +2 -1 lines
File MIME type: text/html
Don't add needless style elements in IE; Added onload callback to JSTE.Tutorial constructor

1 wakaba 1.1 <!DOCTYPE HTML>
2     <html lang=en class=account-user-misc>
3     <meta charset=utf-8>
4     <title>新しい利用者アカウントの作成</title>
5     <link rel=stylesheet href="/admin/style/common">
6 wakaba 1.12 <body>
7 wakaba 1.1 <h1>新しい利用者アカウントの作成</h1>
8    
9     <form action=new-user accept-charset=utf-8 method=post>
10    
11     <p><strong>利用者識別子</strong>: <input type=text name=user-id
12     maxlength=20 size=10 required pattern="[0-9a-z-]{4,20}"> (文字「a」〜「z」、「0」〜「9」、「-」を使って 4〜10 文字の文字列を指定してください。)<p><strong>合言葉</strong>: <input type=password name=user-pass
13     size=10 required pattern=".{4,}"> (最低4文字入力してください。)<p><strong>合言葉</strong> (もう一度): <input type=password
14     name=user-pass2 size=10 required pattern=".{4,}">
15    
16 wakaba 1.12 <p><input type=submit value="作成" class=create></p></form>
17 wakaba 1.1
18     <section>
19     <html lang=en class=account-user-info>
20     <title>さん</title>
21 wakaba 1.12
22     <h1>さん</h1><section id=groups><h2>グループ</h2><section id="groups-joined"><h3>参加中のグループ</h3><ul><li><form action="group.admin-groups" accept-charset=utf-8 method=post><a href="../../groups/admin-groups/">admin-groups</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.admin-users" accept-charset=utf-8 method=post><a href="../../groups/admin-users/">admin-users</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.helo" accept-charset=utf-8 method=post><a href="../../groups/helo/">helo</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.helo-admin" accept-charset=utf-8 method=post><a href="../../groups/helo-admin/">helo-admin</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.schema-db" accept-charset=utf-8 method=post><a href="../../groups/schema-db/">schema-db</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.spec-ja" accept-charset=utf-8 method=post><a href="../../groups/spec-ja/">spec-ja</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.spec-ja-admin" accept-charset=utf-8 method=post><a href="../../groups/spec-ja-admin/">spec-ja-admin</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.suikawiki" accept-charset=utf-8 method=post><a href="../../groups/suikawiki/">suikawiki</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.test-results" accept-charset=utf-8 method=post><a href="../../groups/test-results/">test-results</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form></ul></section><section id="groups-requested"><h3>参加申請中 (未許可) のグループ</h3><ul><li><form action="" accept-charset=utf-8 method=post><a href="../../groups//"></a> <input type=hidden name=action value=leave><input type=submit value="申請取消"></form></ul></section></section><section id=props><h2>特性</h2><p><em>これらの特性は管理者のみが見ることができますが、秘密の情報は記述しないことをお勧めします。</em></p>
23    
24     <form action="prop" accept-charset=utf-8 method=post><input type=hidden name=name value="full_name"><p><label><strong>名前</strong>: <input type="text" name="value" value=""></label> <input type=submit value="保存">
25    
26     </p></form>
27    
28 wakaba 1.13
29    
30 wakaba 1.12 <form action="prop" accept-charset=utf-8 method=post><input type=hidden name=name value="mail_addr"><p><label><strong>メイル・アドレス</strong>: <input type="email" name="value" value=""></label> <input type=submit value="保存">
31     </p></form>
32    
33     <form action="prop" accept-charset=utf-8 method=post><input type=hidden name=name value="home_url"><p><label><strong>Web サイト URL</strong>: <input type="url" name="value" value=""></label> <input type=submit value="保存">
34     </p>
35    
36     </form></section><section id=password><h2>合言葉</h2>
37 wakaba 1.1
38     <form action=password method=post accept-charset=utf-8>
39    
40     <p>合言葉を変更できます。<p><strong>新しい合言葉</strong>: <input type=password name=user-pass
41     size=10 required pattern=".{4,}"> (最低4文字入力してください。) <p><strong>新しい合言葉</strong> (もう一度): <input type=password
42     name=user-pass2 size=10 required pattern=".{4,}">
43    
44 wakaba 1.12 <p><input type=submit value="変更"></p>
45 wakaba 1.1
46     </form>
47     </section>
48    
49     <section id=disable-account><h2>アカウントの無効化</h2>
50    
51    
52     <p><label><input type=checkbox name=action value=enable checked> このアカウントを有効にする</label>
53    
54     <p><strong>警告!</strong> 自分のアカウントを無効にすると、自分で再度有効にすることはできません。<p><input type=submit value="変更"></form></section></section>
55    
56     <style>
57    
58 wakaba 1.4 section, article, menu {
59     display: block;
60 wakaba 1.5 margin: 0;
61     padding: 0;
62 wakaba 1.4 }
63    
64     .sbs-container {
65 wakaba 1.1 display: block;
66     position: absolute;
67     }
68 wakaba 1.4
69     .sbs-container.sbs-without-refelement {
70     position: fixed;
71     bottom: 1em;
72     right: 1em;
73     }
74    
75 wakaba 1.10 .sbs-selected {
76     outline: 2px blue dotted !important;
77     }
78    
79 wakaba 1.11 .mm-container {
80 wakaba 1.1 display: block;
81 wakaba 1.5 padding-bottom: 2em;
82 wakaba 1.4 background-color: white;
83 wakaba 1.5 width: 20em;
84     min-height: 5em;
85     }
86    
87 wakaba 1.11 .mm-container menu {
88 wakaba 1.5 position: absolute;
89     bottom: 0;
90     left: 0;
91     right: 0;
92     text-align: center;
93 wakaba 1.4 }
94 wakaba 1.1 </style>
95    
96 wakaba 1.12 </p>
97    
98 wakaba 1.1 <script type="text/javascript" src="uupaa-detect.mini.js"></script>
99     <script type="text/javascript" src="uupaa-selector.js"></script>
100    
101 wakaba 1.4 <script src="../../css/noderect/NodeRect.js"></script>
102 wakaba 1.1 <script src=tutorial.js></script>
103 wakaba 1.18 <script src=SimpleBalloon.js></script>
104    
105 wakaba 1.1 <script>
106     var MyMessage = new JSTE.Subclass (function () {
107     return this._super.apply (this, arguments);
108     }, JSTE.Message, {
109 wakaba 1.21 _render: function (msgContainer) {
110 wakaba 1.1 var doc = this._targetDocument;
111    
112 wakaba 1.21 var container = doc.createElement ('article');
113 wakaba 1.11 container.className = 'mm-container';
114 wakaba 1.1
115     container.appendChild (msgContainer);
116 wakaba 1.21
117     var buttonContainer = this.createCommandButtons ();
118 wakaba 1.1 container.appendChild (buttonContainer);
119    
120     var refElement = JSTE.Node.querySelector (document, this.select);
121 wakaba 1.20 this._simpleBalloon = new SimpleBalloon (container, refElement);
122 wakaba 1.1
123     return this._simpleBalloon.element;
124     }, // _render
125     _remove: function () {
126     this._simpleBalloon.remove ();
127     } // _remove
128     });
129    
130 wakaba 1.23 JSTE.Tutorial.createFromURL ('test.xml', document, {messageClass: MyMessage},
131     function (t) { document.a = t });
132 wakaba 1.1 </script>
133    
134 wakaba 1.3 <!--
135     /* ***** BEGIN LICENSE BLOCK *****
136     * Copyright 2008-2009 Wakaba <w@suika.fam.cx>. All rights reserved.
137     *
138     * This program is free software; you can redistribute it and/or
139     * modify it under the same terms as Perl itself.
140     *
141     * Alternatively, the contents of this file may be used
142     * under the following terms (the "MPL/GPL/LGPL"),
143     * in which case the provisions of the MPL/GPL/LGPL are applicable instead
144     * of those above. If you wish to allow use of your version of this file only
145     * under the terms of the MPL/GPL/LGPL, and not to allow others to
146     * use your version of this file under the terms of the Perl, indicate your
147     * decision by deleting the provisions above and replace them with the notice
148     * and other provisions required by the MPL/GPL/LGPL. If you do not delete
149     * the provisions above, a recipient may use your version of this file under
150     * the terms of any one of the Perl or the MPL/GPL/LGPL.
151     *
152     * "MPL/GPL/LGPL":
153     *
154     * Version: MPL 1.1/GPL 2.0/LGPL 2.1
155     *
156     * The contents of this file are subject to the Mozilla Public License Version
157     * 1.1 (the "License"); you may not use this file except in compliance with
158     * the License. You may obtain a copy of the License at
159     * <http://www.mozilla.org/MPL/>
160     *
161     * Software distributed under the License is distributed on an "AS IS" basis,
162     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
163     * for the specific language governing rights and limitations under the
164     * License.
165     *
166     * The Original Code is JSTE code.
167     *
168     * The Initial Developer of the Original Code is Wakaba.
169     * Portions created by the Initial Developer are Copyright (C) 2008
170     * the Initial Developer. All Rights Reserved.
171     *
172     * Contributor(s):
173     * Wakaba <w@suika.fam.cx>
174     *
175     * Alternatively, the contents of this file may be used under the terms of
176     * either the GNU General Public License Version 2 or later (the "GPL"), or
177     * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
178     * in which case the provisions of the GPL or the LGPL are applicable instead
179     * of those above. If you wish to allow use of your version of this file only
180     * under the terms of either the GPL or the LGPL, and not to allow others to
181     * use your version of this file under the terms of the MPL, indicate your
182     * decision by deleting the provisions above and replace them with the notice
183     * and other provisions required by the LGPL or the GPL. If you do not delete
184     * the provisions above, a recipient may use your version of this file under
185     * the terms of any one of the MPL, the GPL or the LGPL.
186     *
187     * ***** END LICENSE BLOCK ***** */
188     -->

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24