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:
@@ -1,5 +1,5 @@
|
|||||||
$header
|
$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="s" value="$s" />
|
||||||
<input type="hidden" name="page" value="$page" />
|
<input type="hidden" name="page" value="$page" />
|
||||||
<input type="hidden" name="action" value="$action" />
|
<input type="hidden" name="action" value="$action" />
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$header
|
$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="s" value="$s" />
|
||||||
<input type="hidden" name="page" value="$page" />
|
<input type="hidden" name="page" value="$page" />
|
||||||
<input type="hidden" name="action" value="$action" />
|
<input type="hidden" name="action" value="$action" />
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ $header
|
|||||||
$templates
|
$templates
|
||||||
<if $add>
|
<if $add>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="4" class="field_display_border_left"><a href="$filename?page=$page&action=add&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>
|
</tr>
|
||||||
</if>
|
</if>
|
||||||
</table>
|
</table>
|
||||||
@@ -28,7 +28,7 @@ $header
|
|||||||
$filetemplates
|
$filetemplates
|
||||||
<if $filetemplateadd>
|
<if $filetemplateadd>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="4" class="field_display_border_left"><a href="$filename?page=$page&action=add&s=$s&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>
|
</tr>
|
||||||
</if>
|
</if>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$header
|
$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="s" value="$s" />
|
||||||
<input type="hidden" name="page" value="$page" />
|
<input type="hidden" name="page" value="$page" />
|
||||||
<input type="hidden" name="action" value="$action" />
|
<input type="hidden" name="action" value="$action" />
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$header
|
$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="s" value="$s" />
|
||||||
<input type="hidden" name="page" value="$page" />
|
<input type="hidden" name="page" value="$page" />
|
||||||
<input type="hidden" name="action" value="$action" />
|
<input type="hidden" name="action" value="$action" />
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$header
|
$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="s" value="$s" />
|
||||||
<input type="hidden" name="page" value="$page" />
|
<input type="hidden" name="page" value="$page" />
|
||||||
<input type="hidden" name="action" value="$action" />
|
<input type="hidden" name="action" value="$action" />
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
<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_border_left">{$lng['admin']['templates'][$row['varname']]}</td>
|
||||||
<td class="field_name"><a href="$filename?s=$s&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' => 'deletef', 'id' => $row['id']))}">{$lng['panel']['delete']}</a></td>
|
||||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=editf&id={$row['id']}">{$lng['panel']['edit']}</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>
|
</tr>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
||||||
<td class="field_name_border_left">{$language}</td>
|
<td class="field_name_border_left">{$language}</td>
|
||||||
<td class="field_name">{$template}</td>
|
<td class="field_name">{$template}</td>
|
||||||
<td class="field_name"><a href="$filename?s=$s&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' => 'delete', 'subjectid' => $subjectid, 'mailbodyid' => $mailbodyid))}">{$lng['panel']['delete']}</a></td>
|
||||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=edit&subjectid=$subjectid&mailbodyid=$mailbodyid">{$lng['panel']['edit']}</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>
|
</tr>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ $header
|
|||||||
|
|
||||||
<section class="fullform bradiusodd">
|
<section class="fullform bradiusodd">
|
||||||
|
|
||||||
<form action="$filename" method="post" enctype="application/x-www-form-urlencoded">
|
<form action="{$linker->getLink(array('section' => 'templates'))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Froxlor - {$title}</legend>
|
<legend>Froxlor - {$title}</legend>
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ $header
|
|||||||
|
|
||||||
<section class="fullform bradiusodd">
|
<section class="fullform bradiusodd">
|
||||||
|
|
||||||
<form action="$filename" method="post" enctype="application/x-www-form-urlencoded">
|
<form action="{$linker->getLink(array('section' => 'templates'))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Froxlor - {$title}</legend>
|
<legend>Froxlor - {$title}</legend>
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ $header
|
|||||||
<if $add>
|
<if $add>
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="images/Froxlor/icons/templates_add.png" alt="" />
|
<img src="images/Froxlor/icons/templates_add.png" alt="" />
|
||||||
<a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['templates']['template_add']}</a>
|
<a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['templates']['template_add']}</a>
|
||||||
</div>
|
</div>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ $header
|
|||||||
<if $filetemplateadd>
|
<if $filetemplateadd>
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="images/Froxlor/icons/templates_add.png" alt="" />
|
<img src="images/Froxlor/icons/templates_add.png" alt="" />
|
||||||
<a href="$filename?page=$page&action=add&s=$s&files=files">{$lng['admin']['templates']['template_add']}</a>
|
<a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'add', 'files' => 'files'))}">{$lng['admin']['templates']['template_add']}</a>
|
||||||
</div>
|
</div>
|
||||||
</if>
|
</if>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ $header
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section class="tinyform bradiusodd">
|
<section class="tinyform bradiusodd">
|
||||||
<form method="post" action="$filename" enctype="application/x-www-form-urlencoded">
|
<form method="post" action="{$linker->getLink(array('section' => 'templates'))}" enctype="application/x-www-form-urlencoded">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Froxlor - {$lng['menue']['main']['changelanguage']}</legend>
|
<legend>Froxlor - {$lng['menue']['main']['changelanguage']}</legend>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ $header
|
|||||||
|
|
||||||
<section class="fullform bradiusodd">
|
<section class="fullform bradiusodd">
|
||||||
|
|
||||||
<form action="$filename" method="post" enctype="application/x-www-form-urlencoded">
|
<form action="{$linker->getLink(array('section' => 'templates'))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Froxlor - {$title}</legend>
|
<legend>Froxlor - {$title}</legend>
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ $header
|
|||||||
|
|
||||||
<section class="fullform bradiusodd">
|
<section class="fullform bradiusodd">
|
||||||
|
|
||||||
<form action="$filename" method="post" enctype="application/x-www-form-urlencoded">
|
<form action="{$linker->getLink(array('section' => 'templates'))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Froxlor - {$title}</legend>
|
<legend>Froxlor - {$title}</legend>
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>{$lng['admin']['templates'][$row['varname']]}</td>
|
<td>{$lng['admin']['templates'][$row['varname']]}</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="$filename?s=$s&page=$page&action=editf&id={$row['id']}">
|
<a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'editf', 'id' => $row['id']))}">
|
||||||
<img src="images/Froxlor/icons/edit.png" alt="{$lng['panel']['edit']}" />
|
<img src="images/Froxlor/icons/edit.png" alt="{$lng['panel']['edit']}" />
|
||||||
</a>
|
</a>
|
||||||
<a href="$filename?s=$s&page=$page&action=deletef&id={$row['id']}">
|
<a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'deletef', 'id' => $row['id']))}">
|
||||||
<img src="images/Froxlor/icons/delete.png" alt="{$lng['panel']['delete']}" />
|
<img src="images/Froxlor/icons/delete.png" alt="{$lng['panel']['delete']}" />
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
<td>{$language}</td>
|
<td>{$language}</td>
|
||||||
<td>{$template}</td>
|
<td>{$template}</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="$filename?s=$s&page=$page&action=edit&subjectid=$subjectid&mailbodyid=$mailbodyid" style="text-decoration:none;">
|
<a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'edit', 'subjectid' => $subjectid, 'mailbodyid' => $mailbodyid))}" style="text-decoration:none;">
|
||||||
<img src="images/Froxlor/icons/edit.png" alt="{$lng['panel']['edit']}" />
|
<img src="images/Froxlor/icons/edit.png" alt="{$lng['panel']['edit']}" />
|
||||||
</a>
|
</a>
|
||||||
<a href="$filename?s=$s&page=$page&action=delete&subjectid=$subjectid&mailbodyid=$mailbodyid" style="text-decoration:none;">
|
<a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'delete', 'subjectid' => $subjectid, 'mailbodyid' => $mailbodyid))}" style="text-decoration:none;">
|
||||||
<img src="images/Froxlor/icons/delete.png" alt="{$lng['panel']['delete']}" />
|
<img src="images/Froxlor/icons/delete.png" alt="{$lng['panel']['delete']}" />
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user