Team 4 (ARDC Camps)
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m52s Details

This commit is contained in:
zeeshan 2026-10-21 13:13:13 +05:30
parent e00e3b802f
commit 97341dfe37
1 changed files with 31 additions and 4 deletions

View File

@ -83,7 +83,7 @@
<th>Rxn of Furamist</th>
<th>Rxn of Furamist AZ</th>
<th>Total Rxns</th>
<th>Upload Acrylic Poster Image</th>
</tr>
</thead>
<tbody>
@ -188,8 +188,9 @@
</td>
<td>{{isset($sub->formdata->rxn_of_furamist_az) ? $sub->formdata->rxn_of_furamist_az: ''}}
</td>
<td>{{isset($sub->formdata->total_rxns) ? $sub->formdata->total_rxns: ''}}
</td>
<td>{{isset($sub->formdata->total_rxns) ? $sub->formdata->total_rxns: ''}}</td>
<td>{{isset($sub->formdata->file_upload) ? $sub->formdata->file_upload: ''}}</td>
</tr>
@endforeach
</tbody>
@ -207,7 +208,7 @@
<input type="hidden" name="id" value="{{ $id }}">
@endif
@foreach ($questions as $question)
@if (in_array($question->code, ['execution_date','executed_as_per_plan' ,'revised_start_time','patient_screened','patients_diagnosed','rxn_of_montair_lc_adult','rxn_of_montair_lc_kid_tab','rxn_of_montair_lc_kid_syrup','rxn_of_furamist','rxn_of_furamist_az','total_rxns']))
@if (in_array($question->code, ['execution_date','executed_as_per_plan' ,'revised_start_time','patient_screened','patients_diagnosed','rxn_of_montair_lc_adult','rxn_of_montair_lc_kid_tab','rxn_of_montair_lc_kid_syrup','rxn_of_furamist','rxn_of_furamist_az','total_rxns','file_upload']))
@continue
@endif
<div class="col-md-12 mb-2">
@ -672,6 +673,32 @@
}
$('#execution-form').append('<input type="hidden" name="execution_done" value="yes">');
$('#execution-file_upload').on('change', function () {
let file = this.files[0];
if (file) {
let allowedTypes = ['image/png', 'image/jpg', 'image/jpeg'];
let maxSize = 10 * 1024 * 1024; // 10 MB
// Type validation
if (!allowedTypes.includes(file.type)) {
alert('Only PNG, JPG, and JPEG files are allowed.');
$(this).val('');
return;
}
// Size validation
if (file.size > maxSize) {
alert('File size should not exceed 10 MB.');
$(this).val('');
return;
}
}
});
})