[pLog-svn] r6635 - plog/branches/lifetype-1.2/templates/admin

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sat Jun 21 15:40:17 EDT 2008


Author: jondaley
Date: 2008-06-21 15:40:17 -0400 (Sat, 21 Jun 2008)
New Revision: 6635

Modified:
   plog/branches/lifetype-1.2/templates/admin/sendtrackbacks.template
Log:
{counter} was the wrong thing to use - ids incremented twice for each trackback

Modified: plog/branches/lifetype-1.2/templates/admin/sendtrackbacks.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/sendtrackbacks.template	2008-06-21 19:39:35 UTC (rev 6634)
+++ plog/branches/lifetype-1.2/templates/admin/sendtrackbacks.template	2008-06-21 19:40:17 UTC (rev 6635)
@@ -8,16 +8,23 @@
   
   <label for="postLink">{$locale->tr("send_trackbacks")}</label>
   <div class="formHelp">{$locale->tr("send_trackbacks_help")}</div>
+  {assign var="trackbackCounter" value="0"}
   {if count($postLinks) != 0}
    {foreach from=$postLinks item=postLink}
-    <input class="checkbox" type="checkbox" id="postLink[{counter}]" name="postLink[{counter}]" value="{$postLink}" />
+    <input class="checkbox" type="checkbox"
+           id="postLink[{$trackbackCounter}]"
+           name="postLink[{$trackbackCounter}]" value="{$postLink}" />
     <a href="{$postLink}">{$postLink}</a><br/>
+    {assign var="trackbackCounter" value=$trackbackCounter+1}
    {/foreach}
   {/if}
   {if count($trackbackLinks) != 0}  
    {foreach from=$trackbackLinks item=trackbackLink}
-    <input class="checkbox" type="checkbox" id="trackbackLink[{counter}]" name="trackbackLink[{counter}]" value="{$trackbackLink}" checked />
+    <input class="checkbox" type="checkbox"
+           id="trackbackLink[{$trackbackCounter}]" 
+           name="trackbackLink[{$trackbackCounter}]" value="{$trackbackLink}" checked />
     <a href="{$trackbackLink}">{$trackbackLink}</a><br/>
+    {assign var="trackbackCounter" value=$trackbackCounter+1}
    {/foreach}
   {/if}
   
@@ -29,4 +36,4 @@
  </div>
 </form>
 {include file="$admintemplatepath/footernavigation.template"}
-{include file="$admintemplatepath/footer.template"}
\ No newline at end of file
+{include file="$admintemplatepath/footer.template"}



More information about the pLog-svn mailing list