Subversion Repositories wimsdev

Rev

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

  1. <div id="freework_management">
  2. !if $jquery_defined=yes
  3.   <script>
  4.     /*<![CDATA[*/
  5.     jQuery(function($$) {
  6.       // Get in sessionStorage if a tab was previously selected, and activate it.
  7.       var selectedTabId = sessionStorage.getItem("freework_management_selectedTab");
  8.       selectedTabId = selectedTabId === null ? 0 : selectedTabId; //default tab = 0
  9.       $$("#freework_management").tabs({
  10.         active: selectedTabId,
  11.         activate : function( event, ui ) {
  12.             selectedTabId = $$("#freework_management").tabs("option", "active");
  13.             sessionStorage.setItem("freework_management_selectedTab", selectedTabId);
  14.         }
  15.       });
  16.     });
  17.     /*]]>*/
  18.   </script>
  19.   <ul>
  20.     <li><a href="#freeworkinfo">$name_info</a></li>
  21.     !ifval $activetest!=-1
  22.       <li><a href="#list">$name_content</a></li>
  23.       !if $activetest>=1 and $type=2
  24.         <li><a href="#listwork">$name_listwork</a></li>
  25.       !endif
  26.     !endif
  27.   </ul>
  28.   <div id="freeworkinfo">
  29.      !read proc/freeworkinfo.phtml
  30.   </div>
  31.   !if $activetest!=-1
  32.     <div id="list">
  33.       !read proc/freeworkdata1.phtml
  34.     </div>
  35.   !endif
  36.   !if $activetest>=1 and $type=2
  37.     <div id="listwork">
  38.       !read proc/listwork2.phtml
  39.     </div>
  40.   !endif
  41. !else
  42.   !if $wims_infoshow1=no
  43.    <fieldset class="property_fields blockcenter">
  44.      <legend> $name_info [
  45.      !href cmd=resume&infoshow1=yes $wims_name_showall
  46.      ]
  47.      </legend>
  48.    </fieldset>
  49.   !else
  50.     !read proc/freeworkinfo.phtml
  51.   !endif
  52.   !if $activetest!=-1
  53.       !if $wims_infoshow2=no
  54.         <fieldset class="property_fields blockcenter">
  55.         <legend> $name_content [
  56.           !href cmd=resume&infoshow2=yes $wims_name_showall
  57.          ]
  58.         </legend>
  59.         </fieldset>
  60.       !else
  61.         !read proc/freeworkdata1.phtml
  62.       !endif
  63.   !endif
  64.   !if $activetest>=1 and $type=2
  65.     !read proc/listwork2.phtml
  66.   !endif
  67. !endif
  68. </div>
  69.  
  70. !tail
  71.  
  72.  
  73.