sopBobRopSwop en divmeter voor po2203 in compact sop
This commit is contained in:
@@ -79,8 +79,8 @@ class Compactsop extends MY_Controller{
|
||||
if (!$this->userid) die;
|
||||
$schooljaar = $this->uri->segment(4);
|
||||
$orgsoort = $this->uri->segment(5);
|
||||
$compacteVersies = new CompacteVersies($schooljaar, $orgsoort);
|
||||
$onderdelen = $compacteVersies->getOnderdelen();
|
||||
$compacteversies = new Compacteversies($schooljaar, $orgsoort);
|
||||
$onderdelen = $compacteversies->getOnderdelen();
|
||||
|
||||
echo json_encode($onderdelen);
|
||||
}
|
||||
|
||||
@@ -88,30 +88,33 @@ class Overzichtsop extends MY_Controller{
|
||||
}
|
||||
}
|
||||
}
|
||||
echo json_encode(array("organisatie" => $organisatie, "soort" => 1));
|
||||
|
||||
echo json_encode([
|
||||
"organisatie" => $organisatie,
|
||||
"soort" => 1]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
function getAlfabetisch(){
|
||||
if (!$this->userid) die;
|
||||
$schooljaarnr = $this->clean_input("schooljaarnr");
|
||||
$orgid = $this->clean_input("orgid");
|
||||
if ($orgid == 0) $orgid = $this->globorgid;
|
||||
$organisatie = $this->Organisaties_model->getorg($orgid);
|
||||
if($organisatie->soort == 2) $organisatie->scholen = $this->Organisaties_model->getscholenonderkamer($organisatie->id);
|
||||
if($organisatie->soort == 1) $organisatie->scholen = $this->Organisaties_model->getscholenonderswv($organisatie->id);
|
||||
|
||||
foreach ($organisatie->scholen as $index => $school) {
|
||||
$school->sop = 'F';
|
||||
$compactsopID = $this->Compactsop_model->get_fieldvalue(
|
||||
['organisatie_id' => $school->id, 'schooljaarnummer' => $schooljaarnr], 'id');
|
||||
if ($compactsopID) $school->sop = 'T';
|
||||
}
|
||||
|
||||
echo json_encode(array("organisatie" => $organisatie, "soort" => $organisatie->soort));
|
||||
|
||||
}
|
||||
// function getAlfabetisch(){
|
||||
// if (!$this->userid) die;
|
||||
// $schooljaarnr = $this->clean_input("schooljaarnr");
|
||||
// $orgid = $this->clean_input("orgid");
|
||||
// if ($orgid == 0) $orgid = $this->globorgid;
|
||||
// $organisatie = $this->Organisaties_model->getorg($orgid);
|
||||
// if($organisatie->soort == 2) $organisatie->scholen = $this->Organisaties_model->getscholenonderkamer($organisatie->id);
|
||||
// if($organisatie->soort == 1) $organisatie->scholen = $this->Organisaties_model->getscholenonderswv($organisatie->id);
|
||||
//
|
||||
// foreach ($organisatie->scholen as $index => $school) {
|
||||
// $school->sop = 'F';
|
||||
// $compactsopID = $this->Compactsop_model->get_fieldvalue(
|
||||
// ['organisatie_id' => $school->id, 'schooljaarnummer' => $schooljaarnr], 'id');
|
||||
// if ($compactsopID) $school->sop = 'T';
|
||||
// }
|
||||
//
|
||||
//// echo json_encode(array("organisatie" => $organisatie, "soort" => $organisatie->soort));
|
||||
//
|
||||
// }
|
||||
|
||||
|
||||
function download_pdf(){
|
||||
|
||||
@@ -14,20 +14,14 @@ class Diversiteitafbeeldingen {
|
||||
private $vormen;
|
||||
private $combifactor;
|
||||
private $combifactoren;
|
||||
private $deelfactoren;
|
||||
private $deelfactor;
|
||||
private $schoolfactor;
|
||||
private $tijden;
|
||||
private $tijd;
|
||||
private $uur;
|
||||
private $uur0;
|
||||
private $minuut0;
|
||||
private $string;
|
||||
private $soort;
|
||||
private $totminuten;
|
||||
private $schoolminuten= 0;
|
||||
private $schooltijdstring;
|
||||
private $tottijd;
|
||||
private $minuten;
|
||||
private $totG = 0;
|
||||
private $totS = 0;
|
||||
@@ -35,23 +29,9 @@ class Diversiteitafbeeldingen {
|
||||
private $gtijd;
|
||||
private $itijd;
|
||||
private $stijd;
|
||||
private $minuten1 = 0;
|
||||
private $minuten2 = 0;
|
||||
private $minuten3 = 0;
|
||||
private $minuten4 = 0;
|
||||
private $minuten5 = 0;
|
||||
private $dagtijd1 = 0;
|
||||
private $dagtijd2 = 0;
|
||||
private $dagtijd3 = 0;
|
||||
private $dagtijd4 = 0;
|
||||
private $dagtijd5 = 0;
|
||||
private $schoolsoort;
|
||||
private $factorenTot = 0;
|
||||
private $combis;
|
||||
private $combi;
|
||||
private $groep12;
|
||||
private $groep38;
|
||||
private $groepdiversiteit =0;
|
||||
private $totaal = 0;
|
||||
private $aantalgroepen = 0;
|
||||
private $som1 =0;
|
||||
|
||||
@@ -188,6 +188,10 @@ class Compacteonderdelen
|
||||
case 8:
|
||||
case 9:
|
||||
$this->setIJkpunten();
|
||||
break;
|
||||
case 10:
|
||||
$this->setDiversiteit();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -195,8 +199,8 @@ class Compacteonderdelen
|
||||
{
|
||||
$divcompact = New Diversiteit($this->schooljaarnr, $this->CI->globorgid, $this->onderdeel['modulenr']);
|
||||
$divdata = $divcompact->getDiversiteit();
|
||||
$divafbeelding = New DiversiteitAfbeeldingen($divdata, $this->onderdeel['modulenr'], $this->schooljaarnr);
|
||||
$this->diversiteit = $divafbeelding->getDiversiteitAfbeeldingen();
|
||||
$divafbeelding = New Diversiteitafbeeldingen($divdata, $this->onderdeel['modulenr'], $this->schooljaarnr);
|
||||
$this->diversiteit = $divafbeelding->getDiversiteitafbeeldingen();
|
||||
|
||||
$data = [
|
||||
'schooljaar' => $this->schooljaar->naam,
|
||||
|
||||
@@ -9,6 +9,7 @@ class Compacteversies
|
||||
private $kalenderjaar2;
|
||||
private $jaarnr1;
|
||||
private $jaarnr2;
|
||||
private $swvID;
|
||||
private $orglist;
|
||||
private $aantallln;
|
||||
private $onderdelen;
|
||||
@@ -38,6 +39,7 @@ class Compacteversies
|
||||
$this->setSchooljaar();
|
||||
$this->setKalenderjaren();
|
||||
$this->setOrglist();
|
||||
$this->setSWVID();
|
||||
$this->setCompactSopOnderdelen();
|
||||
$this->loopCompactSop();
|
||||
}
|
||||
@@ -63,8 +65,35 @@ class Compacteversies
|
||||
|
||||
}
|
||||
|
||||
private function setSWVID(){
|
||||
$organisatie =$this->CI->Organisaties_model->get_record_by_id($this->CI->globorgid);
|
||||
if ($organisatie) {
|
||||
switch ($organisatie->soort) {
|
||||
case "1":
|
||||
$this->swvID = $organisatie->id;
|
||||
break;
|
||||
case "2":
|
||||
$this->swvID = $organisatie->valtonder_id;
|
||||
break;
|
||||
case "3" :
|
||||
$kamer = $this->CI->Organisaties_model->get_record_by_id($organisatie->valtonder_id);
|
||||
$this->swvID = $kamer->valtonder_id;
|
||||
break;
|
||||
case "4":
|
||||
$kamer = $this->CI->Organisaties_model->get_record_by_id($organisatie->valtonder_id);
|
||||
$bestuur = $this->CI->Organisaties_model->get_record_by_id($kamer->valtonder_id);
|
||||
$this->swvID = $bestuur->valtonder_id;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else{
|
||||
$this->swvID = null;
|
||||
}
|
||||
}
|
||||
|
||||
private function setCompactSopOnderdelen(){
|
||||
$this->onderdelen = $this->CI->Compactsoponderdelen_model->getOnderdelen($this->orgsoortnr);
|
||||
$this->onderdelen = $this->CI->Compactsoponderdelen_model->getOnderdelen($this->orgsoortnr, $this->swvID,
|
||||
$this->schooljaar->schooljaarnr);
|
||||
}
|
||||
|
||||
private function loopCompactSop(){
|
||||
@@ -113,18 +142,22 @@ class Compacteversies
|
||||
break;
|
||||
case 630: $this->onderdeel->schooltype = 'Alle';
|
||||
break;
|
||||
default: $this->onderdeel->schooltype = 'Alle';
|
||||
case 660: $this->onderdeel->schooltype = 'R';
|
||||
break;
|
||||
default: $this->onderdeel->schooltype = 'R';
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private function setDiversiteit(){
|
||||
if($this->onderdeel->nummer != 1) return;
|
||||
if($this->onderdeel->nummer != 1 && $this->onderdeel->nummer != 10) return;
|
||||
$module = 2;
|
||||
if(isset($this->swvID) && $this->swvID == 150 && $this->schooljaar->schooljaarnr > 8) $module = 660;
|
||||
$this->aantallln = $this->CI->Groepen_model->getversiesmetleerlingen(
|
||||
$this->CI->globorgid, $this->schooljaarnr, $this->onderdeel->schooltype, $module);
|
||||
|
||||
|
||||
if(isset($this->aantallln)){
|
||||
if ($this->aantallln > 0) {
|
||||
$this->onderdeel->groepen = $this->CI->Groepen_model->get_AantalGroepen($this->schooljaarnr, $this->CI->globorgid, $module);
|
||||
|
||||
@@ -114,7 +114,7 @@ class Phantom_model extends CI_Model{
|
||||
|
||||
curl_setopt_array( $curl, array(
|
||||
CURLOPT_RETURNTRANSFER => 1,
|
||||
CURLOPT_URL => 'https://print.pensare-services.nl/print',
|
||||
CURLOPT_URL => $_ENV['printserver'],
|
||||
// CURLOPT_URL => 'http://pdf.pensare-services.nl/index.php/pdfcreate',
|
||||
CURLOPT_POST => 1,
|
||||
CURLOPT_POSTFIELDS => $data
|
||||
|
||||
@@ -12,13 +12,21 @@ class compactsoponderdelen_model extends MY_Model{
|
||||
$this->load->model($models);
|
||||
}
|
||||
|
||||
function getOnderdelen($orgsoort){
|
||||
$this->sql = "SELECT C.naam, C.naamkort, C.ijkpunten, C.vergelijking, S.pad, S.blokid, C.nummer, S.toon_nummer
|
||||
function getOnderdelen($orgsoort, $swvID, $schooljaarnr){
|
||||
$this->sql = "SELECT C.naam, C.naamkort, C.ijkpunten, C.vergelijking, S.pad, S.blokid, C.nummer,
|
||||
S.toon_nummer
|
||||
FROM tb_compactsoponderdelen C
|
||||
JOIN tb_compactonderdeel_piv_orgsoort S ON C.id = S.onderdeel_id
|
||||
WHERE S.org_soort = {$orgsoort}
|
||||
WHERE S.org_soort = {$orgsoort} ";
|
||||
|
||||
ORDER BY S.toon_nummer ";
|
||||
if($swvID == 150 && $schooljaarnr > 8){
|
||||
$this->sql .= "AND C.nummer <> 1 ";
|
||||
}
|
||||
else{
|
||||
$this->sql .= "AND C.nummer <> 10 ";
|
||||
}
|
||||
|
||||
$this->sql .= " ORDER BY S.toon_nummer ";
|
||||
return $this->get_query_result();
|
||||
}
|
||||
function getOnderdeel($nummer, $orgsoort){
|
||||
|
||||
@@ -49,14 +49,25 @@ class Groepen_model extends MY_Model{
|
||||
return $this->get_query_row('aantal');
|
||||
}
|
||||
|
||||
function getversiesmetleerlingen($orgid, $schooljaarnr, $schooltype, $module){
|
||||
function getversiesmetleerlingengoedeversie($orgid, $schooljaarnr, $schooltype, $module){
|
||||
$this->sql="SELECT SUM(totaantal) AS llnschool
|
||||
FROM tb_groepen
|
||||
WHERE organisatie_id ={$orgid}
|
||||
AND schooljaarnr = {$schooljaarnr}
|
||||
AND schooltype = '{$schooltype}'
|
||||
AND module = {$module} ";
|
||||
return $this->get_query_row('llnschool');
|
||||
return $this->get_query_row("aantallln");
|
||||
|
||||
}
|
||||
|
||||
function getversiesmetleerlingen($orgid, $schooljaarnr, $schooltype, $module){
|
||||
$this->sql="SELECT totaantal, niveau, schooljaarnr
|
||||
FROM tb_groepen
|
||||
WHERE organisatie_id ={$orgid}
|
||||
AND schooljaarnr = {$schooljaarnr}
|
||||
AND schooltype = '{$schooltype}'
|
||||
AND module = {$module} ";
|
||||
return $this->get_query_result();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -507,7 +507,6 @@ class Organisaties_model extends MY_Model{
|
||||
return $lijst;
|
||||
}
|
||||
|
||||
|
||||
function getKleurcodesOrg($clusterid = FALSE, $swvid){
|
||||
if (! $clusterid) $clusterid = 0;
|
||||
$sql = " SELECT *
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
data-bind=" css{randinactief: geenLicentie(), geenrand: selected} ">
|
||||
<!-- class="naamvak"-->
|
||||
<div class="panel-heading"
|
||||
style="height: 60px;"
|
||||
data-bind="css: {inactiefsop: geenLicentie(),
|
||||
lichtsop: geenGegevens() && !geenLicentie(),
|
||||
witsop: selected() }">
|
||||
@@ -12,6 +13,7 @@
|
||||
</div>
|
||||
<!-- class ="versievak"-->
|
||||
<div class="panel-body"
|
||||
style="height: 75px;"
|
||||
data-bind =" text: infotekst,
|
||||
visible: infotekst() && ! selected()> '',
|
||||
style: {color: (geenGegevens() || geenLicentie()) ? '#949494' : '#333333'} ">
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
|
||||
<div class="col-xs-4" >
|
||||
<div class="panel-group" data-bind="foreach: onderdelen ">
|
||||
<!-- ko if: nummer <= 4 -->
|
||||
<!-- ko if: (toonnummer <= 4 && $parent.orgsoortnummer() == 4) ||
|
||||
(toonnummer <= 3 && $parent.orgsoortnummer() != 4) -->
|
||||
<?php $this->load->view("monpas/compactsop/maaksoponderdelen/blokvorm"); ?>
|
||||
<!-- /ko -->
|
||||
</div>
|
||||
@@ -19,7 +20,8 @@
|
||||
<div class="col-xs-4"
|
||||
style="border-right: 1px solid lightgrey">
|
||||
<div class="panel-group" data-bind="foreach: onderdelen ">
|
||||
<!-- ko if: nummer > 4 -->
|
||||
<!-- ko if: (toonnummer > 4 && $parent.orgsoortnummer() == 4) ||
|
||||
(toonnummer > 3 && $parent.orgsoortnummer() != 4) -->
|
||||
<?php $this->load->view("monpas/compactsop/maaksoponderdelen/blokvorm"); ?>
|
||||
<!-- /ko -->
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
|
||||
<table style="border: 1px solid #A28A29; margin-top: 30px;"
|
||||
data-bind="with: $root.selectedOrg()">
|
||||
<thead>
|
||||
<tr style="border-bottom:1px solid #A28A29; ">
|
||||
<th style="padding: 5px; color: white; background-color:#A28A29">Download</th>
|
||||
<th style="padding: 5px; color: white; background-color:#A28A29 ">Soort</th>
|
||||
<th style="padding: 5px; color: white; background-color:#A28A29 ">Organisatie</th>
|
||||
|
||||
</tr>
|
||||
<tr style="border-bottom:1px solid #A28A29; ">
|
||||
<td style="background-color: #f5f0f2;">
|
||||
<button data-bind="visible: erIsEenSop(), click: $root.fOpenPDF"
|
||||
class="buttonCompact glyphicon glyphicon-open"
|
||||
style="background-color:#8cff1a; height: 30px; width: 30px;">
|
||||
</button>
|
||||
</td>
|
||||
<td style="padding: 5px; background-color: #f5f0f2;">BOP</td>
|
||||
<td style="padding: 5px; background-color: #f5f0f2;" data-bind="text: brin + ' ' + naam">
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody data-bind="foreach: scholen">
|
||||
<tr style="border-bottom:1px solid #A28A29; ">
|
||||
<td >
|
||||
<button data-bind="visible: erIsEenSop(), click: $root.fOpenPDF"
|
||||
class="buttonCompact glyphicon glyphicon-open"
|
||||
style="background-color:#1aa3ff; height: 30px; width: 30px; border-radius: 50%; box-shadow: none; border: none">
|
||||
</button>
|
||||
</td>
|
||||
<td style="padding: 5px">SOP</td>
|
||||
<td style="padding: 5px" data-bind="text: brin + ' ' + naam">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,61 @@
|
||||
<table style="border: 1px solid #A28A29; margin-top: 30px;"
|
||||
data-bind="with: $root.selectedOrg()">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="padding: 5px; color: white; background-color:#A28A29">Download</th>
|
||||
<th style="padding: 5px; color: white; background-color:#A28A29 ">Soort</th>
|
||||
<th style="padding: 5px; color: white; background-color:#A28A29 ">Organisatie</th>
|
||||
|
||||
</tr>
|
||||
<tr style="border-bottom:1px solid #A28A29; ">
|
||||
<th style="background-color: #ded0d7">
|
||||
<button data-bind="visible: erIsEenSop(), click: $root.fOpenPDF"
|
||||
class=" buttonCompact glyphicon glyphicon-open"
|
||||
style="background-color:#ff8c1a; height: 30px; width: 30px; float: left; border-radius: 50%;
|
||||
color: white; border: none; box-shadow: none; ">
|
||||
</button>
|
||||
</th>
|
||||
<th style="padding: 5px; background-color: #ded0d7 ">ROP</th>
|
||||
<th style="padding: 5px; background-color: #ded0d7" data-bind="text: naam">
|
||||
</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody >
|
||||
<!-- ko foreach: bgs -->
|
||||
<tr style="border-bottom: 1px solid #A28A29;">
|
||||
<td style="background-color: #f5f0f2;">
|
||||
<button data-bind="visible: erIsEenSop(), click: $root.fOpenPDF"
|
||||
class="buttonCompact glyphicon glyphicon-open"
|
||||
style=" height: 30px; width: 30px; background-color: #8cff1a;">
|
||||
</button>
|
||||
</td>
|
||||
<td style="padding: 5px; background-color: #f5f0f2;">ROP</td>
|
||||
<td style="padding: 5px; background-color: #f5f0f2;" data-bind="text: brin + ' ' + naam">
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<!--ko foreach: scholen -->
|
||||
<tr style="border-bottom: 1px solid #A28A29;">
|
||||
<td >
|
||||
<button data-bind="visible: erIsEenSop(), click: $root.fOpenPDF"
|
||||
class="buttonCompact glyphicon glyphicon-open"
|
||||
style="background-color:#1aa3ff; height: 30px; width: 30px; float: left">
|
||||
</button>
|
||||
</td>
|
||||
<td style="padding: 5px">SOP</td>
|
||||
<td style="padding: 5px" data-bind="text: brin + ' ' + naam">
|
||||
</td>
|
||||
</tr>
|
||||
<!-- /ko -->
|
||||
<!--/ko-->
|
||||
|
||||
</tbody>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<table style="width: 500px;" data-bind="with: $root.selectedOrg()">
|
||||
<tr>
|
||||
<td style="padding: 5px">SOP</td>
|
||||
<td style="padding: 5px" data-bind="text: brin + ' ' + naam">
|
||||
</td>
|
||||
<td >
|
||||
<button data-bind="visible: erIsEenSop()== true, click: $root.fOpenPDF"
|
||||
class="buttonCompact glyphicon glyphicon-open"
|
||||
style="background-color:#1aa3ff; height: 30px; width: 30px; ">
|
||||
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,74 @@
|
||||
<table style="border: 1px solid #A28A29; margin-top: 30px;"
|
||||
data-bind="with: $root.selectedOrg()">
|
||||
<thead>
|
||||
<tr style="border-bottom: 1px solid white;">
|
||||
<th style="padding: 5px; color: white; background-color:#A28A29">Download</th>
|
||||
<th style="padding: 5px; color: white; background-color:#A28A29 ">Soort</th>
|
||||
<th style="padding: 5px; color: white; background-color:#A28A29 ">Organisatie</th>
|
||||
|
||||
</tr>
|
||||
<tr style="border-bottom:1px solid #A28A29; ">
|
||||
<th style="background-color: #a07b8e;">
|
||||
<button data-bind="visible: erIsEenSop(), click: $root.fOpenPDF"
|
||||
class=" buttonCompact glyphicon glyphicon-open"
|
||||
style="background-color:white; height: 30px; width: 30px; float: left; border-radius: 50%;
|
||||
color: white; border: none; box-shadow: none; ">
|
||||
</button>
|
||||
</th>
|
||||
<th style="padding: 5px; color: white; background-color: #a07b8e; ">SWOP</th>
|
||||
<th style="padding: 5px; color: white; background-color: #a07b8e;" data-bind="text: naam">
|
||||
</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody >
|
||||
<!-- ko forach: kamers -->
|
||||
<tr style="border-bottom: 1px solid #A28A29;">
|
||||
<td style="background-color: #ded0d7">
|
||||
<button data-bind="visible: erIsEenSop(), click: $root.fOpenPDF"
|
||||
class="buttonCompact glyphicon glyphicon-open"
|
||||
style="background-color:#ff8c1a; height: 30px; width: 30px; float: left">
|
||||
</button>
|
||||
</td>
|
||||
<td style="padding: 5px; background-color: #ded0d7">ROP</td>
|
||||
<td style="padding: 5px; background-color: #ded0d7" data-bind="text: naam">
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<!--ko foreach: bgs -->
|
||||
<tr style="border-bottom: 1px solid #A28A29;">
|
||||
<td style="background-color: #f5f0f2;">
|
||||
<button data-bind="visible: erIsEenSop(), click: $root.fOpenPDF"
|
||||
class="buttonCompact glyphicon glyphicon-open"
|
||||
style="background-color:#8cff1a; height: 30px; width: 30px; float: left">
|
||||
</button>
|
||||
</td>
|
||||
<td style="padding: 5px; background-color: #f5f0f2;">BOP</td>
|
||||
<td style="padding: 5px; background-color: #f5f0f2;" data-bind="text: brin + ' ' + naam">
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<!--ko foreach: scholen -->
|
||||
<tr style="border-bottom: 1px solid #A28A29;">
|
||||
<td >
|
||||
<button data-bind="visible: erIsEenSop(), click: $root.fOpenPDF"
|
||||
class="buttonCompact glyphicon glyphicon-open"
|
||||
style="background-color:#1aa3ff; height: 30px; width: 30px; float: left">
|
||||
</button>
|
||||
</td>
|
||||
<td style="padding: 5px">SOP</td>
|
||||
<td style="padding: 5px" data-bind="text: brin + ' ' + naam">
|
||||
</td>
|
||||
</tr>
|
||||
<!-- /ko -->
|
||||
<!-- /ko -->
|
||||
<!-- /ko -->
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -1,339 +1,56 @@
|
||||
<div class="col-sm-12 mainpagina" id ="pagsopoverzicht">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-3" >
|
||||
<div style = "max-height: 300px; overflow-y:auto">
|
||||
<div class="col-xs-3"></div>
|
||||
|
||||
<!-- ko if : orgsoort() ==4 -->
|
||||
<div data-bind="visible: orgsoort()== 4, with: toporg">
|
||||
<p data-bind="text: brin + ' - ' + naam"></p>
|
||||
</div>
|
||||
<!-- /ko -->
|
||||
|
||||
<!-- ko if : orgsoort() ==3 -->
|
||||
<div data-bind="visible: orgsoort() == 3">
|
||||
<table style="width: 100%;">
|
||||
<tbody data-bind="with: toporg">
|
||||
<tr class="selectable" data-bind="css: {'selected': $root.selectedOrg().id == id}">
|
||||
<td class="orgtd brin" data-bind="text: brin"></td>
|
||||
<td class='orgtd' data-bind="text: naam"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- /ko -->
|
||||
|
||||
<!-- ko if: orgsoort() ==2 -->
|
||||
|
||||
<table style="width: 100%">
|
||||
<tbody data-bind="with: toporg">
|
||||
<tr class="selectable" data-bind="css: {'selected': $root.selectedOrg().id == id}">
|
||||
<td data-bind="click: $root.fToggleGeopend" style="width:16px;">
|
||||
<button class="noshowklein openbutton"
|
||||
data-bind="css: {'closebutton': geopend() }">
|
||||
</button>
|
||||
</td>
|
||||
<td class='orgtd' data-bind="text: naam, click: $root.fSwitchOrg"></td>
|
||||
</tr>
|
||||
<tr data-bind="visible: geopend">
|
||||
<td colspan = 2 style="padding-left: 20px;">
|
||||
<table style="width: 100%">
|
||||
<tbody data-bind="foreach: bgs">
|
||||
<tr class="selectable" data-bind="css: {'selected': $root.selectedOrg().id == id}">
|
||||
<td data-bind="click: $root.fToggleGeopend" style="width:16px;">
|
||||
<!-- <button class="noshowklein openbutton"-->
|
||||
<!-- data-bind="css: {'closebutton': geopend() }">-->
|
||||
<!-- </button>-->
|
||||
</td>
|
||||
<td class='orgtd' data-bind="text: naam, click: $root.fSwitchOrg"></td>
|
||||
</tr>
|
||||
<tr data-bind="visible: geopend">
|
||||
<!-- <td colspan = 2 style="padding-left: 20px;">-->
|
||||
<!-- <table>-->
|
||||
<!-- <tbody data-bind="foreach: scholen">-->
|
||||
<!-- <tr class="selectable" data-bind="css: {'selected': $root.selectedOrg().id == id}">-->
|
||||
<!-- <td class='orgtd' data-bind="text: naam, click: $root.fSwitchOrg"></td>-->
|
||||
<!-- </tr>-->
|
||||
<!-- </tbody>-->
|
||||
<!-- </table>-->
|
||||
<!-- </td>-->
|
||||
</tr>
|
||||
<tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- /ko -->
|
||||
|
||||
<!-- ko if: orgsoort() ==1 -->
|
||||
<table style="width: 100%;">
|
||||
<tbody data-bind="with: toporg">
|
||||
<tr class="selectable" data-bind="css: {'selected': $root.selectedOrg().id == id}">
|
||||
<td data-bind="click: $root.fToggleGeopend" style="width:16px;">
|
||||
<button class="noshowklein openbutton"
|
||||
data-bind="css: {'closebutton': geopend() }">
|
||||
</button>
|
||||
</td>
|
||||
<td class='orgtd' data-bind="text: naam, click: $root.fSwitchOrg"></td>
|
||||
</tr>
|
||||
<tr data-bind="visible: geopend()">
|
||||
<td></td>
|
||||
<td >
|
||||
<table style="width: 100%;">
|
||||
<tbody data-bind="foreach: kamers">
|
||||
<tr class="selectable" data-bind="css: {'selected': $root.selectedOrg().id == id}">
|
||||
<td data-bind="click: $root.fToggleGeopend" style="width:16px;">
|
||||
<button class="noshowklein openbutton"
|
||||
data-bind="css: {'closebutton': geopend() }">
|
||||
</button>
|
||||
</td>
|
||||
<td class='orgtd' data-bind="text: naam, click: $root.fSwitchOrg"></td>
|
||||
</tr>
|
||||
|
||||
<tr data-bind="visible: geopend()">
|
||||
<td></td>
|
||||
<td >
|
||||
<table style="width: 100%;">
|
||||
<tbody data-bind="foreach: bgs">
|
||||
<tr class="selectable" data-bind="css: {'selected': $root.selectedOrg().id == id}">
|
||||
<td class='orgtd' data-bind="text: naam, click: $root.fSwitchOrg"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- /ko -->
|
||||
</div >
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-5" >
|
||||
<div class="col-xs-6 " >
|
||||
<h3>Compacte Ontwikkelingsplannen</h3>
|
||||
|
||||
<div class="col-sm-7" >
|
||||
<p>Selecteer een schooljaar:</p>
|
||||
<select data-bind=" options: schooljaren,
|
||||
optionsText: 'naam',
|
||||
value: $root.selectedSchooljaar,
|
||||
event: {change: fChangeSchooljaar}">
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-5" >
|
||||
<!-- ko if: keuzesoort() == 1 || keuzesoort() == 2 -->
|
||||
<p style="margin-top: 8px;">Ordening</p>
|
||||
<div data-bind="visible: alfabetisch() == false">
|
||||
<p>
|
||||
<i class="fa fa-check-square"
|
||||
style="color: #A28A29;"
|
||||
data-bind="click: $root.fToggleOrdening"></i>
|
||||
<span data-bind="click: $root.fToggleOrdening">per bestuur
|
||||
</span>
|
||||
</p>
|
||||
<p>
|
||||
<i class="fa fa-square"
|
||||
style="color: #A28A29;"
|
||||
data-bind="click: $root.fToggleOrdening"
|
||||
></i>
|
||||
<span data-bind="click: $root.fToggleOrdening">alfabetisch
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<div data-bind="visible: alfabetisch() == true">
|
||||
<p>
|
||||
<i class="fa fa-square"
|
||||
style="color: #A28A29;"
|
||||
data-bind="click: $root.fToggleOrdening"></i>
|
||||
<span data-bind="click: $root.fToggleOrdening">per bestuur
|
||||
</span>
|
||||
</p>
|
||||
<p>
|
||||
<i class="fa fa-check-square"
|
||||
style="color: #A28A29;"
|
||||
data-bind="click: $root.fToggleOrdening"></i>
|
||||
<span data-bind="click: $root.fToggleOrdening">alfabetisch
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<!-- /ko -->
|
||||
</div>
|
||||
<p>Selecteer een schooljaar:</p>
|
||||
<select data-bind=" options: schooljaren,
|
||||
optionsText: 'naam',
|
||||
value: $root.selectedSchooljaar,
|
||||
event: {change: fChangeSchooljaar}">
|
||||
</select>
|
||||
|
||||
<!-- <div class="col-sm-5" >-->
|
||||
|
||||
<!-- <div style="margin-top: 80px;">-->
|
||||
<!-- <table style="width: 375px; ">-->
|
||||
<!-- <tr style="vertical-align: top;font-weight: bold; background-color:#A28A29; color: white">-->
|
||||
<!-- <td style="width: 50px;">Sop-->
|
||||
<!-- </td>-->
|
||||
<!-- <td style="width: 325px;">Naam-->
|
||||
<!-- </td>-->
|
||||
<!-- </tr>-->
|
||||
<!-- </table>-->
|
||||
<!-- <p style="margin-top: 8px;">Ordening</p>-->
|
||||
<!--if orgsoort = 1 of 2-->
|
||||
<!-- <p>-->
|
||||
<!-- <i class="fa fa-check-square"-->
|
||||
<!-- style="color: #A28A29;"-->
|
||||
<!-- data-bind="click: $root.fToggleOrdening"></i>-->
|
||||
<!-- <span data-bind="click: $root.fToggleOrdening">per bestuur-->
|
||||
<!-- </span>-->
|
||||
<!-- </p>-->
|
||||
<!-- <p>-->
|
||||
<!-- <i class="fa fa-square"-->
|
||||
<!-- style="color: #A28A29;"-->
|
||||
<!-- data-bind="click: $root.fToggleOrdening"-->
|
||||
<!-- ></i>-->
|
||||
<!-- <span data-bind="click: $root.fToggleOrdening">alfabetisch-->
|
||||
<!-- </span>-->
|
||||
<!-- </p>-->
|
||||
<!---->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- ko if: keuzesoort() == 4 -->
|
||||
<table style="width: 375px;" data-bind="with: $root.selectedOrg()">
|
||||
<tr>
|
||||
<td style="width: 50px;"><button data-bind="visible: erIsEenSop()== true, click: $root.fOpenPDF"
|
||||
class="buttonCompact glyphicon glyphicon-open"
|
||||
style="background-color:#1aa3ff; height: 30px; width: 30px;">
|
||||
|
||||
</button>
|
||||
</td>
|
||||
<td style="width: 324px;"
|
||||
data-bind="text: brin + ' ' + naam">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- /ko -->
|
||||
<div class="row" data-bind="visible: orgsoort()== 4 ">
|
||||
<?php $this->load->view("monpas/compactsop/overzicht/_school"); ?>
|
||||
</div>
|
||||
|
||||
<!-- ko if: keuzesoort() == 3 -->
|
||||
<!-- ko if: orgsoort() == 3 -->
|
||||
<div class="row" ">
|
||||
<?php $this->load->view("monpas/compactsop/overzicht/_bestuur"); ?>
|
||||
</div>
|
||||
<!--/ko -->
|
||||
<div class="row" data-bind="visible: orgsoort()== 2 ">
|
||||
<?php $this->load->view("monpas/compactsop/overzicht/_regio"); ?>
|
||||
</div>
|
||||
<div class="row" data-bind="visible: orgsoort()== 1 ">
|
||||
<?php $this->load->view("monpas/compactsop/overzicht/_swv"); ?>
|
||||
</div>
|
||||
|
||||
<table style="width: 375px; border: 1px solid #A28A29;"
|
||||
data-bind="with: $root.selectedOrg()">
|
||||
<tbody data-bind="foreach: scholen">
|
||||
<tr >
|
||||
<td style="width: 50px;">
|
||||
<button data-bind="visible: erIsEenSop(), click: $root.fOpenPDF"
|
||||
class="buttonCompact glyphicon glyphicon-open"
|
||||
style="background-color:#1aa3ff; height: 30px; width: 30px;">
|
||||
</button>
|
||||
</td>
|
||||
<td style="width: 324px;"
|
||||
data-bind="text: brin + ' ' + naam">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- /ko -->
|
||||
|
||||
<!-- ko if: keuzesoort() == 2 && alfabetisch() == false -->
|
||||
<table style="width: 375px;" data-bind="with: $root.selectedOrg()">
|
||||
<tbody data-bind="foreach: bgs">
|
||||
<tr>
|
||||
<td style="vertical-align: top; background-color: #930f50; font-weight: bold; color: white"
|
||||
data-bind="text: naam"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table data-bind="foreach: scholen"
|
||||
style="border: 1px solid #930f50;margin-left: -3px; margin-right: -3px;" >
|
||||
<tr style="height: 35px;">
|
||||
<td style="width: 50px;">
|
||||
<button data-bind="visible: erIsEenSop(),
|
||||
click: $root.fOpenPDF"
|
||||
class="buttonCompact glyphicon glyphicon-open"
|
||||
style="background-color:#1aa3ff; height: 30px; width: 30px;">
|
||||
</button>
|
||||
</td>
|
||||
<td style="width: 325px;"
|
||||
data-bind="text: brin + ' ' + naam">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- /ko -->
|
||||
|
||||
<!-- ko if: alfabetisch() == false-->
|
||||
<table data-bind="with: $root.selectedOrg()">
|
||||
<thead>
|
||||
<tr>
|
||||
<!-- ko if: keuzesoort()== 1 -->
|
||||
<th>SWOP</th>
|
||||
<!-- /ko -->
|
||||
<!-- ko if: keuzesoort() < 3 -->
|
||||
<th>ROP</th>
|
||||
<!-- /ko -->
|
||||
<!-- ko if: keuzesoort() < 4 -->
|
||||
<th>BOB</th>
|
||||
<!-- /ko -->
|
||||
<th>SOP</th>
|
||||
<th>Organisatienaam</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- ko if: keuzesoort()== 1 -->
|
||||
<th style="width: 50px;">
|
||||
<button data-bind="visible: erIsEenSop(), click: $root.fOpenPDF"
|
||||
class="buttonCompact glyphicon glyphicon-open"
|
||||
style="background-color:#1aa3ff; height: 30px; width: 30px;">
|
||||
</button>
|
||||
</th>
|
||||
<!-- /ko -->
|
||||
<!-- ko if: keuzesoort() < 3 -->
|
||||
<th></th>
|
||||
<!-- /ko -->
|
||||
<!-- ko if: keuzesoort() < 4 -->
|
||||
<th></th>
|
||||
<!-- /ko -->
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
<tbody data-bind="foreach: kamers">
|
||||
<tr>
|
||||
<td style="vertical-align: top; background-color: #930f50; font-weight: bold; color: white"
|
||||
data-bind="text: naam"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table data-bind="foreach: bgs"
|
||||
style="border: 1px solid #930f50; margin-left: -3px; margin-right: -3px;">
|
||||
<tr>
|
||||
<td style=" vertical-align: top; background-color: #930f50; color: white"
|
||||
data-bind="text: brin + ' ' + naam"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td >
|
||||
<table data-bind="foreach: scholen" style="width:100%">
|
||||
<tr style="height: 35px;">
|
||||
<td style="width: 50px;">
|
||||
<button data-bind="visible: erIsEenSop(),
|
||||
click: $root.fOpenPDF"
|
||||
class="buttonCompact glyphicon glyphicon-open"
|
||||
style="background-color:#1aa3ff; height: 30px; width: 30px;">
|
||||
</button>
|
||||
</td>
|
||||
<td style="width: 315px;"
|
||||
data-bind="text: brin + ' ' + naam">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- /ko -->
|
||||
|
||||
<!-- ko if: (keuzesoort() == 1 || keuzesoort() == 2) && alfabetisch() == true -->
|
||||
|
||||
<table style="width: 375px; border: 1px solid #A28A29;"
|
||||
data-bind="with: $root.selectedOrg()">
|
||||
<tbody data-bind="foreach: scholen">
|
||||
<tr style="height: 35px;">
|
||||
<td style="width: 50px;">
|
||||
<button data-bind="visible: erIsEenSop(), click: $root.fOpenPDF"
|
||||
class="buttonCompact glyphicon glyphicon-open"
|
||||
style="background-color:#1aa3ff; height: 30px; width: 30px;">
|
||||
</button>
|
||||
</td>
|
||||
<td style="width: 324px;"
|
||||
data-bind="text: brin + ' ' + naam">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- /ko -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user