<div class="main content clearfix">
<div class="page-heading">
    <h2>Settings</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="20" 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="20" height="300" alt="" /></th>
</tr>
<tr>
	<td id="tbl-border-left"></td>
	<td>
        <div id="content-table-inner">
        <div id="table-content">
<!-- START CONTENT TABLE INNER -->

	<?=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') == 'E') {
						echo '
				<div id="message-red">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="red-left">'.$this->session->flashdata('msg').'</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>
						';
					}
				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>
					';
				}
				?>

		<!-- start id-form -->
                <div class="myform-outer2">
                <div class="myform myform-controls" style="width:650px;height:400px;">
                     
		<form action="<?=site_url() . 'settings/settings/update'?>" method="post">
                    
		<table border="0" cellpadding="0" cellspacing="0"  id="id-form">

		<tr>
			
			<td>
                            <label>PO Terms</label>
                            <textarea name="poterms" style="width:350px; height:100px;" rows="" cols="" class="form-textarea"><?=$settings[0]->POTERMS?></textarea>
                            </td>
			
		</tr>
		<tr>
			
			<td>
                            <label>Next Request</label>
                <input style="width:100px" disabled="disabled" value="<?=$settings[0]->NEXTREQNO?>" name="nextreq" type="text" class="inp-form" /></td>
		
		</tr>
                <tr>
			
			<td>
                            <label>Next PO</label>
                <input style="width:100px" disabled="disabled" value="<?=$settings[0]->NEXTPONO?>" name="nextpo" type="text" class="inp-form" /></td>
		
		</tr>
                <tr>

			<td>
                            <label>Next GRN</label>
                            <input style="width:100px" disabled="disabled" value="<?=$settings[0]->NEXTGRNO?>" name="nextgrn" type="text" class="inp-form" />
                        </td>
			
		</tr>
<!--                <tr>
                    <td>
                        <label>&nbsp;</label>
                        <input type="hidden" name="update" value="update" />
                        <button type="submit" value="" name="submit">Save</button>
                    </td>
                </tr>-->
               </table>
 <input type="hidden" name="update" value="update" />
                 <input type="submit"  align="center" value="Save" name="submit">
                    </form>
                      </div>
                        </div>
		
	
	
          

	<!-- end id-form  -->


	
<!--  END CONTENT TABLE INNER-->
</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 class="clear">&nbsp;</div>
</div>