File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -934,6 +934,12 @@ function doAction($action){
934
934
$ submitted_value_cleansed = $ _REQUEST [$ field ];
935
935
}
936
936
937
+ if ($ uploads_on ){
938
+ if ($ this ->fieldInArray ($ field , $ this ->file_uploads )){
939
+ $ submitted_value_cleansed = $ _FILES [$ field ]["name " ];
940
+ }
941
+ }
942
+
937
943
$ submitted_values [] = $ submitted_value_cleansed ;
938
944
//also used for callback function
939
945
$ submitted_array [$ field ] = $ submitted_value_cleansed ;
@@ -1286,7 +1292,6 @@ function showTable(){
1286
1292
if (isset ($ _REQUEST ['action ' ])){
1287
1293
$ action = $ _REQUEST ['action ' ];
1288
1294
}
1289
- //print_r($this->exactSearchField);
1290
1295
foreach ($ this ->fields as $ field ){
1291
1296
//this if condition is so MULTIPLE ajaxCRUD tables can be used on the same page.
1292
1297
if ($ _REQUEST ['table ' ] == $ this ->db_table ){
Original file line number Diff line number Diff line change 71
71
#allow picture to be a file upload
72
72
$ tblFriend ->setFileUpload ('fldPicture ' ,'uploads/ ' ,'uploads/ ' );
73
73
//$tblFriend->disallowEdit("fldPicture");
74
+ $ tblFriend ->onAddExecuteCallBackFunction ("myFunctionAfterAdd " );
74
75
75
76
#format field output
76
77
$ tblFriend ->formatFieldWithFunction ('fldOwes ' , 'addDollarSign ' );
@@ -187,6 +188,10 @@ function addDollarSign($val) {
187
188
function displayImage ($ val ){
188
189
return "<img src= \"uploads/ $ val \" width= \"90 \"> " ;
189
190
}
191
+
192
+ function myFunctionAfterAdd ($ array ){
193
+ //print_r($array);
194
+ }
190
195
?>
191
196
192
197
</body>
You can’t perform that action at this time.
0 commit comments