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:
@@ -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&action=new&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&action=new&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>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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="" /> {$lng['ticket']['ticket_reopen']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm"><a href="$filename?page=tickets&action=reopen&id={$id}&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>
|
||||
|
||||
@@ -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&action=answer&id={$row['id']}&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&action=close&id={$row['id']}&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&action=reopen&id={$row['id']}&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>
|
||||
|
||||
Reference in New Issue
Block a user