Skip to content
Snippets Groups Projects
Commit de3e8529 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

hotline #66742 : can view search result config from admin

parent 4c3323d4
Branches
Tags
2 merge requests!2391Hotline master,!2387Hotline#66742 la madeleine pbm sur kiosque et affichage de resultats
- ticket #66742 : Résultat de recherche : Correction d'un cas rendant possible de configurer les listes de résultat sans limite par page
\ No newline at end of file
<?php
echo '<link rel="stylesheet" type="text/css" media="screen" href="'. URL_ADMIN_CSS.'subModal.css">';
echo '<script src="'. URL_ADMIN_JS.'common.js"> </script>';
echo '<script src="'.URL_ADMIN_JS.'subModal.js'.'" type="text/javascript"> </script>';
?>
<?php echo $this->partial('profil/_profil_panel.phtml',
array('profil' => $this->profil)); ?>
['profil' => $this->profil]); ?>
<table cellspacing="0" cellpadding="0">
<tr class="soustitre">
<td>Blocs et onglets des notices</td>
<td><?php echo $this->_('Blocs et onglets des notices');?></td>
<td width="20px">&nbsp;</td>
</tr>
<tr>
<td colspan="3" class="separ"></td>
</tr>
<?php
$ligne=0;
foreach($this->modules as $id_module => $module) {
if ($ligne & 1) $class="first"; else $class="second";
echo '<tr class="'.$class.'" style="height:20px">';
echo '<td>'.$module["libelle"].'</td>';
$onclick="showPopWin('".BASE_URL."/admin/modulesnotice/".strtolower($id_module)."?id_profil=".$this->profil->getId()."&config=admin',".$module['popup_width'].",".$module['popup_height'].",null)";
echo '<td align="center"><img class="ico" src="'.URL_ADMIN_IMG.'ico/edit.gif" onclick="'.$onclick.'" title="Modifier" style="cursor:pointer"></td>';
print('</tr>');
$ligne ++ ;
}
?>
<?php
$ligne = 0;
foreach($this->modules as $id_module => $module) {
$class = ($ligne & 1) ? 'first' : 'second';
$edit = $this->renderModelAction($this->profil,
['url' => ['module' => 'admin',
'controller' => 'modulesnotice',
'action' => strtolower($id_module),
'config' => 'admin',
'id_profil' => '%s'],
'icon' => 'edit',
'label' => $this->_('Modifier'),
'anchorOptions' => ['data-popup' => 'true']]);
echo $this->tag('tr',
$this->tag('td', $module['libelle'])
. $this->tag('td', $edit),
['class' => $class,
'style' => 'height:20px']);
$ligne ++ ;
}
?>
</table>
<br>
<table cellspacing="0" cellpadding="0">
<tr class="soustitre">
<td><?php echo $this->_('Écrans');?></td>
<td width="20px">&nbsp;</td>
</tr>
<tr>
<td colspan="3" class="separ"></td>
</tr>
<?php
$edit = $this->renderModelAction($this->profil,
['url' => ['module' => 'admin',
'controller' => 'modules',
'action' => 'recherche',
'config' => 'site',
'type_module' => 'recherche',
'id_profil' => '%s',
'action1' => 'resultat',
'action2' => 'simple'],
'icon' => 'edit',
'label' => $this->_('Modifier'),
'anchorOptions' => ['data-popup' => 'true']]);
echo $this->tag('tr',
$this->tag('td', $this->_('Résultat de recherche simple'))
. $this->tag('td', $edit),
['class' => 'first',
'style' => 'height:20px']);
?>
</table>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment