DHTML progress bar for glacial rate adding and editing, closes: Bug#1100
[freeside.git] / httemplate / elements / qlib / box.js
diff --git a/httemplate/elements/qlib/box.js b/httemplate/elements/qlib/box.js
new file mode 100644 (file)
index 0000000..537aac4
--- /dev/null
@@ -0,0 +1,29 @@
+/**\r
+ * QLIB 1.0 Box Control\r
+ * Copyright (C) 2002 2003, Quazzle.com Serge Dolgov\r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ * http://qlib.quazzle.com\r
+ */\r
+\r
+function QBox(parent, name, res, x, y, width, height, body, visible, effects, opacity, zindex) {\r
+    this.init(parent, name);\r
+    if (this.res = res) {\r
+        this.x = x - 0;\r
+        this.y = y - 0;\r
+        this.width = width - 0;\r
+        this.height = (typeof(height) == "number") ? height : null;\r
+        this.body = body || " ";\r
+        var j = QBox.arguments.length;\r
+        this.visible = (j > 8) ? visible : true;\r
+        this.effects = (j > 9) ? effects : (res.effects || 0);\r
+        this.opacity = (j > 10) ? opacity : (res.opacity != null ? res.opacity : 100);\r
+        this.zindex  = (j > 11) ? zindex : null;\r
+        this.create();\r
+    } else {\r
+        this.document.write("invalid resource");\r
+    }\r
+}\r
+QBox.prototype = new QBoxCtrl();\r