
<div id="content">                        
<div class="wrap">
                  
<div class="head">
	<div class="info">
		<h1><?php echo $module ?></h1>
			<ul class="breadcrumb">
            	<li><a href="#">Dashboard</a> <span class="divider">-</span></li>
                <li><a href="#"><?php echo $module ?></a> <span class="divider">-</span></li>
                <li class="active"><?php echo $title ?></li>
            </ul>
	</div>
                        
	<div class="search">
		<form action="<?php echo base_url() ?>admin/search" method="post">
			<input name="search_text" type="text" placeholder="search..."/>                                
            <button type="submit"><span class="i-magnifier"></span></button>
		</form>
	</div>                        
</div>  <!-- Head -->                                                                  
                    
<div class="content">
                    
	<div class="row-fluid">
		<div class="span12">
			<?php 
				$hidden = array('order_time' => date('Y-m-d H-i-s'),
						'fldid'=>$secmaster->fldid);
				$attrib = array('id'=>'validate'); 
				echo form_open('', $attrib, $hidden);?>
            	<div class="block">
                	<div class="head">
                    	<h2><?php echo $title ?></h2>
                        <div class="side fr">
                        <button class="btn" onClick="clear_form('#validate');" type="button">Clear form</button>
                    </div>
				</div>
				<div class="content np">    
                	<div class="controls-row">
                    	<div class="span2"><?php echo form_label('Code:','code');?></div>
                   	<div class="span10">
                            	<?php 								
								$data = array(
									'name'=>'code', 
									'id'=>'code', 
									'class'=>'span5 validate[required],maxSize[18]]',); 
								$js = 'Readonly';
								echo form_input($data, $secmaster->code ,$js); ?>
                                <span class="help-inline">Required, max size = 18</span>
                  </div>
                  </div>
                  <div class="controls-row">
                  	<div class="span2"><?php echo form_label('Description:','description');?></div>
                   	<div class="span10">
						<?php
							$data = array(
									'name'=>'description', 
									'id'=>'description', 
									'class'=>'span10 validate[maxSize[100]]',); 
							echo form_input($data, $secmaster->description); ?>                       
                    </div>                        
                  </div>
                  <div class="controls-row">
                  	<div class="span2"><?php echo form_label('Department:','department');?></div>
                   	<div class="span4">
						<?php
							$preseldept = $secmaster->department;
							$options[] = '--Please Select--';
							foreach($deptmaster as $rowdept){
								$options[$rowdept->code] = $rowdept->description;
							}

							echo form_dropdown('department', $options, $preseldept);
						?>       
                     </div>                
                  </div>
                  <div class="controls-row">
                  	<div class="span2"><?php echo form_label('Section Head:','section_head');?></div>
                   	<div class="span4">
						<?php
							$preseldept = $secmaster->section_head;
							$optionsuser[] = '--Please Select--';
							foreach($usermaster as $rowuser){
								$optionsuser[$rowuser->userid] = $rowuser->username;
							}

							echo form_dropdown('section_head', $optionsuser, $preseldept);
						?>       
                     </div>                
                  </div>
			</div>
            <div class="footer">
            	<div class="side fr">
                	<div class="btn-group">
                        <?php 
							$data = array(
									'name'=>'validat', 
									'class'=>'btn',
									'onClick'=>"$('#validate').validationEngine('hide');"); 
							echo form_button($data,'Hide prompts');
							$data = array(
									'name'=>'mysubmit', 
									'class'=>'btn btn-primary');
							echo form_submit($data,'Submit');
							?>
                    </div>
                </div>
            </div>                                    
		</div>
	</form>
</div>
</div>                        
</div>
</div>
</div>
