PHP Classes

File: CMF/Web/application/views/en/customer/message_c2c.php

Recommend this page to a friend!
  Classes of Burge Lab   BurgeATS   CMF/Web/application/views/en/customer/message_c2c.php   Download  
File: CMF/Web/application/views/en/customer/message_c2c.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: BurgeATS
CRM, Ticketing system, and employee manangement
Author: By
Last change: Update of CMF/Web/application/views/en/customer/message_c2c.php
Date: 1 year ago
Size: 1,706 bytes
 

Contents

Class file image Download
<div class="main">
    <div class="container">
        <h1>{send_message_text}</h1>

        <div class="container">
            <?php echo form_open($post_url,array("id"=>"send-message-form","onsubmit"=>"return checkForm();")); ?>
<div class="row">
                    <div class="three columns">
                        <label>{receiver_text}</label>
                    </div>
                    <div class="three columns">
                        {customer_name}
                    </div>
                </div>
               
                <div class="row">
                    <div class="three columns">
                        <label>{subject_text}</label>
                    </div>
                    <div class="nine columns">
                        <input name="subject" class="full-width" value="{subject}"/>
                    </div>
                </div>
                <div class="row">
                    <div class="three columns">
                        <label>{content_text}</label>
                    </div>
                    <div class="nine columns">
                        <textarea name="content" class="full-width" rows="5">{content}</textarea>
                    </div>
                </div>
                <div class="row">
                    <div class="three columns">
                        {captcha}
                    </div>
                    <div class="nine columns">
                        <input name="captcha" class="lang-en"/>
                    </div>
                </div>
                <div class="row">
                    <div class="six columns">&nbsp;</div>
                    <input type="submit" class=" button-primary three columns" value="{send_text}"/>
                </div>
            </form>

            <script type="text/javascript">
                function checkForm()
                {
                    var form=$("#send-message-form");
                    var fields=["captcha","content","subject"];
                    var result=true;
                    $(fields).each(function(index,value)
                    {
                        var val=$("[name='"+value+"']",form).val();
                        if(!val)
                        {
                            result=false;
                            return false;
                        }
                    });

                    if(!result)
                        alert("{fill_all_fields_text}");
               
                    return result;
                }
            </script>
        </div>
    </div>
</div>