
<div class="page-content" >
    
    
<div class="row">
    <div class="col-sm-12">
        <div class="widget-box">
            <div class="widget-header" style="height:70px;">
                <h4  style="text-align:center; color:green;"><b> Mark Cheque as Done / Not Done</b> </h4>
            </div>

            <div class="widget-body">
            
                 <?php
                                $message = $this->session->userdata('message');
                                if (!empty($message)) {
                                    ?>
                                    <div class="alert alert-block alert-success">
                                        <h6 class="lighter arial green" style="text-align:center;"><b>
                                                <?php echo $message;
                                                $this->session->unset_userdata('message');
                                                ?>
                                            </b></h6>
                                    </div>  
                                    <?php
                                }
                                $errormessage = $this->session->userdata('errormessage');
                                if (!empty($errormessage)) {
                                    ?>
                                    <div class="alert alert-block alert-danger">
                                        <h6 class="lighter arial red" style="text-align:center;"><b>
                                                <?php echo $errormessage;
                                                $this->session->unset_userdata('errormessage');
                                                ?>
                                            </b></h6>
                                    </div> 
                                    <?php
                                }
                                ?>
                <div class="widget-main no-padding">
                    <form action="<?php echo admin_url()?>/chequeinoutentryview/markdone_outcheque " method="post">
                        <!-- <legend>Form</legend> -->
                        <input type="hidden" name="id" value="<?php echo $inchequeInfoByid['id']?>"/>
                        
                        <fieldset class="col-xs-12 col-sm-12">
                            <label class="col-xs-2 col-sm-2"> Token No </label>
                            <?php echo form_error('data[id]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                            <input type="text" name="data[id]" value="<?php echo $inchequeInfoByid['id']?>" placeholder="Amount" class="col-xs-4 col-sm-4" disabled/>                           
                        </fieldset>

                        <fieldset class="col-xs-12 col-sm-12">
                            <label class="col-xs-2 col-sm-2"> Cheque Number </label>
                            <?php echo form_error('data[cheque_no]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                            <input type="text" name="data[cheque_no]" value="<?php echo $inchequeInfoByid['cheque_no'] ?>" placeholder="Amount" class="col-xs-4 col-sm-4" disabled/>                           
                        </fieldset>                                         
                        
                        <fieldset class="col-xs-12 col-sm-12">
                            <label class="col-xs-2 col-sm-2"> Amount </label>
                            <?php echo form_error('data[amount]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                            <input type="text" name="data[amount]" value="<?php echo $inchequeInfoByid['amount'] ?>" placeholder="Amount" class="col-xs-4 col-sm-4" disabled/>                           
                        </fieldset>

                        <fieldset class="col-xs-12 col-sm-12">
                            <label class="col-xs-2 col-sm-2"> Comment </label>
                            <?php echo form_error('data[comment]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                            <textarea class="col-xs-4 col-sm-4" name="data[comment]" placeholder="Write Comment"><?php echo $inchequeInfoByid['comment'] ?></textarea>                                                     
                        </fieldset>
                        
                        <fieldset class="col-xs-12 col-sm-12">
                            <div class="col-xs-2 col-sm-2"><label>Done Status</label></div>
                            <?php echo form_error('data[active]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                             <div class="col-xs-4 col-sm-4">
                             <select name="data[active]" class="chosen-select" id="form-field-select-3" data-placeholder="Choose a State...">
                                <?php if ($inchequeInfoByid['active']==0) {
                                    echo "<option value='0' selected> Not Done</option><option value='1'> Mark As Done</option>";
                                    }
                                    elseif ($inchequeInfoByid['active']==1) {
                                        echo "<option value='1' selected> Mark As Done</option><option value='0'> Not Done</option>";
                                    }
                                 ?>                                                                  
                            </select>
                            </div>
                         </fieldset>

                        <div class="clearfix"></div>

                        <div class="form-actions center">
                            <button type="submit" name="btnUpdate" class="btn btn-sm btn-success">
                                 <i class="ace-icon fa fa-check bigger-110"></i>
                                Update
                                
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div></div></div>

