[pLog-svn] r2908 - in plog/trunk: class/action/adminclass/controller class/plugin class/view/admin js/ui localetemplates/admin

Mark Wu markplace at gmail.com
Tue Feb 7 12:01:24 GMT 2006


Hi Oscar:

1. For action parts, you are right, I think I can improve the
markcommentsaction to make it  accept change multiple comments
2. For UI parts, how to you think? Add two new buttons "mark as spam" =
and
"mark as non-spam" or use the current UI that I designed?

Mark

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net=20
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of=20
> Oscar Renalias
> Sent: Tuesday, February 07, 2006 12:04 PM
> To: plog-svn at devel.lifetype.net
> Subject: Re: [pLog-svn] r2908 - in plog/trunk:=20
> class/action/adminclass/controller class/plugin=20
> class/view/admin js/ui localetemplates/admin
>=20
> But wasn't this feature already there? At least it was=20
> already possible to select a bunch of them and delete them=20
> all at once via the button at the bottom right corner? All we=20
> had to do in this case was probably add a button to mark them=20
> as spam and one to mark them as not spam, right?
>=20
> Oscar
>=20
> On 2/6/06, mark at devel.lifetype.net <mark at devel.lifetype.net> wrote:
> > Author: mark
> > Date: 2006-02-06 08:35:40 +0000 (Mon, 06 Feb 2006) New=20
> Revision: 2908
> >
> > Added:
> >   =20
> >=20
> plog/trunk/class/action/admin/adminchangecommentsstatusaction.class.ph
> > p
> > Modified:
> >    plog/trunk/class/action/admin/admindeletecommentaction.class.php
> >    plog/trunk/class/controller/admincontrollermap.properties.php
> >    plog/trunk/class/plugin/eventlist.properties.php
> >   =20
> plog/trunk/class/view/admin/adminarticlecommentslistview.class.php
> >    plog/trunk/js/ui/plogui.js
> >    plog/trunk/locale/locale_en_UK.php
> >    plog/trunk/locale/locale_zh_TW.php
> >    plog/trunk/templates/admin/editcomments.template
> > Log:
> > Massive change of comments available, now.
> >
> > Added:=20
> >=20
> plog/trunk/class/action/admin/adminchangecommentsstatusaction.class.ph
> > p=20
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > ---=20
> plog/trunk/class/action/admin/adminchangecommentsstatusaction.
> class.php     2006-02-06 06:12:45 UTC (rev 2907)
> > +++=20
> plog/trunk/class/action/admin/adminchangecommentsstatusaction.
> class.php     2006-02-06 08:35:40 UTC (rev 2908)
> > @@ -0,0 +1,131 @@
> > +<?php
> > +
> > +       include_once(=20
> PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
> > +       include_once(=20
> PLOG_CLASS_PATH."class/view/admin/adminarticlecommentslistview
> .class.php" );
> > +    include_once( PLOG_CLASS_PATH."class/dao/articles.class.php" );
> > +    include_once(=20
> PLOG_CLASS_PATH."class/dao/articlecomments.class.php" );
> > +    include_once(=20
> PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
> > +       include_once(=20
> > + PLOG_CLASS_PATH."class/data/validator/arrayvalidator.class.php" );
> > +
> > +    /**
> > +     * \ingroup Action
> > +     * @private
> > +     *
> > +     * Action that shows a list of all the comments for a=20
> given post
> > +     */
> > +    class AdminChangeCommentsStatusAction extends AdminAction
> > +       {
> > +
> > +       var $_articleId;
> > +        var $_commentIds;
> > +        var $_commentStatus;
> > +
> > +       /**
> > +         * Constructor. If nothing else, it also has to=20
> call the constructor of the parent
> > +         * class, BlogAction with the same parameters
> > +         */
> > +        function AdminChangeCommentsStatusAction(=20
> $actionInfo, $request )
> > +        {
> > +               $this->AdminAction( $actionInfo, $request );
> > +                       $this->registerFieldValidator(=20
> "articleId", new IntegerValidator());
> > +                       $this->registerFieldValidator(=20
> "commentIds", new ArrayValidator());
> > +                       $this->registerFieldValidator(=20
> "commentStatus", new IntegerValidator());
> > +                       $view =3D new=20
> AdminArticleCommentsListView( $this->_blogInfo );
> > +                       $view->setErrorMessage(=20
> $this->_locale->tr("error_updating_comments"));
> > +                       $this->setValidationErrorView( $view );
> > +        }
> > +
> > +               /**
> > +                * sets up the parameters and calls the method below
> > +                */
> > +               function perform()
> > +               {
> > +                       $this->_articleId =3D=20
> $this->_request->getValue( "articleId" );
> > +                       $this->_commentIds =3D=20
> $this->_request->getValue( "commentIds" );
> > +                       $this->_commentStatus =3D=20
> > + $this->_request->getValue( "commentStatus" );
> > +
> > +                       $this->_changeComments();
> > +               }
> > +
> > +        /**
> > +         * changes comments status
> > +                * @private
> > +         */
> > +        function _changeComments()
> > +        {
> > +            $comments =3D new ArticleComments();
> > +            $errorMessage =3D "";
> > +                       $successMessage =3D "";
> > +                       $totalOk =3D 0;
> > +
> > +                       if( $articleId > 0 ) {
> > +                               // if we can't even load=20
> the article, then forget it...
> > +                               $articles =3D new Articles();
> > +                               $article =3D=20
> $articles->getBlogArticle( $this->_articleId,=20
> $this->_blogInfo->getId());
> > +                               if( !$article ) {
> > +                                       $this->_view =3D new=20
> AdminArticleCommentsListView( $this->_blogInfo );
> > +                                      =20
> $this->_view->setErrorMessage(=20
> $this->_locale->tr("error_fetching_post" ));
> > +                                       $this->setCommonData();
> > +
> > +                                       return false;
> > +                               }
> > +                       }
> > +                       else {
> > +                               // there was no article, so=20
> this probably was the view that shows all comments...
> > +                               $article =3D null;
> > +                       }
> > +
> > +                       // loop through the comments and remove them
> > +            foreach( $this->_commentIds as $commentId ) {
> > +               // fetch the comment
> > +                               $comment =3D $comments->getComment(=20
> > + $commentId );
> > +
> > +                               if( !$comment ) {
> > +                                       $errorMessage .=3D=20
> $this->_locale->pr("error_updating_comment2", $commentId);
> > +                               }
> > +                               else {
> > +                                       // fire the pre-event
> > +                                       $this->notifyEvent(=20
> > + EVENT_PRE_COMMENT_UPDATE, Array( "comment" =3D> &$comment ));
> > +
> > +                                       // check if the=20
> comment really belongs to this blog...
> > +                                       $article =3D=20
> $comment->getArticle();
> > +                                       if(=20
> $article->getBlogId() !=3D $this->_blogInfo->getId()) {
> > +                                               // if not,=20
> then we shouldn't be allowed to remove anything!
> > +                                              =20
> $errorMessage .=3D $this->_locale->pr("error_deleting_comment",=20
> $comment->getTopic())."<br/>";
> > +                                       }
> > +                                       else {
> > +                                               if(=20
> !$comments->updateCommentStatus( $commentId, $this->_commentStatus ))
> > +                                                      =20
> $errorMessage .=3D $this->_locale->pr("error_updating_comment",=20
> $comment->getTopic())."<br/>";
> > +                                               else {
> > +                                                       $totalOk++;
> > +                                                       if(=20
> $totalOk < 2 )
> > +                                                          =20
>     $successMessage .=3D=20
> $this->_locale->pr("comment_updating_ok",=20
> $comment->getTopic())."<br/>";
> > +                                                       else
> > +                                                              =20
> > + $successMessage =3D $this->_locale->pr("comments_updating_ok",=20
> > + $totalOk );
> > +
> > +                                                       //=20
> fire the post-event
> > +                                                      =20
> $this->notifyEvent( EVENT_POST_COMMENT_UPDATE, Array(=20
> "comment" =3D> &$comment ));
> > +                                               }
> > +                                       }
> > +                               }
> > +            }
> > +
> > +                       // if everything fine, then display=20
> the same view again with the feedback
> > +                       if( $this->_articleId =3D=3D 0 )
> > +                               $this->_view =3D new=20
> AdminArticleCommentsListView( $this->_blogInfo, Array(=20
> "article" =3D> null ));
> > +                       else
> > +                               $this->_view =3D new=20
> > + AdminArticleCommentsListView( $this->_blogInfo, Array(=20
> "article" =3D>=20
> > + $article ));
> > +
> > +                       if( $successMessage !=3D "" ) {
> > +                              =20
> $this->_view->setSuccessMessage( $successMessage );
> > +                               // clear the cache
> > +                              =20
> CacheControl::resetBlogCache( $this->_blogInfo->getId());
> > +                       }
> > +                       if( $errorMessage !=3D "" )=20
> $this->_view->setErrorMessage( $errorMessage );
> > +            $this->setCommonData();
> > +
> > +            // better to return true if everything fine
> > +            return true;
> > +        }
> > +    }
> > +?>
> >
> > Modified:=20
> > plog/trunk/class/action/admin/admindeletecommentaction.class.php
> > =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > ---=20
> plog/trunk/class/action/admin/admindeletecommentaction.class.p
> hp    2006-02-06 06:12:45 UTC (rev 2907)
> > +++=20
> plog/trunk/class/action/admin/admindeletecommentaction.class.p
> hp    2006-02-06 08:35:40 UTC (rev 2908)
> > @@ -2,7 +2,6 @@
> >
> >         include_once(=20
> PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
> >         include_once(=20
> PLOG_CLASS_PATH."class/view/admin/adminarticlecommentslistview
> .class.php" );
> > -       include_once(=20
> PLOG_CLASS_PATH."class/view/admin/adminpostslistview.class.php" );
> >      include_once( PLOG_CLASS_PATH."class/dao/articles.class.php" );
> >      include_once(=20
> PLOG_CLASS_PATH."class/dao/articlecomments.class.php" );
> >      include_once(=20
> >=20
> PLOG_CLASS_PATH."class/data/validator/integervalidator.class.p
> hp" ); @@ -35,7 +34,7 @@
> >                         else
> >                                 $this->registerFieldValidator(=20
> > "commentIds", new ArrayValidator());
> >
> > -                       $view =3D new AdminPostsListView(=20
> $this->_blogInfo );
> > +                       $view =3D new AdminArticleCommentsListView(=20
> > + $this->_blogInfo );
> >                         $view->setErrorMessage(=20
> $this->_locale->tr("error_deleting_comments"));
> >                         $this->setValidationErrorView( $view );
> >          }
> > @@ -73,7 +72,7 @@
> >                                 $articles =3D new Articles();
> >                                 $article =3D=20
> $articles->getBlogArticle( $this->_articleId,=20
> $this->_blogInfo->getId());
> >                                 if( !$article ) {
> > -                                       $this->_view =3D new=20
> AdminPostsListView( $this->_blogInfo );
> > +                                       $this->_view =3D new=20
> > + AdminArticleCommentsListView( $this->_blogInfo );
> >                                        =20
> $this->_view->setErrorMessage(=20
> $this->_locale->tr("error_fetching_post" ));
> >                                         $this->setCommonData();
> >
> >
> > Modified:=20
> > plog/trunk/class/controller/admincontrollermap.properties.php
> > =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > ---=20
> plog/trunk/class/controller/admincontrollermap.properties.php=20
>       2006-02-06 06:12:45 UTC (rev 2907)
> > +++=20
> plog/trunk/class/controller/admincontrollermap.properties.php=20
>       2006-02-06 08:35:40 UTC (rev 2908)
> > @@ -90,6 +90,8 @@
> >      // deletes a comment
> >      $actions["deleteComment"] =3D "AdminDeleteCommentAction";
> >         $actions["deleteComments"] =3D "AdminDeleteCommentAction";
> > +       // massive change comments status
> > +       $actions["changeCommentsStatus"] =3D=20
> > + "AdminChangeCommentsStatusAction";
> >      // show the user settings
> >      $actions["userSettings"] =3D "AdminUserSettingsAction";
> >      // update the user settings
> >
> > Modified: plog/trunk/class/plugin/eventlist.properties.php
> > =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > --- plog/trunk/class/plugin/eventlist.properties.php   =20
> 2006-02-06 06:12:45 UTC (rev 2907)
> > +++ plog/trunk/class/plugin/eventlist.properties.php   =20
> 2006-02-06 08:35:40 UTC (rev 2908)
> > @@ -37,8 +37,8 @@
> >         // before and after a comment is added, updated and deleted
> >         define( "EVENT_PRE_COMMENT_ADD", 18 );
> >         define( "EVENT_POST_COMMENT_ADD", 19 );
> > -       define( "EVENT_PRE_COMMENT_UPDATE", 20 ); // can't=20
> be generated!
> > -       define( "EVENT_POST_COMMENT_UPDATE", 21 ); // can't=20
> be generated!
> > +       define( "EVENT_PRE_COMMENT_UPDATE", 20 );
> > +       define( "EVENT_POST_COMMENT_UPDATE", 21 );
> >         define( "EVENT_PRE_COMMENT_DELETE", 22 );
> >         define( "EVENT_POST_COMMENT_DELETE", 23 );
> >         // before and after a comment is marked as spam and no-spam
> >
> > Modified:=20
> > plog/trunk/class/view/admin/adminarticlecommentslistview.class.php
> > =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > ---=20
> plog/trunk/class/view/admin/adminarticlecommentslistview.class.php =20
> > 2006-02-06 06:12:45 UTC (rev 2907)
> > +++=20
> plog/trunk/class/view/admin/adminarticlecommentslistview.class.php =20
> > +++ 2006-02-06 08:35:40 UTC (rev 2908)
> > @@ -111,9 +111,12 @@
> >
> >                         // get a list with all the=20
> different comment status
> >                         $statusList =3D=20
> > ArticleCommentStatus::getStatusList( true );
> > +                       $statusListWithoutAll =3D=20
> > + ArticleCommentStatus::getStatusList( false );
> > +
> >                         // and pass all the information to=20
> the templates
> >                         $this->setValue( "comments", $postComments);
> >                         $this->setValue( "commentstatus",=20
> $statusList=20
> > );
> > +                       $this->setValue( "commentstatusWithoutAll",=20
> > + $statusListWithoutAll );
> >                         $this->setValue( "currentstatus",=20
> $this->_commentStatus );
> >                         $this->setValue( "searchTerms",=20
> > $this->_searchTerms );
> >
> >
> > Modified: plog/trunk/js/ui/plogui.js
> > =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > --- plog/trunk/js/ui/plogui.js  2006-02-06 06:12:45 UTC (rev 2907)
> > +++ plog/trunk/js/ui/plogui.js  2006-02-06 08:35:40 UTC (rev 2908)
> > @@ -176,6 +176,25 @@
> >         }
> >  }
> >
> > +function submitCommentsList(op)
> > +{
> > +       if ( op =3D=3D 'changeCommentsStatus' )
> > +       {
> > +               if (=20
> document.getElementById("postCommentsList").commentStatus.valu
> e =3D=3D -1 )
> > +               window.alert(errorCommentStatusMsg);
> > +               else
> > +               {
> > +                      =20
> document.getElementById("postCommentsList").op.value =3D op;
> > +                      =20
> document.getElementById("postCommentsList").submit();
> > +               }
> > +       }
> > +       else
> > +       {
> > +              =20
> document.getElementById("postCommentsList").op.value =3D op;
> > +              =20
> document.getElementById("postCommentsList").submit();
> > +       }
> > +}
> > +
> >  function switchMassiveOption()
> >  {
> >         if ( $('massiveChangeOption').style.display =3D=3D 'none' )
> >
> > Modified: plog/trunk/locale/locale_en_UK.php
> > =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > --- plog/trunk/locale/locale_en_UK.php  2006-02-06 06:12:45=20
> UTC (rev=20
> > 2907)
> > +++ plog/trunk/locale/locale_en_UK.php  2006-02-06 08:35:40=20
> UTC (rev=20
> > +++ 2908)
> > @@ -986,7 +986,9 @@
> >  $messages['messave_change_option'] =3D 'Massive Change Option'; =20
> > $messages['show_massive_change_option'] =3D 'Show Massive Change=20
> > Options';  $messages['hide_massive_change_option'] =3D 'Hide Massive =

> > Change Options'; -$messages['error_post_status'] =3D 'Please=20
> select post=20
> > status.';  $messages['change_status'] =3D 'Change Status'; =20
> > $messages['change_category'] =3D 'Change Category';
> > +
> > +$messages['error_post_status'] =3D 'Please select post status.';=20
> > +$messages['error_comment_status'] =3D 'Please select comment=20
> status.';
> >  ?>
> > \ No newline at end of file
> >
> > Modified: plog/trunk/locale/locale_zh_TW.php
> > =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > --- plog/trunk/locale/locale_zh_TW.php  2006-02-06 06:12:45=20
> UTC (rev=20
> > 2907)
> > +++ plog/trunk/locale/locale_zh_TW.php  2006-02-06 08:35:40=20
> UTC (rev=20
> > +++ 2908)
> > @@ -986,7 +986,9 @@
> >  $messages['messave_change_option'] =3D =
'=A4j=B6q=AD=D7=A7=EF=BF=EF=B6=B5';
> >  $messages['show_massive_change_option'] =3D =
'=C5=E3=A5=DC=A4j=B6q=AD=D7=A7=EF=BF=EF=B6=B5';
> >  $messages['hide_massive_change_option'] =3D =
'=C1=F4=C2=C3=A4j=B6q=AD=D7=A7=EF=BF=EF=B6=B5';
> > -$messages['error_post_status'] =3D =
'=BD=D0=BF=EF=BE=DC=A4=E5=B3=B9=AA=AC=BAA=A1C';
> >  $messages['change_status'] =3D '=AD=D7=A7=EF=AA=AC=BAA';
> >  $messages['change_category'] =3D '=AD=D7=A7=EF=A4=C0=C3=FE';
> > +
> > +$messages['error_post_status'] =3D =
'=BD=D0=BF=EF=BE=DC=A4=E5=B3=B9=AA=AC=BAA=A1C';
> > +$messages['error_comment_status'] =3D =
'=BD=D0=BF=EF=BE=DC=B0j=C5T=AA=AC=BAA=A1C';
> >  ?>
> > \ No newline at end of file
> >
> > Modified: plog/trunk/templates/admin/editcomments.template
> > =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > --- plog/trunk/templates/admin/editcomments.template   =20
> 2006-02-06 06:12:45 UTC (rev 2907)
> > +++ plog/trunk/templates/admin/editcomments.template   =20
> 2006-02-06 08:35:40 UTC (rev 2908)
> > @@ -1,5 +1,11 @@
> >  {include file=3D"$admintemplatepath/header.template"}
> >  {include file=3D"$admintemplatepath/navigation.template"=20
> > showOpt=3DeditComments title=3D$locale->tr("editComments")}
> > +       <script type=3D"text/javascript"=20
> src=3D"js/ui/plogui.js"></script>
> > +       <script type=3D"text/javascript">
> > +               var errorCommentStatusMsg =3D=20
> '{$locale->tr("error_comment_status")}';
> > +               var showMassiveChangeOption =3D=20
> '{$locale->tr("show_massive_change_option")}';
> > +               var hideMassiveChangeOption =3D=20
> '{$locale->tr("hide_massive_change_option")}';
> > +       </script>
> >          <div id=3D"list_nav_bar">
> >              <div id=3D"list_nav_select">
> >
> > @@ -36,6 +42,9 @@
> >          </div>
> >
> >          <form id=3D"postCommentsList" action=3D"admin.php"=20
> method=3D"post">
> > +        <div class=3D"optionIcon">
> > +                       <a id=3D"optionIconLink" href=3D"#"=20
> title=3D"{$locale->tr("show_massive_change_option")}"=20
> onclick=3D"switchMassiveOption()">{$locale->tr("show_massive_cha
> nge_option")}</a>
> > +               </div>
> >          <div id=3D"list">
> >    {include file=3D"$admintemplatepath/successmessage.template"}
> >    {include file=3D"$admintemplatepath/errormessage.template"}
> > @@ -108,9 +117,22 @@
> >
> >          <div id=3D"list_action_bar">
> >             {include=20
> file=3D"$admintemplatepath/adminpager.template" style=3Dlist}
> > -            <input type=3D"submit" name=3D"delete"=20
> value=3D"{$locale->tr("delete")}" class=3D"submit" />
> >                         <input type=3D"hidden"=20
> name=3D"articleId" value=3D"{if $post}{$post->getId()}{else}0{/if}" />
> > -            <input type=3D"hidden" name=3D"op"=20
> value=3D"deleteComments" />
> > +            <input type=3D"button" name=3D"delete"=20
> value=3D"{$locale->tr("delete")}" class=3D"submit"=20
> onClick=3D"javascript:submitCommentsList('deleteComments');" />
> > +            <input type=3D"hidden" name=3D"op" value=3D"" />
> > +            <div id=3D"massiveChangeOption" style=3D"display: =
none">
> > +                <fieldset>
> > +               =20
> <legend>{$locale->tr("messave_change_option")}</legend>
> > +                           <label=20
> for=3D"commentStatus">{$locale->tr("status")}</label>
> > +                           <select name=3D"commentStatus"=20
> id=3D"commentStatus">
> > +                             <option=20
> value=3D"-1">-{$locale->tr("select")}-</option>
> > +                             {foreach=20
> from=3D$commentstatusWithoutAll key=3Dname item=3Dstatus}
> > +                               <option value=3D"{$status}"=20
> {if $currentstatus =3D=3D $status}=20
> selected=3D"selected"{/if}>{$locale->tr($name)}</option>
> > +                             {/foreach}
> > +                           </select>
> > +                           <input type=3D"button"=20
> name=3D"changeCommentsStatus"=20
> value=3D"{$locale->tr("change_status")}" class=3D"submit"=20
> onClick=3D"javascript:submitCommentsList('changeCommentsStatus');" />
> > +                       </fieldset>
> > +                       </div>
> >          </div>
> >          </form>
> >  {include file=3D"$admintemplatepath/footernavigation.template"}
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://devel.lifetype.net/mailman/listinfo/plog-svn
> >
>=20



More information about the pLog-svn mailing list