logo en schoolgegevens in sop

This commit is contained in:
Monique
2022-09-09 10:31:41 +02:00
parent 76ebdfd7f3
commit 946af1cbc0
5 changed files with 19 additions and 17 deletions
@@ -158,7 +158,7 @@ class Compactsop extends MY_Controller{
//TODO: unlink eventueel oud logo
$logo = $this->Schooldetails_model->getLogo($schoolID);
$padNaam = $savePath.$logo;
unlink($padNaam);
// unlink($padNaam);
$this->Schooldetails_model->update_record_where(['logo'=>$filename], ['organisatie_id' =>$schoolID]);
}
@@ -98,7 +98,9 @@ class Compacteonderdelen
$test = $this->CI->rootpath;
$logo = false;
if($this->details && $this->details->logo) {
$logo = $this->CI->config->item('vendor_url') . '/images/logos/' . $this->details->logo;
// $logo = $this->CI->config->item('vendor_url') . '/images/logos/' . $this->details->logo;
$logo = $_ENV['BASE_URL']. '/images/logos/' . $this->details->logo;
}
$this->orgGegevens = [
@@ -117,7 +119,7 @@ class Compacteonderdelen
private function setOrgpartial()
{
$this->orgpartial['data'] = $this->orgGegevens;
$this->orgpartial['html'] = 'monpas/compactsop/schoolgegevenscompact';
$this->orgpartial['html'] = 'monpas/compactsop/schoolgegevens';
}
private function setOrglist(){
@@ -716,13 +716,13 @@
<div class="container" id='compactSopPdf' >
<?php if ($schoolgegevens) { ?>
<img style="max-width:45px; height:0px; visibility:hidden"
<img style="max-width:45px;"
src="<?=$schoolgegevens['data']['logo']?>"/>
<?php } else { ?>
<img style="max-width:45px; height: 0px; visibility:hidden"
<img style="max-width:45px; height: 0px; "
src="http://app.monpas.nl/images/logos/monpaslogo.png"/>
<?php } ?>
<img style="max-width:50%; height: 0px; visibility:hidden"
<img style="max-width:50%; height: 0px;"
src="http://app.monpas.nl/images/logos/frameworklogo.png"/>
##PLACEHOLDER##
</div>
@@ -15,8 +15,8 @@
<td class="sopTabeltd" style="color:#737373 !important;width:45px">Adres
</td>
<td class="sopTabeltd" style="overflow-x:hidden; white-space:nowrap">
<?php if (isset($data['school']->straat)) {
echo $data['school']->straat;
<?php if (isset($data['details']->straat)) {
echo $data['details']->straat;
} ?>
</td>
</tr>
@@ -34,8 +34,8 @@
<td class="sopTabeltd" style="color:#737373 !important;">Plaats
</td>
<td class="sopTabeltd" style="overflow-x:hidden; white-space:nowrap">
<?php if (isset($data['school']->plaats)) {
echo $data['school']->plaats;
<?php if (isset($data['details']->plaats)) {
echo $data['details']->plaats;
} ?>
</td>
</tr>
@@ -43,15 +43,15 @@
<td class="sopTabeltd" style="color:#737373 !important;">E-mail
</td>
<td class="sopTabeltd" style="overflow-x:hidden; white-space:nowrap">
<?php if (isset($data['school']->email1)) {
echo $data['school']->email1;
<?php if (isset($data['details']->email1)) {
echo $data['details']->email1;
} ?>
</td>
<td class="sopTabeltd" style="color:#737373 !important;">Telefoon
</td>
<td class="sopTabeltd" style="overflow-x:hidden; white-space:nowrap">
<?php if (isset($data['school']->telefoon)) {
echo $data['school']->telefoon;
<?php if (isset($data['details']->telefoon)) {
echo $data['details']->telefoon;
} ?>
</td>
@@ -65,8 +65,8 @@
<td class="sopTabeltd" style="color:#737373 !important;">Website
</td>
<td class="sopTabeltd" style="overflow-x:hidden; white-space:nowrap">
<?php if (isset($data['school']->web)) {
echo $data['school']->web;
<?php if (isset($data['details']->web)) {
echo $data['details']->web;
} ?>
</td>
@@ -93,7 +93,7 @@
overflow:hidden " />
<label class="btn btn-small btn-info"
for="image_file">Logo uploaden</label>
for="image_file">Selecteer</label>
<!-- ko if: uploadLogoNaam()-->
<i>gekozen: <span data-bind="text:showLogoNaam"></span></i>
<!-- /ko -->