<?php

/* 
 * Author       : Jai K
 * Purpose      : The add page for SMS Types
 * Created On   : 2016-08-22 12:24    
 */
$result = $results[0];
?>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/sms.js"></script>
<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">SMS Type Edit</h1>
            <div class="breadcrumb_container"><?php echo breadcrumb_links();?></div>
        </div>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <form action="<?php echo $form_action;?>" enctype="multipart/form-data" method="post" name="sms_form">    
                    <input type="hidden" name="token" value="<?php echo $token; ?>" />
                    <div class="box box-danger">
                        <div class="box-body">
                            <ul class="error_container"></ul>
                            <div class="col-xs-12">
                                <div class="col-md-6">
                                    <div class="form-group float-clear">
                                        <label>Type Name<span class="required">*</span></label>
                                        <input type="text" class="form-control" name="name" placeholder="Name of Type" autofocus value="<?php echo $result['sms_type_name']; ?>" />
                                    </div>
                                    
                                    <div class="form-group">
                                        <label class="leftcol">Status</label>
                                        <div>
                                            <label for="status" style="width: 32%;"><input type="radio" name="status" value="1" <?php echo $result['status'] == "1" ? 'checked' : ''; ?> /> &nbsp;&nbsp;Active</label> 
                                            <label for="status" style="width: 32%;"><input type="radio" name="status" value="0" <?php echo $result['status'] == "0" ? 'checked' : ''; ?>/> &nbsp;&nbsp;Inactive</label> 
                                        </div>
                                    </div>
                                </div>
                                
                                
                            </div>
                        </div>
                        
                        <div class="box-footer form-actions float-clear">
                            <input class="btn reset" type="reset" value="Reset" />
                            <input type="submit" name="submit" value="Update" class="btn btn-success btn-primary" />
                        </div>
                    </div><!-- /.box -->
                </form>
            </div><!-- /.col-xs-12 -->
        </div><!-- /.row -->
    </section><!-- /.content -->
</aside>