Re: [dmzx] Form Maker/Creator - Code Problem
Verfasst: 23.12.2019 22:01
Das ist schon in der Datenbank gespeichert, von daher gilt meine Änderung ab Jetzt 

phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Schick doch mal einen Screenshot und Html-Quelltext dieser Post-Ausgabe hierher....
Code: Alles auswählen
<div id="post_content104">
<h3 class="first"><a href="#p104">Test</a></h3>
<ul class="post-buttons">
<li>
<a href="./posting.php?mode=edit&f=7&p=104" title="Beitrag ändern" class="button button-icon-only">
<i class="icon fa-pencil fa-fw" aria-hidden="true"></i><span class="sr-only">Ändern</span>
</a>
</li>
<li>
<a href="./posting.php?mode=soft_delete&f=7&p=104" title="Beitrag löschen" class="button button-icon-only">
<i class="icon fa-times fa-fw" aria-hidden="true"></i><span class="sr-only">Löschen</span>
</a>
</li>
<li>
<a href="/leitstelle/app.php/post/104/report" title="Diesen Beitrag melden" class="button button-icon-only">
<i class="icon fa-exclamation fa-fw" aria-hidden="true"></i><span class="sr-only">Melden</span>
</a>
</li>
<li>
<a href="./mcp.php?i=main&mode=post_details&f=7&p=104&sid=705f8b6a495e0fb7147dc20595d0bab9" title="Information" class="button button-icon-only">
<i class="icon fa-info fa-fw" aria-hidden="true"></i><span class="sr-only">Information</span>
</a>
</li>
<li>
<a href="./posting.php?mode=quote&f=7&p=104" title="Mit Zitat antworten" class="button button-icon-only">
<i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Zitieren</span>
</a>
</li>
<li class="responsive-menu hidden dropdown-container"><a href="javascript:void(0);" class="js-responsive-menu-link responsive-menu-link dropdown-toggle"><i class="icon fa-bars fa-fw" aria-hidden="true"></i></a><div class="dropdown"><div class="pointer"><div class="pointer-inner"></div></div><ul class="dropdown-contents"></ul></div></li></ul>
<p class="author">
<a class="unread" href="./viewtopic.php?p=104#p104" title="Beitrag">
<i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Beitrag</span>
</a>
<span class="responsive-hide">von <strong><a href="./memberlist.php?mode=viewprofile&u=2" class="username">nirolp</a></strong> » </span>Di Dez 24, 2019 7:41 am
</p>
<div class="content"><pre><strong class="text-strong">Art_des_Lehrgangs:</strong></pre><div class="fbox">OrgL</div><pre><strong class="text-strong">Freie_Plätze:</strong></pre><div class="fbox">6</div><pre><strong class="text-strong">Lehrgangsende:</strong></pre><div class="fbox">Montag, 01.10.2019</div></div>
</div>
Code: Alles auswählen
$this->template->assign_block_vars('form_apptemplate', array(
'NDX_ORDER' => $row['ndx_order'],
'NAME' => $row['name'],
'LABEL' => $row['name'],
'HINT' => $row['hint'],
'OPTIONS' => $row['options'],
'TYPE' => $entry,
'MANDATORY' => $mandatory,
));
Code: Alles auswählen
$this->template->assign_block_vars('form_apptemplate', array(
'NDX_ORDER' => $row['ndx_order'],
'NAME' => $row['name'],
'NAME_CLR' => str_replace('_', ' ', $row['name']),
'LABEL' => $row['name'],
'HINT' => $row['hint'],
'OPTIONS' => $row['options'],
'TYPE' => $entry,
'MANDATORY' => $mandatory,
));
Code: Alles auswählen
$row['name'] . ':
Code: Alles auswählen
str_replace('_', ' ', $row['name']) . ':
Code: Alles auswählen
{{ form_apptemplate.NAME }}{{ lang('COLON') }}
Code: Alles auswählen
{{ form_apptemplate.NAME_CLR }}{{ lang('COLON') }}