Implemented linker - class for customer_tickets.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:56:08 +02:00
parent bdce761af0
commit e101d01e11
8 changed files with 18 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
$header
<form action="$filename" method="post">
<form action="{$linker->getLink(array('section' => 'tickets'))}" method="post">
<input type="hidden" name="s" value="$s" />
<input type="hidden" name="page" value="$page" />
<input type="hidden" name="send" value="send" />
@@ -28,7 +28,7 @@ $header
</tr>
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && 15 < $tickets_count && ($ticketsopen < $settings['ticket']['concurrently_open'] || ($settings['ticket']['concurrently_open'] == '-1' || $settings['ticket']['concurrently_open'] == '')) >
<tr>
<td class="field_display_border_left" colspan="8"><a href="$filename?page=tickets&amp;action=new&amp;s=$s">{$lng['ticket']['ticket_new']}</a></td>
<td class="field_display_border_left" colspan="8"><a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</a></td>
</tr>
</if>
<tr>
@@ -48,7 +48,7 @@ $header
</if>
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && ($ticketsopen < $settings['ticket']['concurrently_open'] || ($settings['ticket']['concurrently_open'] == '-1' || $settings['ticket']['concurrently_open'] == '')) >
<tr>
<td class="field_display_border_left" colspan="8"><a href="$filename?page=tickets&amp;action=new&amp;s=$s">{$lng['ticket']['ticket_new']}</a></td>
<td class="field_display_border_left" colspan="8"><a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</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' => 'tickets'))}">
<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' => 'tickets'))}">
<input type="hidden" name="s" value="$s" />
<input type="hidden" name="page" value="$page" />
<input type="hidden" name="action" value="$action" />
@@ -22,7 +22,7 @@ $header
<td class="maintitle"><b><img src="images/Classic/title.gif" alt="" />&nbsp;{$lng['ticket']['ticket_reopen']}</b></td>
</tr>
<tr>
<td class="main_field_confirm"><a href="$filename?page=tickets&amp;action=reopen&amp;id={$id}&amp;s=$s">{$lng['ticket']['ticket_reopen']}</a></td>
<td class="main_field_confirm"><a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'reopen', 'id' => $id))}">{$lng['ticket']['ticket_reopen']}</a></td>
</tr>
</table>
</if>

View File

@@ -6,17 +6,17 @@
<td class="field_name">{$row['lastreplier']}</td>
<td class="field_name">{$row['priority']}</td>
<td class="field_name">
<a href="$filename?page=tickets&amp;action=answer&amp;id={$row['id']}&amp;s=$s">
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'answer', 'id' => $row['id']))}">
<if $cananswer < 1 >{$lng['ticket']['show']}</if>
<if 0 < $cananswer >{$lng['ticket']['answer']}</if>
</a>
</td>
<td class="field_name">
<if $reopen < 1 >
<a href="$filename?page=tickets&amp;action=close&amp;id={$row['id']}&amp;s=$s">{$lng['ticket']['close']}</a>
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'close', 'id' => $row['id']))}">{$lng['ticket']['close']}</a>
</if>
<if 0 < $reopen >
<a href="$filename?page=tickets&amp;action=reopen&amp;id={$row['id']}&amp;s=$s">{$lng['ticket']['reopen']}</a>
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'reopen', 'id' => $row['id']))}">{$lng['ticket']['reopen']}</a>
</if>
</td>
</tr>