return $res; } } class text_node extends dom_node { public $text; function html() { return htmlspecialchars($this->text); } } class table_node extends dom_node { } //body printhead(); $textinp = new editor_text(); $checkbox = new editor_checkbox(); $dropdown = new editor_dropdown(); $textarea = new editor_textarea(); print "<div style='border: 1px solid black;'>"; print $textinp->into_div('tt', $_SESSION['tt']); print $textinp->into_div('tt1', $_SESSION['tt1']); print $checkbox->into_div('tt4', $_SESSION['tt4']); $dropdown->options = array("1" => 'option 1', "2" => 'option2', "3" => 'option3', "4" => 'option24'); print $dropdown->into_div('tt5', $_SESSION['tt5']); print $textarea->into_div('tt8', $_SESSION['tt8']); print "<div id=res></div>"; print "</div>"; print "<div style='width:100%;border:2px solid red;'>"; print "tetst";
<?php use Studip\Button, Studip\LinkButton; ?> <? if ($module_anker_target) : ?> <a name='anker'></a> <? endif ?> <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center"> <tr> <? printhead(0, 0, $module_link, $module_is_open ? 'open' : 'close', $module_is_new, $module_icon, '<a href="'.$module_link.'" class="tree">'.$module_title.'</a>', $module_source, $module_change_date) ?> </tr> </table> <? if ($module_is_open): ?> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <?php echo printcontent(0, 0, $module_description . ($module_buttons ? '<br><br>' . $module_buttons : ''), ''); ?> </tr> </table> <? endif ?>
function editElementHeadline ($element_real_name, $module_name, $config_id, $open = TRUE) { $icon = Icon::create('file-generic', 'clickable')->asImg(['class' => 'text-top']); if ($open) { $link = URLHelper::getLink('?com=close&mod=' . $module_name . '&edit=' . $this->element_name . '&config_id=' . $config_id . '#anker'); $open = "open"; } else { $link = URLHelper::getLink('?com=open&mod=' . $module_name . '&edit=' . $this->element_name . '&config_id=' . $config_id . '#anker'); $open = "close"; } $titel = $element_real_name; $titel = "<a class=\"tree\" href=\"$link\">$titel</a>"; if ($this->element_name == $this->edit_element) $titel .= "<a name=\"anker\"> </a>"; $out = "<tr><td class=\"blank\" width=\"100%\">\n"; $out .= "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"; $out .= "<tr>\n"; $out .= printhead(0, "", $link, $open, TRUE, $icon, $titel, "", 0, FALSE); $out .= "</tr></table>\n</td></tr>\n"; return $out; }
<? foreach ($documents as $document): ?> <table class="default"> <tr> <? printhead(0, 0, $document['link'], $document['is_open'], false, $document['icon'], $document['title'], $document['addon'], $document['chdate']); ?> </tr> <? if ($document['is_open'] === 'open'): ?> <tr> <td class="printcontent" width="22"> </td> <td class="printcontent" colspan="3"> <?php echo htmlReady($document['description'] ?: _('Keine Beschreibung vorhanden'), true, true); ?> <br> <br> <?php echo sprintf(_('<b>Dateigröße:</b> %u kB '), round($document['filesize'] / 1024)); ?> <?php echo sprintf(_('<b>Dateiname:</b> %s '), $document['filename']); ?> <? if ($document['protected']): ?> <?php echo MessageBox::info(_('Diese Datei ist urheberrechtlich geschützt'), array(_('Sie darf nur im Rahmen dieser Veranstaltung verwendet werden, jede weitere ' . 'Verbreitung ist strafbar!'))); ?> <? endif; ?> <div style="text-align: center;"> <div class="button-group"> <?php echo Studip\LinkButton::create(_('Herunterladen'), GetDownloadLink($document['dokument_id'], $document['filename'], $document['type'], 'force'));
$exstyle['.pb>div.code']['font-size'] = '18mm'; $exstyle['.pb>div.code']['margin-top'] = '0.5mm'; $exstyle['.pb>div.code']['margin-left'] = '-2mm'; // $exstyle['.pb>div.code']['margin-bottom']='0mm'; $exstyle['.pb>div.text']['height'] = '17mm'; $exstyle['.pb>div.text']['font-size'] = '3.31mm'; $exstyle['.pb>div.text']['margin-top'] = '1mm'; $exstyle['.pb>div.text']['line-height'] = '3.8mm'; // $exstyle['.pb>div.text'][] } if ($_GET['m'] == 1) { unset($exstyle['.pb']['page-break-before']); unset($exstyle['.pb']['page-break-after']); $exstyle['.pb']['margin'] = '5mm'; } printhead($exstyle); /* $create_querys['barcodes_raw']="CREATE TABLE barcodes_raw (id BIGINT, name VARCHAR(250), code VARCHAR(13), PRIMARY KEY (id),KEY (name),KEY (code))"; $create_querys['barcodes_print']="CREATE TABLE barcodes_print (id BIGINT, count BIGINT, PRIMARY KEY (id))"; */ if (!isset($_SESSION['current_task'])) { $_SESSION['current_task'] = 0; } $current_task = intval($_SESSION['current_task']); if ($_GET['forceid'] != '') { $forceid = " AND barcodes_print.id=" . $sql->esc($_GET['forceid']) . " "; } $result = $sql->query("SELECT barcodes_print.id,barcodes_raw.name,barcodes_print.`count`,barcodes_raw.code FROM barcodes_raw,barcodes_print WHERE count <> 0 AND barcodes_raw.id=barcodes_print.id AND barcodes_print.task=" . $current_task . $forceid . " ORDER BY name"); $sum = 0; $nim = 0; $skip = 0;
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <? printcontent("99%", FALSE, $xslt_printcontent, ""); ?> </tr> </table> <? } if (isset($result_printlink)) { ?> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <? printhead ("99%", FALSE, "", "open", true, ' ' . $result_printimage, $result_printlink, $result_printdesc); ?> </tr> </table> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <? printcontent("99%", FALSE, $result_printcontent, ""); ?> </tr> </table> <br> <? } if (isset($export_weiter_button)) {
if ($decimaldot != '.' && $columntypes[$col] == 'double') { $u = preg_replace("/[{$decimaldot}]/", '.', $u); } $u = mysql_escape_string($u); $vlist .= "'{$u}'"; } reset($tablecolumns); $query = "INSERT INTO `" . mysql_escape_string($table) . "` VALUES ({$vlist})"; mysql_query($query, $conn); // print $query."<br>"; } //header("Location: http://$host/"); print $query; exit; } printhead($table); print "<table><tr><form id=encanddelim action='http://{$host}{$extra}' method=get><input type=hidden name=file value='{$csv_file}'><input type=hidden name=table value='{$table}'><td>Кодировка: <select name=csvencoding onchange='document.getElementById(\"encanddelim\").submit();'><option value='UTF-8'"; if ($csvencoding == 'UTF-8') { print " selected"; } print ">UTF-8</option><option value='Windows-1251'"; if ($csvencoding == 'Windows-1251') { print " selected"; } print ">Windows-1251</option></select></td><td>Разделитель:<select name=csvdelimiter onchange='document.getElementById(\"encanddelim\").submit();'><option value=','"; if ($csvdelimiter == ',') { print " selected"; } print ">,</option><option value=';'"; if ($csvdelimiter == ';') { print " selected";
function ShowRow($icon, $link, $titel, $zusatz, $level='', $lines='', $weitere, $new=FALSE, $open="close", $content=FALSE, $edit='', $breite="99%") { ?><table border=0 cellpadding=0 cellspacing=0 width="99%" align="center"> <tr> <td class="blank tree-indent" valign="top" nowrap><? if (!$content) $content=_("Keine Beschreibung"); //Struktur darstellen $striche = ""; for ($i=0;$i<$level;$i++) { if ($i==($level-1)) { if ($this->lines[$i+1]>1) $striche.= Assets::img('forumstrich3.gif'); //Kreuzung else $striche.= Assets::img('forumstrich2.gif'); //abknickend $this->lines[$i+1] -= 1; } else { if ($this->lines[$i+1]==0) $striche .= Assets::img('forumleer.gif'); //Leerzelle else $striche .= Assets::img('forumstrich.gif'); //Strich } } echo $striche; ?></td> <? //Kofzeile ausgeben printhead ($breite, 0, $link, $open, $new, $icon, $titel, $zusatz); ?> </tr> </table> <? //weiter zur Contentzeile if ($open=="open") { ?><table width="99%" cellpadding=0 cellspacing=0 border=0 align="center"> <tr> <? //wiederum Striche fuer Struktur ?><td class="blank" nowrap background="<?php echo Assets::image_path('forumleer.gif'); ?> "></td> <? $striche=''; if ($level) for ($i=1;$i<=$level;$i++) { if ($this->lines[$i]==0) { $striche.= "<td class=\"blank tree-indent\" nowrap background=\"" . Assets::image_path('forumleer.gif') . "\">"; $striche.= Assets::img('forumleer.gif'); $striche.= "</td>"; } else { $striche.= "<td class=\"blank tree-indent\" nowrap background=\"" . Assets::image_path('forumstrich.gif') . "\">"; $striche.= Assets::img('forumleer2.gif'); $striche.= "</td>"; } } if ($weitere) { $striche.= "<td class=\"blank tree-indent\" nowrap background=\"" . Assets::image_path('forumstrichgrau.gif') . "\">"; $striche.= Assets::img('forumleer.gif'); $striche.= "</td>"; } else { $striche.= "<td class=\"blank tree-indent\" nowrap background-color: #f3f5f8\">"; $striche.= Assets::img('forumleer.gif'); $striche.= "</td>"; } echo $striche; //Contenzeile ausgeben printcontent ($breite, FALSE, $content, $edit); ?> </tr> </table> <? } }
/** * Print a wiki page header including printhead-bar with page name and * last change info. * **/ function wikiSinglePageHeader($wikiData, $keyword) { $zusatz=getZusatz($wikiData); begin_blank_table(); printhead(0, 0, FALSE, "icon-wiki", FALSE, "", "<b>" . htmlReady($keyword) ."</b>", $zusatz); end_blank_table(); }
</td> </tr> </thead> <tbody> <? if (empty($files[$index])): ?> <tr> <td colspan="4" class="printhead" style="text-align: center;"> <?php echo _('Keine Dateien vorhanden'); ?> </td> </tr> <? endif; ?> <? foreach ($files[$index] as $file): ?> <tr> <? printhead(0, 0, false, $file['is_open'], false, ' ', $file['title'], $file['addon'], 0); ?> </tr> <? if ($file['is_open'] == 'open'): ?> <tr> <td class="printcontent"> </td> <td class="printcontent" colspan="3"> <div style="margin-bottom: 10px;"> <b> <a href="<?php echo URLHelper::getLink($section['link'], array('auswahl' => $file['id'])); ?> "> <?php echo Icon::create('files', 'clickable')->asImg(); ?>