Subversion Repositories wimsdev

Rev

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

  1. !set wims_html_header=$wims_html_header\
  2. <style type="text/css">\
  3. .frame {background-color :green;\
  4.         border-style: solid;\
  5.         border-width: 1pt;\
  6.         margin: 3% 3% 3% 3%;\
  7.         padding : 3%;\
  8.         font-size:95%;\
  9.         text-align:justify;}\
  10.   }\
  11.   .hr {}\
  12. .hh{color:$wims_ref_menucolor; \
  13. background-color: $wims_ref_bgcolor;\
  14. text-align:center;}\
  15. \
  16. prel {\
  17.     background-color :#FFFFCC;\
  18.    font-weight: bold ;\
  19.         font-size: 12px;\
  20.         border-style: solid;\
  21.         border-width: 2pt;\
  22.         margin: 3% 3% 3% 3%;\
  23.         padding : 2%;\
  24. }\
  25. </style>
  26. !set wims_menu_items=!append line modtool,1,module=adm/modtool\
  27. to $wims_menu_items
  28. !if robot isin $session
  29.   !exit
  30. !endif
  31. !header
  32.  
  33. !if $wims_developer=$empty
  34.  
  35.  
  36. <div class="wims_content">
  37.  
  38. <b>$module_title</b>
  39. !read lang/names.phtml.$modu_lang 1
  40. !href cmd=help&special_parm=doc $name_documentation
  41.  $wims_name_or
  42.  !getfile latex2wimsdoc.pdf $name_pdf
  43. .
  44.  
  45. !read lang/names.phtml.$modu_lang 2
  46.  
  47.  !form reply
  48.  $name_modtool
  49.  
  50.  
  51. <fieldset class="property_fields halfwidth blockcenter">
  52.     <legend>$wims_name_connexion</legend>
  53.     <div class="field box">
  54.       <label for="login">$wims_name_Login</label>
  55.       <input type="text" name="login" id="login"
  56.         required="required" placeholder="$wims_name_Login" />
  57.     </div>
  58.     <div class="field box">
  59.       <label for="passwd">$wims_name_Password</label>
  60.       <input type="password" name="passwd" id="passwd"
  61.         required="required" placeholder="$wims_name_Password" />
  62.     </div>
  63.     <div class="wimscenter">
  64.       <input type="submit" value="$wims_name_tosave" />
  65.     </div>
  66.  </fieldset>
  67.   !formend
  68. </div> <!--end content 1-->
  69.   !tail
  70.   !exit
  71.  
  72. !endif
  73.  
  74.  
  75. !if $error!=$empty
  76.   <div class="wims_alertmsg">
  77.  !read lang/msg.phtml.$modu_lang
  78.   </div>
  79. !endif
  80.  
  81.  
  82. <div class="wims_content">
  83.  
  84. <b>$module_title</b>
  85. !read lang/names.phtml.$modu_lang 3
  86.  
  87. !href cmd=help&special_parm=doc $name_documentation
  88. .
  89.  
  90. !set wims_form_method=file
  91. !default !set execut=0
  92. !form reply
  93. !if $execut!=3
  94. $name_select_example
  95.   !getfile fichier_test.tex $name_latex
  96. ,
  97.   !getfile style.css $name_css
  98. ,
  99.   !getfile wims.sty $name_latex2wims
  100. ,
  101.   !getfile latex2wimsdoc.pdf $name_pdf
  102. .
  103.  !if $exemple!=1
  104.     $name_example
  105.       !formradio exemple list 1,2 prompt $wims_name_yes,$wims_name_no
  106.   !endif
  107. !endif
  108.  
  109.  
  110. !if $execut=0
  111.   <h2 class="hh"> $name_step 1</h2>
  112.   $name_transfer_wims
  113.   <input type="file" name="wims_deposit" />
  114.  
  115. !if $test!=$empty and ($execut=0 or $cnt_fichier=1)
  116.   $name_filet:
  117.   <pre class="prel">
  118.   !for i = 1 to $cnt_fichier
  119.     $(fichiers[$i]) ($(date[$i]))
  120.    !next
  121.    </pre>
  122. !endif
  123.  
  124.   <ul>
  125.     <li>
  126.  
  127.    !formradio execut list 0 prompt $name_newtransfer
  128.    </li><li>
  129.    !formradio execut list 1 prompt $name_newstep
  130.    </li>
  131.    </ul>
  132. !endif
  133.  
  134.  
  135.  
  136.  
  137. !if $execut=1
  138.  
  139. <h2 class="hh"> $name_step 1</h2>
  140. !if $cnt_fichier >0
  141.    $name_youcan
  142.     !formcheckbox execut list 0 prompt $name_newtransfer
  143.  !else
  144.    $name_youmust
  145.    !default !set execut=0
  146.    !formradio execut list 0 prompt $name_atleast
  147.  
  148.    <p class="wimscenter">
  149. <input type="submit" value="$wims_name_tosave" />
  150. </p>
  151.  
  152. !formend
  153. </div> <!--end content 2-->
  154.    !exit
  155.  !endif
  156. <h2 class="hh"> $name_step 2</h2>
  157.   $name_selectmain
  158.   <ul>
  159.     !for i = 1 to $cnt_fichier
  160.       !set l=!item $i of $fichiers
  161.       <li>
  162.         !formradio principal list $i prompt $(fichiers[$i]) ($name_transferdate $(date[$i]))
  163.       </li>
  164.    !next
  165.   </ul>
  166.  !! $name_sheet
  167.  !! !formradio wksheet list 1,2,3,4,5,6,7,8,9
  168.  <h2 class="hh"> $name_step 3</h2>
  169.  
  170. !if $list_module!=$empty
  171.    $name_namedocument:
  172.            <p class="wimscenter">
  173.            !formselect document list $choix,$list_module
  174.          </p>
  175.        $name_newmodule
  176. !else
  177. <i>$name_createfirst</i>
  178. !endif
  179.      !href target=wims_test module=adm/modtool&cmd=reply&jobreq=create Modtool
  180.  
  181. !if $document notsametext $choix
  182.  <p><span class="wims_warning">$wims_name_warning</span> : $name_warning</p>
  183. !else
  184. <p><span class="wims_warning">$wims_name_warning</span> : $name_select_warning.</p>
  185. !endif
  186.   <h2 class="hh"> $name_step 4</h2>
  187.      !formradio execut list 2 prompt $name_exec
  188.  
  189. !endif
  190.  
  191. !if $execut=3
  192.   !if $confirm=
  193.    !read lang/names.phtml.$modu_lang 4
  194.    !formradio confirm list 0,1 prompt $wims_name_yes,$wims_name_no
  195.     <ul>
  196.   !else
  197.     !if $confirm=0
  198.  !reset confirm
  199.  <ul><li>
  200.      !href target=wims_internal module=devel/$wims_developer/$document $name_test
  201.  (<i> $name_gotomodtool
  202. !href target=wims_internal module=adm/modtool&jobreq=flist&modreq=$document $wims_name_modtool
  203. </i>)
  204.   </li>
  205.    !endif
  206.   !endif
  207.    <li>
  208.     !formradio execut list 1 prompt $name_comeback
  209.   </li>
  210.   <li>
  211.     !formradio execut list 0 prompt $name_transfer
  212.   </li>
  213.   </ul>
  214. !endif
  215. <p class="wimscenter wimsform">
  216. <input type="submit" value="$wims_name_tosave" />
  217. </p>
  218.  
  219.  
  220. !formend
  221.  
  222. </div><!--end content 3-->
  223.  
  224. !if $wims_exec_error!=$empty
  225.  <div class="wims_warning"><pre>$wims_exec_error</pre></div>
  226. !endif
  227.  
  228.  
  229. !tail
  230.  
  231. !reset wims_exec_error wims_deposit
  232.  
  233.  
  234.