Subversion Repositories wimsdev

Rev

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

Rev 14980 Rev 15026
Line 102... Line 102...
102
     <div class="wims_tooltiptext bottom_left" style="width:300px">$tmp</div>
102
     <div class="wims_tooltiptext bottom_left" style="width:300px">$tmp</div>
103
    </div>
103
    </div>
104
  !endif
104
  !endif
105
!endif
105
!endif
106
</h1>
106
</h1>
-
 
107
 
107
!if $module_checkdata!=yes
108
!if $module_checkdata!=yes
108
  !read oef/$modu_lang/nodata.phtml
109
  !read oef/$modu_lang/nodata.phtml
109
  !goto end
110
  !goto end
110
!endif
111
!endif
111
 
112
 
112
!if $title=$empty
113
!if $title=$empty
113
  $name_emptytitle
114
  $name_emptytitle
114
  <p class="wimscenter">
115
  <p class="wimscenter">
115
  !set wims_ref_class=wims_button
116
    !set wims_ref_class=wims_button
116
  !href module=$module $name_restart
117
    !href module=$module $name_restart
117
  $wims_name_or
118
    $wims_name_or
118
  !set wims_ref_class=wims_button
119
    !set wims_ref_class=wims_button
119
  !href $ $wims_name_giveup
120
    !href $ $wims_name_giveup
120
  </p>
121
  </p>
121
  <div class="wims_msg info small">$name_exo_giveup</div>
122
  <div class="wims_msg info small">$name_exo_giveup</div>
122
  !goto end
123
  !goto end
123
!endif
124
!endif
124
 
125
 
Line 135... Line 136...
135
  </td></tr></table>
136
  </td></tr></table>
136
  </form>
137
  </form>
137
!endif
138
!endif
138
 
139
 
139
:tester
140
:tester
-
 
141
!! this div will close at :end
-
 
142
<div class="oefform">
140
!read oef/present.phtml
143
  !read oef/present.phtml
141
 
144
 
142
!if $wims_theme_version= or $wims_theme_version<1
145
!if $wims_theme_version= or $wims_theme_version<1
143
  <hr style="width:50%" />
146
  <hr style="width:50%" />
144
!endif
147
!endif
145
 
148
 
Line 179... Line 182...
179
    !endif
182
    !endif
180
    </div> <!-- id oef_helphint-->
183
    </div> <!-- id oef_helphint-->
181
  !endif
184
  !endif
182
  !read oef/form.phtml
185
  !read oef/form.phtml
183
  <div id="oef_actions">
186
  <div id="oef_actions">
184
  !if $fieldtot = 0
187
    !if $fieldtot = 0
185
    <div class="oef_exo_renew">
188
      <div class="oef_exo_renew">
186
    !set wims_ref_class=wims_button
189
        !set wims_ref_class=wims_button
187
    !set wims_ref_id=oef_renew
190
        !set wims_ref_id=oef_renew
188
    !href $renewlink $name_exo_renew
191
        !href $renewlink $name_exo_renew
-
 
192
      </div>
189
    </div>
193
    </div>
190
  </div><!-- id oef_actions-->
-
 
191
    !goto endmain
194
    !goto endmain
192
  !endif
195
    !endif
193
  !!_check is there for examlog
196
    !!_check is there for examlog
194
  !if _exam notin $wims_session and _check notin $wims_session
197
    !if _exam notin $wims_session and _check notin $wims_session
195
    !if $jquery_defined=yes
198
      !if $jquery_defined=yes
196
      !! Displays a Modal dialog box explaining what the "giveup" button will do.
199
        !! Displays a Modal dialog box explaining what the "giveup" button will do.
197
      <script>
200
        <script>
198
      /*<![CDATA[*/
201
        /*<![CDATA[*/
199
        jQuery(function(jq){
202
          jQuery(function(jq){
200
          jq("#exo_giveup").dialog({
203
            jq("#exo_giveup").dialog({
201
            autoOpen: false,
204
              autoOpen: false,
202
            modal: true,
205
              modal: true,
203
            buttons: {
206
              buttons: {
204
              "$wims_name_yes": function() {window.location = '?session=$session&$renewlink';},
207
                "$wims_name_yes": function() {window.location = '?session=$session&$renewlink';},
205
              "$wims_name_no": function() {jq(this).dialog("close");}
208
                "$wims_name_no": function() {jq(this).dialog("close");}
206
            }
209
              }
207
          });
210
            });
208
          jq("#exo_giveup_opener").on("click", function() {
211
            jq("#exo_giveup_opener").on("click", function() {
209
            jq("#exo_giveup").dialog("open");
212
              jq("#exo_giveup").dialog("open");
-
 
213
            });
210
          });
214
          });
211
        });
-
 
212
      /*]]>*/
215
        /*]]>*/
213
      </script>
216
        </script>
214
      <button class="wims_button wims_secondary_button" type="button" data-toggle="exo_giveup" id="exo_giveup_opener">$wims_name_giveup</button>
217
        <button class="wims_button wims_secondary_button" type="button" data-toggle="exo_giveup" id="exo_giveup_opener">$wims_name_giveup</button>
215
    !endif jquery
218
      !endif jquery
216
    <div class="dropdown-pane wims_msg info small" id="exo_giveup" title="$wims_name_giveup" data-dropdown>
219
      <div class="dropdown-pane wims_msg info small" id="exo_giveup" title="$wims_name_giveup" data-dropdown>
217
      <div>
220
        <div>
218
      !if $qnum>1
221
          !if $qnum>1
219
        $name_serie_giveup
222
            $name_serie_giveup
220
      !else
223
          !else
221
        $name_exo_giveup
224
            $name_exo_giveup
-
 
225
          !endif
-
 
226
        </div>
-
 
227
        !if $jquery_defined!=yes
-
 
228
          <div class="oef_exo_renew">
-
 
229
            !set wims_ref_class=wims_button wims_secondary_button
-
 
230
            !set wims_ref_id=oef_renew
-
 
231
            !href $renewlink $wims_name_giveup
-
 
232
          </div>
-
 
233
        !else
-
 
234
          <p>$name_giveup_confirm</p>
222
      !endif qnum
235
        !endif
223
      </div>
236
      </div>
224
      !if $jquery_defined!=yes
-
 
225
        <div class="oef_exo_renew">
-
 
226
          !set wims_ref_class=wims_button wims_secondary_button
-
 
227
          !set wims_ref_id=oef_renew
-
 
228
          !href $renewlink $wims_name_giveup
-
 
229
        </div>
-
 
230
      !else
-
 
231
        <p>$name_giveup_confirm</p>
-
 
232
      !endif jquery
-
 
233
    </div> <!-- dropdown-->
-
 
234
  !endif _exam notin $wims_session
237
    !endif _exam notin $wims_session
235
 
238
 
236
  $
239
    $
237
  !if $qnum>1
240
    !if $qnum>1
238
    <div class="oef_serie_exo spacer">
241
      <div class="oef_serie_exo spacer">
239
    <span>$name_serie_exo</span>
242
        <span>$name_serie_exo</span>
240
    <ul class="wims_serie_bar inline">
243
        <ul class="wims_serie_bar inline">
241
    !for j=1 to $[$reply_cnt]
244
          !for j=1 to $[$reply_cnt]
242
      <li class="wims_exo_done" title="$name_exo $j ($wims_name_exo_tried)">$j</li>
245
            <li class="wims_exo_done" title="$name_exo $j ($wims_name_exo_tried)">$j</li>
243
    !next
246
          !next
244
      <li class="wims_exo_todo" title="$name_exo $j">$[$reply_cnt+1]</li>
247
          <li class="wims_exo_todo" title="$name_exo $j">$[$reply_cnt+1]</li>
245
    !for j=$[$reply_cnt+2] to $qnum
248
          !for j=$[$reply_cnt+2] to $qnum
246
      <li title="$name_exo $j ($wims_name_exo_untry)">$j</li>
249
            <li title="$name_exo $j ($wims_name_exo_untry)">$j</li>
247
    !next
250
          !next
248
    </ul>
251
        </ul>
249
   </div>
252
      </div>
250
  !endif
253
    !endif
251
  </div> <!-- id oef_actions-->
254
  </div><!-- #oef_actions -->
252
!else
255
!else status=waiting
253
  !if $error!=$empty
256
  !if $error!=$empty
254
    <div class="wims_msg alert">
257
    <div class="wims_msg alert">
255
    !read oef/msg.phtml
258
    !read oef/msg.phtml
256
    </div>
259
    </div>
257
  !endif
260
  !endif
Line 355... Line 358...
355
    $name_devel_warning
358
    $name_devel_warning
356
  !else
359
  !else
357
    !set wims_ref_class=wims_button wims_secondary_button
360
    !set wims_ref_class=wims_button wims_secondary_button
358
    !set wims_ref_id=oef_default
361
    !set wims_ref_id=oef_default
359
    !href cmd=config&oef_default=yes $name_devel_insert
362
    !href cmd=config&oef_default=yes $name_devel_insert
360
 $
363
    $
361
  !endif
364
  !endif
362
  </p>
365
  </p>
363
!endif
366
!endif
-
 
367
 
364
:endmain
368
:endmain
365
 <div id="oef_endhook">
369
<div id="oef_endhook">
366
!read ./endhook.phtml
370
  !read ./endhook.phtml
367
!if _exam notin $wims_session and _check notin $wims_session
371
  !if _exam notin $wims_session and _check notin $wims_session
368
  !read oef/endhook.phtml
372
    !read oef/endhook.phtml
369
!endif
373
  !endif
370
</div> <!-- id oef_endhook-->
374
</div>
-
 
375
 
371
:end
376
:end
372
</div> <!--oefform-->
377
</div> <!-- .oefform -->
373
<!--fin oef main.phtml-->
-
 
-
 
378
 
374
!if $oef_anstype_css!=$empty
379
!if $oef_anstype_css!=$empty
375
  <style>$oef_anstype_css</style>
380
  <style>$oef_anstype_css</style>
376
!endif
381
!endif
-
 
382
<!--fin oef Main.phtml-->
377
!tail
383
!tail
378
 
384
 
379
!if debug iswordof $m_oefenv
385
!if debug iswordof $m_oefenv
380
  !reset module_score
386
  !reset module_score
381
!endif
387
!endif