<!-- Begin content -->
<!-- Right side column. Contains the navbar and content of the page -->
<aside class="right-side">
	<!-- Content Header (Page header) -->
	<section class="content-header">
		<h1>
			<span class="fa fa-plus-circle"></span> <?php echo $pagetitle;?>
			<small><?php echo $pagesubtitle;?></small>
		</h1>
		<ol class="breadcrumb">
			<li><?php echo anchor('admin', '<i class="fa fa-dashboard"></i> first page');?></li>
			<li><?php echo anchor('admin/subjects', 'Organize the course');?></li>
			<li class="active"><?php echo $pagetitle;?></li>
		</ol>
	</section>
	<section class="content">
		<h4 class="page-header">
			<small></small>
		</h4>

		<?php
		$attr = array(
			'role' => 'form',
			'method' => 'post'
			);
		echo form_open($formlink, $attr);
		?>
		<div class="row">
			<div class="col-md-5 col-lg-6 col-lg-offset-3">
<?php
if (isset($msg_error))
{
	echo <<<EOL
<div class="alert alert-danger hidden-xs alert-dismissable" style="min-width: 343px">
	<i class="fa fa-ban"></i>
	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
	<b>mistake</b> : $msg_error
</div>
<div class="alert alert-danger visible-xs alert-dismissable">
	<i class="fa fa-ban"></i>
	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
	<b>mistake</b> : $msg_error
</div>
EOL;
	}
	else
	{
		echo <<<EOL
<div class="alert alert-info hidden-xs" style="min-width: 343px">
	<i class="fa fa-info"></i>
	<b>suggestion :</b> <b>mark</b> <span class="text-danger">*</span>
	Need to fill
</div>
<div class="alert alert-info visible-xs">
	<i class="fa fa-info"></i>
	<b>suggestion :</b> <b>mark</b> <span class="text-danger">*</span>
	Need to fill
</div>
EOL;
	}
?>
			</div>
		</div>
		<div class="row">
			<div class="col-md-8 col-md-offset-2">

				<!-- Begin BasicInfo -->
				<div class="box box-primary">
					<div class="box-header">
						<h3 class="box-title">
						Basic data
						</h3>
					</div>
					<div class="box-body">
						<div class="form-group<?php if(form_error('code')) echo ' has-error';?>">
							<?php
							echo form_label('subject code <span class="text-danger">*</span>', 'code');
							echo form_input(array(
								'id'=>'code',
								'name'=>'code',
								'value'=>$subjectInfo['code'],
								'type'=>'text',
								'class'=>'form-control',
								'placeholder'=>'subject code'));
							echo form_error('code', '<span class="label label-danger">', '</span>');
							?>
						</div>
						<div class="form-group<?php if(form_error('name')) echo ' has-error';?>">
							<?php
							echo form_label('Course title <span class="text-danger">*</span>', 'name');
							echo form_input(array(
								'id'=>'name',
								'name'=>'name',
								'value'=>$subjectInfo['name'],
								'type'=>'text',
								'class'=>'form-control',
								'placeholder'=>'Course title'));
							echo form_error('name', '<span class="label label-danger">', '</span>');
							?>
						</div>
						<div class="form-group<?php if(form_error('shortname')) echo ' has-error';?>">
							<?php
							echo form_label('Title of course <span class="text-danger">*</span>', 'Title of course');
							echo form_input(array(
								'id'=>'shortname',
								'name'=>'shortname',
								'value'=>$subjectInfo['shortname'],
								'type'=>'text',
								'class'=>'form-control',
								'placeholder'=>'Title of course'));
							echo form_error('shortname', '<span class="label label-danger">', '</span>');
							?>
						</div>
						<div class="form-group<?php if(form_error('description')) echo ' has-error';?>">
							<?php
							echo form_label('Course Description', 'description');
							echo form_textarea('description', $subjectInfo['description'], 'id="editor" class="form-control"');
							// echo form_error('description', '<span class="label label-danger">', '</span>');
							?>
						</div>
					</div>
					<div class="box-footer text-right">
					<?php
					echo form_submit('submit', $this->subjects->btnSaveText(), 'class="btn btn-primary"');
					?>
					</div>
				</div>
				<!-- End BasicInfo -->
			</div>
		</div>

		<?php form_close(); ?>
<!-- End content -->