Implemented linker - class for admin_templates.php (templates automatic replace only)

Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org>
This commit is contained in:
Florian Aders (EleRas)
2011-06-13 20:27:08 +02:00
parent a55df73281
commit 6fe0b7f6a4
16 changed files with 22 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
$header
<form method="post" action="$filename">
<form method="post" action="{$linker->getLink(array('section' => 'templates'))}">
<input type="hidden" name="s" value="$s" />
<input type="hidden" name="page" value="$page" />
<input type="hidden" name="action" value="$action" />

View File

@@ -1,5 +1,5 @@
$header
<form method="post" action="$filename">
<form method="post" action="{$linker->getLink(array('section' => 'templates'))}">
<input type="hidden" name="s" value="$s" />
<input type="hidden" name="page" value="$page" />
<input type="hidden" name="action" value="$action" />

View File

@@ -11,7 +11,7 @@ $header
$templates
<if $add>
<tr>
<td colspan="4" class="field_display_border_left"><a href="$filename?page=$page&amp;action=add&amp;s=$s">{$lng['admin']['templates']['template_add']}</a></td>
<td colspan="4" class="field_display_border_left"><a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['templates']['template_add']}</a></td>
</tr>
</if>
</table>
@@ -28,7 +28,7 @@ $header
$filetemplates
<if $filetemplateadd>
<tr>
<td colspan="4" class="field_display_border_left"><a href="$filename?page=$page&amp;action=add&amp;s=$s&amp;files=files">{$lng['admin']['templates']['template_add']}</a></td>
<td colspan="4" class="field_display_border_left"><a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'add', 'files' => 'files'))}">{$lng['admin']['templates']['template_add']}</a></td>
</tr>
</if>
</table>

View File

@@ -1,5 +1,5 @@
$header
<form method="post" action="$filename">
<form method="post" action="{$linker->getLink(array('section' => 'templates'))}">
<input type="hidden" name="s" value="$s" />
<input type="hidden" name="page" value="$page" />
<input type="hidden" name="action" value="$action" />

View File

@@ -1,5 +1,5 @@
$header
<form method="post" action="$filename">
<form method="post" action="{$linker->getLink(array('section' => 'templates'))}">
<input type="hidden" name="s" value="$s" />
<input type="hidden" name="page" value="$page" />
<input type="hidden" name="action" value="$action" />

View File

@@ -1,5 +1,5 @@
$header
<form method="post" action="$filename">
<form method="post" action="{$linker->getLink(array('section' => 'templates'))}">
<input type="hidden" name="s" value="$s" />
<input type="hidden" name="page" value="$page" />
<input type="hidden" name="action" value="$action" />

View File

@@ -1,5 +1,5 @@
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
<td class="field_name_border_left">{$lng['admin']['templates'][$row['varname']]}</td>
<td class="field_name"><a href="$filename?s=$s&amp;page=$page&amp;action=deletef&amp;id={$row['id']}">{$lng['panel']['delete']}</a></td>
<td class="field_name"><a href="$filename?s=$s&amp;page=$page&amp;action=editf&amp;id={$row['id']}">{$lng['panel']['edit']}</a></td>
<td class="field_name"><a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'deletef', 'id' => $row['id']))}">{$lng['panel']['delete']}</a></td>
<td class="field_name"><a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'editf', 'id' => $row['id']))}">{$lng['panel']['edit']}</a></td>
</tr>

View File

@@ -1,6 +1,6 @@
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
<td class="field_name_border_left">{$language}</td>
<td class="field_name">{$template}</td>
<td class="field_name"><a href="$filename?s=$s&amp;page=$page&amp;action=delete&amp;subjectid=$subjectid&amp;mailbodyid=$mailbodyid">{$lng['panel']['delete']}</a></td>
<td class="field_name"><a href="$filename?s=$s&amp;page=$page&amp;action=edit&amp;subjectid=$subjectid&amp;mailbodyid=$mailbodyid">{$lng['panel']['edit']}</a></td>
<td class="field_name"><a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'delete', 'subjectid' => $subjectid, 'mailbodyid' => $mailbodyid))}">{$lng['panel']['delete']}</a></td>
<td class="field_name"><a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'edit', 'subjectid' => $subjectid, 'mailbodyid' => $mailbodyid))}">{$lng['panel']['edit']}</a></td>
</tr>