Example #1
0
         <a name="show" href="form.php?class_name=bc_label_request&<?php 
echo "mode={$mode}";
?>
" class="show document_id bc_label_request_id">
          <i class="fa fa-refresh"></i></a> 
        </li>
        <li><?php 
$f->l_select_field_from_object('sys_printer_id', sys_printer::find_all(), 'sys_printer_id', 'printer_name', ${$class}->sys_printer_id, 'sys_printer_id', '', '', 1);
?>
 					</li>
        <li><?php 
$f->l_select_field_from_object('transaction_type_id', transaction_type::find_all(), 'transaction_type_id', 'transaction_type', ${$class}->transaction_type_id, 'transaction_type_id', '', '', 1);
?>
        </li>
        <li><?php 
$f->l_select_field_from_object('bc_label_format_header_id', bc_label_format_header::find_all(), 'bc_label_format_header_id', 'format_name', ${$class}->bc_label_format_header_id, 'bc_label_format_header_id', '', '', 1);
?>
              </li>
        <li><?php 
$f->l_text_field_d('status');
?>
 					</li>
        <li><label><?php 
echo gettext('No Of Copies');
?>
</label><?php 
echo $f->text_field_ap(array('name' => 'no_of_copies', 'value' => '', 'id' => 'no_of_copies'));
?>
 					</li>
        <li><label><?php 
echo gettext('Label');
Example #2
0
         $bc_lr->bc_label_format_header_id = $sl->bc_label_format_header_id;
         $xml_content = $bc_lr->generate_label($data_obj);
         $bc_lr->print_XMLlabel($xml_content);
     }
     $err_msg .= '<br>Label is Successfullyprinted';
 } else {
     if (!empty($data_obj_a)) {
         $bc_lr = new bc_label_request();
         $bc_lr->sys_printer_id = $sl->sys_printer_id;
         $bc_lr->bc_label_format_header_id = $sl->bc_label_format_header_id;
         $xml_content = $bc_lr->generate_label($data_obj_a);
         $bc_lr->print_XMLlabel($xml_content);
         $err_msg .= '<br>Label is Successfullyprinted';
     }
 }
 $lbl_frmt_hdr = bc_label_format_header::find_by_id($sl->bc_label_format_header_id);
 if (!empty($lbl_frmt_hdr->generator_class_name) && !empty($lbl_frmt_hdr->generator_function_name)) {
     $class_gl = $lbl_frmt_hdr->generator_class_name;
     ${$class_gl} = new $class_gl();
     if (method_exists(${$class_gl}, $lbl_frmt_hdr->generator_function_name)) {
         $xml_content_rtn = call_user_func(array(${$class_gl}, $lbl_frmt_hdr->generator_function_name), $_GET);
         $bc_lr = new bc_label_request();
         $bc_lr->sys_printer_id = $sl->sys_printer_id;
         $bc_lr->bc_label_format_header_id = $sl->bc_label_format_header_id;
         if (is_array($xml_content_rtn)) {
             foreach ($xml_content_rtn as $xml_content) {
                 $bc_lr->print_XMLlabel($xml_content);
             }
         } else {
             $bc_lr->print_XMLlabel($xml_content_rtn);
         }
Example #3
0
     <ul class="column header_field">
      <li><?php 
$f->l_text_field_dr_withSearch('bc_label_format_header_id');
?>
       <a name="show" href="form.php?class_name=bc_label_format_header&<?php 
echo "mode={$mode}";
?>
" class="show document_id bc_label_format_header_id">
        <i class="fa fa-refresh"></i></a> 
      </li>
      <li><?php 
$f->l_text_field_d('format_name');
?>
</li>
      <li><?php 
$f->l_select_field_from_object('label_type', bc_label_format_header::label_type(), 'option_line_code', 'option_line_value', ${$class}->label_type);
?>
</li>
      <li><?php 
$f->l_date_fieldFromToday('disable_date', ${$class}->disable_date);
?>
</li>
      <li><?php 
$f->l_text_field_d('description');
?>
</li>
      <li><?php 
$f->l_checkBox_field_d('default_cb');
?>
</li>
     </ul>