Subversion Repositories wimsdev

Rev

Rev 6975 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6975 Rev 7850
Line 1... Line 1...
1
//Ensemble de Fonctions génériques :
1
//Ensemble de Fonctions génériques :
2
 
2
 
3
// Actuliste : 
3
// Actuliste :
4
function actuliste(liste, indice) {
4
function actuliste(liste, indice) {
5
        var mytool_array = liste.split("-");
5
        var mytool_array = liste.split("-");
6
        var n2 = mytool_array.length;
6
        var n2 = mytool_array.length;
7
        var liste2 = "";
7
        var liste2 = "";
8
        for (var i = 0; i < n2; i++) {
8
        for (var i = 0; i < n2; i++) {
Line 11... Line 11...
11
        document.forms['formu'].sel.innerHTML = liste2;
11
        document.forms['formu'].sel.innerHTML = liste2;
12
        //var chaine=document.form.wims_deposit.value;
12
        //var chaine=document.form.wims_deposit.value;
13
        //var n=chaine.length;
13
        //var n=chaine.length;
14
}
14
}
15
 
15
 
16
// parcoursTab : 
16
// parcoursTab :
17
function parcoursTab(instructionwims, indice) {
17
function parcoursTab(instructionwims, indice) {
18
        if (instructionwims != "\\") {
18
        if (instructionwims != "\\") {
19
                //var mytool_array=instructionwims.split("\\");
19
                //var mytool_array=instructionwims.split("\\");
20
                //var instructionwims=mytool_array[1];
20
                //var instructionwims=mytool_array[1];
21
                //alert(instructionwims);
21
                //alert(instructionwims);
Line 79... Line 79...
79
 
79
 
80
        //alert(instruction);
80
        //alert(instruction);
81
        if (langue == "undefined") langue = version;
81
        if (langue == "undefined") langue = version;
82
        if (langue == "eng") version = "eng";
82
        if (langue == "eng") version = "eng";
83
        if (langue == "fr") version = "fr";
83
        if (langue == "fr") version = "fr";
84
       
84
 
85
        var text="";
85
        var text="";
86
       
86
 
87
    switch(instructionsss)
87
    switch(instructionsss)
88
        {
88
        {
89
        case oefcommand :
89
        case oefcommand :
90
                text = oefcommandfun(instruction);
90
                text = oefcommandfun(instruction);
91
                break;
91
                break;
Line 101... Line 101...
101
        case oefparm0 :
101
        case oefparm0 :
102
                text = oefparm0fun(instruction);
102
                text = oefparm0fun(instruction);
103
                break;
103
                break;
104
        case oefparm1 :
104
        case oefparm1 :
105
                text = oefparm1fun(instruction);
105
                text = oefparm1fun(instruction);
106
                break;
106
                break;
107
        case oefparm2 :
107
        case oefparm2 :
108
                text = oefparm2fun(instruction);
108
                text = oefparm2fun(instruction);
109
                break;
109
                break;
110
        case oefparm3 :
110
        case oefparm3 :
111
                text = oefparm3fun(instruction);
111
                text = oefparm3fun(instruction);
112
                break;
112
                break;
113
        case oefparm4 :
113
        case oefparm4 :
114
                text = oefparm4fun(instruction);
114
                text = oefparm4fun(instruction);
115
                break;
115
                break;
116
        case oefparm5 :
116
        case oefparm5 :
117
                text = oefparm5fun(instruction);
117
                text = oefparm5fun(instruction);
118
                break;
118
                break;
119
        case slib :
119
        case slib :
120
                text = slibfun(instruction);
120
                text = slibfun(instruction);
121
                break;
121
                break;
122
    case anstype :
122
    case anstype :
123
                text = anstypefun(instruction);
123
                text = anstypefun(instruction);
124
                break;
124
                break;
125
       
125
 
126
        }
126
        }
127
        div_aide.innerHTML = "<h3 style='display:inline-block;margin-top:0;'>" + instruction + "</h3><div class='description'>" + text + "</div>";
127
        div_aide.innerHTML = "<h3 style='display:inline-block;margin-top:0;'>" + instruction + "</h3><div class='description'>" + text + "</div>";
128
       
128
 
129
}
129
}
130
 
130
 
131
function funcname() {
131
function funcname() {
132
switch(instructionsss)
132
switch(instructionsss)
133
        {
133
        {
134
        case oefcommand :
134
        case oefcommand :
135
                titre_bd= oefcommandname;
135
                titre_bd= oefcommandname;
136
                break;
136
                break;
137
        case latex :
137
        case latex :
138
                titre_bd= latexname;
138
                titre_bd= latexname;
139
                break;
139
                break;
140
        case iff :
140
        case iff :
141
                titre_bd= iffname;
141
                titre_bd= iffname;
142
                break;
142
                break;
143
        case special :
143
        case special :
144
                titre_bd= specialname;
144
                titre_bd= specialname;
Line 165... Line 165...
165
                titre_bd= slibname;
165
                titre_bd= slibname;
166
                break;
166
                break;
167
    case anstype :
167
    case anstype :
168
                titre_bd= anstypename;
168
                titre_bd= anstypename;
169
                break;
169
                break;
170
       
170
 
171
        }
171
        }
172
}
172
}
173
//enregistrer() :
173
//enregistrer() :
174
function enregistrer() {
174
function enregistrer() {
175
        var chaine = document.forms['replyform'].wims_deposit.value;
175
        var chaine = document.forms['replyform'].wims_deposit.value;