| Server IP : 162.214.74.102 / Your IP : 216.73.216.59 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/public_html/lrsys_apps/school/application/views/backend/admin/ |
Upload File : |
<hr />
<div class="row">
<div class="col-md-12">
<!--CONTROL TABS START-->
<ul class="nav nav-tabs bordered">
<li class="active">
<a href="#list" data-toggle="tab"><i class="entypo-menu"></i>
<?php echo get_phrase('dormitory_list');?>
</a></li>
<li>
<a href="#add" data-toggle="tab"><i class="entypo-plus-circled"></i>
<?php echo get_phrase('add_dormitory');?>
</a></li>
</ul>
<!--CONTROL TABS END-->
<div class="tab-content">
<br>
<!--TABLE LISTING STARTS-->
<div class="tab-pane box <?php if(!isset($edit_data))echo 'active';?>" id="list">
<table cellpadding="0" cellspacing="0" border="0" class="table table-bordered datatable" id="table_export">
<thead>
<tr>
<th><div><?php echo get_phrase('dormitory_name');?></div></th>
<th><div><?php echo get_phrase('number_of_room');?></div></th>
<th><div><?php echo get_phrase('description');?></div></th>
<th><div><?php echo get_phrase('options');?></div></th>
</tr>
</thead>
<tbody>
<?php $count = 1;foreach($dormitories as $row):?>
<tr>
<td><?php echo $row['name'];?></td>
<td><?php echo $row['number_of_room'];?></td>
<td><?php echo $row['description'];?></td>
<td>
<div class="btn-group">
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
Action <span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-default pull-right" role="menu">
<!-- STUDENTS IN THE DORM -->
<li>
<a href="#" onclick="showAjaxModal('<?php echo base_url();?>index.php?modal/popup/modal_dormitory_student/<?php echo $row['dormitory_id'];?>');">
<i class="entypo-users"></i>
<?php echo get_phrase('students');?>
</a>
</li>
<li class="divider"></li>
<!-- EDITING LINK -->
<li>
<a href="#" onclick="showAjaxModal('<?php echo base_url();?>index.php?modal/popup/modal_edit_dormitory/<?php echo $row['dormitory_id'];?>');">
<i class="entypo-pencil"></i>
<?php echo get_phrase('edit');?>
</a>
</li>
<li class="divider"></li>
<!-- DELETION LINK -->
<li>
<a href="#" onclick="confirm_modal('<?php echo base_url();?>index.php?admin/dormitory/delete/<?php echo $row['dormitory_id'];?>');">
<i class="entypo-trash"></i>
<?php echo get_phrase('delete');?>
</a>
</li>
</ul>
</div>
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</div>
<!----TABLE LISTING ENDS--->
<!----CREATION FORM STARTS---->
<div class="tab-pane box" id="add" style="padding: 5px">
<div class="box-content">
<?php echo form_open(base_url() . 'index.php?admin/dormitory/create' , array('class' => 'form-horizontal form-groups-bordered validate','target'=>'_top'));?>
<div class="form-group">
<label class="col-sm-3 control-label"><?php echo get_phrase('dormitory_name');?></label>
<div class="col-sm-5">
<input type="text" class="form-control" name="name"
data-validate="required" data-message-required="<?php echo get_phrase('value_required');?>"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"><?php echo get_phrase('number_of_room');?></label>
<div class="col-sm-5">
<input type="text" class="form-control" name="number_of_room"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"><?php echo get_phrase('description');?></label>
<div class="col-sm-5">
<input type="text" class="form-control" name="description"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-5">
<button type="submit" class="btn btn-info"><?php echo get_phrase('add_dormitory');?></button>
</div>
</div>
</form>
</div>
</div>
<!----CREATION FORM ENDS-->
</div>
</div>
</div>