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>

View File

@@ -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="" />&nbsp;
<a href="$filename?page=tickets&amp;action=new&amp;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="" />&nbsp;
<a href="$filename?page=tickets&amp;action=new&amp;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>

View File

@@ -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&nbsp;-&nbsp;{$title}</legend>

View File

@@ -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&nbsp;-&nbsp;{$title}</legend>
@@ -23,7 +23,7 @@ $header
</table>
</if>
<if 0 < $isclosed >
<a href="$filename?page=tickets&amp;action=reopen&amp;id={$id}&amp;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;">

View File

@@ -6,7 +6,7 @@
<td>{$row['lastreplier']}</td>
<td>{$row['priority']}</td>
<td>
<a href="$filename?page=tickets&amp;action=answer&amp;id={$row['id']}&amp;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 >
&nbsp;<a href="$filename?page=tickets&amp;action=close&amp;id={$row['id']}&amp;s=$s" style="text-decoration:none;">
&nbsp;<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 >
&nbsp;<a href="$filename?page=tickets&amp;action=reopen&amp;id={$row['id']}&amp;s=$s" style="text-decoration:none;">
&nbsp;<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>