$html.= '-';
$html.= $this->html->link('>>', "$class/$id_next/");
$html.= '<br />';
+ $html.='<span style="float:right;">'.$this->html->render_barcode(BARCODE_PREFIX.strtoupper("$class/$id")).'</span>';
$html.= $this->html->link('edit', "$class/$id/edit/");
if($this->db->contains_history($class)) $html.= ' ][ '.$this->html->link('history', "$class/$id/history/");
- $html.='<br />'.$this->html->render_barcode(BARCODE_PREFIX.strtoupper("$class/$id"));
return $html;
}
$sklad = new Sklad_UI();
$sklad->process_http_request();
-echo("<hr/>");
+echo('<br style="clear:both;" /><hr />');
static function generate_barcode($string='EXAMPLE', $convert='png', $enctype='code128b') {
$string = escapeshellarg($string);
$enctype = escapeshellarg($enctype);
- $convert = $convert ? " | convert -colorspace gray -background white - $convert:-" : '';
+ $convert = $convert ? " | convert - -crop 0x60+0+30\\! -background white -flatten $convert:-" : '';
return shell_exec("barcode -e $enctype -E -b $string$convert");
}