<?php
require("includes/check_auth_user.php");
require("includes/dbconnect.php");
include('includes/function.php');

$zdb = $_SESSION["zdbyear_".$dbname];

$formname = "Cash Receipt List";
$action   = "Cash_lst.php";
mysqli_select_db($conn, $zdb);
?>
<!DOCTYPE HTML>
<html lang="en-US">
   <?php
    include("includes/files.php");  
   ?>
</head>
        
        
        <script>
            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
                (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  
                 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
            })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

            ga('create', 'UA-1669764-16', 'onokumus.com');
            ga('send', 'pageview');

        </script>
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript">
            $(document).keydown(function(event) {
              //19 for Mac Command+S
              if (!( String.fromCharCode(event.which).toLowerCase() == 'v' && event.ctrlKey) && !(event.which == 19)) return true;
                     $("#view").click();
                     event.preventDefault();
                     return false;
              });

        </script>        

        <script src="assets/lib/modernizr-build.min.js"></script>
        <script type="text/javascript" src="../js/jquery.js"></script>

    <form class="form-horizontal" action='<?=$action?>' method='POST'>
        <div class="row">
              <div class="col-lg-12">
                <div class="box">
                  <header>
                    <div class="icons">
                      <i class="fa fa-edit"></i>
                    </div>
                    <h5><?=$formname?></h5>
                    <div class="toolbar">
                      <ul class="nav pull-right">
                          <li>
                            <input type='submit' id="view" name='submit' class='btn btn-success' value='Proceed'>
                          </li>
                        <li>
                          <a class="minimize-box" data-toggle="collapse" href="#div-4">
                            <i class="fa fa-chevron-up"></i>
                          </a>
                        </li>
                      </ul>
                    </div><!-- /.toolbar -->
                  </header>
                  <div id="div-4" class="accordion-body collapse in body">
<!--                      <div class="form-group">
                        <label class="control-label col-lg-3">Name</label>
                        <div class="col-lg-5">
                          <div class="input-group">
                            <input type="text" size="40" name="name" class="form-control" />                      
                          </div>
                        </div>
                      </div>-->
                      <div class="form-group">
                                <label class="control-label col-lg-4"  style="width: 150px;font-family: cipher-regular,helvetica;">Cash Name</label>
                                <div class="col-lg-8"> 
                                    <select id="bankname" name="bankname" class="form-control form" style="height: 33px;">
                                        <option value="<?php echo ($addflag != 1) ? $banknm[accode] : " "; ?>"><?php echo ($addflag != 1) ? $banknm[name] : " "; ?></option>
                                        <?php
                                        $mown = mysqli_query($conn, "SELECT accode, `name` FROM `accmast` where `grpcode` = '001' ") or die(mysqli_error($conn));
                                        while ($trow = mysqli_fetch_array($mown)) {
                                            echo "<option value=$trow[accode]>$trow[name]</option>";
                                        }
                                        ?>
                                    </select>
                                </div> 
                            </div>
                      
                  </div>
                </div>
              </div>
            </div>
</form>