| 
      
            Lines 1-7
          
      
      
        Link Here
      
     | 
  
        
          | 1 | 
              [% INCLUDE 'doc-head-open.inc' %]  | 
          1 | 
              [% INCLUDE 'doc-head-open.inc' %]  | 
        
        
          | 2 | 
              <title>Koha › Tools › Patron Cards › Patron Card Printing/Exporting</title>  | 
          2 | 
              <title>Koha › Tools › Patron Cards › Patron Card Printing/Exporting</title>  | 
        
        
          | 3 | 
              [% INCLUDE 'doc-head-close.inc' %]  | 
          3 | 
              [% INCLUDE 'doc-head-close.inc' %]  | 
        
          
            
              | 4 | 
                  <script type="text/JavaScript" language="JavaScript">  | 
              4 | 
                  <script type="text/javascript">  | 
            
        
          | 5 | 
                  //<![CDATA[  | 
          5 | 
                  //<![CDATA[  | 
        
        
          | 6 | 
                      function Done() { | 
          6 | 
                      function Done() { | 
        
        
          | 7 | 
                          window.location = "[% referer %]";  | 
          7 | 
                          window.location = "[% referer %]";  | 
        
  
    | 
      
            Lines 9-80
          
      
      
        Link Here
      
     | 
  
        
          | 9 | 
                  //]]>  | 
          9 | 
                  //]]>  | 
        
        
          | 10 | 
              </script>  | 
          10 | 
              </script>  | 
        
        
          | 11 | 
              <style type="text/css">#custom-doc {width:47.23em; *width:46.04em; min-width:610px; margin:auto; margin-top:0.4em;}</style> | 
          11 | 
              <style type="text/css">#custom-doc {width:47.23em; *width:46.04em; min-width:610px; margin:auto; margin-top:0.4em;}</style> | 
        
            
              | 12 | 
                  <style type="text/css">table {border-collapse: separate; border-spacing: 0; border: hidden none;} .header {cursor: auto; background-position: center center; background-repeat: repeat;} .tr {border-collapse: separate;}</style> | 
               | 
               | 
            
        
          | 13 | 
          </head>  | 
          12 | 
          </head>  | 
        
        
          | 14 | 
          <body>  | 
          13 | 
          <body>  | 
        
        
          | 15 | 
              <div id="custom-doc" class="yui-t2">  | 
          14 | 
              <div id="custom-doc" class="yui-t2">  | 
        
        
          | 16 | 
                  <div id="bd">  | 
          15 | 
                  <div id="bd">  | 
        
        
          | 17 | 
                      [% IF ( batches ) %]  | 
          16 | 
                      [% IF ( batches ) %]  | 
        
        
          | 18 | 
                      <form>  | 
          17 | 
                      <form>  | 
        
          
            
              | 19 | 
                              <div align="center">  | 
              18 | 
                              <h3>Click on the following link(s) to download the exported batch(es).</h3>  | 
            
            
              | 20 | 
                                  <div class="message">  | 
              19 | 
                                  <fieldset>  | 
            
            
              | 21 | 
                                      <b>Click on the following link(s) to download the exported batch(es).</b>  | 
              20 | 
                                  [% FOREACH batche IN batches %]  | 
            
            
              | 22 | 
                                  </div>  | 
              21 | 
                                      [% IF ( batche.label_ids ) %]  | 
            
            
              | 23 | 
                              </div>  | 
              22 | 
                                      <legend>[% batche.card_count %] Single Patron Cards</legend>  | 
            
            
              | 24 | 
                              <fieldset class="rows">  | 
              23 | 
                                      <p>  | 
            
            
              | 25 | 
                                  <table class="borderless">  | 
              24 | 
                                              <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script %]?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_card=[% batche.start_card %][% batche.label_ids %]">label_single_[% batche.card_count %].pdf</a>  | 
            
            
              | 26 | 
                                      [% FOREACH batche IN batches %]  | 
              25 | 
                                      </p>  | 
            
            
              | 27 | 
                                      <tr>  | 
              26 | 
                                      [% ELSIF ( batche.borrower_numbers ) %]  | 
            
            
              | 28 | 
                                          [% IF ( batche.label_ids ) %]  | 
              27 | 
                                      <legend>[% batche.card_count %] Single Patron Cards</legend>  | 
            
            
              | 29 | 
                                          <td class="borderless">  | 
              28 | 
                                      <p>  | 
            
            
              | 30 | 
                                              [% batche.card_count %] Single Patron Cards  | 
              29 | 
                                              <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script %]?template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_card=[% batche.start_card %][% batche.borrower_numbers %]">label_single_[% batche.card_count %].pdf</a>  | 
            
            
              | 31 | 
                                          </td>  | 
              30 | 
                                      </p>  | 
            
            
              | 32 | 
                                          <td class="borderless">  | 
              31 | 
                                      [% ELSE %]  | 
            
            
              | 33 | 
                                              <h1 id="pdf">  | 
              32 | 
                                      <legend>Card Batch Number [% batche.batch_id %]</legend>  | 
            
            
              | 34 | 
                                                  <a href="/cgi-bin/koha/patroncards/[% batche.create_script %]?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_card=[% batche.start_card %][% batche.label_ids %]">label_single_[% batche.card_count %].pdf</a>  | 
              33 | 
                                      <p>  | 
            
            
              | 35 | 
                                              </h1>  | 
              34 | 
                                              <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_card=[% batche.start_card %]">label_batch_[% batche.batch_id %].pdf</a>  | 
            
            
              | 36 | 
                                          </td>  | 
              35 | 
                                      </p>  | 
            
            
              | 37 | 
                                          [% ELSIF ( batche.borrower_numbers ) %]  | 
               | 
               | 
            
            
              | 38 | 
                                          <td class="borderless">  | 
            
            
              | 39 | 
                                              [% batche.card_count %] Single Patron Cards  | 
            
            
              | 40 | 
                                          </td>  | 
            
            
              | 41 | 
                                          <td class="borderless">  | 
            
            
              | 42 | 
                                              <h1 id="pdf">  | 
            
            
              | 43 | 
                                                  <a href="/cgi-bin/koha/patroncards/[% batche.create_script %]?template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_card=[% batche.start_card %][% batche.borrower_numbers %]">label_single_[% batche.card_count %].pdf</a>  | 
            
            
              | 44 | 
                                              </h1>  | 
            
            
              | 45 | 
                                          </td>  | 
            
            
              | 46 | 
                                          [% ELSE %]  | 
            
            
              | 47 | 
                                          <td class="borderless">  | 
            
            
              | 48 | 
                                              Card Batch Number [% batche.batch_id %]  | 
            
            
              | 49 | 
                                          </td>  | 
            
            
              | 50 | 
                                          <td class="borderless">  | 
            
            
              | 51 | 
                                              <h1 id="pdf">  | 
            
            
              | 52 | 
                                                  <a href="/cgi-bin/koha/patroncards/create-pdf.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_card=[% batche.start_card %]">label_batch_[% batche.batch_id %].pdf</a>  | 
            
            
              | 53 | 
                                              </h1>  | 
            
            
              | 54 | 
                                          </td>  | 
            
            
              | 55 | 
                                          [% END %]  | 
            
            
              | 56 | 
                                      </tr>  | 
            
        
          | 57 | 
                                  [% END %]  | 
          36 | 
                                  [% END %]  | 
        
          
            
              | 58 | 
                                  </table>  | 
              37 | 
                                  [% END %]  | 
            
            
              | 59 | 
                              </fieldset>  | 
              38 | 
                                  </fieldset>  | 
            
            
               | 
               | 
              39 | 
               | 
            
        
          | 60 | 
                          <fieldset class="action">  | 
          40 | 
                          <fieldset class="action">  | 
        
          
            
              | 61 | 
                                  <div style="margin: 10px 10px 10px 0px;">  | 
              41 | 
                                  <input type="button" class="submit" id="done" onclick="parent.parent.GB_hide();" value="Done" />  | 
            
            
              | 62 | 
                                      <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="done" onclick="parent.parent.GB_hide();" value="Done"></span></span>  | 
               | 
               | 
            
            
              | 63 | 
                                  </div>  | 
            
        
          | 64 | 
                          </fieldset>  | 
          42 | 
                          </fieldset>  | 
        
        
          | 65 | 
                      </form>  | 
          43 | 
                      </form>  | 
        
        
          | 66 | 
                      [% ELSE %]  | 
          44 | 
                      [% ELSE %]  | 
        
          
            
              | 67 | 
                          <div align="center">  | 
              45 | 
                          <h3>  | 
            
            
              | 68 | 
                              <div class="message">  | 
               | 
               | 
            
        
          | 69 | 
                              [% IF ( label_ids ) %]  | 
          46 | 
                              [% IF ( label_ids ) %]  | 
        
          
            
              | 70 | 
                                  <b>Exporting [% card_count %] patroncard(s).</b>  | 
              47 | 
                                      [% IF ( card_count == 1 ) %]Exporting [% card_count %] patroncard[% ELSE %]Exporting [% card_count %] patroncards[% END %]  | 
            
        
          | 71 | 
                              [% ELSIF ( borrower_numbers ) %]  | 
          48 | 
                              [% ELSIF ( borrower_numbers ) %]  | 
        
          
            
              | 72 | 
                                  <b>Exporting [% borrower_count %] patroncard(s).</b>  | 
              49 | 
                                      [% IF ( borrower_count == 1 ) %]Exporting [% borrower_count %] patroncard[% ELSE %]Exporting [% borrower_count %] patroncards[% END %]  | 
            
        
          | 73 | 
                              [% ELSE %]  | 
          50 | 
                              [% ELSE %]  | 
        
          
            
              | 74 | 
                                  <b>[% multi_batch_count %] batch(es) to export.</b>  | 
              51 | 
                                      [% IF ( multi_batch_count == 1 ) %][% multi_batch_count %] batch to export[% ELSE %][% multi_batch_count %] batches to export[% END %]  | 
            
        
          | 75 | 
                              [% END %]  | 
          52 | 
                              [% END %]  | 
        
          
            
              | 76 | 
                              </div>  | 
              53 | 
                          </h3>  | 
            
            
              | 77 | 
                          </div>  | 
               | 
               | 
            
        
          | 78 | 
                      <form name="exporting" method="post" action="/cgi-bin/koha/patroncards/print.pl">  | 
          54 | 
                      <form name="exporting" method="post" action="/cgi-bin/koha/patroncards/print.pl">  | 
        
        
          | 79 | 
                          <input type="hidden" name="op" value="export" />  | 
          55 | 
                          <input type="hidden" name="op" value="export" />  | 
        
        
          | 80 | 
                          <input type="hidden" name="referer" value="[% referer %]" />  | 
          56 | 
                          <input type="hidden" name="referer" value="[% referer %]" />  | 
        
  
    | 
      
            Lines 88-135
          
      
      
        Link Here
      
     | 
  
        
          | 88 | 
                              <input type="hidden" name="borrower_number" value="[% borrower_number.borrower_number %]" />  | 
          64 | 
                              <input type="hidden" name="borrower_number" value="[% borrower_number.borrower_number %]" />  | 
        
        
          | 89 | 
                          [% END %]  | 
          65 | 
                          [% END %]  | 
        
        
          | 90 | 
                          <fieldset class="rows">  | 
          66 | 
                          <fieldset class="rows">  | 
        
          
            
              | 91 | 
                                  <table class="borderless">  | 
              67 | 
                                  <ol>  | 
            
            
              | 92 | 
                                      <tr>  | 
              68 | 
                                      <li>  | 
            
            
              | 93 | 
                                          <td class="borderless">  | 
              69 | 
                                          <label style="width:9em" for="template_id">Select a template to be applied: </label>  | 
            
            
              | 94 | 
                                              <label for="template">Select a template to be applied: </label>  | 
              70 | 
                                          <select name="template_id" id="template_id">  | 
            
            
              | 95 | 
                                          </td>  | 
              71 | 
                                              [% FOREACH template IN templates %]  | 
            
            
              | 96 | 
                                          <td class="borderless">  | 
              72 | 
                                              <option value="[% template.template_id %]">[% template.template_code %]</option>  | 
            
            
              | 97 | 
                                              <select name="template_id">  | 
              73 | 
                                              [% END %]  | 
            
            
              | 98 | 
                                                  [% FOREACH template IN templates %]  | 
              74 | 
                                          </select>  | 
            
            
              | 99 | 
                                                  <option value="[% template.template_id %]">[% template.template_code %]</option>  | 
              75 | 
                                      </li>  | 
            
            
              | 100 | 
                                                  [% END %]  | 
              76 | 
                                      <li>  | 
            
            
              | 101 | 
                                              </select>  | 
              77 | 
                                          <label style="width:9em" for="layout_id">Select a layout to be applied: </label>  | 
            
            
              | 102 | 
                                          </td>  | 
              78 | 
                                          <select name="layout_id" id="layout_id">  | 
            
            
              | 103 | 
                                      </tr>  | 
              79 | 
                                              [% FOREACH layout IN layouts %]  | 
            
            
              | 104 | 
                                      <tr>  | 
              80 | 
                                              <option value="[% layout.layout_id %]">[% layout.layout_name %]</option>  | 
            
            
              | 105 | 
                                          <td class="borderless">  | 
              81 | 
                                              [% END %]  | 
            
            
              | 106 | 
                                              <label for="layout">Select a layout to be applied: </label>  | 
              82 | 
                                          </select>  | 
            
            
              | 107 | 
                                          </td>  | 
              83 | 
                                      </li>  | 
            
            
              | 108 | 
                                          <td class="borderless">  | 
              84 | 
                                      <li>  | 
            
            
              | 109 | 
                                              <select name="layout_id">  | 
              85 | 
                                          <label style="width:9em" for="start_card">Enter starting card number: </label>  | 
            
            
              | 110 | 
                                                  [% FOREACH layout IN layouts %]  | 
              86 | 
                                          <input type="text" size="5" id="start_card" name="start_card" class="focus" title="Starting card number" value="1" />  | 
            
            
              | 111 | 
                                                  <option value="[% layout.layout_id %]">[% layout.layout_name %]</option>  | 
              87 | 
                                      </li>  | 
            
            
              | 112 | 
                                                  [% END %]  | 
              88 | 
                                  </ol>  | 
            
            
              | 113 | 
                                              </select>  | 
               | 
               | 
            
            
              | 114 | 
                                          </td>  | 
            
            
              | 115 | 
                                      </tr>  | 
            
            
              | 116 | 
                                      <tr>  | 
            
            
              | 117 | 
                                          <td class="borderless">  | 
            
            
              | 118 | 
                                              <label for="start_card">Enter starting card number: </label>  | 
            
            
              | 119 | 
                                          </td>  | 
            
            
              | 120 | 
                                          <td class="borderless">  | 
            
            
              | 121 | 
                                              <input type="text" size="5" id="start_card" name="start_card" class="focus" title="Starting card number" value="1"/>  | 
            
            
              | 122 | 
                                          </td>  | 
            
            
              | 123 | 
                                      </tr>  | 
            
            
              | 124 | 
                                  </table>  | 
            
        
          | 125 | 
                          </fieldset>  | 
          89 | 
                          </fieldset>  | 
        
        
          | 126 | 
                          <fieldset class="action">  | 
          90 | 
                          <fieldset class="action">  | 
        
          
            
              | 127 | 
                                  <div style="margin: 10px 10px 10px 0px;">  | 
              91 | 
                                  <input type="submit" class="submit" value="Export" />  | 
            
            
              | 128 | 
                                      <span class="yui-button yui-link-button"><span class="first-child"><input type="submit" value="Export" /></span></span>  | 
              92 | 
                                  <a href="#" class="cancel" id="done" onclick="parent.parent.GB_hide();">Cancel</a>  | 
            
            
              | 129 | 
                                      <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="done" onclick="parent.parent.GB_hide();" value="Cancel"></span></span>  | 
               | 
               | 
            
            
              | 130 | 
                                  </div>  | 
            
        
          | 131 | 
                          </fieldset>  | 
          93 | 
                          </fieldset>  | 
        
        
          | 132 | 
                      </form>  | 
          94 | 
                      </form>  | 
        
        
          | 133 | 
                      [% END %]  | 
          95 | 
                      [% END %]  | 
        
        
          | 134 | 
                  </div>  | 
          96 | 
                  </div>  | 
        
          
            
              | 135 | 
                  [% INCLUDE 'intranet-bottom.inc' %]  | 
              97 | 
                  [% INCLUDE 'popup-bottom.inc' %]  |