mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-21 17:02:19 +00:00
CIS-Suche verlinkt Rauminformationen bei Räumen mit Content_ID
This commit is contained in:
@@ -330,10 +330,11 @@ function searchOrt($search)
|
||||
<table class="tablesorter" id="orttable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>',$p->t('global/ort'),'</th>
|
||||
<th>',$p->t('lvplan/raum'),'</th>
|
||||
<th>',$p->t('global/bezeichnung'),'</th>
|
||||
<th>',$p->t('tools/maxPersonen'),'</th>
|
||||
<th>',$p->t('tools/telefonklappe'),'</th>';
|
||||
<th>',$p->t('lvplan/anzahlPersonen'),'</th>
|
||||
<th>',$p->t('tools/telefonklappe'),'</th>
|
||||
<th>',$p->t('lvplan/rauminformationenAnzeigen'),'</th>';
|
||||
if ($raumres)
|
||||
echo '<th>',$p->t('tools/reservieren'),'</th>';
|
||||
else
|
||||
@@ -348,6 +349,7 @@ function searchOrt($search)
|
||||
echo '<td>',$row->bezeichnung,'</td>';
|
||||
echo '<td>',$row->max_person,'</td>';
|
||||
echo '<td>',$row->telefonklappe,'</td>';
|
||||
echo '<td>'.($row->content_id != '' ?'<a href="../../../cms/content.php?content_id='.$row->content_id.'" target="_self">'.$p->t('lvplan/rauminformationenAnzeigen').'</a>':'-').'</td>';
|
||||
if ($raumres)
|
||||
echo '<td><a href="../../../cis/private/lvplan/stpl_week.php?type=ort&ort_kurzbz='.$row->ort_kurzbz.'">'.$p->t('tools/reservieren').'</a></td>';
|
||||
else
|
||||
@@ -455,6 +457,7 @@ function searchContent($searchItems)
|
||||
global $db,$p,$sprache,$uid;
|
||||
$cms = new content();
|
||||
$cms->search($searchItems, 21);
|
||||
$content_id_arr = array();
|
||||
|
||||
if(count($cms->result) > 0)
|
||||
{
|
||||
@@ -480,18 +483,24 @@ function searchContent($searchItems)
|
||||
$berechtigt = $berechtigt->berechtigt($row->content_id, $uid);
|
||||
if ($berechtigt)
|
||||
{
|
||||
// Jede Content_ID nur einmal ausgeben
|
||||
if (in_array($row->content_id, $content_id_arr))
|
||||
continue;
|
||||
|
||||
echo '<li><div class="suchergebnis">';
|
||||
echo '<a href="../../../cms/content.php?content_id=',$db->convert_html_chars($row->content_id),'&sprache=',$db->convert_html_chars($row->sprache),'">',$db->convert_html_chars($row->titel),'</a><br>';
|
||||
$preview = findAndMark($row->content, $searchItems);
|
||||
|
||||
echo $preview;
|
||||
echo '<br /><br /></div></li>';
|
||||
$content_id_arr[] .= $row->content_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
echo '</ul>';
|
||||
$anzeigesprache='';
|
||||
foreach($cms->result as $row)
|
||||
$content_id_arr = array();
|
||||
foreach ($cms->result as $row)
|
||||
{
|
||||
if ($sprache != $row->sprache)
|
||||
{
|
||||
@@ -506,12 +515,17 @@ function searchContent($searchItems)
|
||||
$berechtigt = $berechtigt->berechtigt($row->content_id, $uid);
|
||||
if ($berechtigt)
|
||||
{
|
||||
// Jede Content_ID nur einmal ausgeben
|
||||
if (in_array($row->content_id, $content_id_arr))
|
||||
continue;
|
||||
|
||||
echo '<li><div class="suchergebnis">';
|
||||
echo '<a href="../../../cms/content.php?content_id=',$db->convert_html_chars($row->content_id),'&sprache=',$db->convert_html_chars($row->sprache),'">',$db->convert_html_chars($row->titel),'</a><br>';
|
||||
$preview = findAndMark($row->content, $searchItems);
|
||||
|
||||
echo $preview;
|
||||
echo '<br /><br /></div></li>';
|
||||
$content_id_arr[] .= $row->content_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -518,7 +518,7 @@ class ort extends basis_db
|
||||
$ort_obj->stockwerk = $row->stockwerk;
|
||||
$ort_obj->standort_id = $row->standort_id;
|
||||
$ort_obj->telefonklappe = $row->telefonklappe;
|
||||
//$ort_obj->content_id = $row->content_id;
|
||||
$ort_obj->content_id = $row->content_id;
|
||||
$ort_obj->m2 = $row->m2;
|
||||
$ort_obj->gebteil = $row->gebteil;
|
||||
$ort_obj->oe_kurzbz = $row->oe_kurzbz;
|
||||
|
||||
Reference in New Issue
Block a user