Skip to content
Snippets Groups Projects
Commit 402caf1d authored by vinot's avatar vinot
Browse files

Corrections pour compatibilité master afi

parent 111906fe
Branches
Tags
1 merge request!1132Hotline#29412 images des articles dans le resultat de recherche
......@@ -5,54 +5,45 @@ Class_ScriptLoader::getInstance()
'iDisplayLength': -1,
'bPaginate': false,
'columnDefs' : [
{'orderable': false, 'targets': 2}
{'orderable': false, 'targets': 2}
]
})")
->loadJQueryUI()
->addJQueryReady('$(document).tooltip({
items: "[data-tooltip]",
content: function() {
var element = $(this);
var html = element.find("span").html();
return (html.trim() != "") ? html : "Description non disponible";
},
position: { my: "left top+30", at: "left top"},
hide: {duration: 1000}
})');
->loadJQueryUI();
?>
<table id="adminvars">
<thead>
<thead>
<tr class="soustitre">
<th><?php echo $this->_('Clef'); ?></th>
<th><?php echo $this->_('Valeur'); ?></th>
<th><?php echo $this->_('action'); ?></th>
</tr>
</thead>
<tbody>
<?php
$ligne = 0;
foreach($this->vars as $var) {
$ligne ++ ;
?>
<tr class="<?php echo ($ligne & 1) ? "first" : "second";?>" data-tooltip="">
<td style="vertical-align:top;" ><?php echo $var->getClef();?>
<span style="display:none;">
<?php echo $var->getDescription();?>
</span>
</td>
<td>
<?php
echo ($renderer = $var->getRenderer()) ?
$renderer($var->getValeur(), $this) : $this->adminVar($var);
?>
</td>
<td style="width:2%;text-align:center">
<a data-popup="true" href="<?php echo $this->url(['controller' => 'index',
'action' => 'adminvaredit',
'cle' => $var->getClef()])?>"><?php echo $this->boutonIco("type=edit");?></a>
</td>
</tr>
<?php } ?>
</thead>
<tbody>
<?php
$ligne = 0;
foreach($this->vars as $var) {
$ligne ++ ;
$edit_url = $this->url(['controller' => 'index',
'action' => 'adminvaredit',
'cle' => $var->getClef()]);
?>
<tr class="<?php echo ($ligne & 1) ? "first" : "second";?>">
<td style="vertical-align:top;" >
<?php echo $var->getDescription();?>
<br><sub><a data-popup="true" href="<?php echo $edit_url; ?>">
<?php echo $var->getClef();?></a></sub>
</td>
<td>
<?php
echo ($renderer = $var->getRenderer()) ?
$renderer($var->getValeur(), $this) : $this->adminVar($var);
?>
</td>
<td style="width:2%;text-align:center">
<a data-popup="true" href="<?php echo $edit_url; ?>"><?php echo $this->boutonIco("type=edit");?></a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<?php
error_reporting(E_ERROR | E_PARSE);
define("PATCH_LEVEL","261");
define("PATCH_LEVEL","264");
define("APPLI","cosmogramme");
define("COSMOPATH", "/var/www/html/vhosts/opac2/www/htdocs");
......
This diff is collapsed.
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