|
Lines 1-66
Link Here
|
| 1 |
[% USE KohaDates %] |
1 |
[% USE KohaDates %] |
| 2 |
[% USE Koha %] |
2 |
[% USE Koha %] |
|
|
3 |
[% USE Asset %] |
| 4 |
[% SET footerjs = 1 %] |
| 3 |
[% SET link_opac_base = Koha.Preference( 'OPACBaseURL' ) %] |
5 |
[% SET link_opac_base = Koha.Preference( 'OPACBaseURL' ) %] |
| 4 |
[% SET link_opac = link_opac_base _ '/cgi-bin/koha/opac-cmspages.pl' %] |
6 |
[% SET link_opac = link_opac_base _ '/cgi-bin/koha/opac-cmspages.pl' %] |
| 5 |
[% INCLUDE 'doc-head-open.inc' %] |
7 |
[% INCLUDE 'doc-head-open.inc' %] |
| 6 |
<title>Koha › Tools › Pages</title> |
8 |
<title>Koha › Tools › Pages</title> |
| 7 |
[% INCLUDE 'doc-head-close.inc' %] |
9 |
[% INCLUDE 'doc-head-close.inc' %] |
| 8 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
10 |
[% Asset.css("css/datatables.css") %] |
| 9 |
[% INCLUDE 'datatables.inc' %] |
11 |
[% INCLUDE 'datatables.inc' %] |
| 10 |
<script type="text/javascript" src="[% interface %]/lib/tiny_mce/tiny_mce.js"></script> |
|
|
| 11 |
<script type="text/javascript">//<![CDATA[ |
| 12 |
$(document).ready(function() { |
| 13 |
$("#pages_table").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 14 |
"aoColumnDefs": [ |
| 15 |
{ "aTargets": [ 0, -1 ], "bSortable": false, "bSearchable": false }, |
| 16 |
], |
| 17 |
"sPaginationType": "full_numbers" |
| 18 |
})); |
| 19 |
|
| 20 |
$("#del_button").on("click",function(){ |
| 21 |
if ($("input[name='ids'][type='checkbox']:checked").length){ |
| 22 |
return confirmDelete(_("Are you sure you want to delete the selected page(s)?")); |
| 23 |
} else { |
| 24 |
alert(_("No pages have been selected.")); |
| 25 |
return false; |
| 26 |
} |
| 27 |
}); |
| 28 |
|
| 29 |
$(".del_single").on("click", function(){ |
| 30 |
return confirmDelete(_("Are you sure you want to delete this page?")); |
| 31 |
}); |
| 32 |
|
| 33 |
$(".SelectAll").on("click", function(){ |
| 34 |
$("input[name='ids'][type='checkbox']").prop("checked", true); |
| 35 |
}); |
| 36 |
|
| 37 |
$(".ClearAll").on("click", function(){ |
| 38 |
$("input[name='ids'][type='checkbox']").prop("checked", false); |
| 39 |
}); |
| 40 |
}); |
| 41 |
|
| 42 |
tinyMCE.init({ |
| 43 |
mode : "textareas", |
| 44 |
theme : "advanced", |
| 45 |
convert_urls : false, |
| 46 |
relative_urls : false, |
| 47 |
content_css : "[% themelang %]/css/tinymce.css", |
| 48 |
plugins : "table,save,advhr,advlink,searchreplace,print,contextmenu", |
| 49 |
theme_advanced_buttons1 : "save,|,bold,italic,|,cut,copy,paste,|,search,replace,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,|,link,unlink,anchor,cleanup,help,code,advhr,|,print", |
| 50 |
theme_advanced_buttons2 : "tablecontrols,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,|,visualaid,|,sub,sup,|,charmap", |
| 51 |
theme_advanced_buttons3 : "", |
| 52 |
theme_advanced_toolbar_location : "top", |
| 53 |
theme_advanced_toolbar_align : "left", |
| 54 |
theme_advanced_path_location : "bottom", |
| 55 |
theme_advanced_resizing : true, |
| 56 |
plugin_insertdate_dateFormat : "%Y-%m-%d", |
| 57 |
plugin_insertdate_timeFormat : "%H:%M:%S", |
| 58 |
apply_source_formatting : true, |
| 59 |
height : "300", |
| 60 |
width : "700" |
| 61 |
//]]> |
| 62 |
}); |
| 63 |
</script> |
| 64 |
</head> |
12 |
</head> |
| 65 |
<body id="tools_koha-content" class="tools"> |
13 |
<body id="tools_koha-content" class="tools"> |
| 66 |
[% INCLUDE 'header.inc' %] |
14 |
[% INCLUDE 'header.inc' %] |
|
Lines 323-326
tinyMCE.init({
Link Here
|
| 323 |
</div> |
271 |
</div> |
| 324 |
[% END %] |
272 |
[% END %] |
| 325 |
</div> |
273 |
</div> |
|
|
274 |
[% MACRO jsinclude BLOCK %] |
| 275 |
[% Asset.js("lib/tiny_mce/tiny_mce.js") %] |
| 276 |
<script type="text/javascript">//<![CDATA[ |
| 277 |
$(document).ready(function() { |
| 278 |
$("#pages_table").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 279 |
"aoColumnDefs": [ |
| 280 |
{ "aTargets": [ 0, -1 ], "bSortable": false, "bSearchable": false }, |
| 281 |
], |
| 282 |
"sPaginationType": "full_numbers" |
| 283 |
})); |
| 284 |
|
| 285 |
$("#del_button").on("click",function(){ |
| 286 |
if ($("input[name='ids'][type='checkbox']:checked").length){ |
| 287 |
return confirmDelete(_("Are you sure you want to delete the selected page(s)?")); |
| 288 |
} else { |
| 289 |
alert(_("No pages have been selected.")); |
| 290 |
return false; |
| 291 |
} |
| 292 |
}); |
| 293 |
|
| 294 |
$(".del_single").on("click", function(){ |
| 295 |
return confirmDelete(_("Are you sure you want to delete this page?")); |
| 296 |
}); |
| 297 |
|
| 298 |
$(".SelectAll").on("click", function(){ |
| 299 |
$("input[name='ids'][type='checkbox']").prop("checked", true); |
| 300 |
}); |
| 301 |
|
| 302 |
$(".ClearAll").on("click", function(){ |
| 303 |
$("input[name='ids'][type='checkbox']").prop("checked", false); |
| 304 |
}); |
| 305 |
}); |
| 306 |
|
| 307 |
tinyMCE.baseURL = "[% interface %]/lib/tiny_mce"; |
| 308 |
tinyMCE.init({ |
| 309 |
mode : "textareas", |
| 310 |
theme : "advanced", |
| 311 |
convert_urls : false, |
| 312 |
relative_urls : false, |
| 313 |
content_css : "[% interface %]/[% theme %]/css/tinymce.css", |
| 314 |
plugins : "table,save,advhr,advlink,searchreplace,print,contextmenu", |
| 315 |
theme_advanced_buttons1 : "save,|,bold,italic,|,cut,copy,paste,|,search,replace,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,|,link,unlink,anchor,cleanup,help,code,advhr,|,print", |
| 316 |
theme_advanced_buttons2 : "tablecontrols,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,|,visualaid,|,sub,sup,|,charmap", |
| 317 |
theme_advanced_buttons3 : "", |
| 318 |
theme_advanced_toolbar_location : "top", |
| 319 |
theme_advanced_toolbar_align : "left", |
| 320 |
theme_advanced_path_location : "bottom", |
| 321 |
theme_advanced_resizing : true, |
| 322 |
plugin_insertdate_dateFormat : "%Y-%m-%d", |
| 323 |
plugin_insertdate_timeFormat : "%H:%M:%S", |
| 324 |
apply_source_formatting : true, |
| 325 |
height : "300", |
| 326 |
width : "700" |
| 327 |
}); |
| 328 |
//]]> |
| 329 |
</script> |
| 330 |
[% END %] |
| 326 |
[% INCLUDE 'intranet-bottom.inc' %] |
331 |
[% INCLUDE 'intranet-bottom.inc' %] |
| 327 |
- |
|
|