Skip to content

Commit

Permalink
Admin-Notice3
Browse files Browse the repository at this point in the history
  • Loading branch information
mtm-zakir committed Nov 27, 2023
1 parent 5428d94 commit 6d4692e
Show file tree
Hide file tree
Showing 12 changed files with 139 additions and 1,796 deletions.
Binary file modified application/views/.DS_Store
Binary file not shown.
Binary file modified application/views/backend/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion application/views/backend/admin/modal_edit_notice.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
$edit_data = $this->db->get_where('noticeboard', array('notice_id' => $param2))->result_array();
?>
<div class="tab-pane box active" id="edit" style="color:#001911 ;font-family: system-ui;font-size:14px;padding: 5px">
<div class="tab-pane box active" id="edit">
<div class="box-content">
<?php foreach ($edit_data as $row) : ?>
<?php echo form_open(base_url() . 'index.php?admin/noticeboard/do_update/' . $row['notice_id'], array('class' => 'form-horizontal form-groups-bordered validate', 'target' => '_top')); ?>
Expand Down
72 changes: 39 additions & 33 deletions application/views/backend/admin/navigation.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div class="sidebar-menu" style="font-family: system-ui;font-size:14px;">
<header class="logo-env" >
<header class="logo-env">

<!-- logo -->
<div class="logo" style="">
<a href="<?php echo base_url(); ?>">
<img src="uploads/logo.png" style="max-height:60px;"/>
<img src="uploads/logo.png" style="max-height:60px;" />
</a>
</div>

Expand All @@ -23,7 +23,7 @@
</a>
</div>
</header>
<div style=""></div>
<div style=""></div>
<ul id="main-menu" class="">
<!-- add class "multiple-expanded" to allow multiple submenus to open -->
<!-- class "auto-inherit-active-class" will automatically add "active" class for parent elements who are marked already with class "active" -->
Expand All @@ -36,8 +36,8 @@
<span><?php echo ('Dashboard'); ?></span>
</a>
</li>
<!-- NOTICEBOARD -->

<!-- NOTICEBOARD -->
<li class="<?php if ($page_name == 'noticeboard') echo 'active'; ?> ">
<a href="<?php echo base_url(); ?>index.php?admin/noticeboard" style='font-weight:550;font-size:14px'>
<i class="fa fa-bullhorn"></i>
Expand All @@ -47,10 +47,12 @@

<!-- CLASS -->
<li class="<?php
if ($page_name == 'class' ||
$page_name == 'section')
echo 'opened active';
?> ">
if (
$page_name == 'class' ||
$page_name == 'section'
)
echo 'opened active';
?> ">
<a href="#" style='font-weight:550;font-size:14px'>
<i class="fa fa-sitemap"></i>
<span><?php echo ('Classes'); ?></span>
Expand Down Expand Up @@ -78,8 +80,8 @@
<ul>
<?php
$classes = $this->db->get('class')->result_array();
foreach ($classes as $row):
?>
foreach ($classes as $row) :
?>
<li class="<?php if ($page_name == 'subject' && $class_id == $row['class_id']) echo 'active'; ?>">
<a style='font-weight:550;font-size:14px' href="<?php echo base_url(); ?>index.php?admin/subject/<?php echo $row['class_id']; ?>">
<span> <?php echo $row['name']; ?></span>
Expand All @@ -97,27 +99,29 @@
</a>
</li>

<!-- PARENTS -->
<li class="<?php if ($page_name == 'parent') echo 'active'; ?> ">
<!-- PARENTS -->
<li class="<?php if ($page_name == 'parent') echo 'active'; ?> ">
<a href="<?php echo base_url(); ?>index.php?admin/parent" style='font-weight:550;font-size:14px'>
<i class="fa fa-group"></i>
<span><?php echo ('Parents'); ?></span>
</a>
</li>

<!-- STUDENT -->
<li class="<?php if ($page_name == 'student_add' ||
$page_name == 'student_information' ||
$page_name == 'student_marksheet')
echo 'opened active has-sub'; ?> ">
<li class="<?php if (
$page_name == 'student_add' ||
$page_name == 'student_information' ||
$page_name == 'student_marksheet'
)
echo 'opened active has-sub'; ?> ">
<a href="#" style='font-weight:550;font-size:14px'>
<i class="fa fa-group"></i>
<span><?php echo ('Students'); ?></span>
</a>
<ul>
<ul>

<li class="<?php if ($page_name == 'student_add') echo 'active'; ?> ">
<a href="<?php echo base_url(); ?>index.php?admin/student_add" style='font-weight:550;font-size:14px'>
<a href="<?php echo base_url(); ?>index.php?admin/student_add" style='font-weight:550;font-size:14px'>
<span><i class="fa fa-chevron-circle-right"></i> <?php echo ('Add Student'); ?></span>
</a>
</li>
Expand All @@ -130,8 +134,8 @@
<ul>
<?php
$classes = $this->db->get('class')->result_array();
foreach ($classes as $row):
?>
foreach ($classes as $row) :
?>
<li class="<?php if ($page_name == 'student_information' && $class_id == $row['class_id']) echo 'active'; ?>">
<a href="<?php echo base_url(); ?>index.php?admin/student_information/<?php echo $row['class_id']; ?>">
<span> <?php echo $row['name']; ?></span>
Expand All @@ -149,8 +153,8 @@
<ul>
<?php
$classes = $this->db->get('class')->result_array();
foreach ($classes as $row):
?>
foreach ($classes as $row) :
?>
<li class="<?php if ($page_name == 'student_marksheet' && $class_id == $row['class_id']) echo 'active'; ?>">
<a href="<?php echo base_url(); ?>index.php?admin/student_marksheet/<?php echo $row['class_id']; ?>">
<span> <?php echo $row['name']; ?></span>
Expand Down Expand Up @@ -182,18 +186,20 @@

<!-- EXAMS -->
<li class="<?php
if ($page_name == 'exam' ||
$page_name == 'grade' ||
$page_name == 'marks')
if (
$page_name == 'exam' ||
$page_name == 'grade' ||
$page_name == 'marks'
)
echo 'opened active';
?> ">
?> ">
<a href="#" style='font-weight:550;font-size:14px'>
<i class="fa fa-puzzle-piece"></i>
<span><?php echo ('Examinations'); ?></span>
</a>
<ul>
<li class="<?php if ($page_name == 'exam') echo 'active'; ?> ">
<a href="<?php echo base_url(); ?>index.php?admin/exam" style='font-weight:550;font-size:14px'>
<a href="<?php echo base_url(); ?>index.php?admin/exam" style='font-weight:550;font-size:14px'>
<span><i class="fa fa-chevron-circle-right"></i> <?php echo ('Exams List'); ?></span>
</a>
</li>
Expand All @@ -220,10 +226,10 @@

<!-- SETTINGS -->
<li class="<?php if ($page_name == 'system_settings') echo 'active'; ?> ">
<a href="<?php echo base_url(); ?>index.php?admin/system_settings" style='font-weight:550;font-size:14px'>
<i class="fa fa-cogs"></i>
<span></i> <?php echo ('System Settings'); ?></span>
</a>
<a href="<?php echo base_url(); ?>index.php?admin/system_settings" style='font-weight:550;font-size:14px'>
<i class="fa fa-cogs"></i>
<span> <?php echo ('System Settings'); ?></span>
</a>
</li>


Expand Down
6 changes: 3 additions & 3 deletions application/views/backend/admin/noticeboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<div class="form-group">
<label class="col-sm-3 control-label"><?php echo ('Title'); ?></label>
<div class="col-sm-5">
<input type="text" class="form-control" placeholder="<?php echo ('Enter Title'); ?>" name="notice_title" />
<input type="text" class="form-control" placeholder="<?php echo ('Enter Title Here'); ?>" name="notice_title" />
</div>
</div>
<div class="form-group">
Expand All @@ -97,7 +97,7 @@
<div class="box closable-chat-box">
<div class="box-content padded">
<div class="chat-message-box">
<textarea name="notice" id="ttt" rows="5" placeholder="<?php echo ('Enter Notice'); ?>" class="form-control"></textarea>
<textarea name="notice" id="ttt" rows="5" placeholder="<?php echo ('Enter Notice Content Here'); ?>" class="form-control"></textarea>
</div>
</div>
</div>
Expand All @@ -106,7 +106,7 @@
<div class="form-group">
<label class="col-sm-3 control-label"><?php echo ('Date'); ?></label>
<div class="col-sm-5">
<input type="text" class="datepicker form-control" placeholder="<?php echo ('Pick Date'); ?>" name="create_timestamp" />
<input type="text" class="datepicker form-control" placeholder="<?php echo ('Pick a Date Here'); ?>" name="create_timestamp" />
</div>
</div>

Expand Down
Loading

0 comments on commit 6d4692e

Please sign in to comment.