"Fossies" - the Fresh Open Source Software Archive

Member "koha-19.11.15/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/EXAMPLE.tt" (23 Feb 2021, 1144 Bytes) of package /linux/misc/koha-19.11.15.tar.gz:


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 [% INCLUDE 'doc-head-open.inc' %]
    2 <title>Koha &rsaquo; Cataloguing &rsaquo; Framework plugin example</title>
    3 [% INCLUDE 'doc-head-close.inc' %]
    4 </head>
    5 
    6 <body id="EXAMPLE" class="cat" style="padding:1em;">
    7 <form name="f_pop" onsubmit="report()" action="">
    8 
    9 <h1>EXAMPLE plugin</h1>
   10 <p>Hi, you are looking at the result of launching the EXAMPLE plugin.</p>
   11 <p>I received this from you:</p>
   12 <input type="text" id="received" value="[% result | html %]" disabled />
   13 
   14 <p>I will pass back what you type here, if you press OK.</p>
   15 <input type="text" id="return" value="[% result | html %]" />
   16 <p>
   17     <input type="button" value="OK"  onclick="submitMyForm();" />
   18     <a href="#" class="cancel close">Cancel</a>
   19 </p>
   20 </form>
   21 
   22 <script>
   23     $(document).ready(function () {
   24         $('#return').focus();
   25     });
   26 
   27     // The following function just puts back the value of the input #return
   28     // into the caller's field, referenced by index. And closes the popup.
   29     function submitMyForm() {
   30         $(window.opener.document).find('#[% index | html %]').val($('#return').val() );
   31         window.close();
   32     }
   33 </script>
   34 
   35 [% INCLUDE 'popup-bottom.inc' %]