X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=index.php;h=a2423df11502a2f1d3fc6fbe53456338784269e1;hb=089455c423877b487c5a3cab087136bb4a505984;hp=ec062faa29d7c65b0884ed76a1b54c2abd90aebc;hpb=35916247a3b7ed49d0dc758ebdf76cf636763d2c;p=mirrors%2FSokoMan.git
diff --git a/index.php b/index.php
index ec062fa..a2423df 100755
--- a/index.php
+++ b/index.php
@@ -23,6 +23,7 @@ set_include_path(DIR_LIB.PATH_SEPARATOR.get_include_path());
require_once('Sklad_LMS-fake.class.php');
require_once('HTTP_Auth.class.php');
require_once('Locale.class.php');
+require_once('Barcode.class.php');
/**
* Trida poskytuje vseobecne funkce pro generovani HTML kodu
@@ -57,13 +58,15 @@ class HTML {
return $html;
}
- function link($title='n/a', $link='#void', $internal=true) {
+ function link($title='n/a', $link='#void', $internal=true, $translate=true) {
if($internal && (!isset($link[0]) || $link[0] != '#')) $link = $this->internal_url($link);
- return "".T($title)."";
+ if($translate) $title = T($title);
+ return "".$title."";
}
- function img($src='#void', $title='img') {
- return "";
+ function img($src='#void', $title='img', $options='width=64') {
+ $options = $options ? " $options" : '';
+ return "
";
}
function input($name=false, $value=false, $type='text', $placeholder=false, $options=false, $prefix='') {
@@ -125,6 +128,14 @@ class HTML {
$options = $options ? " $options" : '';
return "