Files
2021-07-10 16:25:16 +02:00

127 lines
4.6 KiB
PHP

<div id="extrainfo-pagina">
<?php $this->load->view("ijkpartituur/popups/popUploadADoc"); ?>
<div style="float:left;width: 370px">
<input type=radio name='raSoort' value= 1
data-bind="checked: welkeSoort,
click: fgetRefs"
checked: checked />
<span style='font-family: Mooischrijf;font-size:0.9em' > Literatuur & websites </span><br />
<input type=radio name='raSoort' value= 3
data-bind="checked: welkeSoort,
click:fgetRefs" />
<span style='font-family: Mooischrijf;font-size:0.9em;' > Onderzoek & advies </span><br />
</div>
<div style="float:left; width: 400px; padding-top:5px">
<span > Zoek op naam: <input data-bind="value:zoektekst, event:{change:fgetRefs}" /> </span>
</div>
<div class="clearfix"></div>
<!-- ko if: isAdmin() -->
<table class="lstable" style="width:905px">
<thead>
<tr>
<td style="width: 25px; background-color:#975796; color:#fff;"></td>
<td style ="width: 250px;background-color:#975796; color:#fff;;"> naam</td>
<td style= "width: 20px;background-color:#975796; color:#fff;"></td>
<td style="width: 240px; background-color:#975796; color:#fff;"> link/document</td>
<td style="width: 250px;background-color:#975796; color:#fff;">opmerking</td>
<td style="width: 60px;background-color:#975796; color:#fff;text-align:center"> srt.</td>
<td style="width: 60px; background-color:#975796; color:#fff;"></td>
</tr>
</thead>
</table>
<div style="height: 455px; overflow-y:scroll;">
<table class="lstable" style="width:905px">
<colgroup>
<col span ="7" style="text-align:left; vertical-align:top; ">
</colgroup>
<tbody data-bind="foreach: litrefs" >
<tr>
<td style="width: 25px">
<button
class="delete"
data-bind="click: $parent.fDelLitRef">
</button>
</td>
<td style="width: 250px;">
<textarea style="width:100%"
data-bind=" value: naam,
enable: $parent.isAdmin(),
event: {change: $parent.fsaveRef} ">
</textarea>
</td>
<td style="width: 20px; text-align:center">
<a data-bind=" visible: srtlink() == 'url' ,
attr:{href:link}" target = "_blank"><b>&darr;</b> </a>
<b data-bind=" visible: srtlink() == 'file' ,
click: $parent.fDownload" class="icon-arrow-down" >&darr;</b>
</td>
<td style="width:240px; padding-left:0px;">
<textarea style="width:98%; margin-left:0px"
data-bind=" value: link,
enable: !(srtlink() =='file'),
event: {change: $parent.fsaveRef} ">
</textarea>
</td>
<td style="width:260px">
<textarea style="width:99%"
data-bind=" value: opmerking,
event: {change: $parent.fsaveRef} ">
</textarea>
</td>
<td style="width: 60px; text-align: center" data-bind="text: srtlink"> </td>
<td style="width:60px;">
<button class="onwhite"
data-bind="click: $parent.fUpload,
enable: (srtlink()=='file' || srtlink()=='ext.ref')">upload</button>
</td>
</tr>
</tbody>
</table>
</div>
<!-- /ko -->
<!-- ko if: (!isAdmin()) -->
<table style="border-collapse:collapse; cellspacing:0px;margin-left: 20px">
<thead>
<tr>
<td style="background-color:#975796; color:#fff; width:15px"></td>
<td style ="background-color:#975796; color:#fff; width:345px">naam</td>
<td style="background-color:#975796; color:#fff;width:550px">opmerking</td>
</tr>
</thead>
</table>
<div style="height: 455px; overflow-y:scroll;">
<table style="border-collapse:collapse; cellspacing:0px; margin-left: 20px">
<tbody data-bind="foreach: litrefs" >
<tr style="border-bottom: 1px solid #ebebeb">
<td style="width:15px;"
data-bind="click: $parent.fDownload ">
<i class="icon-file" data-bind="visible:(srtlink() =='file' ) "></i>
</td>
<td style="width:345px; vertical-align:top; ">
<!-- ko if: (srtlink() == "url" ) -->
<a data-bind=" text: show(),
attr:{href:link}"
target = "_blank">
</a>
<!-- /ko -->
<!-- ko if: (srtlink() !="url" ) -->
<span data-bind="text:show()"> </span>
<!-- /ko -->
</td>
<td style="width:550px ; vertical-align:top; "
data-bind="text: opmerking ">
</td>
</tr>
</tbody>
</table>
</div>
<!-- /ko -->
<button style="margin-left:5px"
class="onwhite "
data-bind="visible: isAdmin(),
click: fNewLitRef"> nieuw </button>
</div>