Beispiel #1
0
function get_ol($array, $status, $child = FALSE)
{
    $str = '';
    if (count($array)) {
        $str .= $child == FALSE ? '<ol class="sortable">' : '<ol>';
        foreach ($array as $item) {
            $str .= '<li id="list_' . $item['id'] . '" class="list-group-item" style="border:none;" >';
            $str .= '<div>' . $item['title'];
            $str .= '<b class="pull-right">' . btn_delete('admin/pages/delete/' . $item['id']);
            $str .= '<a href="' . base_url("index.php/admin/pages/edit/" . $item['id']) . '" class="btn btn-default btn-xs btn-primary" data-target="#telo" role="button" data-toggle="modal">
                                    <span class="glyphicon glyphicon-edit"></span> Edit</a></b></div>';
            // Do we have any children?
            if (isset($item['children']) && count($item['children'])) {
                $str .= get_ol($item['children'], $status, TRUE);
            }
            $str .= '</li>' . PHP_EOL;
        }
        $str .= '</ol>' . PHP_EOL;
    }
    return $str;
}
Beispiel #2
0
function get_ol($array, $child = FALSE)
{
    $str = '';
    if (count($array)) {
        $str .= $child == FALSE ? '<ol class="sortableslide media-list">' : '<ol>';
        foreach ($array as $item) {
            $str .= '<li id="list_' . $item->slide_id . '" class="media list-group-item">';
            if (!empty($item->slide_image)) {
                $str .= '<a class="pull-left" href="' . base_url('index.php/admin/slides/add/' . $item->slide_id) . '"><img class="media-object" src="' . base_url($item->slide_thumb) . '"></a>';
            } else {
                $str .= '<a class="pull-left" href="' . base_url('index.php/admin/slides/add/' . $item->slide_id) . '"><img alt="" src="http://placehold.it/100x120"></a>';
            }
            $str .= '<div class="media-body"><h4 class="media-heading">' . $item->slide_title . '<span class="pull-right">' . btn_delete('admin/slider/delete_slide/' . $item->slide_id) . '</span></h4>';
            $str .= '<p>' . $item->slide_desc . '</p>';
            $str .= '&nbsp<a href=' . base_url('index.php/admin/slider/edit/' . $item->slide_id) . ' class="btn btn-primary btn-xs" data-toggle="modal" data-target="#telo">
                Edit
            </a></div>';
            $str .= '</li>';
        }
        $str .= '</ol><br>';
    }
    return $str;
}
        }
        ?>
						<td >  <?php 
        echo '<input type="checkbox" disabled="disabled" ' . $checked . ' />';
        ?>
</td>
						<td ><?php 
        echo btn_permit($language . '/admin/course/activate/' . $course->course_id);
        ?>
</td>
						<td ><?php 
        echo btn_edit($language . '/admin/course/edit/' . $course->course_id);
        ?>
</td>
						<td ><?php 
        echo btn_delete($language . '/admin/course/delete/' . $course->course_id);
        ?>
</td>
					</tr>
		
			<?php 
        ?>
		<?php 
        ?>
	<?php 
    }
    ?>
	<?php 
} else {
    ?>
	<tr class="center bold">
Beispiel #4
0
        <thead>
            <tr>
                <th>Role Name</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <?php 
foreach ($roles as $role) {
    ?>
                <tr>
                    <td><?php 
    echo $role->role_name;
    ?>
</td>
                    <td> 
                        <?php 
    echo btn_edit('dashboard/rabc/edit_role/' . $role->role_id);
    ?>
 |
                        <?php 
    echo btn_delete('dashboard/rabc/delete_role/' . $role->role_id);
    ?>
                    </td>
                </tr>
            <?php 
}
?>
        </tbody>
    </table>
</fieldset>
Beispiel #5
0
            '</span>';
            ?>
                                                                                        
                                        <?php 
        } else {
            echo '<span class="label label-primary" style="font-size:10px;">All !</span>';
        }
        ?>
</td>                                       
                                <td>
                                    <?php 
        echo btn_edit('admin/routine/academic_calendar/' . $v_a_calendar->a_calender_id);
        ?>
  
                                    <?php 
        echo btn_delete('admin/user/delete/' . $v_a_calendar->a_calender_id);
        ?>
                                </td>

                            </tr>
                            <?php 
        $key++;
    }
    ?>
                    <?php 
} else {
    ?>
                    <td colspan="3">
                        <strong>Please Select Session to display Event</strong>
                    </td>
                <?php 
Beispiel #6
0
                                        <?php 
        }
        ?>

                                        <?php 
        if ($usertype == "Admin") {
            ?>
                                        <td data-title="<?php 
            echo $this->lang->line('action');
            ?>
">
                                            <?php 
            echo btn_edit('expense/edit/' . $expense->expenseID, $this->lang->line('edit'));
            ?>
                                            <?php 
            echo btn_delete('expense/delete/' . $expense->expenseID, $this->lang->line('delete'));
            ?>
                                        </td>
                                        <?php 
        }
        ?>

                                        
                                    </tr>
                                <?php 
        $i++;
        $total_expense += $expense->amount;
    }
}
?>
                            </tbody>
Beispiel #7
0
        ?>
	<tr>
		<td><?php 
        echo anchor('admin/article/edit/' . $article->id, $article->title);
        ?>
</td>
		<td><?php 
        echo format_date($article->pubdate);
        ?>
</td>
		<td><?php 
        echo btn_edit('admin/article/edit/' . $article->id);
        ?>
</td>
		<td><?php 
        echo btn_delete('admin/article/delete/' . $article->id);
        ?>
</td>
	</tr>
<?php 
    }
} else {
    ?>
	<tr>
		<td colspan="3">We could not find any articles.</td>
	</tr>
<?php 
}
?>

		</tbody>
Beispiel #8
0
        echo $this->lang->line('feetype_note');
        ?>
">
                                        <?php 
        echo $feetype->note;
        ?>
                                    </td>
                                    <td data-title="<?php 
        echo $this->lang->line('action');
        ?>
">
                                        <?php 
        echo btn_edit('feetype/edit/' . $feetype->feetypeID, $this->lang->line('edit'));
        ?>
                                        <?php 
        echo btn_delete('feetype/delete/' . $feetype->feetypeID, $this->lang->line('delete'));
        ?>
                                    </td>
                                </tr>
                            <?php 
        $i++;
    }
}
?>
                        </tbody>
                    </table>
                </div>

            </div>
        </div>
    </div>
Beispiel #9
0
        echo $v_award_info->gift_item;
        ?>
</td>
                                <td><?php 
        echo $v_award_info->award_amount;
        ?>
</td>
                                <td><?php 
        echo date('F y', strtotime($v_award_info->award_date));
        ?>
</td>
                                <td>
                                    <?php 
        echo btn_edit('admin/employee/employee_award/' . $v_award_info->employee_award_id . '/' . $v_award_info->designations_id);
        ?>
                                    <?php 
        echo btn_delete('admin/employee/delete_employee_award/' . $v_award_info->employee_award_id);
        ?>
                                </td>
                            </tr>                   
                        <?php 
    }
    ?>
                    <?php 
}
?>
                </tbody>
            </table>
        </div>
    </div>
</div>
Beispiel #10
0
        echo $featureOpt[$scheme->featured];
        ?>
</td>
                <?php 
        $activeOpt = array('0' => 'No', '1' => 'Yes');
        ?>
                <td><?php 
        echo $activeOpt[$scheme->active];
        ?>
</td>
                <td><?php 
        echo btn_edit('admin/scheme/edit/' . $scheme->id);
        ?>
</td>
                <td><?php 
        echo btn_delete('admin/scheme/delete/' . $scheme->id);
        ?>
</td>
            </tr>
        <?php 
    }
    ?>
        <?php 
} else {
    ?>
        	<tr>
            	<td colspan="7">We could not find any scheme</td>
            </tr>
        <?php 
}
?>
        echo form_hidden("lesson_id", $course->lesson_id);
        echo form_hidden("link", $course->category_id . "/" . $course->course_id);
        echo "<button name=\"active\" id=\"active\" type=\"submit\" class=\"color-green dark-limegreen-link\" style=\"background-color:transparent;border:none; \">\n\t\t\t\t\t\t" . $active . "\n\t\t\t\t\t\t</button>";
        echo form_close();
        ?>

							<?php 
        //echo btn_permit($language.'/admin/lesson/activate/' . $course->lesson_id);
        ?>
</td>
						<td ><?php 
        echo btn_edit($language . '/admin/lesson/view/' . $course->category_id . '/' . $course->course_id . '/' . $course->lesson_id);
        ?>
</td>
						<td ><?php 
        echo btn_delete($language . '/admin/lesson/delete/' . $course->lesson_id);
        ?>
</td>
					</tr>
		
			<?php 
        ?>
		<?php 
        ?>
	<?php 
    }
    ?>
	<?php 
} else {
    ?>
	<tr class="center bold">
Beispiel #12
0
            ?>
">
                                        <?php 
            echo $hostel->note;
            ?>
                                    </td>

                                    <td data-title="<?php 
            echo $this->lang->line('action');
            ?>
">
                                        <?php 
            echo btn_edit('hostel/edit/' . $hostel->hostelID, $this->lang->line('edit'));
            ?>
                                        <?php 
            echo btn_delete('hostel/delete/' . $hostel->hostelID, $this->lang->line('delete'));
            ?>
                                    </td>
                                </tr>
                            <?php 
            $i++;
        }
    }
    ?>
                        </tbody>
                    </table>
                </div>
                <?php 
} else {
    ?>
Beispiel #13
0
        echo $featureOpt[$category->featured];
        ?>
</td>
                <?php 
        $activeOpt = array('0' => 'No', '1' => 'Yes');
        ?>
                <td><?php 
        echo $activeOpt[$category->active];
        ?>
</td>
                <td><?php 
        echo btn_edit('admin/category/edit/' . $category->id);
        ?>
</td>
                <td><?php 
        echo btn_delete('admin/category/delete/' . $category->id);
        ?>
</td>
            </tr>
        <?php 
    }
    ?>
        <?php 
} else {
    ?>
        	<tr>
            	<td colspan="7">We could not find any category</td>
            </tr>
        <?php 
}
?>
Beispiel #14
0
                                        <?php 
        echo $this->lang->line($user->usertype);
        ?>
                                    </td>
                                    <td data-title="<?php 
        echo $this->lang->line('action');
        ?>
">
                                        <?php 
        echo btn_view('user/view/' . $user->userID, $this->lang->line('view'));
        ?>
                                        <?php 
        echo btn_edit('user/edit/' . $user->userID, $this->lang->line('edit'));
        ?>
                                        <?php 
        echo btn_delete('user/delete/' . $user->userID, $this->lang->line('delete'));
        ?>
                                    </td>
                                </tr>
                            <?php 
        $i++;
    }
}
?>
                        </tbody>
                    </table>
                </div>


            </div> <!-- col-sm-12 -->
        </div><!-- row -->
        }
        ?>
			<td >  <?php 
        echo '<input type="checkbox" disabled="disabled" ' . $checked . ' />';
        ?>
</td>
			<td ><?php 
        echo btn_permit($language . '/admin/category/activate/' . $category->category_id);
        ?>
</td>
			<td ><?php 
        echo btn_edit($language . '/admin/category/edit/' . $category->category_id);
        ?>
</td>
			<td ><?php 
        echo btn_delete($language . '/admin/category/delete/' . $category->category_id);
        ?>
</td>
		</tr>
	<?php 
    }
    ?>
	<?php 
} else {
    ?>
	<tr class="center bold">
		<td colspan="9"><?php 
    echo $this->lang->line('category_no_cat_exist');
    ?>
</td>
	</tr>
Beispiel #16
0
                echo strip_tags(substr($event->event, 0, 60));
            }
            ?>
                                    </td>
                                    <td data-title="<?php 
            echo $this->lang->line('action');
            ?>
">
                                        <?php 
            echo btn_view('event/view/' . $event->eventID, $this->lang->line('view'));
            ?>
                                        <?php 
            echo btn_edit('event/edit/' . $event->eventID, $this->lang->line('edit'));
            ?>
                                        <?php 
            echo btn_delete('event/delete/' . $event->eventID, $this->lang->line('delete'));
            ?>
                                    </td>
                                </tr>
                            <?php 
            $i++;
        }
    }
    ?>
                        </tbody>
                    </table>
                </div>
                <?php 
} else {
    ?>
                <div id="hide-table">
Beispiel #17
0
        echo $this->lang->line('section_note');
        ?>
">
                                        <?php 
        echo $section->note;
        ?>
                                    </td>
                                    <td data-title="<?php 
        echo $this->lang->line('action');
        ?>
">
                                        <?php 
        echo btn_edit('section/edit/' . $section->sectionID . '/' . $set, $this->lang->line('edit'));
        ?>
                                        <?php 
        echo btn_delete('section/delete/' . $section->sectionID . '/' . $set, $this->lang->line('delete'));
        ?>
                                    </td>
                                </tr>
                            <?php 
        $i++;
    }
}
?>
                        </tbody>
                    </table>
                </div>

            </div>
        </div>
    </div>
Beispiel #18
0
        }
        ?>
                                    </td>

                                    <?php 
        if ($usertype == "Admin") {
            ?>
                                    <td data-title="<?php 
            echo $this->lang->line('action');
            ?>
">
                                        <?php 
            echo btn_edit('book/edit/' . $book->bookID, $this->lang->line('edit'));
            ?>
                                        <?php 
            echo btn_delete('book/delete/' . $book->bookID, $this->lang->line('delete'));
            ?>
                                    </td>
                                    <?php 
        }
        ?>
                                </tr>
                            <?php 
        $i++;
    }
}
?>
                        </tbody>
                    </table>
                </div>
Beispiel #19
0
</td>
                                        <td><?php 
                echo $v_fields;
                ?>
</td>
                                        <td><?php 
                echo btn_set_phrase('admin/settings/set_phrase/' . $v_fields);
                ?>
                                        <?php 
                echo btn_set_formbody('admin/settings/set_formbody/' . $v_fields);
                ?>
</td>
                                        <td>                                        
                                            
                                            <?php 
                echo btn_delete('admin/settings/delete_language/' . $v_fields);
                ?>
                                        </td>
                                    </tr>
                                    <?php 
                $key++;
            }
        }
    }
    ?>
                    <?php 
} else {
    ?>
                    <td colspan="3">
                        <strong>There is no data to display</strong>
                    </td>
Beispiel #20
0
		<tbody>
<?php 
if (count($users)) {
    foreach ($users as $user) {
        ?>
	<tr>
		<td><?php 
        echo anchor('admin/user/edit/' . $user->id, $user->email);
        ?>
</td>
		<td><?php 
        echo btn_edit('admin/user/edit/' . $user->id);
        ?>
</td>
		<td><?php 
        echo btn_delete('admin/user/delete/' . $user->id);
        ?>
</td>
	</tr>
<?php 
    }
} else {
    ?>
	<tr>
		<td colspan="3">We could not find any users.</td>
	</tr>
<?php 
}
?>

		</tbody>
Beispiel #21
0
        echo $featureOpt[$location->featured];
        ?>
</td>
                <?php 
        $activeOpt = array('0' => 'No', '1' => 'Yes');
        ?>
                <td><?php 
        echo $activeOpt[$location->active];
        ?>
</td>
                <td><?php 
        echo btn_edit('admin/location/edit/' . $location->id);
        ?>
</td>
                <td><?php 
        echo btn_delete('admin/location/delete/' . $location->id);
        ?>
</td>
            </tr>
        <?php 
    }
    ?>
        <?php 
} else {
    ?>
        	<tr>
            	<td colspan="7">We could not find any location</td>
            </tr>
        <?php 
}
?>
Beispiel #22
0
</td>
                                                    <td><?php 
                echo date('d M,Y', strtotime($v_holiday->start_date));
                ?>
</td>
                                                    <td><?php 
                echo date('d M,Y', strtotime($v_holiday->end_date));
                ?>
</td>
                                                    <td>
                                                        <?php 
                echo btn_edit('admin/settings/holiday_list/1/' . $v_holiday->holiday_id);
                ?>
  
                                                        <?php 
                echo btn_delete('admin/settings/delete_holiday_list/' . $v_holiday->holiday_id);
                ?>
                                                    </td>

                                                </tr>
                                                <?php 
                $key++;
            }
            ?>
                                        <?php 
        } else {
            ?>
                                        <td colspan="3">
                                            <strong>There is no data to display</strong>
                                        </td>
                                    <?php 
Beispiel #23
0
                echo substr($mailandsmstemplate->template, 0, 25);
            }
            ?>
                                    </td>
                                    <td data-title="<?php 
            echo $this->lang->line('action');
            ?>
">
                                        <?php 
            echo btn_view('mailandsmstemplate/view/' . $mailandsmstemplate->mailandsmstemplateID, $this->lang->line('view'));
            ?>
                                        <?php 
            echo btn_edit('mailandsmstemplate/edit/' . $mailandsmstemplate->mailandsmstemplateID, $this->lang->line('edit'));
            ?>
                                        <?php 
            echo btn_delete('mailandsmstemplate/delete/' . $mailandsmstemplate->mailandsmstemplateID, $this->lang->line('delete'));
            ?>
                                    </td>
                                </tr>
                            <?php 
            $i++;
        }
    }
    ?>
                        </tbody>
                    </table>
                </div>
                <?php 
}
?>
Beispiel #24
0
                                        <?php 
        echo $student->phone;
        ?>
                                    </td>
                                    <td data-title="<?php 
        echo $this->lang->line('action');
        ?>
">

                                        <?php 
        if ($student->library == 0) {
            echo btn_add('lmember/add/' . $student->studentID . "/" . $set, $this->lang->line('lmember'));
        } else {
            echo btn_view('lmember/view/' . $student->studentID . "/" . $set, $this->lang->line('view')) . " ";
            echo btn_edit('lmember/edit/' . $student->studentID . "/" . $set, $this->lang->line('edit')) . " ";
            echo btn_delete('lmember/delete/' . $student->studentID . "/" . $set, $this->lang->line('delete'));
        }
        ?>
                                    </td>
                                </tr>
                            <?php 
        $i++;
    }
}
?>
                            
                        </tbody>
                    </table>
                </section>

            </div> <!-- col-sm-12 -->
Beispiel #25
0
                                        <?php 
        echo $parent->email;
        ?>
                                    </td>
                                    <td data-title="<?php 
        echo $this->lang->line('action');
        ?>
">
                                        <?php 
        echo btn_view('parentes/view/' . $parent->parentID, $this->lang->line('view'));
        ?>
                                        <?php 
        echo btn_edit('parentes/edit/' . $parent->parentID, $this->lang->line('edit'));
        ?>
                                        <?php 
        echo btn_delete('parentes/delete/' . $parent->parentID, $this->lang->line('delete'));
        ?>
                                    </td>
                                </tr>
                            <?php 
        $i++;
    }
}
?>
                        </tbody>
                    </table>
                </div>

            </div>
        </div>
    </div>
Beispiel #26
0
                    <tbody>
<?php 
if (count($newss)) {
    foreach ($newss as $news) {
        ?>
                        <tr>
                            <td><?php 
        echo anchor('admin/news/edit/' . $news->id, $news->title);
        ?>
</td>
                            <td><?php 
        echo btn_edit('admin/news/edit/' . $news->id);
        ?>
 </td>
                            <td><?php 
        echo btn_delete('admin/news/delete/' . $news->id);
        ?>
 </td>
                        </tr>
<?php 
    }
} else {
    ?>
                        <tr>
                            <td>We could not find any news!</td>
                        </tr>
<?php 
}
?>
                    </tbody>
                </table>
Beispiel #27
0
        }
        ?>
			<td><?php 
        echo '<input type="checkbox" disabled="disabled" ' . $checked . ' />';
        ?>
</td>
			<td ><?php 
        echo btn_permit($language . '/admin/user/permission/' . $user->id);
        ?>
</td>
			<td ><?php 
        echo btn_edit($language . '/admin/user/edit/' . $user->id);
        ?>
</td>
			<td ><?php 
        echo btn_delete($language . '/admin/user/delete/' . $user->id);
        ?>
</td>
		</tr>
	<?php 
    }
    ?>
		<tr>
			<td colspan="10"><?php 
    if ($page_links != NULL) {
        echo $page_links;
    }
    ?>
</td>
		</tr>
	<?php 
Beispiel #28
0
                                    
                                    <td data-title="<?php 
        echo $this->lang->line('action');
        ?>
">
                                        <?php 
        echo btn_view('invoice/view/' . $invoice->invoiceID, $this->lang->line('view'));
        ?>
                                        <?php 
        if ($usertype == "Admin" || $usertype == "Accountant") {
            ?>
                                        <?php 
            echo btn_edit('invoice/edit/' . $invoice->invoiceID, $this->lang->line('edit'));
            ?>
                                        <?php 
            echo btn_delete('invoice/delete/' . $invoice->invoiceID, $this->lang->line('delete'));
            ?>
                                        <?php 
        }
        ?>
                                    </td>
                                </tr>
                            <?php 
        $i++;
    }
}
?>
                        </tbody>
                    </table>
                </div>
	
		<tr>
			<td><?php 
        echo anchor('admin/page/edit/' . $page->id, $page->title);
        ?>
</td>
			<td><?php 
        echo $page->parent_slug;
        ?>
</td>
			<td><?php 
        echo btn_edit('admin/page/edit/' . $page->id);
        ?>
</td>
			<td><?php 
        echo btn_delete('admin/page/delete/' . $page->id);
        ?>
</td>
		</tr>
<?php 
    }
} else {
    ?>
		<tr>
			<td colspan="3">We could not find any pages.</td>
		</tr>
<?php 
}
?>
	
		</tbody>
Beispiel #30
0
    foreach ($subscribers as $subscriber) {
        ?>
      	<?php 
        static $i = 1;
        ?>
        	<tr>
                <td><?php 
        echo $i;
        ?>
</td>            
            	<td><?php 
        echo anchor('admin/subscriber/edit/' . $subscriber['id'], $subscriber['semail']);
        ?>
</td>
                <td><?php 
        echo btn_delete('admin/subscriber/delete/' . $subscriber['id']);
        ?>
</td>
            </tr>
         <?php 
        $i++;
        ?>
        <?php 
    }
    ?>
        <?php 
} else {
    ?>
        	<tr>
            	<td colspan="3">We could not find any subscriber</td>
            </tr>