XOOPS RMCommon Utilities
2.1.8.91RC
Main Page
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
uploadify.js.php
Go to the documentation of this file.
1
<script type=
"text/javascript"
>
2
$(document).ready(
function
(){
3
$(
"#<?php echo $this->name; ?>"
).uploadify({
4
<?php
5
$rtn
=
''
;
6
foreach
($this->settings() as $name => $value):
7
8
if
($value==
''
)
continue
;
9
if
(!is_array($value) && substr($value, 0, 8)==
'function'
){
10
$value = $value;
11
}
elseif
(is_string($value)){
12
$value =
"'$value'"
;
13
}
elseif
(is_array($value)){
14
$tmp =
''
;
15
foreach
($value as $k => $val){
16
$tmp .= $tmp==
''
?
"'$k':'$val'"
:
",'$k':'$val'"
;
17
}
18
$value =
"{"
.$tmp.
"}"
;
19
20
}
21
$rtn
.=
$rtn
==
''
?
"'$name': $value"
:
",\n'$name': $value"
;
22
23
endforeach
;
24
echo
$rtn
;
25
?>
26
});
27
});
28
</script>
L:
XOOPS_Allure
SVN_XOOPS2
RMC
rmcommon
trunk
rmcommon
templates
uploadify.js.php
Generated on Sun Mar 17 2013 20:41:07 for XOOPS RMCommon Utilities by
1.8.3.1