D9Hosting Posted June 20, 2009 Share Posted June 20, 2009 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;} 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted June 20, 2009 Share Posted June 20, 2009 Try adding width to the fields, IE. the subject. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted June 20, 2009 Share Posted June 20, 2009 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> 0 Quote Link to comment Share on other sites More sharing options...
D9Hosting Posted June 20, 2009 Author Share Posted June 20, 2009 Thanks, I'd never thought of that. It was the attachment field that was screwing it up, I've changed it's width and it now displays as it should. Thanks for your help! 0 Quote Link to comment Share on other sites More sharing options...
D9Hosting Posted June 20, 2009 Author Share Posted June 20, 2009 Cheers Steve, All sorted now 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted June 20, 2009 Share Posted June 20, 2009 Cheers Steve,All sorted now Hello! J/K! 0 Quote Link to comment Share on other sites More sharing options...
D9Hosting Posted June 20, 2009 Author Share Posted June 20, 2009 Hello! J/K! My 1st reply was for you, I must have posted it whilst Steve was making his reply. But feel free to have another if you like - Thanks Baji26 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted June 20, 2009 Share Posted June 20, 2009 (edited) LOL! Darn it Steve, not you again! Oh thanks I try! LOL! Edited June 20, 2009 by BAJI26 0 Quote Link to comment Share on other sites More sharing options...
LemonBarley Posted June 23, 2009 Share Posted June 23, 2009 HAHa... posting something not related... Well done steve 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.