
<script type="text/javascript">
    $(function(){
       $('#datepicker').datepicker({ dateFormat: 'yy-mm-dd' });
        $('#datepicker2').datepicker({ dateFormat: 'yy-mm-dd' });
    });
</script>

<div class="main content clearfix">
    <div class="page-heading">
        <h2>Update Standard Price</h2></div>

    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <th rowspan="3" class="sized"><img src="<?= site_url() ?>images/shared/side_shadowleft.jpg" width="100%" height="300" alt="" /></th>
            <th class="topleft"></th>
            <td id="tbl-border-top">&nbsp;</td>
            <th class="topright"></th>
            <th rowspan="3" class="sized"><img src="<?= site_url() ?>images/shared/side_shadowright.jpg" width="100%" height="300" alt="" /></th>
        </tr>
        <tr>
            <td id="tbl-border-left"></td>
            <td>
                <div id="content-table-inner">
                    <div id="table-content">

                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
                            <tr valign="top">
                                <td>

                                    <?=
validation_errors('<div id="message-red"><table border="0" width="100%" cellpadding="0" cellspacing="0"><tr><td class="red-left">', '</td><td class="red-right"><a class="close-red"><img src="' . site_url() . '/images/table/icon_close_red.gif" alt="" /></a></td></tr></table></div>');
?>
    <?php
    if ($this->session->flashdata('msgt') == 'S') {
                                echo '
					<div id="message-green">
					<table border="0" width="100%" cellpadding="0" cellspacing="0">
					<tr>
						<td class="green-left">' . $this->session->flashdata('msg') . '</a></td>
						<td class="green-right"><a class="close-green"><img src="' . site_url() . 'images/table/icon_close_green.gif"   alt="" /></a></td>
					</tr>
					</table>
					</div>
					';
                            }
                            ?>
 <?php
                        $date = date('Y-m-d');
?>
                                    <!-- start id-form -->
                                    <div class="myform-outer" style="height:450px">
                                        <div class="myform">
                                            <form action="<?= site_url() . 'inventory/costpriceupdate/updatecostprice' ?>" method="post">
                                                <div class="myform-controls">

                                                    <table border="0" cellpadding="0" cellspacing="0"  id="id-form">
                                                        <tr>
                                                           
                                                            <td>Date From<br>
                                        <input name="datefrom" type="text" id="datepicker"  class="inp-form-small"/>
                                    </td>
                                   
                                    <td>To<br>
                                        <input name="dateto" type="text" value="<?= $date ?>" id="datepicker2" class="inp-form-small"/>
                                    </td>
                                                             <td><label>Type</label><br>
                                            <select id="select_custom" name="type">
                                                <option value="" selected=’selected’>Select type</option>
                                                <option value="0">Least</option>
                                                <option value="1">Average</option>
                                                <option value="2">Maximum</option>
                                                <option value="3">Last</option>

                                            </select>
                                        </td>

                                        <td>
                                             <input type="hidden" name="addmat" value="step2" />
                                                    <input type="submit" value="Update" name="submit">
                                        </td>

                                                        </tr>

                                                    </table>

                                                </div></form></div></div>

                                </td>
                                
                            </tr>

                        </table>
         
                         <div>
  

                        <!--  end content-table-inner  -->
                    </div></div>
                </div>
            </td>
            <td id="tbl-border-right"></td>
        </tr>
        <tr>
            <th class="sized bottomleft"></th>
            <td id="tbl-border-bottom">&nbsp;</td>
            <th class="sized bottomright"></th>
        </tr>
    </table>
</div>
