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
|
$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="s" value="$s" />
|
||||||
<input type="hidden" name="page" value="$page" />
|
<input type="hidden" name="page" value="$page" />
|
||||||
<input type="hidden" name="send" value="send" />
|
<input type="hidden" name="send" value="send" />
|
||||||
@@ -28,7 +28,7 @@ $header
|
|||||||
</tr>
|
</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'] == '')) >
|
<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>
|
<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>
|
</tr>
|
||||||
</if>
|
</if>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -48,7 +48,7 @@ $header
|
|||||||
</if>
|
</if>
|
||||||
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && ($ticketsopen < $settings['ticket']['concurrently_open'] || ($settings['ticket']['concurrently_open'] == '-1' || $settings['ticket']['concurrently_open'] == '')) >
|
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && ($ticketsopen < $settings['ticket']['concurrently_open'] || ($settings['ticket']['concurrently_open'] == '-1' || $settings['ticket']['concurrently_open'] == '')) >
|
||||||
<tr>
|
<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>
|
</tr>
|
||||||
</if>
|
</if>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$header
|
$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="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' => 'tickets'))}">
|
||||||
<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" />
|
||||||
@@ -22,7 +22,7 @@ $header
|
|||||||
<td class="maintitle"><b><img src="images/Classic/title.gif" alt="" /> {$lng['ticket']['ticket_reopen']}</b></td>
|
<td class="maintitle"><b><img src="images/Classic/title.gif" alt="" /> {$lng['ticket']['ticket_reopen']}</b></td>
|
||||||
</tr>
|
</tr>
|
||||||
<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>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@@ -6,17 +6,17 @@
|
|||||||
<td class="field_name">{$row['lastreplier']}</td>
|
<td class="field_name">{$row['lastreplier']}</td>
|
||||||
<td class="field_name">{$row['priority']}</td>
|
<td class="field_name">{$row['priority']}</td>
|
||||||
<td class="field_name">
|
<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 $cananswer < 1 >{$lng['ticket']['show']}</if>
|
||||||
<if 0 < $cananswer >{$lng['ticket']['answer']}</if>
|
<if 0 < $cananswer >{$lng['ticket']['answer']}</if>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="field_name">
|
<td class="field_name">
|
||||||
<if $reopen < 1 >
|
<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>
|
||||||
<if 0 < $reopen >
|
<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>
|
</if>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ $header
|
|||||||
|
|
||||||
<section>
|
<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">
|
<div class="overviewsearch">
|
||||||
{$searchcode}
|
{$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'] == '')) >
|
<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">
|
<div class="overviewadd">
|
||||||
<img src="images/Froxlor/icons/ticket_add.png" alt="" />
|
<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>
|
</div>
|
||||||
</if>
|
</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'] == '')) >
|
<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">
|
<div class="overviewadd">
|
||||||
<img src="images/Froxlor/icons/ticket_add.png" alt="" />
|
<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>
|
</div>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
|||||||
@@ -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' => 'tickets'))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Froxlor - {$title}</legend>
|
<legend>Froxlor - {$title}</legend>
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,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' => 'tickets'))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Froxlor - {$title}</legend>
|
<legend>Froxlor - {$title}</legend>
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ $header
|
|||||||
</table>
|
</table>
|
||||||
</if>
|
</if>
|
||||||
<if 0 < $isclosed >
|
<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>
|
</if>
|
||||||
|
|
||||||
<p style="display: none;">
|
<p style="display: none;">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<td>{$row['lastreplier']}</td>
|
<td>{$row['lastreplier']}</td>
|
||||||
<td>{$row['priority']}</td>
|
<td>{$row['priority']}</td>
|
||||||
<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 >
|
<if $cananswer < 1 >
|
||||||
<img src="images/Froxlor/icons/ticket_show.png" alt="{$lng['ticket']['show']}"/>
|
<img src="images/Froxlor/icons/ticket_show.png" alt="{$lng['ticket']['show']}"/>
|
||||||
</if>
|
</if>
|
||||||
@@ -15,12 +15,12 @@
|
|||||||
</if>
|
</if>
|
||||||
</a>
|
</a>
|
||||||
<if $reopen < 1 >
|
<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']}"/>
|
<img src="images/Froxlor/icons/ticket_close.png" alt="{$lng['ticket']['close']}"/>
|
||||||
</a>
|
</a>
|
||||||
</if>
|
</if>
|
||||||
<if 0 < $reopen >
|
<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']}"/>
|
<img src="images/Froxlor/icons/ticket_reopen.png" alt="{$lng['ticket']['reopen']}"/>
|
||||||
</a>
|
</a>
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user