108 lines
4.3 KiB
PHP
Executable File

<!--sidebar end-->
<!--main content start-->
<section id="main-content">
<section class="wrapper site-min-height">
<!-- page start-->
<section class="col-md-6">
<header class="panel-heading">
<?php
if (!empty($notice->id))
echo lang('edit_notice');
else
echo lang('add_notice');
?>
</header>
<style>
.des{
padding-left: 0px !important;
padding-right: 0px !important;
}
</style>
<div class="panel-body">
<div class="adv-table editable-table ">
<div class="clearfix">
<div class="col-lg-12">
<div class="col-lg-3"></div>
<div class="col-lg-6">
<?php echo validation_errors(); ?>
<?php echo $this->session->flashdata('feedback'); ?>
</div>
<div class="col-lg-3"></div>
</div>
<form role="form" action="notice/addNew" class="clearfix" method="post" enctype="multipart/form-data">
<div class="form-group col-md-6">
<label for="exampleInputEmail1"> <?php echo lang('title'); ?></label>
<input type="text" class="form-control" name="title" id="exampleInputEmail1" value='<?php
if (!empty($notice->name)) {
echo $notice->name;
}
?>' placeholder="">
</div>
<div class="form-group col-md-6">
<label for="exampleInputEmail1">Notice For</label>
<select class="form-control m-bot15" name="type" value=''>
<option value="patient" <?php
if (!empty($notice->type)) {
if ($notice->type == 'patient') {
echo 'selected';
}
}
?>><?php echo lang('patient'); ?></option>
<option value="staff" <?php
if (!empty($notice->type)) {
if ($notice->type == 'staff') {
echo 'selected';
}
}
?>><?php echo lang('staff'); ?></option>
</select>
</div>
<div class="form-group col-md-12 des">
<label class="control-label col-md-3"><?php echo lang('description'); ?></label>
<div class="col-md-12 des">
<textarea class="ckeditor form-control editor" id="editor" name="description" value="" rows="10"></textarea>
</div>
</div>
<div class="form-group col-md-12">
<label for="exampleInputEmail1"> <?php echo lang('date'); ?></label>
<input type="text" class="form-control default-date-picker" name="date" id="exampleInputEmail1" value='' placeholder="" readonly="">
</div>
<input type="hidden" name="id" value='<?php
if (!empty($notice->id)) {
echo $notice->id;
}
?>'>
<button type="submit" name="submit" class="btn btn-info"> <?php echo lang('submit'); ?></button>
</form>
</div>
</div>
</div>
</section>
</section>
<!-- page end-->
</section>
<!--main content end-->
<!--footer start-->