function loadItems() { $tpls = array('' => _('zvol ze seznamu')); $stemplate = new IEStemplate(); $templates = $stemplate->getColumnsFromMySQL(array($stemplate->getmyKeyColumn(), $stemplate->nameColumn)); foreach ($templates as $template_id => $template_info) { $tpls[$template_info[$stemplate->myKeyColumn]] = $template_info[$stemplate->nameColumn]; } return $tpls; }