<script type="text/javascript" src="javascript/modules/support.js?version={VERSION}"></script>
<script type="text/javascript">
    function validateSupportForm(form)
    {
        var strAlertMessageArr = getFormErrors(form);

        if (typeof form.messagetype != 'undefined' &&  form.messagetype.value == 0) {
             strAlertMessageArr.push(lang("Select a valid ticket type."));
        }

        if (strAlertMessageArr.length > 0) {
            alert(strAlertMessageArr.join("\n"));
            return false;
        }

        return true;
    }
</script>
<div id="kb" class="block">
    <div class="block_title">
        <h3><b><a href="#">[l]Support Center[/l]</a> &raquo; <a href="#">[l]Submit Ticket[/l]</a></b></h3>
    </div>

    <ul>
        <li>
            <h1>[l]Ticket Information[/l]</h1>
            <p class="kb st" style="background: url(templates/{TEMPLATE}/images/public/icon_submit_ticket.jpg) no-repeat  0 8px;">[l]Have a question or an issue, we are here to help you. Please submit a support ticket for assistance.[/l]</p>
        </li>
        <li>
        </li>
	</ul>

    <div id="cip">
    <br />
    <form name="SupportForm" method="post" action="{SUPPORT_FORM_ACTION}" enctype="multipart/form-data">
    <input type="hidden" name="userid" value="{USERID}" />
    <input type="hidden" name="clientid" value="{CLIENTID}" />
    <input type="hidden" name = "ticketfilter" value = "All" />
		<div style="padding-left: 15px;">
	    <div class="profile">
		<span class="label130">[l]Select Package[/l]</span>
		<!-- BEGIN DYNAMIC BLOCK: domaindropdown -->
		{DOMAIN_DROP_DOWN}
		<!-- END DYNAMIC BLOCK: domaindropdown --><br />					
        <!-- BEGIN DYNAMIC BLOCK: guestInfo -->
			<p>
			<span class="label130">[l]Last Name[/l]</span><br />
			<input class="inputtext1" style="width: 380px;" type="text" name="guestLastName" size="63" />
            <input type="hidden" name="r_guestLastName" value="[l]Last Name[/l]" />
			</p>		
			<p>
			<span class="label130">[l]First Name[/l]</span><br />
			<input class="inputtext1" style="width: 380px;" type="text" name="guestFirstName" size="63" />
            <input type="hidden" name="r_guestFirstName" value="[l]First Name[/l]" />
			</p>			
			<p>
			<span class="label130">[l]E-mail[/l]</span><br />
			<input class="inputtext1" style="width: 380px;" type="text" name="guestEmail" size="63" />
            <input type="hidden" name="r_guestEmail" value="[l]Email[/l]" />
			</p>        
        <!-- END DYNAMIC BLOCK: guestInfo -->		  		     			
        <span class="label130">[l]Ticket Type[/l]</span>
        <select id="messagetype" name="messagetype">
            <option value='0' selected="selected">[l]Select a Type ...[/l]</option>
            <!-- BEGIN DYNAMIC BLOCK: supporttickettypes -->
            <option value='{TICKETTYPE_VALUE}' {TICKETTYPE_SELECTED}>{TICKETTYPE_NAME}</option>
            <!-- END DYNAMIC BLOCK: supporttickettypes -->
        </select><br/>
        <span class="label130">[l]Priority[/l]</span>
        <select id="priority" name="priority" onchange="highPriorityWarning(document.forms['SupportForm'].priority)">
            <option value="1">[l]High[/l]</option>
            <option value="2">[l]Medium[/l]</option>
            <option value="3" selected="selected" >[l]Low[/l]</option>
        </select><br /><br />

		[l]Subject and Question[/l]
        <br/>
		<input class="inputtext1" onkeyup="{subjectOnkeyup}" style="width: 380px;" type="text" id="supportTicketSubject" name="subject" maxlength="200" />
        <input type="hidden" name="r_subject" value="[l]Msg. Subject[/l]" /><br />

		<textarea style="width: 380px;" class="textarea" rows="10" cols="5" name="message"></textarea>
        <input type="hidden" name="r_message" value="[l]Message[/l]" /><br />
		
		<!-- BEGIN DYNAMIC BLOCK: attachfile -->
		[l]Attach File:[/l] ([l]Max file size[/l] : {MAXFILESIZE})<br />
        <div id="fileFieldsContainer"> 
			<div id="fileFields_0" style="margin:2px 0 2px 0">
			<input type="file" value="" name="file_0" id="file_0" />&nbsp;<a style="visibility:hidden">[l]Delete[/l]</a><br />
	        </div> 
        </div>
              
        <a class='liveupdate' href="javascript:Clon('fileFields_0');">[l]Add a New File[/l]</a>            
        <!-- END DYNAMIC BLOCK: attachfile -->                
        
        <!-- BEGIN DYNAMIC BLOCK: cantattachfile -->
        <p>
        	<span style="color:red">[l]Directory 'uploads/support' is not writable[/l]</span><br />
		</p>        	
		<!-- END DYNAMIC BLOCK: cantattachfile -->  

		<!-- BEGIN DYNAMIC BLOCK: captcha -->
		<p>
        <img name="captcha" id="antiflood" src="modules/clients/captcha.php" border="0"><br/>
		<label for="subject">[l]Enter the code[/l]</label><br />
		<input class="inputtext1" style="width: 380px;" type="text" id="accesscode" name="accesscode" />
		</p>      
		<!-- END DYNAMIC BLOCK: captcha -->


		<br/><br/>
		<input type="submit" name="button" onclick="return validateSupportForm(form);" class="button_large" value='[l]Submit ticket[/l]' />
		

		</div>
		</div>

	</form>

	</div>
	</div>