Subversion Repositories wimsdev

Rev

Rev 12124 | Rev 13306 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12124 Rev 12498
Line 2... Line 2...
2
!set swlist=coq, gap, graphviz, m2, maxima, octave, pari, povray, geogebra,jsxgraph
2
!set swlist=coq, gap, graphviz, m2, maxima, octave, pari, povray, geogebra,jsxgraph
3
!set swname=COQ, Gap, Graphviz, Macaulay 2, Maxima, Octave, PARI/GP, Povray, GeoGebra, Jsxgraph
3
!set swname=COQ, Gap, Graphviz, Macaulay 2, Maxima, Octave, PARI/GP, Povray, GeoGebra, Jsxgraph
4
!set year=!char 1 to 4 of $wims_now
4
!set year=!char 1 to 4 of $wims_now
5
 
5
 
6
!if $title=$empty or $modreq=.new
6
!if $title=$empty or $modreq=.new
7
 !set this=$name_this1
7
  !set this=$name_this1
8
!else
8
!else
9
 !set this=$name_this2
9
  !set this=$name_this2
10
!endif
10
!endif
11
 
11
 
12
!!# Si les librairies Jquery sont chargées, on affiche des onglets.
12
!!# Si les librairies Jquery sont chargées, on affiche des onglets.
13
!if $jquery_defined=yes
13
!if $jquery_defined=yes
14
  <script type="text/javascript">
14
  <script type="text/javascript">
Line 33... Line 33...
33
  <fieldset class="property_fields blockcenter fullwidth">
33
  <fieldset class="property_fields blockcenter fullwidth">
34
    <legend>$wims_name_General</legend>
34
    <legend>$wims_name_General</legend>
35
    <div class="field box">
35
    <div class="field box">
36
      <strong>$wims_name_Address</strong>
36
      <strong>$wims_name_Address</strong>
37
      <span class="wims_fname">
37
      <span class="wims_fname">
38
        !if $title!=$empty and $modreq!=.new
38
!if $title!=$empty and $modreq!=.new
39
          $modreq
39
          $modreq
40
  $
40
  $
41
          !set wims_ref_class=wims_button
41
          !set wims_ref_class=wims_button
42
          !href cmd=reply&jobreq=move&original=devel/$auth_login/$modreq $name_rename
42
          !href cmd=reply&jobreq=move&original=devel/$auth_login/$modreq $name_rename
43
  $
43
  $
44
          !set wims_ref_class=wims_button
44
          !set wims_ref_class=wims_button
45
          !href cmd=reply&jobreq=copy&original=devel/$auth_login/$modreq $name_duplicate
45
          !href cmd=reply&jobreq=copy&original=devel/$auth_login/$modreq $name_duplicate
46
        !else
46
!else
47
          !set modreq=.new
47
          !set modreq=.new
48
          !read scripts/addressform.phtml nook
48
          !read scripts/addressform.phtml nook
49
        !endif
49
!endif
50
      </span>
50
      </span>
51
    </div>
51
    </div>
52
    <div class="field box">
52
    <div class="field box">
53
      <label for="i_title">$wims_name_title</label>
53
      <label for="i_title">$wims_name_title</label>
54
      <input type="text" name="i_title" id="i_title" value="$i_title" required="required"/>
54
      <input type="text" name="i_title" id="i_title" value="$i_title" required="required"/>
55
    </div>
55
    </div>
56
    <div class="field box">
56
    <div class="field box">
57
      <label for="i_description">$wims_name_Description</label>
57
      <label for="i_description">$wims_name_Description</label>
58
      <input type="text" name="i_description" id="i_description" value="$i_description" required="required" />
58
      <input type="text" name="i_description" id="i_description" value="$i_description" required="required" />
59
    </div>
59
    </div>
60
 
60
 
61
!set list_category=oef,document,exercise,tool,recreation,deductio
61
!set list_category=oef,document,exercise,tool,recreation,deductio
62
    <div class="field box">
62
    <div class="field box">
63
      <strong>$wims_name_Type</strong>
63
      <strong>$wims_name_Type</strong>
64
      !set wims_ref_class=wims_button_help float_right
64
!set wims_ref_class=wims_button_help float_right
65
      !href cmd=help&special_parm=type $wims_name_help
65
!href cmd=help&special_parm=type $wims_name_help
66
      !set wims_formselect_switch=multiple
66
!set wims_formselect_switch=multiple
67
      !set wims_ref_class=wims_formradio
67
!set wims_ref_class=wims_formradio
68
      !formcheckbox i_category list $list_category prompt $name_type
68
!formcheckbox i_category list $list_category prompt $name_type
69
    </div>
69
    </div>
70
!if $modreq=.new
70
!if $modreq=.new
71
    !if $jquery_defined=yes
71
  !if $jquery_defined=yes
72
     <div class="field box" id="i_common_images">
72
    <div class="field box" id="i_common_images">
73
      <strong>$name_images</strong>
73
    <strong>$name_images</strong>
74
      !set wims_ref_class=wims_button_help float_right
74
    !set wims_ref_class=wims_button_help float_right
75
      !href cmd=help&special_parm=common_images $wims_name_help
75
    !href cmd=help&special_parm=common_images $wims_name_help
76
      !set wims_formselect_switch=multiple
76
    !set wims_formselect_switch=multiple
77
      !set wims_ref_class=wims_formradio
77
    !set wims_ref_class=wims_formradio
78
      !formradio i_common_images list yes,no prompt $wims_name_yes, $wims_name_no
78
    !formradio i_common_images list yes,no prompt $wims_name_yes, $wims_name_no
79
      <div class="formHelp">$name_help_images</div>
79
    <div class="formHelp">$name_help_images</div>
80
    </div>
80
    </div>
81
    !endif
81
  !endif
82
!endif
82
!endif
83
!!!else
83
!!!else
84
!!   <div class="field box">
84
!!   <div class="field box">
85
!!      <strong>$wims_name_Type</strong>
85
!!      <strong>$wims_name_Type</strong>
86
!!      !set wims_ref_class=wims_button_help float_right
86
!!      !set wims_ref_class=wims_button_help float_right
Line 88... Line 88...
88
!!      !set p_=!positionof item $(i_category[1]) in $list_category
88
!!      !set p_=!positionof item $(i_category[1]) in $list_category
89
!!      $(name_type[$p_])
89
!!      $(name_type[$p_])
90
!!    </div>
90
!!    </div>
91
!!!endif
91
!!!endif
92
 
92
 
93
    <div class="field box">
93
<div class="field box">
94
      <label for="i_domain">$wims_name_Domain</label>
94
  <label for="i_domain">$wims_name_Domain</label>
95
      !set wims_ref_class=wims_button_help float_right
95
  !set wims_ref_class=wims_button_help float_right
96
      !href cmd=help&special_parm=domain $wims_name_help
96
  !href cmd=help&special_parm=domain $wims_name_help
97
      <input type="text" name="i_domain" id="i_domain" class="multicomplete" value="$i_domain" />
97
  <input type="text" name="i_domain" id="i_domain" class="multicomplete" value="$i_domain" />
98
      <script type="text/javascript">
98
  <script type="text/javascript">
99
        /*<![CDATA[*/
99
    /*<![CDATA[*/
100
           // Tags in domain.json are only in english.
100
       // Tags in domain.json are only in english.
101
           var tags =
101
       var tags =
102
           !record 0 of wimshome/public_html/bases/sys/domain/domain.json
102
       !record 0 of wimshome/public_html/bases/sys/domain/domain.json
103
           ;
103
       ;
104
           set_multicomplete(tags);
104
       set_multicomplete(tags);
105
        /*]]>*/
105
    /*]]>*/
106
      </script>
106
  </script>
107
    </div>
107
</div>
108
    <div class="field box">
108
<div class="field box">
109
      <label for="i_keywords">$wims_name_Keywords</label>
109
  <label for="i_keywords">$wims_name_Keywords</label>
110
      !set wims_ref_class=wims_button_help float_right
110
!set wims_ref_class=wims_button_help float_right
111
      !href cmd=help&special_parm=keywords $wims_name_help
111
!href cmd=help&special_parm=keywords $wims_name_help
112
      <input type="text" name="i_keywords" id="i_keywords" value="$i_keywords" />
112
  <input type="text" name="i_keywords" id="i_keywords" value="$i_keywords" />
113
    </div>
113
    </div>
114
    <div class="field box">
114
    <div class="field box">
115
      <strong>$wims_name_Levels</strong>
115
      <strong>$wims_name_Levels</strong>
116
      !set wims_ref_class=wims_button_help float_right
116
!set wims_ref_class=wims_button_help float_right
117
      !href cmd=help&special_parm=level $wims_name_help
117
!href cmd=help&special_parm=level $wims_name_help
118
      !set wims_ref_class=wims_formradio
118
!set wims_ref_class=wims_formradio
119
      !formcheckbox i_level list $levellist
119
!formcheckbox i_level list $levellist
120
    </div>
120
    </div>
121
    <div class="field box fullwidth">
121
    <div class="field box fullwidth">
122
      <strong>$wims_name_Scoring</strong>
122
      <strong>$wims_name_Scoring</strong>
123
      !default i_scoring=no
123
!default i_scoring=no
124
      !set wims_ref_class=wims_formradio
124
!set wims_ref_class=wims_formradio
125
      !formradio i_scoring list yes,no prompt $wims_name_yes, $wims_name_no
125
!formradio i_scoring list yes,no prompt $wims_name_yes, $wims_name_no
126
      <div class="formHelp">$wims_name_Scoringhelp</div>
126
      <div class="formHelp">$wims_name_Scoringhelp</div>
127
    </div>
127
    </div>
128
  </fieldset>
128
  </fieldset>
129
  </div>
129
  </div>
130
 
130
 
131
  <div id="Author">
131
  <div id="Author">
132
  <fieldset class="property_fields blockcenter fullwidth">
132
  <fieldset class="property_fields blockcenter fullwidth">
133
    <legend>$wims_name_Author</legend>
133
    <legend>$wims_name_Author</legend>
134
    <div class="field box halfwidth">
134
    <div class="field box halfwidth">
135
      <label for="i_author">$wims_name_Author</label>
135
      <label for="i_author">$wims_name_Author</label>
136
      !set wims_ref_class=wims_button_help float_right
136
!set wims_ref_class=wims_button_help float_right
137
      !href cmd=help&special_parm=namewriting $wims_name_help
137
!href cmd=help&special_parm=namewriting $wims_name_help
138
      !default i_author=!words2items $auth_name
138
!default i_author=!words2items $auth_name
139
      !set i_author=!nonempty items $i_author
139
!set i_author=!nonempty items $i_author
140
      <input type="text" name="i_author" id="i_author" value="$i_author" />
140
      <input type="text" name="i_author" id="i_author" value="$i_author" />
141
      <div class="formHelp tt">$wims_name_firstname,$wims_name_lastname</div>
141
      <div class="formHelp tt">$wims_name_firstname,$wims_name_lastname</div>
142
    </div>
142
    </div>
143
    <div class="field box halfwidth">
143
    <div class="field box halfwidth">
144
      <label for="i_address">$wims_name_auth_email</label>
144
      <label for="i_address">$wims_name_auth_email</label>
145
      !default i_address=$auth_email
145
      !default i_address=$auth_email
146
      <input type="text" name="i_address" id="i_address" value="$i_address" />
146
      <input type="text" name="i_address" id="i_address" value="$i_address" />
147
      <div class="formHelp tt">&nbsp;</div>
147
      <div class="formHelp tt">&nbsp;</div>
148
    </div>
148
    </div>
149
    <div class="field box halfwidth">
149
    <div class="field box halfwidth">
150
      <label for="i_maintainer">$wims_name_Maintainer</label>
150
      <label for="i_maintainer">$wims_name_Maintainer</label>
151
      !set wims_ref_class=wims_button_help float_right
151
!set wims_ref_class=wims_button_help float_right
152
      !href cmd=help&special_parm=maintainer $wims_name_help
152
!href cmd=help&special_parm=maintainer $wims_name_help
153
      <input type="text" name="i_maintainer" id="i_maintainer" value="$i_maintainer" />
153
      <input type="text" name="i_maintainer" id="i_maintainer" value="$i_maintainer" />
154
      <div class="formHelp tt">$wims_name_firstname, $wims_name_lastname</div>
154
      <div class="formHelp tt">$wims_name_firstname, $wims_name_lastname</div>
155
    </div>
155
    </div>
156
    <div class="field box halfwidth">
156
    <div class="field box halfwidth">
157
      <label for="i_maintainer_address">$wims_name_maint_email</label>
157
      <label for="i_maintainer_address">$wims_name_maint_email</label>
158
      <input type="text" name="i_maintainer_address" id="i_maintainer_address" value="$i_maintainer_address" />
158
      <input type="text" name="i_maintainer_address" id="i_maintainer_address" value="$i_maintainer_address" />
159
      <div class="formHelp tt">&nbsp;</div>
159
      <div class="formHelp tt">&nbsp;</div>
160
    </div>
160
    </div>
161
    <div class="field box halfwidth">
161
    <div class="field box halfwidth">
162
      <label for="i_translator">$wims_name_Translator</label>
162
      <label for="i_translator">$wims_name_Translator</label>
163
      <input type="text" name="i_translator" id="i_translator" value="$i_translator" />
163
      <input type="text" name="i_translator" id="i_translator" value="$i_translator" />
164
      <div class="formHelp tt">$wims_name_firstname, $wims_name_lastname</div>
164
      <div class="formHelp tt">$wims_name_firstname, $wims_name_lastname</div>
165
    </div>
165
    </div>
Line 173... Line 173...
173
  <div id="Language">
173
  <div id="Language">
174
   <fieldset class="property_fields blockcenter fullwidth">
174
   <fieldset class="property_fields blockcenter fullwidth">
175
    <legend>$wims_name_Language</legend>
175
    <legend>$wims_name_Language</legend>
176
    <div class="field box halfwidth">
176
    <div class="field box halfwidth">
177
      <label for="i_language">$wims_name_Language</label>
177
      <label for="i_language">$wims_name_Language</label>
178
      !default i_language=$module_language
178
!default i_language=$module_language
179
      !formselect i_language list $langlist prompt $langname
179
!formselect i_language list $langlist prompt $langname
180
    </div>
180
    </div>
181
    <div class="field box halfwidth">
181
    <div class="field box halfwidth">
182
      <label for="i_translation_language">$name_translation_language</label>
182
      <label for="i_translation_language">$name_translation_language</label>
183
      <input name="i_translation_language" id="i_translation_language" value="$i_translation_language" />
183
      <input name="i_translation_language" id="i_translation_language" value="$i_translation_language" />
184
      <br />
184
      <br />
185
      !set translation_language=!words2items $i_translation_language
185
!set translation_language=!words2items $i_translation_language
186
      !set translation_language=!listintersect $translation_language and $langlist
186
!set translation_language=!listintersect $translation_language and $langlist
187
      !if $translation_language !=
187
!if $translation_language !=
188
        !read translationindex.phtml
188
  !read translationindex.phtml
189
      !endif
189
!endif
190
    </div>
190
    </div>
191
   </fieldset>
191
   </fieldset>
192
  </div>
192
  </div>
193
 
193
 
194
  <div id="version">
194
  <div id="version">
195
   <fieldset class="property_fields blockcenter fullwidth">
195
   <fieldset class="property_fields blockcenter fullwidth">
196
    <legend>$wims_name_Version</legend>
196
    <legend>$wims_name_Version</legend>
197
    <div class="field box halfwidth">
197
    <div class="field box halfwidth">
198
      <label for="i_version">$wims_name_Version</label>
198
      <label for="i_version">$wims_name_Version</label>
199
      !set wims_ref_class=wims_button_help float_right
199
!set wims_ref_class=wims_button_help float_right
200
      !href cmd=help&special_parm=version $wims_name_help
200
!href cmd=help&special_parm=version $wims_name_help
201
      !default i_version=1.00
201
!default i_version=1.00
202
      <input type="text" class="small_input" name="i_version" id="i_version" value="$i_version" />
202
      <input type="text" class="small_input" name="i_version" id="i_version" value="$i_version" />
203
      <div class="formHelp">$name_increment</div>
203
      <div class="formHelp">$name_increment</div>
204
    </div>
204
    </div>
205
    <div class="field box halfwidth">
205
    <div class="field box halfwidth">
206
      <label for="i_wims_version">$wims_name_Required_WIMS_version</label>
206
      <label for="i_wims_version">$wims_name_Required_WIMS_version</label>
207
      !set wims_ref_class=wims_button_help float_right
207
!set wims_ref_class=wims_button_help float_right
208
      !href cmd=help&special_parm=wimsversion $wims_name_help
208
!href cmd=help&special_parm=wimsversion $wims_name_help
209
      !default i_wims_version=$wims_version
209
!default i_wims_version=$wims_version
210
      <input type="text" class="small_input" name="i_wims_version" id="i_wims_version" value="$i_wims_version" />
210
      <input type="text" class="small_input" name="i_wims_version" id="i_wims_version" value="$i_wims_version" />
211
    </div>
211
    </div>
212
    <div class="field box fullwidth">
212
    <div class="field box fullwidth">
213
      <strong>$wims_name_require</strong><br/>
213
      <strong>$wims_name_require</strong><br/>
214
       !set wims_ref_class=wims_formradio
214
!set wims_ref_class=wims_formradio
215
       !formcheckbox i_require list $swlist prompt $swname
215
!formcheckbox i_require list $swlist prompt $swname
216
    </div>
216
    </div>
217
    <div class="field box">
217
    <div class="field box">
218
      <label for="i_data">$wims_name_datamodule</label>
218
      <label for="i_data">$wims_name_datamodule</label>
219
      !set wims_ref_class=wims_button_help float_right
219
!set wims_ref_class=wims_button_help float_right
220
      !href cmd=help&special_parm=datamodule $wims_name_help
220
!href cmd=help&special_parm=datamodule $wims_name_help
221
      <input type="text" name="i_data" id="i_data" value="$i_data" />
221
      <input type="text" name="i_data" id="i_data" value="$i_data" />
222
    </div>
222
    </div>
223
    <div class="field box">
223
    <div class="field box">
224
      <label for="i_copyright">$wims_name_Copyright</label>
224
      <label for="i_copyright">$wims_name_Copyright</label>
225
      !set wims_formselect_switch=
225
!set wims_formselect_switch=
226
      !formselect i_copyright list gnu prompt GNU General Public License
226
!formselect i_copyright list gnu prompt GNU General Public License
227
    </div>
227
    </div>
228
   </fieldset>
228
   </fieldset>
229
  </div>
229
  </div>
230
 </div><!-- id="tabs" -->
230
 </div><!-- id="tabs" -->
231
 
231
 
Line 237... Line 237...
237
 
237
 
238
!formend
238
!formend
239
 
239
 
240
!if $modreq=.new and $jquery_defined=yes
240
!if $modreq=.new and $jquery_defined=yes
241
  <script type="text/javascript">
241
  <script type="text/javascript">
242
/*<![CDATA[*/
242
  /*<![CDATA[*/
243
  $$( document ).ready(function() {
243
  $$( document ).ready(function() {
244
    $$("#i_common_images").toggle($$('#i_category_1').is(':checked'));
244
    $$("#i_common_images").toggle($$('#i_category_1').is(':checked'));
245
    $$('#i_category_1').click(function(){
245
    $$('#i_category_1').click(function(){
246
        if ($$(this).is(':checked')) {
246
        if ($$(this).is(':checked')) {
247
            $$("#i_common_images").slideDown();
247
            $$("#i_common_images").slideDown();
248
        } else {
248
        } else {
249
            $$("#i_common_images").slideUp();
249
            $$("#i_common_images").slideUp();
250
        }
250
        }
251
    });
251
    });
252
  });
252
  });
253
/*]]>*/
253
  /*]]>*/
254
  </script>
254
  </script>
255
!endif
255
!endif
256
 
256