Dotclear

Changeset 184:ee7a4e3537c7


Ignore:
Timestamp:
05/06/11 17:15:22 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
default
Message:

Rajout de note pour les pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/page.php

    r91 r184  
    2626$post_content = ''; 
    2727$post_content_xhtml = ''; 
     28$post_notes = ''; 
    2829$post_status = $core->auth->getInfo('user_post_status'); 
    2930$post_position = 0; 
     
    102103          $post_content = $post->post_content; 
    103104          $post_content_xhtml = $post->post_content_xhtml; 
     105          $post_notes = $post->post_notes; 
    104106          $post_status = $post->post_status; 
    105107          $post_position = (integer) $post->post_position; 
     
    162164     $post_position = (integer) $_POST['post_position']; 
    163165      
     166     $post_notes = $_POST['post_notes']; 
     167 
    164168     if (isset($_POST['post_url'])) { 
    165169          $post_url = $_POST['post_url']; 
     
    191195     $cur->post_content = $post_content; 
    192196     $cur->post_content_xhtml = $post_content_xhtml; 
     197     $cur->post_notes = $post_notes; 
    193198     $cur->post_status = $post_status; 
    194199     $cur->post_position = $post_position; 
     
    454459     '</p>'; 
    455460      
     461     echo 
     462     '<p class="area" id="notes-area"><label for="post_notes">'.__('Notes:').'</label>'. 
     463     form::textarea('post_notes',50,5,html::escapeHTML($post_notes),'',2). 
     464     '</p>'; 
     465 
    456466     # --BEHAVIOR-- adminPageForm 
    457467     $core->callBehavior('adminPageForm',isset($post) ? $post : null); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map