Subversion Repositories wimsdev

Rev

Rev 9063 | Rev 9371 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8618 bpr 1
 
9063 obado 2
!read adm/title.phtml 2\
2728 bpr 3
$title
8631 bpr 4
!set taxo=keywords
8942 obado 5
!set cat=A
8997 bpr 6
 
9127 bpr 7
<div class="job_desc spacer">$job_desc</div>
9063 obado 8
 
8997 bpr 9
!! what follows is not useful, I keep it for a while.
10
!goto newmethod
23 reyssat 11
!if $parm=$empty
2392 bpr 12
 $name_domain
8645 obado 13
<div class="wims_widget_box">
6458 bpr 14
<ul class="box_content inline">
15
!for dom in $Tot_dom
16
  !set dom_n=!lookup $dom in $dir_lang
17
  !default dom_n=$dom
18
  <li>
19
  !set wims_ref_class=wims_button
20
  !href module=$module&cmd=new&job=subject&parm=$dom $dom_n
21
  </li>
22
!next
23
</ul>
24
</div>
23 reyssat 25
!else
2392 bpr 26
 $name_available
2622 bpr 27
!set wims_menu_items=!append line other,1,module=$module&cmd=new&job=subject\
28
  to $wims_menu_items
6910 bpr 29
!set search_and=yes
6458 bpr 30
<ul>
31
 !for t in $list
32
  <li id="$t">
6910 bpr 33
  !read script.phtml $t,$name
6458 bpr 34
     !if $cnt > 1
35
       <ul>
36
        !for ttt in $tt
37
         <li id="$ttt">
6910 bpr 38
          !read script.phtml $ttt,$name
6458 bpr 39
           !if $cnt > 1
40
           <ul>
41
            !for tttt in $tt
42
             <li id="$tttt">
6910 bpr 43
             !read script.phtml $tttt,$name
6458 bpr 44
             </li>
45
            !next
46
           </ul>
47
          !endif
48
         </li>
49
        !next
50
        </ul>
51
     !endif
52
  </li>
53
  !next t
54
 </ul>
8971 bpr 55
!endif
56
 
8997 bpr 57
:newmethod
9005 bpr 58
!set search_and=yes
8971 bpr 59
<div id="taxonomy_list">
60
  <ul class="tabs">
61
    !for dom in $Tot_dom
62
      !set dom_title=!defof title in taxo/$dom.phtml.$lang
63
      <li><a href="#$dom">$dom_title</a></li>
64
    !next
65
  </ul>
66
 
8987 obado 67
  !set i = 0
68
  !set active_index = 0
8971 bpr 69
  !for dom in $Tot_dom
70
    <div id="$dom">
71
       !read taxo/$dom.phtml.$lang
8996 bpr 72
       !if $dom isitemof $parm
8987 obado 73
          !set active_index = $i
74
       !endif
75
       !increase i
8971 bpr 76
     </div>
77
  !next
78
</div>
79
 
9063 obado 80
<!-- JS for dynamic tree display -->
8971 bpr 81
<script type="text/javascript" src="scripts/js/tree_JS/tree.js"></script>
9063 obado 82
 
83
<!-- JS for Tabs display -->
8971 bpr 84
<script type="text/javascript">
85
    /*<![CDATA[*/
86
    jQuery(function($$) {
8987 obado 87
        $$( "#taxonomy_list" ).tabs({
88
          active: $active_index
89
        });
8971 bpr 90
      });
91
    /*]]>*/
92
</script>
93
 
8586 bpr 94
!exit
5917 bpr 95
 $table_header
23 reyssat 96
 !for t in $list
2622 bpr 97
  $table_tr
6384 bpr 98
  !!keep key - use in search_addr.
99
  !reset key
100
    !set key=!lookup $t in $dir
6385 bpr 101
    !default key=$t
6384 bpr 102
    !set key_l=!lookup $t in $dir_lang
103
    !set name_$t=!lookup $t in $dir_lang
6385 bpr 104
    !default name_$t=$t
6384 bpr 105
    !set key=!replace internal _ by $ $  in $t
106
    !set key=$key,$key_l
6435 bpr 107
    !set more=!lookup $t in $dir
108
    <th>
109
    !if $more!=$empty
110
      !href module=$module&cmd=new&job=$job&parm=$t $(name_$t)
111
    !else
112
      $(name_$t)
113
    !endif
114
    </th>
2622 bpr 115
  !for i in A,T,P,X,S
23 reyssat 116
   !set cat=$i
6385 bpr 117
   <td >
2622 bpr 118
   !if $i!=A
6146 bpr 119
   <span class="small">
23 reyssat 120
   !href $search_addr $(name_$i)
6146 bpr 121
   </span>
2622 bpr 122
   !else
123
   !href $search_addr $(name_$i)
124
   !endif
125
  </td>
23 reyssat 126
  !next i
6384 bpr 127
 </tr>
23 reyssat 128
  !next t
5917 bpr 129
 </table>
23 reyssat 130
!endif
6435 bpr 131