 2012-04-23 21:51 | Hej,
mam taki problem, że podczas edycji produktu, niezależnie od tego jakie zdjęcie zaznaczę, zawsze usuwa pierwsze od góry...
Jakieś pomysły?
Kod odpowiedzialny za box:
<!-- BEGIN FILES_PHOTO --> <tr style=' background-color: #d3d3d3;'> <td style='text-align: center;'> <input type='hidden' name="aFilesId[]" value='$aList[iFile]' /> <input type='checkbox' name='aFilesDel[]' value='1' /> </td> <td> $aList[sFileName].$aList[sFileExtension] | <a href='javascript:windowFoto( "$aList[sPhoto]" );' >duże</a> | <a href='javascript:windowFoto( "$aList[sPhotoThumb]" );' >małe</a> </td> <td> <input type='text' name='aFilesDescription[]' value="$aList[sFileDescription]" maxlength='60' size='40' class='input' /> </td> </tr> <!-- END FILES_PHOTO -->
kod aFilesDel:
if( isset( $aForm['aFilesDel'] ) && is_array( $aForm['aFilesDel'] ) ){ $iCount = count( $aForm['aFilesDel'] ); for( $i = 0; $i < $iCount; $i++ ){ delFiles( $aForm['aFilesId'][$i] ); } // end for }
Pozdrawiam
» Quick.Cart v1.xB |