
<style>


tbody > tr > td, .table > tfoot > tr > td {
    padding: 4px!important;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}
</style>

<?php //pr($lettergrades);?>
<div class="blocktitle">Letter Grade</div>
<div class="tar borb">
<?php echo $this->Html->link('Back',array('controller'=>'studentscores'.'/setting1'),array('class'=>'btn btn-mini'))?>
</div>
<br/>
<div class="w97p pdl10">
<div class="lettergrades form userForm">
	<?php echo $this->Form->create('Lettergrade'); ?>
	<fieldset>
		<div class="lginput">
		<div class="row-fluid">
			<div class="span3"> <?php echo 'Grade '.$this->Form->input('grade',array('label'=>false,'div'=>false,'style'=>'width:65%;'));?></div>
			<div class="span4"><span style="margin-left: 31px"><?php echo 'From '.$this->Form->input('frm',array('label'=>false,'div'=>false,'style'=>'width:50%;'))."%";?></span></div>
			<div class="span3"><?php echo 'To '.$this->Form->input('tm',array('label'=>false,'div'=>false,'style'=>'width:66%;'))."%";?></div>
			<div class="span2" style="text-align:right;"><?php echo $this->Form->input('Submit',array('type'=>'submit','label'=>false,'div'=>false));?></div>
		</div>
		</div>
		<?php
			//echo $this->Form->input('grade');
			//echo $this->Form->input('frm',array('label'=>false,'div'=>false))."%";
			
			//echo $this->Form->input('to')."%";
		?>
	</fieldset>
	<?php //echo $this->Form->end(__('Submit')); ?>
	<?php echo $this->Form->end(); ?>
</div>
<div class="divline"></div>
<div>
	<table cellpadding="0" cellspacing="0" width="100%" class="table tableheading tablebor">
		<tr>
			<th>Grade</th>
			<th>From %</th>
			<th>To %</th>
			<th class="tar">Action</th>
		</tr>
		<?php foreach ($lettergrades as $lettergrade):?>
		
		<tr>
			<td><?php echo $lettergrade['Lettergrade']['grade']?></td>
			<td> <?php echo $lettergrade['Lettergrade']['frm']?></td>
			<td> <?php echo $lettergrade['Lettergrade']['tm']?></td>
			<td class="w60 tar">
			<?php echo $this->Html->link('', array('action' => 'edit', $lettergrade['Lettergrade']['id']),array('escape'=>false,'class'=>'iconlink linkedit','title'=>'Edit')); ?>
			<?php echo $this->Form->postLink('', array('action' => 'delete', $lettergrade['Lettergrade']['id']), array('class'=>'iconlink linkdelete','tilte'=>'Delete')); ?>
			</td>
		</tr>
		<?php endforeach;?>
	</table>
</div>
</div>