<!DOCTYPE html>
<html lang='en-US'>
    <head>
        <title>Feedback submit</title>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <!--[if IE]>
        <script src="javascript/html5_shiv.js?1314397325" type="text/javascript"></script>
        <![endif]-->
        <link href="templates/<?php echo $this->gTemplateName;?>/views/support/SupportWidgetForm.css?2341" media="all" rel="stylesheet" type="text/css" />
        <!--[if lte IE 7]>
        <style type="text/css" media="screen">
            .two_across > div input { width: 96%; }
            .two_across > div .error { width: 98%; }
            .two_across > div + div input { margin-left: -50%; }
        </style>
        <![endif]-->

        <script id="translations" type="application/json">{"txt.feedback_tab.link.go_back":"Go back","txt.feedback_tab.message.submitted_thanks":"Message submitted. Thanks!","txt.feedback_tab.error.no_results_found":"Sorry, nothing in our Knowledge base matches your search. Please submit a request for help below.","txt.feedback_tab.button.submit_support_request":"Submit a support request","txt.feedback_tab.label.what_is_your_question":"What is your question?","txt.feedback_tab.notification.need_more_details":"We need just a few more details about you. Please fill out the form below for further help.","txt.feedback_tab.placeholder.search_knowledgebase":"Search our Knowledge Base","txt.feedback_tab.error.seems_to_be_invalid":"Please fill in this field properly.","txt.feedback_tab.label.your_email_address":"Your email address","txt.feedback_tab.button.begin_chat":"Begin chat","txt.feedback_tab.label.search":"You asked:","txt.feedback_tab.link.see_all_results":"See all {{total_entries}} results","txt.feedback_tab.text.or":"or","txt.feedback_tab.footer.powered_by_zendesk":"Powered by ClientExec","txt.feedback_tab.button.submitting":"Submitting...","txt.feedback_tab.label.we_found_helpful_entries":"We found the following entries in our knowledge base that might be helpful:","txt.feedback_tab.heading.would_you_like_to":"Would you like to...","txt.feedback_tab.heading.how_can_we_help":"How can we help you?","txt.feedback_tab.error.problem_submitting_request":"Sorry, there was a problem submitting your request. Please try again later.","txt.feedback_tab.label.name":"Name","txt.feedback_tab.button.find_someone_to_chat":"Find someone to chat with","txt.feedback_tab.button.next":"Continue","txt.feedback_tab.placeholder.fill_in_details":"Fill in the details here. Please try to be as specific as possible.","txt.feedback_tab.error.no_agents_available":"Sorry, no agents are available. You may submit a ticket below for further help.","txt.feedback_tab.button.submit":"Submit","txt.feedback_tab.notification.thanks_what_next":"Thanks! What would you like to do next?","txt.feedback_tab.notification.all_agents_busy":"It looks like all our agents are busy at the moment. Please submit a support request instead.","txt.feedback_tab.placeholder.briefly_describe":"Briefly describe your question","txt.feedback_tab.error.problem_submitting_search":"Sorry, there was a problem submitting your search. Please try again later.","txt.feedback_tab.button.none_helpful":"Click to contact us","txt.feedback_tab.label.question":"Question","txt.feedback_tab.label.details":"Details"}</script>
    </head>
    <?php 
    $bodyClass = "knowledge_base ";
    if ($this->forceSuggestions) {
        $bodyClass .= "suggestions";
    }
    ?>
    <body class='<?php echo $bodyClass;?>'>
        <script type='application/mustache' id='search_results_template'>
            <ul>
                {{#entries}}
                <li class='entry {{forum_type}}'>
                    <a href='index.php?fuse=knowledgebase&view=KB_viewArticle&articleId={{id}}' target='_new'>{{title}}
                    <img class="right" alt="Go" src="javascript/external/images/arrow.gif"/></a>
                    <p>{{excerpt}}</p>                    
                </li>
                {{/entries}}
            </ul>
            <div class='footer'> <!-- IE can't do <footer>s in dynamic content -->
                {{#backURL}}
                <a href='{{backURL}}' class='back'><input type="button" value="{{goBack}}" class="button left" name="back"/></a>
                {{/backURL}}
                {{#total_entries}}
                <a href='{{moreResultsURL}}' target='_new' class='more'><input type="button" value="{{seeAllResults}}" class="button right" name="results"/></a>
                {{/total_entries}}
            </div>
            <div class='clear'>&nbsp;</div>

        </script>
        <div id='wrapper' class="shadow">
            <div id='dropbox' class="shadowinner">
                <header>
                    <form action="#/dropbox/knowledge_base" data-remote-moreurl="index.php?fuse=knowledgebase&view=KB_MainView" data-remote-url="index.php?fuse=knowledgebase&action=getAutoSuggetArtices&sessionHash=<?php echo md5(session_id()); ?>" id="knowledge_base_search" method="get">
                        <input class="search" id="knowledge_base_search_input" name="subject" placeholder="Or search the knoweldge base" type="search" style="border:1px solid #cdcdcd;display:none;" />
                    </form>
                    <h1>How may we assist you?</h1>
                </header>
                
                <div id='dropbox_content'>
                    <section id='ticket_submission' class='view'>
                        <form action="#/dropbox/tickets" method="post" data-remote-moreurl="index.php?fuse=knowledgebase&view=KB_MainView" data-remote-url='index.php?fuse=support&action=SaveNewSupportTicket&sessionHash=<?php echo md5(session_id()); ?>'>
                            <fieldset class='body'>
                                <!--
                                <ul class="error">
                                    <li class="error">Sorry, no results found.</li>
                                </ul>-->
                                <label for="subject">Your Question<abbr title="Required">*</abbr></label><input id="subject" name="subject" placeholder="Briefly describe your question" required="required" type="text" /><div class="validation error" id="subject_errors">&nbsp;</div>
                                <label for="description">Details<abbr title="Required">*</abbr></label><textarea id="description" name="description" placeholder="Fill in the specifics to your question here. The more detail the better." required="required" rows="6"></textarea><div class="validation error" id="description_errors">&nbsp;</div>
                                <div class='two_across'>
                                    <div><label for="name">First and Last Name<abbr title="Required">*</abbr></label><input id="name" name="name" required="required" type="text" /><div class="validation error" id="name_errors">&nbsp;</div></div>
                                    <div><label for="email">E-Mail Address<abbr title="Required">*</abbr></label><input data-type="email" id="email" name="email" required="required" type="email" /><div class="validation error" id="email_errors">&nbsp;</div></div>
                                </div>
                                <input id="set_tags" name="set_tags" type="hidden" value="fromwidget" />
                                <input id="via_id" name="via_id" type="hidden" value="17" />
                                <input id="client" name="client" type="hidden" value="" />
                                <input id="ticketTypeId" name="ticketTypeId" type="hidden" value="0" />
                                <input id="submitted_from" name="submitted_from" type="hidden" value="widget" />
                                <input id="userid" name="userid" type="hidden" value="0" />
                                <input id="mode" name="mode" type="hidden" value="supportwidget" />
                                <footer><span class="branding"><a href="http://www.clientexec.com?source=feedback" target="_new">Powered by &nbsp;<img src="javascript/external/images/logo.gif" alt="ClientExec" /></a></span><span><input class="submit right" id="newticket_submit" name="commit" type="submit" value="Submit" /></span><div class="clearfix"></div></footer>
                            </fieldset>                            
                        </form>
                    </section>

                    <section id='ticket_success' class='view'>
                        <div class='body'><span>Message submitted. Thanks!</span></div>
                        <footer><span class="branding"><a href="http://www.clientexec.com?source=feedback" target="_new">Powered by &nbsp;<img src="javascript/external/images/logo.gif" alt="ClientExec" /></a></span><span><span class="spacer">&nbsp;</span></span><div class="clearfix"></div></footer>
                    </section>

                    <section id='suggestions_form' class='view'>                                                    
                        <form action="#/dropbox/suggestions" class="body" data-metric-activity="submit-question" data-remote-moreurl="index.php?fuse=knowledgebase&view=KB_MainView" data-remote-url="index.php?fuse=knowledgebase&action=getAutoSuggetArtices&sessionHash=<?php echo md5(session_id()); ?>" method="get">    
                            <fieldset>
                                <label for="suggestions_query">What is your question?</label>
                                <input id="suggestions_query" maxlength="75" name="subject" placeholder="" required="required" type="text" value="" />                                
                                <div class="validation error" id="suggestions_query_errors">&nbsp;</div>
                            </fieldset>                        
                        <footer><input class="submit right" id="suggestions_submit" name="commit" type="submit" value="Continue" /><span class="branding"><a href="http://www.clientexec.com?source=feedback" target="_new">Powered by &nbsp;<img src="javascript/external/images/logo.gif" alt="ClientExec" /></a></span><span><span class="spacer">&nbsp;</span></span><div class="clearfix"></div></footer>
                        </form>
                    </section>

                    <section id='suggestions_results' class='view search_results'>
                        <div class='body'>
                            <div class='you_asked'>
                                <span class='label'></span>
                                <span class='question'></span>
                            </div>
                            <p class='results_header'>
                                The following knowledge base article(s) might assist you:
                            </p>
                            <div class='content'>
                            </div>
                            <footer><span class="branding"><a href="http://www.clientexec.com?source=feedback" target="_new">Powered by &nbsp;<img src="javascript/external/images/logo.gif" alt="ClientExec" /></a></span><span><a href="#/dropbox/suggestions/notHelpful"><input type="button" value="These articles don't answer my question" class="submit right" name="results"/></a></span><div class="clearfix"></div></footer>
                        </div>                        

                    </section>

                    <section id='knowledge_base_search_results' class='view search_results'>
                        <div class='body'>
                            <div class='content'>
                            </div>
                            <footer><span class="branding"><a href="http://www.clientexec.com?source=feedback" target="_new">Powered by &nbsp;<img src="javascript/external/images/logo.gif" alt="ClientExec" /></a></span><span><a href="#/dropbox/tickets/new"><input type="button" value="These articles don't answer my question" class="submit right" name="results"/></a></span><div class="clearfix"></div></footer>
                        </div>                        
                    </section>
                    <section class='view' id='waiting'>
                        <div class='body'>
                            <img src='javascript/external/images/loader.gif' title='Loading ...' />
                        </div>
                        <footer><span class="branding"><a href="http://www.clientexec.com?source=feedback" target="_new">Powered by &nbsp;<img src="javascript/external/images/logo.gif" alt="ClientExec" /></a></span><span><span class="spacer">&nbsp;</span></span><div class="clearfix"></div></footer>
                    </section>
                </div>
            </div>
        </div>
        <script type="text/javascript" src="newedge/utilities/min/index.php?g=supportwidgetformjs&f=templates/<?php echo $this->gTemplateName;?>/views/support/SupportWidgetForm.js&debug=true"></script>        
    </body>
</html>
