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

rel #12794 : record view configuration refactoring and i18n

parent a750a688
Branches
Tags
4 merge requests!258Dev/13872 Orphee Allow Hold Available Items,!93Master,!88Hotline 6.41,!85Hotline#12794 Display 464 Periodicals Title Authors
<?php
echo '<script src="'.URL_ADMIN_JS.'drag_and_drop.js'.'" type="text/javascript"> </script>';
echo '<script src="'.URL_ADMIN_JS.'selection_champs.js'.'" type="text/javascript"> </script>';
echo '<link rel="stylesheet" type="text/css" media="screen" href="'.URL_ADMIN_CSS.'drag_and_drop.css" />';
echo $this->tagSelectionChamps("libelles").NL;
?>
<center>
<h1>Propriétés d'affichage des notices<br>Type de document : <?php echo Class_Codification::getInstance()->getLibelleFacette('T'.$this->type_doc) ?></h1>
<div class="formTable">
<form method="post" action="<?php echo $this->url ?>">
<fieldset>
<legend>Généralités</legend>
<table cellspacing="2">
<tr>
<td class="droite">Style de boite&nbsp;</td>
<td class="gauche"><?php echo $this->combo_templates ?></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>Entête</legend>
<table cellspacing="2">
<tr>
<td class="droite" valign="top">Champs à afficher&nbsp;</td>
<?php
$data=$this->tagSelectionChamps("champs",$this->preferences["entete"]); echo $data["codes_dispo"];
echo '<td class="gauche">';
echo $data["liste_codes"].$data["champ_libelle"].$data["bloc_saisie"];
?>
</td>
</tr>
</table>
</fieldset>
<br>
<fieldset>
<legend>Onglets et blocs</legend>
<table cellspacing="2">
<tr><td>&nbsp;</td></tr>
<tr>
<td><b>Rubrique</b></td>
<td><b>Style</b></td>
<td><b>Ordre</b></td>
<td><b>Titre</b></td>
<td><b>Largeur</b></td>
</tr>
<?php
$codif = Class_Codification::getInstance();
foreach($this->preferences["onglets"] as $clef => $valeurs)
{
$nom_onglet=$codif->getNomOnglet($clef);
if(!$valeurs["titre"]) $valeurs["titre"]=$nom_onglet;
print('<tr>');
print('<td class="droite">'.$nom_onglet.'&nbsp;</td>');
$combo=$this->formSelect($clef.'_aff',$valeurs["aff"],"",array("0" => "Ne pas afficher","1"=>"Bloc déplié","2" => "Bloc fermé", "3" => "Dans un onglet"));
print('<td class="gauche">'.$combo.'</td>');
print('<td class="gauche"><input type="text" name="'.$clef.'_ordre" size="3" value="'.$valeurs["ordre"].'"></td>');
print('<td class="gauche"><input type="text" name="'.$clef.'_titre" size="20" value="'.$valeurs["titre"].'"></td>');
print('<td class="gauche"><input type="text" name="'.$clef.'_largeur" size="3" value="'.$valeurs["largeur"].'">&nbsp;%</td>');
print('</tr>');
}
?>
</table>
</fieldset>
<?php echo $this->render('modules/_fin.phtml');?>
<script src="<?php echo URL_ADMIN_JS;?>drag_and_drop.js" type="text/javascript"></script>
<script src="<?php echo URL_ADMIN_JS;?>selection_champs.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo URL_ADMIN_CSS;?>drag_and_drop.css" />
<?php
$codif = Class_Codification::getInstance();
echo $this->tagSelectionChamps('libelles').NL;
?>
<center>
<h1><?php echo $this->_('Propriétés d\'affichage des notices');?><br>
<?php echo $this->_('Type de document : %s',
$codif->getLibelleFacette('T' . $this->type_doc));?>
</h1>
<div class="formTable">
<form method="post" action="<?php echo $this->url ?>">
<fieldset>
<legend><?php echo $this->_('Généralités');?></legend>
<table cellspacing="2">
<tr>
<td class="droite"><?php echo $this->_('Style de boite');?>&nbsp;</td>
<td class="gauche"><?php echo $this->combo_templates;?></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend><?php echo $this->_('Entête');?></legend>
<table cellspacing="2">
<tr>
<td class="droite" valign="top"><?php echo $this->_('Champs à afficher');?>&nbsp;</td>
<?php
$data = $this->tagSelectionChamps('champs',
$this->preferences['entete']);
echo $data['codes_dispo'];?>
<td class="gauche">
<?php echo $data['liste_codes'] . $data['champ_libelle'] . $data['bloc_saisie'];?>
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend><?php echo $this->_('Onglets et blocs');?></legend>
<table cellspacing="2">
<tr><td>&nbsp;</td></tr>
<tr>
<td><b><?php echo $this->_('Rubrique');?></b></td>
<td><b><?php echo $this->_('Style');?></b></td>
<td><b><?php echo $this->_('Ordre');?></b></td>
<td><b><?php echo $this->_('Titre');?></b></td>
<td><b><?php echo $this->_('Largeur');?></b></td>
</tr>
<?php
foreach($this->preferences['onglets'] as $clef => $valeurs) {
$nom_onglet = $codif->getNomOnglet($clef);
if(!$valeurs['titre'])
$valeurs['titre'] = $nom_onglet;
$input = function($name, $size) use ($clef, $valeurs) {
return sprintf('<input type="text" name="%s" size="%s" value="%s">',
$clef . '_' . $name, $size, $valeurs[$name]);
};
?>
<tr>
<td class="droite"><?php echo $nom_onglet;?>&nbsp;</td>
<td class="gauche">
<?php
echo $this->formSelect($clef . '_aff', $valeurs['aff'], '',
[0 => $this->_('Ne pas afficher'),
1 => $this->_('Bloc déplié'),
2 => $this->_('Bloc fermé'),
3 => $this->_('Dans un onglet')]); ?></td>
<td class="gauche"><?php echo $input('ordre', 3); ?></td>
<td class="gauche"><?php echo $input('titre', 20); ?></td>
<td class="gauche"><?php echo $input('largeur', 3); ?>&nbsp;%</td>
</tr>
<?php } ?>
</table>
</fieldset>
<?php echo $this->render('modules/_fin.phtml');?>
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