b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (0.9.x) [ class tree: admin ] [ index: admin ] [ all elements ]

Source for file _edit_form.php

Documentation is available at _edit_form.php

  1. <?php
  2. /**
  3.  * Displays post editing form
  4.  *
  5.  * b2evolution - {@link http://b2evolution.net/}
  6.  * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
  7.  * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
  8.  *
  9.  * @package admin
  10.  */
  11. if!defined('DB_USER') ) die'Please, do not access this page directly.' );
  12. ?>
  13. <script type="text/javascript" language="javascript">
  14.     <!--
  15. <?php
  16. if ($use_spellchecker)
  17. // --------------------------- SPELL CHECKER -------------------------------
  18.     ?>
  19.     function DoSpell(formname, subject, body)
  20.     {
  21.         document.SPELLDATA.formname.value=formname
  22.         document.SPELLDATA.subjectname.value=subject
  23.         document.SPELLDATA.messagebodyname.value=body
  24.         document.SPELLDATA.companyID.value="custom\\http://cafelog.com"
  25.         document.SPELLDATA.language.value=1033
  26.         document.SPELLDATA.opener.value="<?php echo $admin_url ?>/sproxy.php"
  27.         document.SPELLDATA.formaction.value="http://www.spellchecker.com/spell/startspelling.asp "
  28.         window.open("<?php echo $admin_url ?>/b2spell.php","Spell","toolbar=no,directories=no,location=yes,resizable=yes,width=620,height=400,top=100,left=100")
  29.     }
  30. <?php
  31. }
  32.  
  33. // --------------------------- PREVIEW -------------------------------
  34. ?>
  35.     /*
  36.      * open_preview()
  37.      * fplanque: created
  38.      */
  39.     function open_preview(form)
  40.     {
  41.         // Stupid thing: having a field called action !
  42.         var saved_action =  form.attributes.getNamedItem('action').value;
  43.         form.attributes.getNamedItem('action').value = '<?php $Blog->disp'dynurl''raw' ?>';
  44.         form.target = 'b2evo_preview';
  45.         preview_window = window.open( '', 'b2evo_preview' );
  46.         preview_window.focus();
  47.         // submit after target window is created.
  48.         form.submit();
  49.         form.attributes.getNamedItem('action').value = saved_action;
  50.         form.target = '_self';
  51.     }
  52.     /*
  53.      * edit_reload()
  54.      * fplanque: created
  55.      */
  56.     function edit_reload( form, blog )
  57.     {
  58.         form.attributes.getNamedItem('action').value = '<?php echo $pagenow ?>';
  59.         form.blog.value = blog;
  60.         // form.action.value = 'reload';
  61.         // form.post_title.value = 'demo';
  62.         // alert( form.action.value + ' ' + form.post_title.value );
  63.         form.submit();
  64.         return false;
  65.     }
  66.  
  67.     function launchupload()
  68.     {
  69.         window.open ("b2upload.php", "b2upload", "width=380,height=360,location=0,menubar=0,resizable=1,scrollbars=yes,status=1,toolbar=0");
  70.     }
  71.     // End -->
  72. </script>
  73.  
  74. <!-- ================================ START OF EDIT FORM ================================ -->
  75.  
  76. <form name="post" id="post" action="edit_actions.php" target="_self" method="post">
  77.  
  78. <div class="left_col">
  79.  
  80.     <input type="hidden" id="blog" name="blog" value="<?php echo $blog ?>" />
  81.     <input type="hidden" id="action" name="action" value="<?php echo $form_action ?>" />
  82.     <input type="hidden" name="mode" value="<?php echo $mode ?>" />
  83.     <?php if$action == 'edit' ?>
  84.         <input type="hidden" name="post_ID" value="<?php echo $post ?>" />
  85.     <?php ?>
  86.  
  87.     <!-- In case we send this to the blog for a preview : -->
  88.     <input type="hidden" name="preview" value="1" />
  89.     <input type="hidden" name="more" value="1" />
  90.     <input type="hidden" name="preview_userid" value="<?php echo $user_ID ?>" />
  91.  
  92.     <fieldset>
  93.         <legend><?php echo T_('Post contents'?></legend>
  94.  
  95.     <?php
  96.  
  97.     if ($action != 'editcomment')
  98.     // ------------------------------ POST HEADER -----------------------
  99.     ?>
  100.  
  101.         <span class="line">
  102.         <label for="post_title"><strong><?php echo T_('Title'?>:</strong></label>
  103.         <input type="text" name="post_title" size="48" value="<?php echo format_to_output$post_title'htmlattr'?>" id="post_title" tabindex="1" />
  104.         </span>
  105.  
  106.         <span class="line">
  107.         <label for="post_locale"><strong><?php echo T_('Language'?>:</strong></label>
  108.         <select name="post_locale" id="post_locale" tabindex="2"><?php locale_options$post_locale ?></select>
  109.         </span>
  110.  
  111.         <?php if$use_post_url ?>
  112.         <span class="line">
  113.         <label for="post_url"><strong><?php echo T_('Link to url'?>:</strong></label>
  114.         <input type="text" name="post_url"  size="40" value="<?php echo format_to_output$post_url'htmlattr' ?>" id="post_url" tabindex="3" />
  115.         </span>
  116.         <?php else ?>
  117.         <input type="hidden" name="post_url"  size="40" value="" id="post_url" />
  118.         <?php
  119.         }
  120.     }
  121.     else
  122.     {    // -------------------------- COMMENT HEADER -----------------------
  123.         ?>
  124.         <input type="hidden" name="comment_ID" value="<?php echo $comment ?>" />
  125.     
  126.         <?php
  127.         if$edited_Comment->author_User === NULL )
  128.         // This is not a member comment
  129.             ?>
  130.             <span class="line">
  131.             <label for="name"><strong><?php echo T_('Name'?>:</strong></label><input type="text" name="newcomment_author" size="20" value="<?php echo format_to_edit($commentdata['comment_author']?>" id="name" tabindex="1" />
  132.             </span>
  133.     
  134.             <span class="line">
  135.             <label for="email"><strong><?php echo T_('Email'?>:</strong></label><input type="text" name="newcomment_author_email" size="20" value="<?php echo format_to_edit($commentdata['comment_author_email']?>" id="email" tabindex="2" />
  136.             </span>
  137.     
  138.             <span class="line">
  139.             <label for="URL"><strong><?php echo T_('URL'?>:</strong></label><input type="text" name="newcomment_author_url" size="20" value="<?php echo format_to_edit($commentdata['comment_author_url']?>" id="URL" tabindex="3" />
  140.             </span>
  141.         <?php
  142.         }
  143.     }
  144.     ?>
  145.  
  146.     <div class="edit_toolbars">
  147.     <?php // --------------------------- TOOLBARS ------------------------------------
  148.         $Toolbars->display();
  149.     ?>
  150.     </div>
  151.  
  152.     <?php // ---------------------------- TEXTAREA ------------------------------------- 
  153.     // Note: the pixel images are here for an IIS layout bug
  154.     ?>
  155.     <div class="edit_area"><img src="img/blank.gif" width="1" height="1" alt="" /><textarea rows="16" cols="40" name="content" id="content" tabindex="4"><?php echo $content ?></textarea><img src="img/blank.gif" width="1" height="1" alt="" /></div>
  156.     <script type="text/javascript" language="JavaScript">
  157.         <!--
  158.         // This is for toolbar plugins
  159.         b2evoCanvas = document.getElementById('content');
  160.         //-->
  161.     </script>
  162.  
  163.     <div class="edit_actions">
  164.     <?php
  165.     if($use_preview && ($action != 'editcomment') )
  166.     // ------------------------------- PREVIEW ---------------------------------- ?>
  167.         <input type="button" value="<?php echo T_('Preview'?>" onclick="open_preview(this.form);"
  168.         tabindex="9" />
  169.     <?php
  170.     }
  171.  
  172.     // ------------------------------- SAVE ---------------------------------- ?>
  173.     <input type="submit" value="<?php /* TRANS: the &nbsp; are just here to make the button larger. If your translation is a longer word, don't keep the &nbsp; */ echo T_('&nbsp; Save ! &nbsp;')?>" class="SaveButton" tabindex="10" />
  174.  
  175.     <?php
  176.     // ---------- DELETE ----------
  177.   if$action == 'edit' )
  178.     {    // Editing post
  179.         // Display delete button if current user has the rights:
  180.         $edited_Item->delete_link' '' ''#''#''DeleteButton'true );
  181.     }
  182.     elseif$action == 'editcomment' )
  183.     {    // Editing comment
  184.         // Display delete button if user has permission to:
  185.         $edited_Comment->delete_link' '' ''#''#''DeleteButton'true );
  186.     }
  187.  
  188.  
  189.     if$use_spellchecker )
  190.     // ------------------------------- SPELL CHECKER ---------------------------------- ?>
  191.         <input type="button" value="<?php echo T_('Spellcheck'?>"
  192.         onclick="DoSpell('post','content','');" tabindex="11" />
  193.     <?php }
  194.  
  195.     if$current_User->check_perm'upload' ) )
  196.     // ------------------------------- UPLOAD ---------------------------------- ?>
  197.         <input type="button" value="<?php echo T_('Upload a file/image'?>"
  198.         onclick="launchupload();" tabindex="12"  />
  199.         <?php 
  200.     
  201.  
  202.     ?>
  203.     </div>
  204.     </fieldset>
  205.  
  206.     <fieldset>
  207.         <legend><?php echo T_('Advanced properties'?></legend>
  208.         
  209.         <?php
  210.         if$current_User->check_perm'edit_timestamp' ) )
  211.         {    // ------------------------------------ TIME STAMP -------------------------------------
  212.             ?>
  213.             <div>
  214.             <input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp"
  215.                 tabindex="13" <?php if$edit_date echo 'checked="checked"' ?> />
  216.             <label for="timestamp"><strong><?php echo T_('Edit timestamp'?></strong>:</label>
  217.             <span class="nobr">
  218.             <input type="text" name="jj" value="<?php echo $jj ?>" size="2" maxlength="2" tabindex="14" />
  219.             <select name="mm" tabindex="15">
  220.             <?php
  221.             for ($i 1$i 13$i $i 1)
  222.             {
  223.                 echo "\t\t\t<option value=\"$i\"";
  224.                 if ($i == $mm)
  225.                 echo ' selected="selected"';
  226.                 if ($i 10{
  227.                     $ii '0'.$i;
  228.                 else {
  229.                     $ii "$i";
  230.                 }
  231.                 echo ">";
  232.                 if$mode == 'sidebar' )
  233.                     echo T_($month_abbrev[$ii]);
  234.                 else
  235.                     echo T_($month[$ii]);
  236.                 echo "</option>\n";
  237.             }
  238.             ?>
  239.         </select>
  240.         <input type="text" name="aa" value="<?php echo $aa ?>" size="4" maxlength="5" tabindex="16" />
  241.         </span>
  242.         <span class="nobr">@
  243.         <input type="text" name="hh" value="<?php echo $hh ?>" size="2" maxlength="2" tabindex="17" />:<input type="text" name="mn" value="<?php echo $mn ?>" size="2" maxlength="2" tabindex="18" />:<input type="text" name="ss" value="<?php echo $ss ?>" size="2" maxlength="2" tabindex="19" />
  244.         </span></div>
  245.         <?php
  246.         }
  247.         
  248.         if$action != 'editcomment' )
  249.         // this is for everything but comment editing
  250.         ?>
  251.         <div>
  252.             <span class="line">
  253.             <label for="post_urltitle"><strong><?php echo T_('URL Title'?>:</strong></label>
  254.             <input type="text" name="post_urltitle" id="post_urltitle" value="<?php echo format_to_output$post_urltitle'htmlattr' )?>" size="40" maxlength="50" tabindex="20" />
  255.             <span class="notes"><?php echo T_('(to be used in permalinks)'?></span>
  256.             </span>
  257.         </div>
  258.  
  259.         <?php
  260.         }
  261.  
  262.         // --------------------------- AUTOBR --------------------------------------     ?>
  263.         <input type="checkbox" class="checkbox" name="post_autobr" value="1" <?php
  264.         if$post_autobr echo ' checked="checked"' ?> id="autobr" tabindex="6" /><label for="autobr">
  265.         <strong><?php echo T_('Auto-BR'?></strong> <span class="notes"><?php echo T_('This option is deprecated, you should avoid using it.'?></span></label><br />
  266.  
  267.     </fieldset>
  268.             
  269.     <?php
  270.     if( ($action != 'editcomment'&& (get_bloginfo('allowpingbacks'|| get_bloginfo('allowtrackbacks')) )
  271.     // this is for everything but comment editing
  272.         ?>
  273.         <fieldset>
  274.         <legend><?php echo T_('Additional actions'?></legend>
  275.         <?php
  276.         ifget_bloginfo('allowpingbacks') )
  277.         // --------------------------- PINGBACK --------------------------------------
  278.         ?>
  279.         <div>
  280.             <input type="checkbox" class="checkbox" name="post_pingback" value="1" id="post_pingback" 
  281.                 <?php    if ($post_pingbackecho ' checked="checked"'?> />
  282.             <label for="post_pingback"><strong><?php echo T_('Pingback'?></strong> <span class="notes"><?php echo T_('(Send a pingback to all URLs in this post)'?></span></label>
  283.         </div>
  284.         <?php
  285.         }
  286.  
  287.         ifget_bloginfo('allowtrackbacks') )
  288.         {    // --------------------------- TRACKBACK --------------------------------------
  289.         ?>
  290.         <div>
  291.             <label for="trackback_url"><strong><?php echo T_('Trackback URLs'?>:</strong> <span class="notes"><?php echo T_('(Separate by space)'?></span></label><br /><input type="text" name="trackback_url" class="large" id="trackback_url" value="<?php echo format_to_output$post_trackbacks'htmlattr' )?>" />
  292.         </div>
  293.         <?php
  294.         }
  295.         ?>
  296.         </fieldset>
  297.     <?php            
  298.     }
  299.     ?>
  300.  
  301. </div>
  302.  
  303. <div class="right_col">
  304.  
  305. <?php
  306.  
  307. if$action != 'editcomment' )
  308. // ------------------------------- POST STATUS ---------------------------------- ?>
  309.     <fieldset>
  310.         <legend><?php echo T_('Status'?></legend>
  311.  
  312.         <?php
  313.         if$current_User->check_perm'blog_post_statuses''published'false$blog ) )
  314.         {
  315.         ?>
  316.         <label title="<?php echo T_('The post will be publicly published'?>"><input type="radio" name="post_status" value="published" class="checkbox" <?php if$post_status == 'published' echo 'checked="checked"'?> />
  317.         <?php echo T_('Published (Public)'?></label><br />
  318.         <?php
  319.         }
  320.         if$current_User->check_perm'blog_post_statuses''protected'false$blog ) )
  321.         {
  322.         ?>
  323.         <label title="<?php echo T_('The post will be published but visible only by logged-in blog members'?>"><input type="radio" name="post_status" value="protected" class="checkbox" <?php if$post_status == 'protected' echo 'checked="checked"'?> />
  324.         <?php echo T_('Protected (Members only)'?></label><br />
  325.         <?php
  326.         }
  327.         if$current_User->check_perm'blog_post_statuses''private'false$blog ) )
  328.         {
  329.         ?>
  330.         <label title="<?php echo T_('The post will be published but visible only by yourself'?>"><input type="radio" name="post_status" value="private" class="checkbox" <?php if$post_status == 'private' echo 'checked="checked"'?> />
  331.         <?php echo T_('Private (You only)'?></label><br />
  332.         <?php
  333.         }
  334.         if$current_User->check_perm'blog_post_statuses''draft'false$blog ) )
  335.         {
  336.         ?>
  337.         <label title="<?php echo T_('The post will appear only in the backoffice'?>"><input type="radio" name="post_status" value="draft" class="checkbox" <?php if$post_status == 'draft' echo 'checked="checked"'?> />
  338.         <?php echo T_('Draft (Not published!)'?></label><br />
  339.         <?php
  340.         }
  341.         if$current_User->check_perm'blog_post_statuses''deprecated'false$blog ) )
  342.         {
  343.         ?>
  344.         <label title="<?php echo T_('The post will appear only in the backoffice'?>"><input type="radio" name="post_status" value="deprecated" class="checkbox" <?php if$post_status == 'deprecated' echo 'checked="checked"'?> />
  345.         <?php echo T_('Deprecated (Not published!)'?></label><br />
  346.         <?php
  347.         }
  348.         ?>
  349.  
  350.     </fieldset>
  351.  
  352.  
  353.  
  354.     <fieldset class="extracats">
  355.         <legend><?php echo T_('Categories'?></legend>
  356.  
  357.         <div class="extracats">
  358.  
  359.         <p class="extracatnote"><?php echo T_('Select main category in target blog and optionally check additional categories'?>:</p>
  360.  
  361.     <?php
  362.         // ----------------------------  CATEGORIES ------------------------------
  363.         $default_main_cat 0;
  364.  
  365.         // ----------------- START RECURSIVE CAT LIST ----------------
  366.         cat_query();    // make sure the caches are loaded
  367.         /**
  368.          * callback to start sublist
  369.          */
  370.         function cat_select_before_first$parent_cat_ID$level )
  371.         {    // callback to start sublist
  372.             echo "\n<ul>\n";
  373.         }
  374.  
  375.         /**
  376.          * callback to display sublist element
  377.          */
  378.         function cat_select_before_each$cat_ID$level )
  379.         {    // callback to display sublist element
  380.             global $current_blog_ID$blog$cat$postdata$post_extracats$default_main_cat$action$tabindex$allow_cross_posting;
  381.             $this_cat get_the_category_by_ID$cat_ID );
  382.             echo '<li>';
  383.  
  384.             if$allow_cross_posting )
  385.             // We allow cross posting, display checkbox:
  386.                 echo'<input type="checkbox" name="post_extracats[]" class="checkbox" title="'T_('Select as an additionnal category''" value="',$cat_ID,'"';
  387.                 if (($cat_ID == $postdata["Category"]or (in_array$cat_ID$post_extracats )))
  388.                     echo ' checked="checked"';
  389.                 echo ' />';
  390.             }
  391.  
  392.             // Radio for main cat:
  393.             if( ($current_blog_ID == $blog|| ($allow_cross_posting 2) )
  394.             // This is current blog or we allow moving posts accross blogs
  395.                 if( ($default_main_cat == 0&& ($action == 'post'&& ($current_blog_ID == $blog) )
  396.                 {    // Assign default cat for new post
  397.                     $default_main_cat $cat_ID;
  398.                 }
  399.                 echo ' <input type="radio" name="post_category" class="checkbox" title="'T_('Select as MAIN category')'" value="',$cat_ID,'"';
  400.                 if( ($cat_ID == $postdata["Category"]|| ($cat_ID == $default_main_cat))
  401.                     echo ' checked="checked"';
  402.                 echo ' />';
  403.             }
  404.             echo ' '.$this_cat['cat_name'];
  405.         }
  406.         /**
  407.          * callback after each sublist element
  408.          */
  409.         function cat_select_after_each$cat_ID$level )
  410.         {    // callback after each sublist element
  411.             echo "</li>\n";
  412.         }
  413.         /**
  414.          * callback to end sublist
  415.          */
  416.         function cat_select_after_last$parent_cat_ID$level )
  417.         {    // callback to end sublist
  418.             echo "</ul>\n";
  419.         }
  420.  
  421.         if$allow_cross_posting >= )
  422.         {    // If BLOG cross posting enabled, go through all blogs with cats:
  423.             foreach$cache_blogs as $i_blog )
  424.             // run recursively through the cats
  425.                 $current_blog_ID $i_blog->blog_ID;
  426.                 ifblog_has_cats$current_blog_ID ) ) continue;
  427.                 if$current_User->check_perm'blog_post_statuses''any'false$current_blog_ID ) ) continue;
  428.                 echo "<h4>".$i_blog->blog_name."</h4>\n";
  429.                 cat_children$cache_categories$current_blog_IDNULL'cat_select_before_first',
  430.                                             'cat_select_before_each''cat_select_after_each''cat_select_after_last');
  431.             }
  432.  
  433.       if$allow_cross_posting >= )
  434.       {
  435.         echo '<p class="extracatnote">'.T_('Note: Moving posts across blogs is enabled. Use with caution.').'</p> ';
  436.       }
  437.       echo '<p class="extracatnote">'.T_('Note: Cross posting among multiple blogs is enabled.').'</p>';
  438.         }
  439.         else
  440.         {    // BLOG Cross posting is disabled. Current blog only:
  441.             $current_blog_ID $blog;
  442.             cat_children$cache_categories$current_blog_IDNULL'cat_select_before_first',
  443.                                         'cat_select_before_each''cat_select_after_each''cat_select_after_last');
  444.             ?>
  445.             <p class="extracatnote"><?php
  446.             if$allow_cross_posting )
  447.                 echo T_('Note: Cross posting among multiple blogs is currently disabled.');
  448.             else
  449.                 echo T_('Note: Cross posting among multiple categories is currently disabled.');
  450.             ?></p>
  451.             <?php
  452.         }
  453.         // ----------------- END RECURSIVE CAT LIST ----------------
  454.         ?>
  455.         </div>
  456.     </fieldset>
  457.  
  458.     <fieldset>
  459.         <legend><?php echo T_('Comments'?></legend>
  460.  
  461.         <label title="<?php echo T_('Visitors can leave comments on this post.'?>"><input type="radio" name="post_comments" value="open" class="checkbox" <?php if$post_comments == 'open' echo 'checked="checked"'?> />
  462.         <?php echo T_('Open'?></label><br />
  463.  
  464.         <label title="<?php echo T_('Visitors can NOT leave comments on this post.'?>"><input type="radio" name="post_comments" value="closed" class="checkbox" <?php if$post_comments == 'closed' echo 'checked="checked"'?> />
  465.         <?php echo T_('Closed'?></label><br />
  466.  
  467.         <label title="<?php echo T_('Visitors cannot see nor leave comments on this post.'?>"><input type="radio" name="post_comments" value="disabled" class="checkbox" <?php if$post_comments == 'disabled' echo 'checked="checked"'?> />
  468.         <?php echo T_('Disabled'?></label><br />
  469.  
  470.     </fieldset>
  471.  
  472.     <fieldset>
  473.         <legend><?php echo T_('Renderers'?></legend>
  474.         <?php
  475.         $Renderer->restart();     // make sure iterator is at start position
  476.         while$loop_RendererPlugin $Renderer->get_next() )
  477.         // Go through whole list of renders
  478.             // echo ' ',$loop_RendererPlugin->code;
  479.             if$loop_RendererPlugin->apply_when == 'stealth'
  480.                 || $loop_RendererPlugin->apply_when == 'never' )
  481.             {    // This is not an option.
  482.                 continue;
  483.             }
  484.             ?>
  485.             <div>
  486.                 <input type="checkbox" class="checkbox" name="renderers[]" 
  487.                     value="<?php $loop_RendererPlugin->code(?>" id="<?php $loop_RendererPlugin->code(?>"  
  488.                     <?php    
  489.                     switch$loop_RendererPlugin->apply_when )
  490.                     {
  491.                         case 'always':
  492.                             // echo 'FORCED';
  493.                             echo ' checked="checked"';
  494.                             echo ' disabled="disabled"';
  495.                             break;
  496.                          
  497.                         case 'opt-out':
  498.                             ifin_array$loop_RendererPlugin->code$renderers // Option is activated
  499.                                 || in_array'default'$renderers ) ) // OR we're asking for default renderer set
  500.                             {
  501.                                 // echo 'OPT';
  502.                                 echo ' checked="checked"';
  503.                             }
  504.                             // else echo 'NO';
  505.                             break;
  506.         
  507.                         case 'opt-in':
  508.                             ifin_array$loop_RendererPlugin->code$renderers ) ) // Option is activated
  509.                             {
  510.                                 // echo 'OPT';
  511.                                 echo ' checked="checked"';
  512.                             }
  513.                             // else echo 'NO';
  514.                             break;
  515.  
  516.                         case 'lazy':
  517.                             // cannot select
  518.                             ifin_array$loop_RendererPlugin->code$renderers ) ) // Option is activated
  519.                             {
  520.                                 // echo 'OPT';
  521.                                 echo ' checked="checked"';
  522.                             }
  523.                             echo ' disabled="disabled"';
  524.                             break;
  525.                     }        
  526.                 ?>  
  527.                 title="<?php    $loop_RendererPlugin->short_desc()?>" />
  528.             <label for="<?php $loop_RendererPlugin->code(?>" title="<?php    $loop_RendererPlugin->short_desc()?>"><?php echo $loop_RendererPlugin->name()?></label>
  529.         </div>
  530.         <?php
  531.         }
  532.         ?>
  533.     </fieldset>
  534.  
  535. <?php
  536. }
  537.  
  538. if ($action == "editcomment")
  539. {
  540. ?>
  541.     <fieldset>
  542.         <legend><?php echo T_('Comment info'?></legend>
  543.         <p><strong><?php echo T_('Author'?>:</strong> <?php echo $edited_Comment->author(?></p>
  544.         <p><strong><?php echo T_('Type'?>:</strong> <?php echo $commentdata["comment_type"]?></p>
  545.         <p><strong><?php echo T_('Status'?>:</strong> <?php echo $commentdata["comment_status"]?></p>
  546.         <p><strong><?php echo T_('IP address'?>:</strong> <?php echo $commentdata["comment_author_IP"]?></p>
  547.  
  548. <?php
  549. }
  550. /* elseif ($action == "edit")
  551. {
  552. //         <p><strong>Pings:</strong> <?php echo in_array( 'pingsdone', $postdata["Flags"] ) ? 'Done':'Not done yet';
  553. }*/
  554.  
  555. ?>
  556.  
  557. </div>
  558.  
  559. <div class="clear"></div>
  560.  
  561. </form>
  562. <!-- ================================== END OF EDIT FORM ================================== -->

Documentation generated on Tue, 20 May 2008 01:53:49 +0200 by phpDocumentor 1.4.2