[pLog-svn] r3604 - plog/trunk/templates/admin

Mark Wu markplace at gmail.com
Sun Jun 18 13:01:10 GMT 2006


Hi Jon & Oscar:

Mmmmm ....Actutally, I don't like put them in the top of list.

Because it does not fit the UI layout design. And I also like the text is
align to the right... Instead of left. It looks weird.

Maybe we can follow  Oscar's idea... When we click the button, then we
scroll it to the bulk edit block. It sounds better.

Mark 

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of 
> Oscar Renalias
> Sent: Sunday, June 18, 2006 5:50 PM
> To: plog-svn at devel.lifetype.net
> Subject: Re: [pLog-svn] r3604 - plog/trunk/templates/admin
> 
> I was thinking about yesterday, but my idea was to still 
> display the block at the bottom, and that the page would be 
> automatically scrolled to the bottom to display the options.
> 
> This other approach doesn't look bad, but maybe the one who 
> implemented the feature has anything to say?
> 
> On 18 Jun 2006, at 02:55, Jon Daley wrote:
> 
> > 	Anyone have any objections to the massive edit options?  I was 
> > confused the first time I clicked on the "show massive" and nothing 
> > happened, since the box was off the screen.
> >
> >  On Sat, 17 Jun 2006, jondaley at devel.lifetype.net wrote:
> >
> >> Author: jondaley
> >> Date: 2006-06-17 23:23:09 +0000 (Sat, 17 Jun 2006) New 
> Revision: 3604
> >>
> >> Modified:
> >>   plog/trunk/templates/admin/editcomments.template
> >>   plog/trunk/templates/admin/editposts.template
> >>   plog/trunk/templates/admin/edittrackbacks.template
> >> Log:
> >> Put massive options at the top, so they are more obvious when you 
> >> click the 'show massive options'
> >> Use the 'title' attribute for <a href...> so it is more 
> obvious what 
> >> the icons do.
> >> (code is from Glen... thanks)
> >>
> >>
> >>
> >> Modified: plog/trunk/templates/admin/editcomments.template
> >> ===================================================================
> >> --- plog/trunk/templates/admin/editcomments.template	
> 2006-06-17  
> >> 23:10:37 UTC (rev 3603)
> >> +++ plog/trunk/templates/admin/editcomments.template	
> 2006-06-17  
> >> 23:23:09 UTC (rev 3604)
> >> @@ -44,7 +44,20 @@
> >>         <form id="postCommentsList" action="admin.php" 
> method="post">
> >>         <div class="optionIcon">
> >> 			<a id="optionIconLink" href="#" 
> title="{$locale->tr 
> >> ("show_massive_change_option")}" onclick="switchMassiveOption()"> 
> >> {$locale->tr("show_massive_change_option")}</a>
> >> -		</div>
> >> +		</div>
> >> +            <div id="massiveChangeOption" style="display: none">
> >> +                <fieldset>
> >> +                <legend>{$locale->tr("massive_change_option")}</
> >> legend>
> >> +		            <label 
> for="commentStatus">{$locale->tr("status")}</
> >> label>
> >> +		            <select name="commentStatus" 
> id="commentStatus">
> >> +		              <option 
> value="-1">-{$locale->tr("select")}-</
> >> option>
> >> +		              {foreach 
> from=$commentstatusWithoutAll key=name
> >> item=status}
> >> +		                <option 
> value="{$status}">{$locale->tr($name)}</
> >> option>
> >> +		              {/foreach}
> >> +		            </select>
> >> +		            <input type="button" 
> name="changeCommentsStatus"  
> >> value="{$locale->tr("change_status")}" class="submit"  
> >> onClick="javascript:submitCommentsList('changeCommentsStatus');" />
> >> +		        </fieldset>
> >> +			</div>
> >>         <div id="list">
> >>   {include file="$admintemplatepath/successmessage.template"}
> >>   {include file="$admintemplatepath/errormessage.template"}
> >> @@ -96,19 +109,19 @@
> >>                         </td>
> >>                         <td>
> >>                             <div class="list_action_button">
> >> -                            <a href="? 
> >> op=deleteComment&amp;commentId={$comment->getId()}&amp;articleId=
> >> {if $post}{$post->getId()}{else}0{/if}"><img src="imgs/admin/ 
> >> icon_delete-16.png" alt="{$locale->tr("delete")}" /></a>
> >> +                            <a href="? 
> >> op=deleteComment&amp;commentId={$comment->getId()}&amp;articleId=
> >> {if $post}{$post->getId()}{else}0{/if}" title="{$locale->tr 
> >> ("delete")}">{html_image file="imgs/admin/icon_delete-16.png"}</a>
> >> 							{if 
> $comment->getStatus() == 0}
> >> -							    <a 
> href="?op=markComment&amp;mode=1&amp;articleId={if  
> >> $post}{$comment->getArticleId()}{else}0{/if}&amp;commentId=
> >> {$comment->getId()}">
> >> -								
>  <img src="imgs/admin/icon_spam-16.png" alt="{$locale->tr 
> >> ("mark_as_spam")}" />
> >> +							    <a 
> href="?op=markComment&amp;mode=1&amp;articleId={if
> >> $post}{$comment->getArticleId()}{else}0{/if}&amp;commentId=
> >> {$comment->getId()}"  title="{$locale->tr("mark_as_spam")}">
> >> +								
>  {html_image file="imgs/admin/icon_spam-16.png"}
> >> 								</a>
> >> 							{elseif 
> $comment->getStatus() == 1}
> >> -								
> <a href="?op=markComment&amp;mode=0&amp;articleId={if  
> >> $post}{$comment->getArticleId()}{else}0{/if}&amp;commentId=
> >> {$comment->getId()}">
> >> -								
>  <img src="imgs/admin/icon_nospam-16.png" alt="{$locale- 
> >> >tr("mark_as_no_spam")}" />
> >> +								
> <a href="?op=markComment&amp;mode=0&amp;articleId={if
> >> $post}{$comment->getArticleId()}{else}0{/if}&amp;commentId=
> >> {$comment->getId()}" title="{$locale->tr("mark_as_no_spam")}">
> >> +								
>  {html_image file="imgs/admin/icon_nospam-16.png"}
> >> 								</a>
> >> 							{/if}
> >> 							{if 
> $comment->getUserUrl()}
> >> -							  <a 
> href="{$comment->getUserUrl()}">
> >> -							   <img 
> src="imgs/admin/icon_url-16.png" alt="{$locale->tr 
> >> ("url")}" />
> >> +							  <a 
> href="{$comment->getUserUrl()}" title="{$locale->tr
> >> ("url")}">
> >> +							   
> {html_image file="imgs/admin/icon_url-16.png"}
> >> 							  </a>
> >> 							{/if}
> >>                             </div>
> >> @@ -124,19 +137,6 @@
> >> 			<input type="hidden" name="articleId" 
> value="{if $post}{$post-
> >> >getId()}{else}0{/if}" />
> >>             <input type="button" name="delete" value="{$locale->tr 
> >> ("delete")}" class="submit" onClick="javascript:submitCommentsList
> >> ('deleteComments');" />
> >>             <input type="hidden" name="op" value="" />
> >> -            <div id="massiveChangeOption" style="display: none">
> >> -                <fieldset>
> >> -                <legend>{$locale->tr("massive_change_option")}</ 
> >> legend>
> >> -		            <label 
> for="commentStatus">{$locale->tr("status")}</ 
> >> label>
> >> -		            <select name="commentStatus" 
> id="commentStatus">
> >> -		              <option 
> value="-1">-{$locale->tr("select")}-</ 
> >> option>
> >> -		              {foreach 
> from=$commentstatusWithoutAll key=name  
> >> item=status}
> >> -		                <option 
> value="{$status}">{$locale->tr($name)}</ 
> >> option>
> >> -		              {/foreach}
> >> -		            </select>
> >> -		            <input type="button" 
> name="changeCommentsStatus"  
> >> value="{$locale->tr("change_status")}" class="submit"  
> >> onClick="javascript:submitCommentsList('changeCommentsStatus');" />
> >> -		        </fieldset>
> >> -			</div>
> >>         </div>
> >>         </form>
> >> {include file="$admintemplatepath/footernavigation.template"}
> >>
> >> Modified: plog/trunk/templates/admin/editposts.template
> >> ===================================================================
> >> --- plog/trunk/templates/admin/editposts.template	2006-06-17  
> >> 23:10:37 UTC (rev 3603)
> >> +++ plog/trunk/templates/admin/editposts.template	2006-06-17  
> >> 23:23:09 UTC (rev 3604)
> >> @@ -76,7 +76,27 @@
> >>         <form id="postsList" action="admin.php" method="post">
> >>         <div class="optionIcon">
> >> 			<a id="optionIconLink" href="#" 
> title="{$locale->tr 
> >> ("show_massive_change_option")}" onclick="switchMassiveOption()"> 
> >> {$locale->tr("show_massive_change_option")}</a>
> >> -		</div>
> >> +		</div>
> >> +            <div id="massiveChangeOption" style="display: none">
> >> +                <fieldset>
> >> +                <legend>{$locale->tr("massive_change_option")}</
> >> legend>
> >> +		            <label 
> for="postStatus">{$locale->tr("status")}</
> >> label>
> >> +		            <select name="postStatus" id="postStatus">
> >> +		              <option 
> value="-1">-{$locale->tr("select")}-</
> >> option>
> >> +		              {foreach 
> from=$poststatusWithoutAll key=name
> >> item=status}
> >> +		                <option 
> value="{$status}">{$locale->tr($name)}</
> >> option>
> >> +		              {/foreach}
> >> +		            </select>
> >> +		            <input type="button" 
> name="changePostsStatus"  
> >> value="{$locale->tr("change_status")}" class="submit"  
> >> onClick="javascript:submitPostsList('changePostsStatus');" />
> >> +		            <label for="postCategories[]">{$locale->tr
> >> ("categories")}</label>
> >> +		            <select name="postCategories[]" 
> id="postCategories"  
> >> size="5" multiple="multiple">
> >> +		              {foreach name=categories from=$categories
> >> item=category}
> >> +		                <option value="{$category->getId()}" {if
> >> $smarty.foreach.categories.first} selected="selected" {/if}> 
> >> {$category->getName()}</option>
> >> +		              {/foreach}
> >> +		            </select>
> >> +		            <input type="button" 
> name="changePostsCategory"  
> >> value="{$locale->tr("change_category")}" class="submit"  
> >> onClick="javascript:submitPostsList('changePostsCategory');" />
> >> +		        </fieldset>
> >> +			</div>
> >>         <div id="list">
> >>   {include file="$admintemplatepath/successmessage.template"}
> >>   {include file="$admintemplatepath/errormessage.template"}
> >> @@ -145,10 +165,14 @@
> >>                         </td>
> >>                         <td>
> >>                             <div class="list_action_button">
> >> -                            <a href="?op=editPost&amp;postId= 
> >> {$post->getId()}"><img src="imgs/admin/icon_edit-16.png"  
> >> alt="{$locale->tr("edit")}" /></a>
> >> -                            <a href="?op=deletePost&amp;postId= 
> >> {$post->getId()}"><img src="imgs/admin/icon_delete-16.png"  
> >> alt="{$locale->tr("delete")}" /></a>
> >> -                            <a href="{$url->postPermalink 
> >> ($post)}"><img src="imgs/admin/icon_url-16.png" alt="{$locale->tr 
> >> ("permalink")}" /></a>
> >> -                            <a href="?op=postStats&amp;postId= 
> >> {$post->getId()}"><img src="imgs/admin/icon_stats-16.png"  
> >> alt="{$locale->tr("statistics")}" /></a>
> >> +                            <a href="?op=editPost&amp;postId=
> >> {$post->getId()}" title="{$locale->tr("edit")}">
> >> +                                {html_image file="imgs/admin/
> >> icon_edit-16.png"}</a>
> >> +                            <a href="?op=deletePost&amp;postId=
> >> {$post->getId()}" title="{$locale->tr("delete")}">
> >> +                                {html_image file="imgs/admin/
> >> icon_delete-16.png"}</a>
> >> +                            <a href="{$url->postPermalink
> >> ($post)}" title="{$locale->tr("permalink")}">
> >> +                                {html_image file="imgs/admin/
> >> icon_url-16.png"}</a>
> >> +                            <a href="?op=postStats&amp;postId=
> >> {$post->getId()}" title="{$locale->tr("statistics")}">
> >> +                                {html_image file="imgs/admin/
> >> icon_stats-16.png"}</a>
> >>                             </div>
> >>                         </td>
> >>                     </tr>
> >> @@ -160,26 +184,6 @@
> >>             {include 
> file="$admintemplatepath/adminpager.template"  
> >> style=list}
> >>             <input type="button" name="delete" value="{$locale->tr 
> >> ("delete")}" class="submit" onClick="javascript:submitPostsList
> >> ('deletePosts');" />
> >>             <input type="hidden" name="op" value="" />
> >> -            <div id="massiveChangeOption" style="display: none">
> >> -                <fieldset>
> >> -                <legend>{$locale->tr("massive_change_option")}</ 
> >> legend>
> >> -		            <label 
> for="postStatus">{$locale->tr("status")}</ 
> >> label>
> >> -		            <select name="postStatus" id="postStatus">
> >> -		              <option 
> value="-1">-{$locale->tr("select")}-</ 
> >> option>
> >> -		              {foreach 
> from=$poststatusWithoutAll key=name  
> >> item=status}
> >> -		                <option 
> value="{$status}">{$locale->tr($name)}</ 
> >> option>
> >> -		              {/foreach}
> >> -		            </select>
> >> -		            <input type="button" 
> name="changePostsStatus"  
> >> value="{$locale->tr("change_status")}" class="submit"  
> >> onClick="javascript:submitPostsList('changePostsStatus');" />
> >> -		            <label for="postCategories[]">{$locale->tr 
> >> ("categories")}</label>
> >> -		            <select name="postCategories[]" 
> id="postCategories"  
> >> size="5" multiple="multiple">
> >> -		              {foreach name=categories 
> from=$categories  
> >> item=category}
> >> -		                <option 
> value="{$category->getId()}" {if  
> >> $smarty.foreach.categories.first} selected="selected" {/if}> 
> >> {$category->getName()}</option>
> >> -		              {/foreach}
> >> -		            </select>
> >> -		            <input type="button" 
> name="changePostsCategory"  
> >> value="{$locale->tr("change_category")}" class="submit"  
> >> onClick="javascript:submitPostsList('changePostsCategory');" />
> >> -		        </fieldset>
> >> -			</div>
> >>         </div>
> >>
> >>         </form>
> >>
> >> Modified: plog/trunk/templates/admin/edittrackbacks.template
> >> ===================================================================
> >> --- plog/trunk/templates/admin/edittrackbacks.template	
> 2006-06-17  
> >> 23:10:37 UTC (rev 3603)
> >> +++ plog/trunk/templates/admin/edittrackbacks.template	
> 2006-06-17  
> >> 23:23:09 UTC (rev 3604)
> >> @@ -45,7 +45,20 @@
> >>         <form id="postTrackbacksList" action="admin.php"  
> >> method="post">
> >>         <div class="optionIcon">
> >> 			<a id="optionIconLink" href="#" 
> title="{$locale->tr 
> >> ("show_massive_change_option")}" onclick="switchMassiveOption()"> 
> >> {$locale->tr("show_massive_change_option")}</a>
> >> -		</div>
> >> +		</div>
> >> +            <div id="massiveChangeOption" style="display: none">
> >> +                <fieldset>
> >> +                <legend>{$locale->tr("massive_change_option")}</
> >> legend>
> >> +		            <label 
> for="trackbackStatus">{$locale->tr("status")}
> >> </label>
> >> +		            <select name="trackbackStatus" 
> id="trackbackStatus">
> >> +		              <option 
> value="-1">-{$locale->tr("select")}-</
> >> option>
> >> +		              {foreach 
> from=$commentstatusWithoutAll key=name
> >> item=status}
> >> +		                <option 
> value="{$status}">{$locale->tr($name)}</
> >> option>
> >> +		              {/foreach}
> >> +		            </select>
> >> +		            <input type="button" 
> name="changeTrackbacksStatus"  
> >> value="{$locale->tr("change_status")}" class="submit"  
> >> onClick="javascript:submitTrackbacksList
> >> ('changeTrackbacksStatus');" />
> >> +		        </fieldset>
> >> +			</div>
> >>         <div id="list">
> >> 		  {include 
> file="$admintemplatepath/successmessage.template"}
> >> 		  {include 
> file="$admintemplatepath/errormessage.template"}
> >> @@ -95,19 +108,19 @@
> >>                         </td>
> >>                         <td>
> >>                             <div class="list_action_button">
> >> -                             <a href="? 
> >> op=deleteTrackback&amp;articleId={if $post}{$post->getId()}{else}0 
> >> {/if}&amp;trackbackId={$trackback->getId()}"><img src="imgs/admin/ 
> >> icon_delete-16.png" alt="{$locale->tr("delete_trackback")}" /></a>
> >> +                             <a href="? 
> >> op=deleteTrackback&amp;articleId={if $post}{$post->getId()}{else}0 
> >> {/if}&amp;trackbackId={$trackback->getId()}" title="{$locale->tr 
> >> ("delete_trackback")}">{html_image file="imgs/admin/ 
> >> icon_delete-16.png"}</a>
> >> 							{if 
> $trackback->getStatus() == 0}
> >> -							    <a 
> href="?op=markTrackback&amp;mode=1&amp;articleId= 
> >> {if $post}{$post->getId()}{else}0{/if}&amp;trackbackId={$trackback-
> >> >getId()}">
> >> -								
>  <img src="imgs/admin/icon_spam-16.png" alt="{$locale->tr 
> >> ("mark_as_spam")}" />
> >> +							    <a 
> href="?op=markTrackback&amp;mode=1&amp;articleId=
> >> {if $post}{$post->getId()}{else}0{/if}&amp;trackbackId={$trackback-
> >> >getId()}" title="{$locale->tr("mark_as_spam")}">
> >> +								
>  {html_image file="imgs/admin/icon_spam-16.png"}
> >> 								</a>
> >> 							{elseif 
> $trackback->getStatus() == 1}
> >> -								
> <a href="?op=markTrackback&amp;mode=0&amp;articleId={if  
> >> $post}{$post->getId()}{else}0{/if}&amp;trackbackId={$trackback-
> >> >getId()}">
> >> -								
>  <img src="imgs/admin/icon_nospam-16.png" alt="{$locale- 
> >> >tr("mark_as_no_spam")}" />
> >> +								
> <a href="?op=markTrackback&amp;mode=0&amp;articleId={if
> >> $post}{$post->getId()}{else}0{/if}&amp;trackbackId={$trackback-
> >> >getId()}" title="{$locale->tr("mark_as_no_spam")}">
> >> +								
>  {html_image file="imgs/admin/icon_nospam-16.png"}
> >> 								</a>
> >> 							{/if}
> >>                             {if $trackback->getUserUrl()}
> >> -                                <a href="{$trackback->getUserUrl 
> >> ()}">
> >> -                                 <img src="imgs/admin/ 
> >> icon_url-16.png" alt="{$locale->tr("url")}" />
> >> +                                <a href="{$trackback->getUserUrl
> >> ()}" alt="{$locale->tr("url")}">
> >> +                                 {html_image file="imgs/admin/
> >> icon_url-16.png"}
> >>                                 </a>
> >>                             {/if}
> >>                             </div>
> >> @@ -122,19 +135,6 @@
> >> 			<input type="hidden" name="articleId" 
> value="{if $post}{$post-
> >> >getId()}{else}0{/if}" />
> >>             <input type="button" name="delete" value="{$locale->tr 
> >> ("delete")}" class="submit"
> >> onClick="javascript:submitTrackbacksList('deleteTrackbacks');" />
> >>             <input type="hidden" name="op" value="" />
> >> -            <div id="massiveChangeOption" style="display: none">
> >> -                <fieldset>
> >> -                <legend>{$locale->tr("massive_change_option")}</ 
> >> legend>
> >> -		            <label 
> for="trackbackStatus">{$locale->tr("status")} 
> >> </label>
> >> -		            <select name="trackbackStatus" 
> id="trackbackStatus">
> >> -		              <option 
> value="-1">-{$locale->tr("select")}-</ 
> >> option>
> >> -		              {foreach 
> from=$commentstatusWithoutAll key=name  
> >> item=status}
> >> -		                <option 
> value="{$status}">{$locale->tr($name)}</ 
> >> option>
> >> -		              {/foreach}
> >> -		            </select>
> >> -		            <input type="button" 
> name="changeTrackbacksStatus"  
> >> value="{$locale->tr("change_status")}" class="submit"  
> >> onClick="javascript:submitTrackbacksList
> >> ('changeTrackbacksStatus');" />
> >> -		        </fieldset>
> >> -			</div>
> >>         </div>
> >>
> >> 	</form>
> >>
> >> _______________________________________________
> >> pLog-svn mailing list
> >> pLog-svn at devel.lifetype.net
> >> http://devel.lifetype.net/mailman/listinfo/plog-svn
> >>
> >
> > **************************************
> > Jon Daley
> > http://jon.limedaley.com/
> >
> > If electrical and computer engineers made the roads in Pittsburgh,
> >   there'd be solder all over the place...
> > -- Ryohei Ota
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://devel.lifetype.net/mailman/listinfo/plog-svn
> >
> 
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn



More information about the pLog-svn mailing list