<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Attachment Management
<small>Add, edit, delete attachement file</small>
</h1>
</section>
<section class="content">
<div class="row">
<!-- left column -->
<div class="col-md-8">
<!-- general form elements -->
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">Upload attachment</h3>
</div><!-- /.box-header -->
<!-- form start -->
<form role="form" enctype="multipart/form-data" action="<?php echo base_url() ?>addNewAttachment" method="post" id="addAttachment" role="form">
<div class="box-body">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="company">Company Name</label>
<select id="company" name="company" class="form-control">
<option value="">Select Company</option>
<?php
foreach ($companyData as $c) {
?>
<option value="<?php echo $c->comp_id; ?>"><?php echo $c->comp_name; ?></option>
<?php
}
?>
</select>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="tempName">Attachment Type</label>
<select id="tempName" name="tempName" class="form-control">
<option value="">Select Attchment Type</option>
<?php
foreach ($attchmentTypes as $at) {
?>
<option value="<?php echo $at->at_type_id; ?>"><?php echo $at->at_type; ?></option>
<?php
}
?>
</select>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for="attFile">Attachment File <span class="asterisk">*</span></label>
<input type="file" class="required" id="attFile" name="attFile" />
</div>
</div>
</div>
</div><!-- /.box-body -->
<div class="box-footer">
<input type="submit" class="btn btn-primary" value="Submit" />
<input type="reset" class="btn btn-default" value="Reset" />
</div>
</form>
</div>
</div>
<div class="col-md-4">
<?php
$this->load->helper('form');
$error = $this->session->flashdata('error');
if($error)
{
?>
<div class="alert alert-danger alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<?php echo $this->session->flashdata('error'); ?>
</div>
<?php } ?>
<?php
$success = $this->session->flashdata('success');
if($success)
{
?>
<div class="alert alert-success alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<?php echo $this->session->flashdata('success'); ?>
</div>
<?php } ?>
<div class="row">
<div class="col-md-12">
<?php echo validation_errors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?>
</div>
</div>
</div>
</div>
<!--
<div class="row">
<div class="col-md-8">
<embed src="<?php echo base_url().ATTACHMENT_PATH.$atPath ?>" width="100%" height="800">
</div>
</div>
-->
</section>
</div>
|