People «
FRANCOIS Alexandre - alf83
LDAP user authentication?
Started by TheAlchemist on Jul. 28 2006
Publication de brouillon...
Started by alf83 on May 9 2008, edited by Bernard on June 23 2008

Les différents cas traités par yacs 8.6 s'établissent comme suit :
* Section ordinaire : les pages sont postées en mode brouillon, et seuls les associés ou les éditeurs ont accès à la commande de publication.
* Section avec l'option 'auto_publish' : les auteurs ont le choix de poster en mode brouillon ou non, et maitrisent eux-mêmes la publication.
Patch LDAP pour 8.4 : un bug [Integrated]
Started by alf83 on May 30 2008, edited by Christian on June 17 2008

La prochaine version stable et la version 8.6 Macnana programmée, comme son nom l'indique, pour le mois de juin 2008. Certains d'entre nous sont en phase de test de la version 8.6alpha14. Bien sur l'objectif est de finaliser la version pour la fin du mois. Nul doute qu'il restera quelques petits bugs à éradiquer mais nous pourrons la considérer comme stable.
Actupro
quelques sites yacs : création site internet annuaire pro
- ldap.php.diff - By alf83 on May 30 2008
- ldap.tgz - By alf83 on May 30 2008
Bibliographies
Started by LeChi on May 24 2008, edited by LeChi on June 10 2008

Voici le résultat de mes cellules grises.
----------------------------------------------
<?php/
* décrit une référence de lecture
*
* @see overlays/overlay.php
*
* @author Christian Hinque christian.hinque@laposte.net
* @author McNana
* @author Bernard Paques bernard.paques@bigfoot.com
* @license http://www.gnu.org/copyleft/lesser.txt GNU Lesser General Public License
*/
class Biblio extends Overlay {
/
* build the list of fields for one overlay
*
* @see overlays/overlay.php
*
* @param the hosting attributes
* @return a list of ($label, $input, $hint)
*/
function get_fields($host) {
global $context;
// auteur
$local['label_en'] = 'Author';
$local['label_fr'] = 'Auteur';
$label = i18n::l($local, 'label');
$input = '<input type="text" name="auteur" value ="'.encode_field(isset($this->attributes['auteur'])?$this->attributes['auteur']:'').'" size="45" maxlength="128" />';
$fields[] = array($label, $input);
// maison édition
$local['label_en'] = 'Edition';
$local['label_fr'] = 'Édition';
$label = i18n::l($local, 'label');
$input = '<textarea name="editeur" rows="2" cols="50">'.encode_field(isset($this->attributes['editeur'])?$this->attributes['editeur']:'').'</textarea>';
$fields[] = array($label, $input);
// date de parution
$local['label_en'] = 'Publication date';
$local['label_fr'] = 'Date de parution';
$label = i18n::l($local, 'label');
$input = '<input type="date" name="dateparu" value ="'.encode_field($this->attributes['dateparu']).'" />';
$local['hint_en'] = 'Publication date of the book or publlication month of the magazine';
$local['hint_fr'] = 'Date de parution du livre ou mois de parution de la revue';
$hint = i18n::l($local, 'hint');
$fields[] = array($label, $input, $hint);
// numéro ISBN
$local['label_en'] = 'Reference';
$local['label_fr'] = 'Référence';
$label = i18n::l($local, 'label');
$input = '<input type="text" name="isbn" value ="'.encode_field(isset($this->attributes['isbn'])?$this->attributes['isbn']:'').'" size="45" maxlength="128" />';
$local['hint_en'] = 'Usually, the ISBN identifier';
$local['hint_fr'] = 'L\'identifiant ISBN, le plus souvent';
$hint = i18n::l($local, 'hint');
$fields[] = array($label, $input, $hint);
// niveau
$local['label_en'] = 'Text level';
$local['label_fr'] = 'Niveau de texte';
$label = i18n::l($local, 'label');
$input = '<select name="niveau" >
<option value="'.encode_field($this->attributes['niveau']).'" selected>'.encode_field($this->attributes['niveau']).'</option>
<option value="Vulgarisation">Vulgarisation</option>
<option value="Professionnel">Professionnel</option>
<option value="Etudiant">Etudiant</option>
</select>';
$fields[] = array($label, $input);
// genre
$local['label_en'] = 'Kind of subject';
$local['label_fr'] = 'Genre de sujet';
$label = i18n::l($local, 'label');
$input = '<select name="genre" >
<option value="'.encode_field($this->attributes['genre']).'" selected>'.encode_field($this->attributes['genre']).'</option>
<option value="Architecture">Architecture</option>
<option value="Ingénierie">Ingénierie</option>
<option value="Urbanisme">Urbanisme</option>
</select>';
$fields[] = array($label, $input);
// note
$local = array();
$local['label_en'] = 'Note';
$local['label_fr'] = 'Note';
$label = i18n::l($local, 'label');
$input = '<select name="note">
<option value="'.encode_field($this->attributes['note']).'" selected>'.encode_field($this->attributes['note']).'</option>
<option value="Nul">Nul</option>
<option value="Passable">Passable</option>
<option value="Bien">Bien</option>
<option value="Excellent">Excellent</option>
<option value="Génial">Génial</option>
</select>';
$fields[] = array($label, $input);
return $fields;
}
/
* get an overlaid label
*
* Accepted action codes:
* - 'edit' the modification of an existing object
* - 'delete' the deleting form
* - 'new' the creation of a new object
* - 'view' a displayed object
*
* @see overlays/overlay.php
*
* @param string the target label
* @param string the on-going action
* @return the label to use
*/
function get_label($name, $action='view') {
global $context;
// the target label
switch($name) {
// description label
case 'description':
$local['label_en'] = 'My opinion';
$local['label_fr'] = 'Avis du référenceur';
return i18n::l($local, 'label');
// help panel
case 'help':
if(($action == 'new') || ($action == 'edit'))
return '<p>'.i18n::s('Il faut être le plus précis possible dans les références.').'</p>';
return NULL;
// page title
case 'page_title':
switch($action) {
case 'edit':
$local['label_en'] = 'Update one book review';
$local['label_fr'] = 'Modifiez une fiche de lecture';
return i18n::l($local, 'label');
case 'delete':
$local['label_en'] = 'Delete a book review';
$local['label_fr'] = 'Supprimez une fiche';
return i18n::l($local, 'label');
case 'new':
$local['label_en'] = 'Enter a new book review';
$local['label_fr'] = 'Publiez une nouvelle fiche de lecture';
return i18n::l($local, 'label');
case 'view':
default:
// use the article title as the page title
return NULL;
}
}
// no match
return NULL;
}
/
* display the content of one recipe
*
* Accepted variant codes:
* - 'view' - embedded into the main viewing page
*
* @see overlays/overlay.php
*
* @param string the variant code
* @param array the hosting record
* @return some HTML to be inserted into the resulting page
*/
function get_text($variant='view', $host=NULL) {
global $context;
$local = array();
// add something to zooming views only
if($variant != 'view')
return '';
// text to return
$rows = array();
// note
$localnote['label_en'] = 'Note';
$localnote['label_fr'] = 'Note';
$rows[] = array(i18n::l($localnote, 'label'), $this->attributes['note']);
// niveau de texte
$localniv['label_en'] = 'Text level';
$localniv['label_fr'] = 'Niveau de texte';
$rows[] = array(i18n::l($localniv, 'label'), $this->attributes['niveau']);
// Genre de texte
$localgenre['label_en'] = 'Kind of subject';
$localgenre['label_fr'] = 'Genre de sujet';
$rows[] = array(i18n::l($localgenre, 'label'), $this->attributes['genre']);
// author
$local['label_en'] = 'Author';
$local['label_fr'] = 'Auteur';
$rows[] = array(i18n::l($local, 'label'), $this->attributes['auteur']);
// maison édition
$local['label_en'] = 'Edition';
$local['label_fr'] = 'Edition';
$rows[] = array(i18n::l($local, 'label'), $this->attributes['editeur']);
// reference
$local['label_en'] = 'Reference';
$local['label_fr'] = 'Référence';
$rows[] = array(i18n::l($local, 'label'), $this->attributes['isbn']);
// date de parution
$local['label_en'] = 'Publication date';
$local['label_fr'] = 'Date de parution';
$rows[] = array(i18n::l($local, 'label'), $this->attributes['dateparu']);
if(count($rows))
return Codes::beautify(Skin::table(NULL, $rows));
else
return '';
}
/**
* retrieve the content of one modified overlay
*
* @see overlays/overlay.php
*
* @param the fields as filled by the end user
* @return the updated fields
*/
function parse_fields($fields) {
$this->attributes['note'] = $fields['note'];
$this->attributes['auteur'] = $fields['auteur'];
$this->attributes['editeur'] = $fields['editeur'];
$this->attributes['dateparu'] = $fields['dateparu'];
$this->attributes['isbn'] = $fields['isbn'];
$this->attributes['niveau'] = $fields['niveau'];
$this->attributes['genre'] = $fields['genre'];
return $this->attributes;
}
}
?>
Christian Hinque dit LeChi Architecte
YACS 8.3beta31.1, 080401-22:30:55 GMT Style TOTEM 930; PHP 4.4.8 ; MySQL 5.0.44-log
8.4beta30.4: authentification ldap [Solved]
Started by aikido44, edited by Christian on June 2 2008

. C'est un plaisir de mettre [résolu] sur ce problème !Actupro
quelques sites yacs : création site internet annuaire pro
Restreindre l'accès à la page "/articles/" (all pages) [Solved]
Started by alf83, edited by Christian on May 24 2008

Merci pour ton aide !
8.4beta30.4: des reliquats de $variant dans overlay::get_view_text()
Started by alf83, edited by alf83 on May 15 2008

J'en ai profité pour ausculter d'autres overlays et j'ai noté des reliquats de $variant dans l'overlay petition.php/get_view_text().
Les autres semblent OK.
Business cardFRANCOIS Alexandre








Websites made with Yacs

