Jump to content

Submit ticket step 2, help on custom integration


D9Hosting

Recommended Posts

Hi,

I've been playing around with a bit of a custom integration and everything is going well apart from the submitticket-step2 template, as you can see below if you try to submit a ticket:

 

http://clients.d9hosting.com/submitticket.php?systpl=d9v3

 

The table is too wide, but no matter what I do it won't get any thinner, would appreciate any suggestions :)

 

Here's the related code below:

 

<table cellspacing="1" cellpadding="0" class="frame" width="100%">
   <tr>
     <td><table width="100%" border="0" cellpadding="10" cellspacing="0">
         <tr>
           <td width="120" class="fieldarea">{$LANG.supportticketsclientname}</td>
           <td>{if $loggedin}{$clientname}{else}
             <input type="text" name="name" size="30" value="{$name}" />
             {/if}</td>
         </tr>
         <tr>
           <td class="fieldarea">{$LANG.supportticketsclientemail}</td>
           <td>{if $loggedin}{$email}{else}
             <input type="text" name="email" size="50" value="{$email}" />
             {/if}</td>
         </tr>
         <tr>
           <td class="fieldarea">{$LANG.supportticketsdepartment}</td>
           <td>{$department}</td>
         </tr>
         <tr>
           <td class="fieldarea">{$LANG.supportticketsticketsubject}</td>
           <td><input type="text" name="subject" size="60" value="{$subject}" /></td>
         </tr>
         <tr>
           <td class="fieldarea">{$LANG.supportticketsticketurgency}</td>
           <td><select name="urgency">
               <option value="High">{$LANG.supportticketsticketurgencyhigh}</option>
               <option value="Medium" selected="selected">{$LANG.supportticketsticketurgencymedium}</option>
               <option value="Low">{$LANG.supportticketsticketurgencylow}</option>
             </select></td>
         </tr>
         {if $relatedservices}
         <tr>
           <td class="fieldarea">{$LANG.relatedservice}</td>
           <td><select name="relatedservice">
               <option value="">{$LANG.none}</option>

{foreach from=$relatedservices item=relatedservice}

               <option value="{$relatedservice.id}">{$relatedservice.name} ({$relatedservice.status})</option>

{/foreach}

             </select></td>
         </tr>
         {/if}
         <tr>
           <td colspan="2" class="fieldarea"><textarea name="message" id="message" rows="12" cols="60" style="width:100%">{$message}</textarea></td>
         </tr>
         {foreach key=num item=customfield from=$customfields}
         <tr>
           <td class="fieldarea">{$customfield.name}</td>
           <td>{$customfield.input} {$customfield.required}</td>
         </tr>
         {/foreach}
         <tr>
           <td class="fieldarea">{$LANG.supportticketsticketattachments}</td>
           <td><input type="file" name="attachments[]" size="50" />
             <a href="#" id="addfileupload"><img src="images/add.gif" class="absmiddle" border="0" alt="" /> {$LANG.addmore}</a><br />
             <div id="fileuploads"></div>
             ({$LANG.supportticketsallowedextensions}: {$allowedfiletypes})</td>
         </tr>
     </table></td>
  </tr>
 </table>

 

table.frame{margin:0 0 10px;padding:0;border:1px solid #EBEBEB;border-bottom:0;}
table.frame table td{background-color:#FFF;border-bottom:1px solid #EBEBEB;}
table.frame table td.fieldarea{background-color:#F5F5F5;color:#333;text-align:right;border-right:1px solid #EBEBEB;}

Link to comment
Share on other sites

This is just the form from view source on your site with the field sizes corrected

<form action="/submitticket.php?step=3" method="post" enctype="multipart/form-data" name="submitticket" id="submitticket">

<input name="deptid" value="1" type="hidden">

<table class="frame" width="100%" cellpadding="0" cellspacing="1">

<tbody><tr>

<td><table width="100%" border="0" cellpadding="10" cellspacing="0">

<tbody><tr>

<td class="fieldarea" width="120">Name</td>

<td> <input name="name" size="40" value="" type="text">

</td>

</tr>

<tr>

<td class="fieldarea">Email Address</td>

<td> <input name="email" size="40" value="" type="text">

</td>

</tr>

<tr>

<td class="fieldarea">Department</td>

<td>Sales</td>

</tr>

<tr>

<td class="fieldarea">Subject</td>

<td><input name="subject" size="40" value="" type="text"></td>

</tr>

<tr>

<td class="fieldarea">Urgency</td>

<td><select name="urgency">

<option value="High">High</option>

<option value="Medium" selected="selected">Medium</option>

<option value="Low">Low</option>

</select></td>

</tr>

<tr>

<td colspan="2" class="fieldarea"><textarea name="message" id="message" rows="12" cols="40" style="width: 100%;"></textarea></td>

</tr>

<tr>

<td class="fieldarea">Attachments</td>

<td><input name="attachments[]" size="30" type="file">

<a href="#" id="addfileupload"><img src="images/add.gif" class="absmiddle" alt="" border="0"> </a><br>

<div id="fileuploads"></div>

(Allowed File Extensions: .jpg,.gif,.jpeg,.png,.zip,.pdf,.bmp,.txt,.sql,.gzip)</td>

</tr>

</tbody></table></td>

</tr>

</tbody></table>

<br>

<div id="searchresults" class="contentbox" style="display: none;"></div>

<p align="center">Please enter the security code shown in the image - this is required to prevent automated submissions<br>

<img src="includes/verifyimage.php" class="absmiddle" alt="Verify Image" border="0">

<input name="code" size="10" maxlength="5" type="text">

</p>

<p align="center">

<input value="Submit Ticket" type="submit">

</p>

</form>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated