From e44a7e37b6c7b5961adaffc62b9042b8d442938e Mon Sep 17 00:00:00 2001 From: mensonge Date: Thu, 13 Nov 2008 09:49:11 +0000 Subject: New feature: basic Ajax suggestion for tags and implementation of Dojo toolkit git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@151 b3834d28-1941-0410-a4f8-b48e95affb8f --- includes/js/dojox/widget/FileInput/FileInput.css | 70 +++++++++++++++++++ .../widget/FileInput/FileInput.css.commented.css | 79 ++++++++++++++++++++++ includes/js/dojox/widget/FileInput/FileInput.html | 9 +++ .../js/dojox/widget/FileInput/FileInputAuto.html | 9 +++ includes/js/dojox/widget/FileInput/ReceiveFile.php | 37 ++++++++++ 5 files changed, 204 insertions(+) create mode 100644 includes/js/dojox/widget/FileInput/FileInput.css create mode 100644 includes/js/dojox/widget/FileInput/FileInput.css.commented.css create mode 100644 includes/js/dojox/widget/FileInput/FileInput.html create mode 100644 includes/js/dojox/widget/FileInput/FileInputAuto.html create mode 100644 includes/js/dojox/widget/FileInput/ReceiveFile.php (limited to 'includes/js/dojox/widget/FileInput') diff --git a/includes/js/dojox/widget/FileInput/FileInput.css b/includes/js/dojox/widget/FileInput/FileInput.css new file mode 100644 index 0000000..2d99c74 --- /dev/null +++ b/includes/js/dojox/widget/FileInput/FileInput.css @@ -0,0 +1,70 @@ +.dijitFileInput { + position:relative; + height:1.3em; + padding:2px; +} +.dijitFileInputReal { + position:absolute; + z-index:2; + opacity:0; + filter:alpha(opacity:0); +} +.dijitFileInputRealBlind { + right:0; +} +.dijitFileInputReal:hover { cursor:pointer; } +.dijitFileInputButton, +.dijitFileInputText { + border:1px solid #333; + padding:2px 12px 2px 12px; + cursor:pointer; +} +.dijitFileInputButton { + z-index:3; + visibility:hidden; +} +.dijitFakeInput { position:absolute; top:0; left:0; z-index:1; } +.dijitProgressOverlay { + display:none; + width:250px; + height:1em; + position:absolute; + top:0; left:0; + border:1px solid #333; + background:#cad2de url('../../../dijit/themes/tundra/images/dijitProgressBarAnim.gif') repeat-x top left; + padding:2px; +} +.tundra .dijitProgressOverlay { + border:1px solid #84a3d1; + background-color:#cad2de; +} +.tundra .dijitFakeInput input { + font-size: inherit; + background:#fff url("../../../dijit/themes/tundra/images/validationInputBg.png") repeat-x top left; + border:1px solid #9b9b9b; + line-height: normal; + padding: 0.2em 0.3em; +} +.tundra .dijitFileInputButton, +.tundra .dijitFileInputText { + border:1px solid #9b9b9b; + padding:2px 12px 2px 12px; + background:#e9e9e9 url("../../../dijit/themes/tundra/images/buttonEnabled.png") repeat-x top; +} +.soria .dijitProgressOverlay { + border:1px solid #333; + background-color:#cad2de; +} +.soria .dijitFakeInput input { + border:1px solid #333; + background:#fff url("../../../dijit/themes/soria/images/gradientInverseTopBg.png") repeat-x top left; + line-height:normal; + background-position:0 -30px; + padding:0.2em 0.3em; +} +.soria .dijitFileInputButton, +.soria .dijitFileInputText { + border:1px solid #333; + padding:2px 12px 2px 12px; + background:#b7cdee url('../../../dijit/themes/soria/images/gradientTopBg.png') repeat-x; +} diff --git a/includes/js/dojox/widget/FileInput/FileInput.css.commented.css b/includes/js/dojox/widget/FileInput/FileInput.css.commented.css new file mode 100644 index 0000000..162133d --- /dev/null +++ b/includes/js/dojox/widget/FileInput/FileInput.css.commented.css @@ -0,0 +1,79 @@ +.dijitFileInput { + position:relative; + height:1.3em; + padding:2px; +} + +.dijitFileInputReal { + position:absolute; + z-index:2; + opacity:0; + filter:alpha(opacity:0); +} +.dijitFileInputRealBlind { + right:0; +} +.dijitFileInputReal:hover { cursor:pointer; } + +.dijitFileInputButton, +.dijitFileInputText { + border:1px solid #333; + padding:2px 12px 2px 12px; + cursor:pointer; +} + +.dijitFileInputButton { + z-index:3; + visibility:hidden; +} +.dijitFakeInput { position:absolute; top:0; left:0; z-index:1; } + +.dijitProgressOverlay { + display:none; + width:250px; + height:1em; + position:absolute; + top:0; left:0; + border:1px solid #333; + background:#cad2de url('../../../dijit/themes/tundra/images/dijitProgressBarAnim.gif') repeat-x top left; + padding:2px; +} + +/* tundra */ +.tundra .dijitProgressOverlay { + border:1px solid #84a3d1; + background-color:#cad2de; +} +.tundra .dijitFakeInput input { + font-size: inherit; + background:#fff url("../../../dijit/themes/tundra/images/validationInputBg.png") repeat-x top left; + border:1px solid #9b9b9b; + line-height: normal; + padding: 0.2em 0.3em; +} +.tundra .dijitFileInputButton, +.tundra .dijitFileInputText { + border:1px solid #9b9b9b; + padding:2px 12px 2px 12px; /* .3em .4em .2em .4em; */ + background:#e9e9e9 url("../../../dijit/themes/tundra/images/buttonEnabled.png") repeat-x top; +} + +/* Soria */ +.soria .dijitProgressOverlay { + border:1px solid #333; + background-color:#cad2de; +} + +.soria .dijitFakeInput input { + border:1px solid #333; + background:#fff url("../../../dijit/themes/soria/images/gradientInverseTopBg.png") repeat-x top left; + line-height:normal; + background-position:0 -30px; + padding:0.2em 0.3em; +} +.soria .dijitFileInputButton, +.soria .dijitFileInputText { + border:1px solid #333; + padding:2px 12px 2px 12px; + background:#b7cdee url('../../../dijit/themes/soria/images/gradientTopBg.png') repeat-x; +} diff --git a/includes/js/dojox/widget/FileInput/FileInput.html b/includes/js/dojox/widget/FileInput/FileInput.html new file mode 100644 index 0000000..41401b7 --- /dev/null +++ b/includes/js/dojox/widget/FileInput/FileInput.html @@ -0,0 +1,9 @@ +
+ +
+ +
${label}
+
${cancelText}
+
+
diff --git a/includes/js/dojox/widget/FileInput/FileInputAuto.html b/includes/js/dojox/widget/FileInput/FileInputAuto.html new file mode 100644 index 0000000..f3c6216 --- /dev/null +++ b/includes/js/dojox/widget/FileInput/FileInputAuto.html @@ -0,0 +1,9 @@ +
+ +
+ +
${label}
+
${cancelText}
+
+
 
+
diff --git a/includes/js/dojox/widget/FileInput/ReceiveFile.php b/includes/js/dojox/widget/FileInput/ReceiveFile.php new file mode 100644 index 0000000..aca541f --- /dev/null +++ b/includes/js/dojox/widget/FileInput/ReceiveFile.php @@ -0,0 +1,37 @@ + "success", + 'name' => $name, + 'request' => $_REQUEST, + 'postvars' => $_POST, + 'details' => $_FILES, + // and some static subarray just to see + 'foo' => array('foo'=>"bar") + ); + +}else{ + $ar = array( + 'status' => "failed", + 'details' => "" + ); +} + +// yeah, seems you have to wrap iframeIO stuff in textareas? +$foo = $json->encode($ar); +?> + -- cgit v1.2.3