Merge branch 'feature/swvMaaktSopSchool' into develop
# Conflicts: # application/views/monpas/modals/school_modal.php
This commit is contained in:
@@ -168,7 +168,7 @@ class Compactsop extends MY_Controller{
|
||||
$filename = random_string('alnum', 15).'.'.$extension;
|
||||
$source = $_FILES['image_file']['tmp_name'];
|
||||
$target = $savePath.$filename;
|
||||
chmod($target, '0777');
|
||||
// chmod($target, '0777');
|
||||
rename($source, $target );
|
||||
//TODO: unlink eventueel oud logo
|
||||
$logo = $this->Schooldetails_model->getLogo($schoolID);
|
||||
@@ -181,9 +181,9 @@ class Compactsop extends MY_Controller{
|
||||
$schoolID = $this->clean_input('schoolID');
|
||||
$savePath = MYROOTPATH.'public/images/logos/';
|
||||
$logo =$this->Schooldetails_model->getLogo($schoolID);
|
||||
$padNaam = $savePath.$logo;
|
||||
// $padNaam = $savePath.$logo;
|
||||
|
||||
$this->json($padNaam);
|
||||
$this->json($logo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -49,18 +49,21 @@ class Pdfmaker extends MY_Controller{
|
||||
$bestandsschoolnaam = str_replace($zoek, "",$sopschoolnaam);;
|
||||
|
||||
$frameworklogo= $this->config->item('vendor_url').'/images/logos/frameworklogo.png';
|
||||
//
|
||||
$logonaam = $this->Schooldetails_model->get(["organisatie_id" =>$schoolid],'logo', true);
|
||||
if (! $logonaam) $logonaam="monpaslogo.png";
|
||||
$schoollogo = $this->config->item('vendor_url').'/images/logos/'.$logonaam;
|
||||
chmod($schoollogo, 0777);
|
||||
|
||||
$headerdata = ['titel' =>$soptitel,
|
||||
'schoolnaam' =>$sopschoolnaam ? $sopschoolnaam : '',
|
||||
'logoframework' =>$frameworklogo,
|
||||
'logoschool' =>$schoollogo];
|
||||
$footerdata = "";
|
||||
'logoschool' =>$schoollogo
|
||||
];
|
||||
// $footerdata = [];
|
||||
$header = $this->load->view( "monpas/compactsop/compactheader", $headerdata, TRUE ) ;
|
||||
$footer = $this->load->view ("monpas/compactsop/compactfooter", $footerdata, TRUE);
|
||||
$filenaam = $this->compactsoppath.'sop.pdf';
|
||||
// $footer = $this->load->view ("monpas/compactsop/compactfooter", $footerdata, TRUE);
|
||||
$filenaam = $this->compactsoppath.'sop.pdf';
|
||||
|
||||
$bestandsnaam = "compactsop".$bestandsschoolnaam.$schoolid.$bestandstitel.'-'.$date.'.pdf';
|
||||
$downloadnaam = $this->compactsoppath.$bestandsnaam;
|
||||
|
||||
@@ -79,7 +79,7 @@ class MY_Controller extends CI_Controller{
|
||||
// public $version = '1.18.05';// fout schoolgegevens compactsop
|
||||
// public $version = '1.18.08';// kleurenfout
|
||||
// public $version = '1.18.09';// zoek gebruikers sneller
|
||||
public $version = '1.18.11';// compactsops maken van valtonderorgs
|
||||
public $version = '1.18.12';// compactsops maken van valtonderorgs
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
een <img src="http://app.monpas.nl/images/logos/frameworklogo.png"
|
||||
style=" height:20px"/>
|
||||
product
|
||||
@@ -2,7 +2,7 @@
|
||||
<title>Compact Sop</title>
|
||||
</head>
|
||||
|
||||
<div style="width: 59%;
|
||||
<div style="width: 59%;
|
||||
float:left;
|
||||
padding-left: 10px;
|
||||
margin-bottom:-10px">
|
||||
@@ -24,7 +24,10 @@
|
||||
</div>
|
||||
|
||||
<div style=" width: 39%; float :right;margin-bottom:-10px;padding-right:5px ">
|
||||
<img src="<?=$logoschool?>"
|
||||
style="float: right; height:60px"/>
|
||||
|
||||
|
||||
<img src="<?=$logoframework?>"
|
||||
style=" float: right; height:20px; "/>
|
||||
<img src="<?=$logoschool?>"
|
||||
style="float: right; height:60px; padding-right: 10px;"/>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
|
||||
|
||||
<div class="modal-footer">
|
||||
<button class="btn btn-small buttonCompact"
|
||||
<button class="btn btn-small buttonCompacte" style="margin-top: 3px;"
|
||||
data-dismiss="modal">sluiten
|
||||
</button>
|
||||
</div> <!-- footer -->
|
||||
|
||||
Reference in New Issue
Block a user