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>
|
||||
|
||||
@@ -9,7 +9,7 @@ $header
|
||||
|
||||
<section>
|
||||
|
||||
<form action="$filename" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<form action="{$linker->getLink(array('section' => 'tickets'))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||
|
||||
<div class="overviewsearch">
|
||||
{$searchcode}
|
||||
@@ -31,7 +31,7 @@ $header
|
||||
<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'] == '')) >
|
||||
<div class="overviewadd">
|
||||
<img src="images/Froxlor/icons/ticket_add.png" alt="" />
|
||||
<a href="$filename?page=tickets&action=new&s=$s">{$lng['ticket']['ticket_new']}</a>
|
||||
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</a>
|
||||
</div>
|
||||
</if>
|
||||
|
||||
@@ -70,7 +70,7 @@ $header
|
||||
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && ($ticketsopen < $settings['ticket']['concurrently_open'] || ($settings['ticket']['concurrently_open'] == '-1' || $settings['ticket']['concurrently_open'] == '')) >
|
||||
<div class="overviewadd">
|
||||
<img src="images/Froxlor/icons/ticket_add.png" alt="" />
|
||||
<a href="$filename?page=tickets&action=new&s=$s">{$lng['ticket']['ticket_new']}</a>
|
||||
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</a>
|
||||
</div>
|
||||
</if>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ $header
|
||||
|
||||
<section class="fullform bradiusodd">
|
||||
|
||||
<form action="$filename" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<form action="{$linker->getLink(array('section' => 'tickets'))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<fieldset>
|
||||
<legend>Froxlor - {$title}</legend>
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ $header
|
||||
|
||||
<section class="fullform bradiusodd">
|
||||
|
||||
<form action="$filename" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<form action="{$linker->getLink(array('section' => 'tickets'))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<fieldset>
|
||||
<legend>Froxlor - {$title}</legend>
|
||||
|
||||
@@ -23,7 +23,7 @@ $header
|
||||
</table>
|
||||
</if>
|
||||
<if 0 < $isclosed >
|
||||
<a href="$filename?page=tickets&action=reopen&id={$id}&s=$s">{$lng['ticket']['ticket_reopen']}</a>
|
||||
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'reopen', 'id' => $id))}">{$lng['ticket']['ticket_reopen']}</a>
|
||||
</if>
|
||||
|
||||
<p style="display: none;">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<td>{$row['lastreplier']}</td>
|
||||
<td>{$row['priority']}</td>
|
||||
<td>
|
||||
<a href="$filename?page=tickets&action=answer&id={$row['id']}&s=$s" style="text-decoration:none;">
|
||||
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'answer', 'id' => $row['id']))}" style="text-decoration:none;">
|
||||
<if $cananswer < 1 >
|
||||
<img src="images/Froxlor/icons/ticket_show.png" alt="{$lng['ticket']['show']}"/>
|
||||
</if>
|
||||
@@ -15,12 +15,12 @@
|
||||
</if>
|
||||
</a>
|
||||
<if $reopen < 1 >
|
||||
<a href="$filename?page=tickets&action=close&id={$row['id']}&s=$s" style="text-decoration:none;">
|
||||
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'close', 'id' => $row['id']))}" style="text-decoration:none;">
|
||||
<img src="images/Froxlor/icons/ticket_close.png" alt="{$lng['ticket']['close']}"/>
|
||||
</a>
|
||||
</if>
|
||||
<if 0 < $reopen >
|
||||
<a href="$filename?page=tickets&action=reopen&id={$row['id']}&s=$s" style="text-decoration:none;">
|
||||
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'reopen', 'id' => $row['id']))}" style="text-decoration:none;">
|
||||
<img src="images/Froxlor/icons/ticket_reopen.png" alt="{$lng['ticket']['reopen']}"/>
|
||||
</a>
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user