Subversion Repositories wimsdev

Rev

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
12477 bpr 26
  $name_available
27
  !set wims_menu_items=!append line other,1,module=$module&cmd=new&job=subject\
2622 bpr 28
  to $wims_menu_items
12477 bpr 29
  !set search_and=yes
30
  <ul>
31
  !for t in $list
32
    <li id="$t">
33
    !read script.phtml $t,$name
34
    !if $cnt > 1
35
      <ul>
36
      !for ttt in $tt
37
        <li id="$ttt">
38
        !read script.phtml $ttt,$name
39
        !if $cnt > 1
40
          <ul>
41
          !for tttt in $tt
42
            <li id="$tttt">
43
            !read script.phtml $tttt,$name
44
            </li>
45
          !next
46
          </ul>
47
        !endif
48
        </li>
49
      !next
50
      </ul>
51
    !endif
52
    </li>
6458 bpr 53
  !next t
12477 bpr 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">
12477 bpr 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
8971 bpr 65
  </ul>
66
 
12477 bpr 67
!distribute items 0,0 into i, active_index
68
!for dom in $Tot_dom
69
  <div id="$dom">
70
  !read taxo/$dom.phtml.$lang
71
  !if $dom isitemof $parm
72
    !set active_index = $i
73
  !endif
74
  !increase i
75
  </div>
76
!next
8971 bpr 77
</div>
78
 
9063 obado 79
<!-- JS for dynamic tree display -->
8971 bpr 80
<script type="text/javascript" src="scripts/js/tree_JS/tree.js"></script>
9063 obado 81
 
82
<!-- JS for Tabs display -->
8971 bpr 83
<script type="text/javascript">
84
    /*<![CDATA[*/
85
    jQuery(function($$) {
8987 obado 86
        $$( "#taxonomy_list" ).tabs({
87
          active: $active_index
88
        });
8971 bpr 89
      });
90
    /*]]>*/
91
</script>
92
 
8586 bpr 93
!exit
5917 bpr 94
 $table_header
23 reyssat 95
 !for t in $list
2622 bpr 96
  $table_tr
6384 bpr 97
  !!keep key - use in search_addr.
98
  !reset key
99
    !set key=!lookup $t in $dir
6385 bpr 100
    !default key=$t
6384 bpr 101
    !set key_l=!lookup $t in $dir_lang
102
    !set name_$t=!lookup $t in $dir_lang
6385 bpr 103
    !default name_$t=$t
6384 bpr 104
    !set key=!replace internal _ by $ $  in $t
105
    !set key=$key,$key_l
6435 bpr 106
    !set more=!lookup $t in $dir
107
    <th>
108
    !if $more!=$empty
109
      !href module=$module&cmd=new&job=$job&parm=$t $(name_$t)
110
    !else
111
      $(name_$t)
112
    !endif
113
    </th>
2622 bpr 114
  !for i in A,T,P,X,S
23 reyssat 115
   !set cat=$i
6385 bpr 116
   <td >
2622 bpr 117
   !if $i!=A
6146 bpr 118
   <span class="small">
23 reyssat 119
   !href $search_addr $(name_$i)
6146 bpr 120
   </span>
2622 bpr 121
   !else
122
   !href $search_addr $(name_$i)
123
   !endif
124
  </td>
23 reyssat 125
  !next i
6384 bpr 126
 </tr>
23 reyssat 127
  !next t
5917 bpr 128
 </table>
23 reyssat 129
!endif
6435 bpr 130