JM est tete en l'air, mais au moins a son home directory an +r pour tous ...
authorx2000habouzit <x2000habouzit>
Mon, 26 Apr 2004 14:50:50 +0000 (14:50 +0000)
committerx2000habouzit <x2000habouzit>
Mon, 26 Apr 2004 14:50:50 +0000 (14:50 +0000)
templates/applis.js.tpl [new file with mode: 0644]

diff --git a/templates/applis.js.tpl b/templates/applis.js.tpl
new file mode 100644 (file)
index 0000000..8f55c2a
--- /dev/null
@@ -0,0 +1,40 @@
+<script language="JavaScript" type="text/javascript">
+<!-- Begin
+applisType = new Array(
+{applis_type}
+);
+
+applisTypeAll = new Array(
+{applis_type_all}
+);
+{literal}
+function fillType( selectCtrl, appli, fill ) {
+var i;
+var i0=0;
+
+for (i = selectCtrl.options.length; i >=0; i--) {
+selectCtrl.options[i] = null;
+}
+
+if (fill || appli <0) {
+  selectCtrl.options[0] = new Option(' ');
+  i0=1;
+}
+if (appli>=0) 
+  for (i=0; i < applisType[appli].length; i++) 
+    selectCtrl.options[i0+i] = new Option(applisType[appli][i]);
+else if (fill)
+  for (i=0; i < applisTypeAll.length; i++) 
+    selectCtrl.options[i0+i] = new Option(applisTypeAll[i]);
+}
+
+function selectType( selectCtrl, type ) {
+  for (i = 0; i < selectCtrl.options.length; i++) {
+    if (selectCtrl.options[i].text == type)
+      selectCtrl.selectedIndex=i;
+  }
+}
+
+// End -->
+</script>
+{/literal}