function renderHtml() { $db = $this->db; if (!empty($_GET['sletbillede']) and is_numeric($_GET['sletbillede'])) { $fields = array('date_updated', 'pic_id'); $values = array('NOW()', 0); $sth = $db->autoPrepare('langtkursus_fag', $fields, DB_AUTOQUERY_UPDATE, 'id = ' . $this->name()); $res = $db->execute($sth, $values); if (PEAR::isError($res)) { echo $res->getMessage(); } } $f*g = new VIH_Model_Fag($this->name()); $file = new VIH_FileHandler($f*g->get('pic_id')); if ($file->get('id') > 0) { $file->loadInstance('small'); $extra_html = $file->getImageHtml(); if (!empty($extra_html)) { $extra_html .= ' <br /><a href="?sletbillede=' . $f*g->get('pic_id') . '">slet billede</a>'; } } if (empty($extra_html)) { $extra_html = $this->getForm()->toHTML(); } $this->document->setTitle('F*g: ' . $f*g->get('navn')); $this->document->addOption('Kurser', $this->url('../../langekurser')); $this->document->addOption('Fagoversigt', $this->context->url()); $this->document->addOption('Ret', $this->url('edit')); return '<div>' . autoop($f*g->get('beskrivelse')) . '</div>' . $extra_html; }
function renderHtml() { $title = 'Elevchat'; $meta['description'] = 'Her kan du stille spørgsmål til elever.'; $meta['keywords'] = 'elevchat, feedback, debat, dialog'; $elevchattere = VIH_Model_Ansat::getList('elevchatter'); if (count($elevchattere) == 0) { return '<h1>Elevchat</h1><p>Vi har i øjeblikket ikke nogen elevchattere. Du kan skrive til en af <a href="' . $this->url('/underviser') . '">lærerne</a> eller til <a href="' . $this->url('/kontakt') . '">kontoret</a>.</p>'; } $file = new VIH_FileHandler($elevchattere[0]->get('pic_id')); $file->loadInstance('small'); $pic_uri = $file->getImageHtml(); $file->loadInstance(IMAGE_POPUP_SIZE); // Oplysninger om Elevchatter $this->elevchatter['navn'] = $elevchattere[0]->get('navn'); $this->elevchatter['email'] = $elevchattere[0]->get('email'); $this->elevchatter['billede'] = $pic_uri; $this->elevchatter['text'] = $elevchattere[0]->get('beskrivelse'); $msg = ''; $extra_text = ''; $this->document->setTitle($title); $this->document->headline = $title; $this->document->meta = $meta; return '<h1>Elevchat</h1>' . $msg . autoop($this->elevchatter['text']) . ($extra_text = '<h2>Send en besked</h2>' . $this->getForm()->toHTML()); //$main->set('content_sub', '<a rel="lightbox" title="'.$elevchatter['navn'].'" href="'.$file->get('file_uri').'">' . $elevchatter['billede'] . '</a>'); }
function GET() { $title = 'Om hjemmesiden'; $meta['description'] = 'Oplysninger informationspolitik og informationsstrategi - herunder om aktualitet og opdatering.'; $meta['keywords'] = 'aktualitet, opdatering, ophavsret, copyright, bedst på nettet, stategi, politik, opdateringspolitik, håndtering, e-mail'; $this->document->setTitle($title); $this->document->meta = $meta; $tpl = $this->template->create('Om/index'); $content = $tpl->render($this); $data = array('content' => autoop($content)); $tpl = $this->template->create('wrapper'); return $tpl->render($this, $data); }
function renderHtml() { $nyhed = new VIH_News($this->name()); if (is_numeric($this->query('sletbillede'))) { $nyhed->deletePicture($this->query('sletbillede')); } $pictures = $nyhed->getPictures(); $pic_html = ''; foreach ($pictures as $pic) { $file = new VIH_FileHandler($pic['file_id']); if ($file->get('id')) { $file->loadInstance('small'); } $pic_html .= '<div>' . $file->getImageHtml() . '<br /><a href="' . $this->url('./') . '?sletbillede=' . $pic['file_id'] . '">Slet</a></div>'; } $this->document->setTitle('Nyhed: ' . $nyhed->get('overskrift')); $this->document->addOption('Ret', $this->url('edit')); // $tpl->set('title', 'Nyhed'); return '<div>' . autoop($nyhed->get('tekst')) . '</div> ' . $this->getForm()->toHTML() . $pic_html . $nyhed->get('date_updated'); }
function GET() { $id = strip_tags($this->name()); $facilitet = new VIH_Model_Facilitet($id); $file = new VIH_FileHandler($facilitet->get('pic_id')); $file->loadInstance('medium'); $html = $file->getImageHtml(); $title = $facilitet->get('navn'); $meta['description'] = $facilitet->get('description'); $meta['keywords'] = ''; $this->document->setTitle($title); $this->document->meta = $meta; $this->document->theme = 'faciliteter'; $data = array('content' => ' <h1>' . $facilitet->get('navn') . '</h1> ' . $html . ' <div>' . autoop($facilitet->get('beskrivelse')) . '</div>', 'content_sub' => $this->getFaciliteterList()); $tpl = $this->template->create('sidebar-wrapper'); return $tpl->render($this, $data); }
function getSubContent() { return autoop($this->underviser->getExtraInfo()); }
<?php echo autoop($kursus->get('beskrivelse')); ?> <?php echo $subjects;
<h1>Rejser</h1> <table> <?php while ($rejse = $rejser->fetchRow(MDB2_FETCHMODE_ASSOC)) { ?> <tr> <td> <?php echo $context->getPictureHTML($rejse['identifier']); ?> </td> <td> <h2><?php e($rejse['navn']); ?> </h2> <?php echo autoop($rejse['kort_beskrivelse']); ?> </td> </tr> <?php } ?> </table>
?> </p> <span class="dtend" title="<?php e($news->get('date_iso')); ?> " style="float:right; margin-right: 0; margin-left: 1em;"> <?php e($months[$news->get('dato_month')]); ?> <span class="day"><?php e($news->get('dato_day')); ?> </span> </span> <h1 style="margin-top: 0;" class="summary"><?php e($news->get('overskrift')); ?> </h1> <div class="description"> <?php echo autoop($news->get('tekst')); ?> </div> </div> <?php }
<?php if ($kursus->get('pladser_ledige') <= 0) { ?> <p class="notice">Der er ikke flere ledige pladser på dette kursus.</p> <?php } elseif ($kursus->get('pladser_begyndere_ledige') <= 0 and $kursus->get('gruppe_id') == 1) { // golf ?> <p class="notice">Der er ikke flere ledige begynderpladser på dette kursus.</p> <?php } ?> <div class="description"> <?php echo autoop($kursus->get("beskrivelse")); ?> </div> <hr /> <div> <?php if ($kursusleder->get("navn")) { ?> <strong>Kursusleder</strong> <a href="<?php e(url('/underviser/' . $kursusleder->get('id'))); ?> "><?php e($kursusleder->get("navn")); ?>
function getUdvidetBeskrivelse($f*g) { $udvidet_beskrivelse = ''; if ($this->query('show') == 'udvidet') { $udvidet_beskrivelse = ''; if ($f*g->get('udvidet_beskrivelse')) { $udvidet_beskrivelse .= '<h1>Udvidet beskrivelse af ' . strtolower($f*g->get('navn')) . '</h1> ' . autoop($f*g->get('udvidet_beskrivelse')) . ''; } } else { if ($f*g->get('udvidet_beskrivelse')) { $udvidet_beskrivelse = '<p><a href="' . $this->url(null, array('show' => 'udvidet')) . '">Vis udvidet beskrivelse</a></p>'; } } return $udvidet_beskrivelse; }