[pLog-svn] r1819 - plog/branches/plog-1.0.1/templates/admin
Oscar Renalias
phunkphorce at gmail.com
Tue Apr 12 12:32:12 GMT 2005
Yes, it looks good to me. It's exactly what I was going to suggest...
it's the easiest and most elegant solution anyway :)
Oscar
On Apr 12, 2005 3:26 PM, Mark Wu <markplace at gmail.com> wrote:
> Hi Oscar:
>
> I already do the implementation by this idea. I add a new parameter "action"
> to adminmainaction.class.php. It represents the "nextAction" after we
> select the blog. If there no action parameter, we take "newPost" as default
> next action.
>
> So, I use it to perform editPost,editComment, deleteComments .... In
> dashBoard.
>
> After improve the adminmainaction.class.php, I just need to change the url
>
> http://localhost/plog/admin.php?op=editPost&postId=2
>
> to
>
> http://localhost/plog/admin.php?op=blogSelect&blogId=1&action=editPost&postI
> d=2
>
> It works very well.. :D
>
> How do you think?
>
> Mark
>
> -----Original Message-----
> From: Mark Wu [mailto:markplace at gmail.com]
> Sent: Tuesday, April 12, 2005 7:29 PM
> To: 'oscar at renalias.net'; 'plog-svn at devel.plogworld.net'
> Subject: RE: [pLog-svn] r1819 - plog/branches/plog-1.0.1/templates/admin
>
> Maybe I should write a new action that will check the current session blogid
> is the same as blogid in request url or not.
>
> If yes, I just forward the action to the next one (editpost, deletepost,
> delete comments ....)
>
> If not, I will create blogInfo and the store the bloginfo to session. And
> then forward the action to the next one (editpost, deletepost, delete
> comments ....)
>
> Do you think this doable?
>
> Mark
>
> -----Original Message-----
> From: plog-svn-bounces at devel.plogworld.net
> [mailto:plog-svn-bounces at devel.plogworld.net] On Behalf Of Oscar Renalias
> Sent: Tuesday, April 12, 2005 7:06 PM
> To: plog-svn at devel.plogworld.net
> Subject: Re: [pLog-svn] r1819 - plog/branches/plog-1.0.1/templates/admin
>
> have you tried if this will work? I think it won't because there is no
> BlogInfo until you click the name of the blog on the top of the page.
> Try adding a "blogId=XX" in every URL, might help...
>
> Oscar
>
> On Apr 12, 2005 1:55 PM, mark at devel.plogworld.net <mark at devel.plogworld.net>
> wrote:
> > Author: mark
> > Date: 2005-04-12 10:55:29 +0000 (Tue, 12 Apr 2005) New Revision: 1819
> >
> > Modified:
> > plog/branches/plog-1.0.1/templates/admin/dashboard.template
> > Log:
> > Add actions to dashboard.template, I think it is more cool then
> > current one :D
> >
> > Modified: plog/branches/plog-1.0.1/templates/admin/dashboard.template
> > ===================================================================
> > --- plog/branches/plog-1.0.1/templates/admin/dashboard.template
> > 2005-04-12 10:49:04 UTC (rev 1818)
> > +++ plog/branches/plog-1.0.1/templates/admin/dashboard.template
> > +++ 2005-04-12 10:55:29 UTC (rev 1819)
> > @@ -17,9 +17,8 @@
> > <h3>{$locale->tr("recent_articles")}</h3>
> > <table class="dashboard_data_table">
> > <tr>
> > - <th>
> > - {$locale->tr("topic")}
> > - </th>
> > + <th>{$locale->tr("topic")}</th>
> > + <th
> > + style="width:60px;">{$locale->tr("actions")}</th>
> > </tr>
> > {assign var=blogId value=$blog->getId()}
> > {assign var=url
> > value=$blog->getBlogRequestGenerator()}
> > @@ -29,6 +28,12 @@
> > <td>
> > <a target="_blank"
> href="{$url->postPermalink($post)}">{$post->getTopic()}</a><br/>
> > </td>
> > + <td>
> > + <div class="list_action_button">
> > + <a
> href="?op=editPost&postId={$post->getId()}"><img
> src="imgs/admin/icon_edit-16.png" alt="{$locale->tr("edit")}" /></a>
> > + <a
> href="?op=deletePost&postId={$post->getId()}"><img
> src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" /></a>
> > + </div>
> > + </td>
> > </tr>
> > {/foreach}
> > </table>
> > @@ -36,18 +41,11 @@
> > <h3>{$locale->tr("recent_comments")}</h3>
> > <table class="dashboard_data_table">
> > <tr>
> > - <th>
> > - {$locale->tr("topic")}
> > - </th>
> > - <th>
> > - {$locale->tr("posted_by")}
> > - </th>
> > - <th>
> > - {$locale->tr("in")}
> > - </th>
> > - <th>
> > - {$locale->tr("date")}
> > - </th>
> > + <th>{$locale->tr("topic")}</th>
> > + <th>{$locale->tr("posted_by")}</th>
> > + <th>{$locale->tr("in")}</th>
> > + <th>{$locale->tr("date")}</th>
> > + <th
> > + style="width:60px;">{$locale->tr("actions")}</th>
> > </tr>
> > {** loop to print out the list of recent comments
> **}
> > {foreach from=$recentcomments[$blogId]
> > item=comment} @@ -74,6 +72,24 @@
> > {assign var=commentDate
> value=$comment->getDateObject()}
> > {$locale->formatDate($commentDate)}<br/>
> > </td>
> > + <td>
> > + <div class="list_action_button">
> > + <a
> href="?op=deleteComment&commentId={$comment->getId()}&articleId={$ar
> ticle->getId()}"><img src="imgs/admin/icon_delete-16.png"
> alt="{$locale->tr("delete")}" /></a>
> > + {if
> $comment->getStatus() == 0}
> > + <a
> href="?op=markComment&mode=1&articleId={$comment->getArticleId()}&am
> p;commentId={$comment->getId()}">
> > +
> <img src="imgs/admin/icon_spam-16.png" alt="{$locale->tr("mark_as_spam")}"
> />
> > +
> </a>
> > + {elseif
> $comment->getStatus() == 1}
> > + <a
> href="?op=markComment&mode=0&articleId={$comment->getArticleId()}&am
> p;commentId={$comment->getId()}">
> > +
> <img src="imgs/admin/icon_nospam-16.png"
> alt="{$locale->tr("mark_as_no_spam")}" />
> > +
> </a>
> > + {/if}
> > + {if
> $comment->getUserUrl()}
> > + <a
> href="{$comment->getUserUrl()}">
> > + <img
> src="imgs/admin/icon_url-16.png" alt="{$locale->tr("url")}" />
> > + {/if}
> > + </div>
> > + </td>
> > </tr>
> > {/foreach}
> > </table>
> > @@ -81,15 +97,10 @@
> > <h3>{$locale->tr("recent_trackbacks")}</h3>
> > <table class="dashboard_data_table">
> > <tr>
> > - <th>
> > - {$locale->tr("topic")}
> > - </th>
> > - <th>
> > - {$locale->tr("in")}
> > - </th>
> > - <th>
> > - {$locale->tr("date")}
> > - </th>
> > + <th>{$locale->tr("topic")}</th>
> > + <th>{$locale->tr("in")}</th>
> > + <th>{$locale->tr("date")}</th>
> > + <th
> > + style="width:60px;">{$locale->tr("actions")}</th>
> > </tr>
> > {** loop to print out the list of recent
> trackbacks **}
> > {foreach from=$recenttrackbacks[$blogId]
> > item=trackback} @@ -111,6 +122,11 @@
> > {assign var=trackbackDate
> value=$trackback->getDateObject()}
> >
> {$locale->formatDate($trackbackDate)}<br/>
> > </td>
> > + <td>
> > + <div class="list_action_button">
> > + <a
> href="?op=deleteTrackback&articleId={$article->getId()}&trackbackId=
> {$trackback->getId()}"><img src="imgs/admin/icon_delete-16.png"
> alt="{$locale->tr("delete_trackback")}" /></a>
> > + </div>
> > + </td>
> > </tr>
> > {/foreach}
> > </table>
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.plogworld.net
> > http://devel.plogworld.net/mailman/listinfo/plog-svn
> >
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.plogworld.net
> http://devel.plogworld.net/mailman/listinfo/plog-svn
>
>
More information about the pLog-svn
mailing list