%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php include("includes/header.php"); include("includes/sidebar.php"); ?> <!-- Page Content --> <div class="right_col" role="main"> <div class=""> <!-- Page Title Bar --> <div class="page-title"> <div class="title_left"> <h3>Departments</h3> </div> <div class="title_right"> <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search for..."> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </div> </div> <!-- End of Page Title Bar --> <div class="clearfix"></div> <!-- Content Section --> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="x_panel"> <!-- Panel Title --> <div class="x_title"> <h2>Add Department</h2> <ul class="nav navbar-right panel_toolbox"> <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a> </li> </ul> <div class="clearfix"></div> </div> <!-- End of Panel Title --> <!-- Panel Content --> <div class="x_content"> <div class="left-margin"> <?php if(isset($data_string)){ echo $data_string;} ?> <?php echo validation_errors(); ?> <?php echo form_open_multipart('admin/Department/add_department', 'class="form-vertical form-label-left" id="addDepartment"'); ?> <div class="clearfix"></div> <!-- Hidden Field for Doctor ID if updating Doctor --> <?php if(isset($DepartmentID)){?> <input type="hidden" name="DepartmentID" value="<?php echo $DepartmentID;?>"> <?php }?> <!-- Department Name Required --> <div class="form-group col-md-8"> <label>Department Name<span class="required">*</span></label> <input type="text" class="form-control" id="department-name" name="DepartmentName" required="required" placeholder="Enter Name of Department" value="<?php if(isset($DepartmentName)){echo $DepartmentName;} ?>"> </div> <!-- Slug Required --> <div class="form-group col-md-8"> <label>Slug</label> <input type="text" class="form-control" id="link" name="DepartmentPageURL" required="required" placeholder="Enter Slug" value="<?php if(isset($DepartmentPageURL)){echo $DepartmentPageURL;} ?>"> </div> <!-- Type Required - COE/Speciality --> <div class="form-group col-md-8"> <label>Type of Department<span class="required">*</span></label> <select class="form-control select2-single" required="required" name="DepartmentType"> <option value=""></option> <?php if($department_types){ foreach($department_types as $department_type){ $selected=''; if(isset($DepartmentType)&&($department_type['DepartmentTypeID']==$DepartmentType)){ $selected="selected"; } echo '<option value="'.$department_type['DepartmentTypeID'].'" '.$selected.'>'.$department_type['DepartmentTypeTitle'].'</option>'; } } ?> </select> </div> <!-- COE Required - display if COE selected --> <div class="form-group col-md-8"> <label>Center of Excellence</label> <select class="form-control select2-single" name="DepartmentParentID"> <option value=""></option> <?php if($coe){ foreach($coe as $center){ $selected=''; if(isset($DepartmentParentID)&&($center['DepartmentID']==$DepartmentParentID)){ $selected="selected"; } echo '<option value="'.$center['DepartmentID'].'" '.$selected.'>'.$center['DepartmentName'].'</option>'; } } ?> </select> </div> <!-- Overview --> <div class="form-group col-md-12"> <label>Overview</label> <textarea class="form-control ckeditor" placeholder="" name="DepartmentOverview" id="DepartmentOverview" rows="10"><?php echo (isset($DepartmentOverview))?$DepartmentOverview:''?></textarea> </div> <script> // Replace the <textarea id="editor1"> with a CKEditor // instance, using default configuration. CKEDITOR.replace( 'DepartmentOverview' ); </script> <!-- Services Offered --> <div class="form-group col-md-12"> <label>Services Offered</label> <textarea class="form-control ckeditor" placeholder="" name="DepartmentServices" id="DepartmentServices" rows="10"><?php echo (isset($DepartmentServices))?$DepartmentServices:''?></textarea> </div> <script> // Replace the <textarea id="editor1"> with a CKEditor // instance, using default configuration. CKEDITOR.replace( 'DepartmentServices' ); </script> <!-- Facilities --> <div class="form-group col-md-12"> <label>Facilities</label> <textarea class="form-control ckeditor" placeholder="" name="DepartmentFacilities" id="DepartmentFacilities" rows="10"><?php echo (isset($DepartmentFacilities))?$DepartmentFacilities:''?></textarea> </div> <script> // Replace the <textarea id="editor1"> with a CKEditor // instance, using default configuration. CKEDITOR.replace( 'DepartmentFacilities' ); </script> <!-- Achievements --> <div class="form-group col-md-12"> <label>Achievements</label> <textarea class="form-control ckeditor" placeholder="" name="DepartmentAchievements" id="DepartmentAchievements" rows="10"><?php echo (isset($DepartmentAchievements))?$DepartmentAchievements:''?></textarea> </div> <script> // Replace the <textarea id="editor1"> with a CKEditor // instance, using default configuration. CKEDITOR.replace( 'DepartmentAchievements' ); </script> <!-- Features/Highlights --> <div class="form-group col-md-12"> <label>Highlights</label> <textarea class="form-control ckeditor" placeholder="" name="DepartmentHighlights" id="DepartmentHighlights" rows="10"><?php echo (isset($DepartmentHighlights))?$DepartmentHighlights:''?></textarea> </div> <script> // Replace the <textarea id="editor1"> with a CKEditor // instance, using default configuration. CKEDITOR.replace( 'DepartmentHighlights' ); </script> <!-- Infrastructure & Equipments --> <div class="form-group col-md-12"> <label>Infrastructure & Equipments</label> <textarea class="form-control ckeditor" placeholder="" name="DepartmentInfrastructure" id="DepartmentInfrastructure" rows="10"><?php echo (isset($DepartmentInfrastructure))?$DepartmentInfrastructure:''?></textarea> </div> <script> // Replace the <textarea id="editor1"> with a CKEditor // instance, using default configuration. CKEDITOR.replace( 'DepartmentInfrastructure' ); </script> <!-- Thumbnail --> <div class="form-group col-md-8"> <label>Upload Thumbnail</label> <input name="thumbnail" type="file" id="thumbnail" /> <?php if((isset($DepartmentThumbnail))&&($DepartmentThumbnail)){ ?> <img src="<?php echo base_url();?>uploads/department/<?php echo $DepartmentThumbnail; ?>" style="height:60px;" /> <a href="<?php echo base_url();?>uploads/department/<?php echo $DepartmentThumbnail; ?>"><?php echo $DepartmentThumbnail; ?></a> <?php } ?> </div> <!-- Poster Image --> <div class="form-group col-md-8"> <label>Upload Poster Image</label> <input name="banner" type="file" id="poster" /> <?php if((isset($DepartmentBanner))&&($DepartmentBanner)){ ?> <img src="<?php echo base_url();?>uploads/department/<?php echo $DepartmentBanner; ?>" style="height:60px;" /> <a href="<?php echo base_url();?>uploads/department/<?php echo $DepartmentBanner; ?>"><?php echo $DepartmentBanner; ?></a> <?php } ?> </div> <!-- Icon --> <div class="form-group col-md-8"> <label>Upload Icon</label> <input name="icon" type="file" id="icon" /> <?php if((isset($DepartmentIcon))&&($DepartmentIcon)){ ?> <img src="<?php echo base_url();?>uploads/department/<?php echo $DepartmentIcon; ?>" style="height:60px;" /> <a href="<?php echo base_url();?>uploads/department/<?php echo $DepartmentIcon; ?>"><?php echo $DepartmentIcon; ?></a> <?php } ?> </div> <!-- Display Order --> <div class="form-group col-md-8"> <label>Display Order </label> <input type="text" name="DepartmentPriorityOrder" class="" id="priority-order" size="3" value="0" value="<?php if(isset($DepartmentPriorityOrder)){echo $DepartmentPriorityOrder;} ?>"> </div> <!-- Display Status --> <div class="form-group col-md-8"> <label>Display Status</label> <div class="radio"> <?php if(!(isset($Status))){$Status="A";} ?> <label> <input type="radio" class="flat" name="Status" value="A" <?php if((isset($Status))&&($Status=="A")){echo 'checked';} ?>> Active </label> <label> <input type="radio" class="flat" name="Status" value="I" <?php if((isset($Status))&&($Status=="I")){echo 'checked';} ?>> Inactive </label> </div> </div> <div class="clearfix"></div> <!-- Buttons --> <div class="form-group col-md-12"> <button type="submit" class="btn btn-success btn-md">Submit</button> <button class="btn btn-primary btn-md" type="button">Cancel</button> <button class="btn btn-primary btn-md" type="reset">Reset</button> </div> </form> </div> </div> <!-- End of Panel Content --> </div> </div> </div> <!-- End of Content Section --> </div> </div> <!-- End of Page Content --> <?php include("includes/footer.php"); ?>