Subversion Repositories wimsdev

Rev

Rev 14070 | Rev 14962 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !! About window for an OEF module / exercise
  2.  
  3. !set email=!trim $email
  4. !set author=!trim $author
  5.  
  6. !set embedabble_height= 600
  7. !set embedabble_width= 100%
  8.  
  9. !if $thisexo != $empty
  10. <p>
  11.   $name_about1
  12.   <a href="$wims_ref_name?module=help/teacher/faq&amp;job=oef" target="_blank">
  13.   <abbr lang="en" title="Online Exercise Format">OEF</abbr></a>.
  14. </p>
  15.  
  16. !read ./tabletheme
  17. !reset table_center
  18. $table_header
  19.   <caption>$wims_name_exo_infos</caption>
  20.   <tbody>
  21.   !if $author!=$empty
  22.     !! define $script_cnt, script_out in a standarized form depending on language (scripts/name.phtml)
  23.     !read namewriting.phtml $author
  24.     $table_tr
  25.       <th>$wims_name_Author</th>
  26.       <td>
  27.         !set email=!replace internal ; by , in $email
  28.         !for au=1 to $script_cnt
  29.           !if $(email[$au])!=$empty
  30.             !mailurl $(email[$au]) $(script_out[$au])
  31.           !else
  32.             $(script_out[$au])
  33.           !endif
  34.           $
  35.         !next
  36.       </td>
  37.     </tr>
  38.   !endif
  39.   $table_tr
  40.     <th>$wims_name_Address</th>
  41.     <td>
  42.       !if $exo!=$empty
  43.         $module&$module_init_parm
  44.       !else
  45.         $module
  46.       !endif
  47.     </td>
  48.   </tr>
  49.   !if $solution$hint!=$empty
  50.     $table_tr
  51.       <th>$name_Solution / $name_Hint</th>
  52.       <td>
  53.         !if $solution!=$empty and $hint!=$empty
  54.           $name_hint1
  55.         !endif
  56.         !if $solution!=$empty and $hint=$empty
  57.           $name_hint2
  58.         !endif
  59.         !if $solution=$empty and $hint!=$empty
  60.           $name_hint3
  61.         !endif
  62.         !if $solution$hint=$empty
  63.           $name_hint4
  64.         !endif
  65.       </td>
  66.     </tr>
  67.   !endif
  68.   !if $keywords!=$empty
  69.     $table_tr<th>$wims_name_Keywords</th>
  70.     <td>$keywords</td></tr>
  71.   !endif
  72.   $table_tr
  73.     !if $module_init_parm == $empty
  74.       !set permalien=$wims_ref_name?module=$module
  75.       !set permalien1=$wims_ref_name?module=adm/raw&amp;emod=$module
  76.     !else
  77.       !set exolink=$wims_ref_name?module=$module&amp;cmd=new&amp;exo=$thisexo
  78.       !set configlink=$wims_ref_name?module=$module&amp;cmd=new&amp;$module_init_parm
  79.       !set module_init_parm1=!replace internal &amp;+ by ; in $module_init_parm
  80.       !set module_init_parm1=!replace internal &amp; by ; in $module_init_parm1
  81.       !set module_init_parm1=!replace internal & by ; in $module_init_parm1
  82.       !set module_init_parm1=cmd=new;$module_init_parm1
  83.       !set configlink1=$wims_ref_name?module=adm/raw&job=lightpopup&emod=$module&parm=$module_init_parm1&option=noabout
  84.       !read ./oef/urlencode.proc
  85.     !endif
  86.     <th>$wims_name_permalink</th>
  87.     <td>
  88.       $wims_name_permalink_desc
  89.       <ul>
  90.         !set exolink=$wims_ref_name?module=$module&amp;cmd=new&amp;exo=$thisexo
  91.         <li>$name_linkfor $wims_name_this_exercice :
  92.           <a href="$exolink">$exolink</a>
  93.         </li>
  94.         !if $module_init_parm!=$empty
  95.           !set configlink=$wims_ref_name?module=$module&cmd=new&$module_init_parm
  96.           <li>$name_linkfor $wims_name_this_config:
  97.             <a href="$configlink">$configlink</a>
  98.           </li>
  99.           !set module_init_parm1=!replace internal &amp;+ by ; in $module_init_parm
  100.           !set module_init_parm1=!replace internal &amp; by ; in $module_init_parm1
  101.           !set module_init_parm1=!replace internal &+ by ; in $module_init_parm1
  102.           !set module_init_parm1=!replace internal & by ; in $module_init_parm1
  103.           !set module_init_parm1=cmd=new;$module_init_parm1
  104.           !set configlink1=$wims_ref_name?module=adm/raw&job=lightpopup&emod=$module&parm=$module_init_parm1&option=noabout
  105.           <li>"light" link (without interface) :
  106.             <a href="$configlink1">$configlink1</a>
  107.           </li>
  108.           <!--li>Beta : <a href="$widget_link">Download a widget for Apple iBooks Author</a></li-->
  109.         !endif
  110.       </ul>
  111.     </td>
  112.   </tr>
  113.   $table_tr
  114.     <th>$wims_name_embeddable</th>
  115.     <td class="field">
  116.       <p>$wims_name_copy_and_paste $wims_name_the_code $wims_name_on_your_site</p>
  117.       <ul>
  118.         !set exolink=$wims_ref_name?module=$module&amp;cmd=new&amp;exo=$thisexo
  119.         <li>
  120.           <label for="embed_one_exo">$wims_name_display <strong>$wims_name_this_exercice</strong> $wims_name_on_your_site:</label>
  121.           <textarea id="embed_one_exo" class="copy_text" rows="3" cols="50" readonly="readonly" >&lt;iframe src="$exolink&amp;embededwindow=true" width="$embedabble_width" height="$embedabble_height"&gt;&lt;/iframe&gt;</textarea>
  122.         </li><li>
  123.           !if $module_init_parm!=$empty
  124.             !set exolink=$wims_ref_name?module=$module&amp;cmd=new&amp;$module_init_parm
  125.           !else
  126.             !set exolink=$wims_ref_name?module=$module&amp;cmd=new
  127.           !endif
  128.           <label for="embed_setup">$wims_name_display <strong>$wims_name_this_config</strong> $wims_name_on_your_site:</label>
  129.           <textarea id="embed_setup" class="copy_text" rows="3" cols="50" readonly="readonly">&lt;iframe src="$configlink&amp;embededwindow=true" width="$embedabble_width" height="$embedabble_height"&gt;&lt;/iframe&gt;</textarea>
  130.         </li><li>
  131.           <label for="embed_setup_light">$wims_name_display <strong>$wims_name_this_config</strong> $wims_name_on_your_site ("light" version):</label>
  132.           <textarea id="embed_setup_light" class="copy_text" rows="3" cols="50" readonly="readonly">&lt;iframe src="$configlink1" width="$embedabble_width" height="$embedabble_height"&gt;&lt;/iframe&gt;</textarea>
  133.         </li>
  134.       </ul>
  135.     </td>
  136.   </tr>
  137.   </tbody>
  138. $table_end
  139. <p class="name_collection">$name_collection</p>
  140. <hr/>
  141. !endif
  142.  
  143. <div id="module_about">$module_about</div>
  144. <p>$name_copyr</p>
  145.  
  146. !changeto NEWS.phtml
  147.