View Full Version : xml help

02-09-2009, 10:35 PM
Hi Guys,

New to the forum and new to XML. I work for a company that operates a helpdesk system. We have implemented a few changes within the IT department and need some of these changes to reflect in our helpdesk system.

I contacted the company that created our helpdesk system but they were useless apparently they dont provide an option to make the change we want but they told me I can go through the XML code myself and modify it if I know how.

My question is when a user submits a helpdesk ticket they are given with an option to select their department. We currently added 4 new categories but they are requests rather than departments. I have provided a picture below of what i mean.

I would like to break up the departments from the requests see picture below.


<{displaytemplate name="header"}>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td align="left" valign="top">

<form name="submitticket" method="post" action="<{$basepath}>">
<fieldset class="swiftfieldset">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<{foreach key=key value=item from=$ticketdepartments}>
<td width="1" align="left" valign="top" class="row2"><label for="departmentid[<{$item[departmentid]}>]"><input type="radio" name="departmentid" id="departmentid[<{$item[departmentid]}>]" value="<{$item[departmentid]}>"<{if $tgroup[departmentid] == $item[departmentid]}> checked<{/if}>></label></td>
<td><span class="smalltext"><label for="departmentid[<{$item[departmentid]}>]" style="CURSOR: pointer;"><{$item[title]}></label></span></td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<td><input name="submit" type="submit" class="bluebutton" value="<{$language[tcknext]}>">&nbsp;&nbsp;<input name="reset" type="reset" class="orangebutton" value="<{$language[treset]}>"></td>
<input type="hidden" name="_m" value="tickets">
<input type="hidden" name="_a" value="submit">
<input type="hidden" name="step" value="1">

</td><td width="5"><img src="<{$themepath}>space.gif" width="5" height="1"></td></tr>
<{displaytemplate name="footer"}>

Thats the code for the departments page.

Any help would be greatly appreciated.