Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
2368 bpr 1
!read adm/class/classlang names.phtml
1406 bpr 2
 
9619 guerimand 3
wims_prefix=none
4
 
8255 bpr 5
!if $wims_user=supervisor
1406 bpr 6
!! !bound job within prop,show default show
7
!else
9619 guerimand 8
 error=not_supervisor
1406 bpr 9
 !exit
10
!endif
11
 
12
title_limit=50
13
desc_limit=255
8255 bpr 14
max_sheets=!defof MAX_SHEETS in wimshome/public_html/bases/sys/define.conf
1406 bpr 15
doctot=!recordcnt wimshome/log/classes/$wims_class/doc/.docindex
16
class=$wims_class
9619 guerimand 17
 
1406 bpr 18
!if $job=prop and $cmd iswordof new resume
19
  sh=!record $doc of wimshome/log/classes/$wims_class/doc/.docindex
7270 bpr 20
  !distribute lines $sh into dir,t_,title,desc,status,wksheet
1406 bpr 21
!endif
22
!if $cmd=reply and $job=proc
23
  !read prop.proc
24
 !exit
25
!endif
26
!if ($cmd=new or $cmd=resume) and $job!=prop
27
 title=!module title $dir
28
 desc=!module description $dir
29
 !exit
30
!endif
31
 
32
!if $cmd=reply
33
 !if ../adm/ isin ../$dir or $dir=home or \
34
   (../devel/ isin ../$dir and $wims_devel_modules notwordof open)
35
  error=insert_fail
36
  !exit
37
 !endif
38
 
39
 idesc=!singlespace $desc
40
 idesc=!char 1 to $desc_limit of $idesc
41
 ititle=!singlespace $title
42
 ititle=!char 1 to $title_limit of $ititle
43
 !if $cmd=reply and $job!=prop
44
  !for i=1 to $doctot
45
   e=!record $i of wimshome/log/classes/$wims_class/doc/.docindex
46
   !distribute lines $e into wdi,win
47
   !if $dir=$wdi and $iniparm=$win
48
    test=$i
49
    error=already_exist
50
   !exit
51
   !endif
52
  !next i
53
!endif
54
 
55
!if $cmd=reply and $job=prop
56
 !read prop.proc
57
 !exit
58
!endif
59
 
60
!appendfile wimshome/log/classes/$wims_class/doc/.docindex :$dir\
61
$iniparm\
62
$ititle\
63
$idesc\
7270 bpr 64
$status\
65
$wksheet
1406 bpr 66
 
67
wims_module_log=class $class: add $dir
68
 
69
!restart
70