mirror of https://github.com/itflow-org/itflow
Made the php includes much more modular and simpler by lumping them all in 1 file inc_all.php instead of all over the place
This commit is contained in:
parent
7af0c11720
commit
1829c7299e
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<!-- Breadcrumbs-->
|
||||
<ol class="breadcrumb">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<link href='plugins/fullcalendar/main.min.css' rel='stylesheet' />
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
if(isset($_GET['campaign_id'])){
|
||||
$campaign_id = intval($_GET['campaign_id']);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
11
client.php
11
client.php
|
|
@ -1,6 +1,9 @@
|
|||
<?php include("config.php"); ?>
|
||||
<?php include("functions.php"); ?>
|
||||
<?php include("check_login.php"); ?>
|
||||
<?php include("header.php"); ?>
|
||||
<?php include("top_nav.php"); ?>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
|
@ -144,7 +147,13 @@ if(isset($_GET['client_id'])){
|
|||
|
||||
?>
|
||||
|
||||
<?php include("header.php"); ?>
|
||||
<?php
|
||||
|
||||
include("inc_side_nav.php");
|
||||
include("inc_wrapper.php");
|
||||
include("inc_alert_feedback.php");
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
<?php include("header.php");
|
||||
<?php
|
||||
|
||||
include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php
|
||||
|
||||
|
|
|
|||
51
header.php
51
header.php
|
|
@ -4,10 +4,6 @@
|
|||
// uncomment for test
|
||||
//$time_start = microtime(true);
|
||||
|
||||
include("config.php");
|
||||
include_once("functions.php");
|
||||
include("check_login.php");
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
|
@ -39,49 +35,4 @@
|
|||
|
||||
</head>
|
||||
<body class="hold-transition sidebar-mini">
|
||||
<div class="wrapper text-sm">
|
||||
<?php include("top_nav.php"); ?>
|
||||
|
||||
<?php
|
||||
|
||||
if(basename(parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH)) == "client.php"){
|
||||
include("client_side_nav.php");
|
||||
//}elseif(basename(parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH)) == "settings-general.php"){
|
||||
//include("admin_side_nav.php");
|
||||
}else{
|
||||
include("side_nav.php");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
|
||||
<!-- Main content -->
|
||||
<div class="content mt-3">
|
||||
<div class="container-fluid">
|
||||
|
||||
<?php
|
||||
//Alert Feedback
|
||||
if(!empty($_SESSION['alert_message'])){
|
||||
if (!isset($_SESSION['alert_type'])){
|
||||
$_SESSION['alert_type'] = "info";
|
||||
}
|
||||
?>
|
||||
<div class="alert alert-<?php echo $_SESSION['alert_type']; ?>" id="alert">
|
||||
<?php echo $_SESSION['alert_message']; ?>
|
||||
<button class='close' data-dismiss='alert'>×</button>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
unset($_SESSION['alert_type']);
|
||||
unset($_SESSION['alert_message']);
|
||||
|
||||
}
|
||||
|
||||
//Set Records Per Page
|
||||
if(empty($_SESSION['records_per_page'])){
|
||||
$_SESSION['records_per_page'] = 10;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="wrapper text-sm">
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
//Alert Feedback
|
||||
if(!empty($_SESSION['alert_message'])){
|
||||
if (!isset($_SESSION['alert_type'])){
|
||||
$_SESSION['alert_type'] = "info";
|
||||
}
|
||||
?>
|
||||
<div class="alert alert-<?php echo $_SESSION['alert_type']; ?>" id="alert">
|
||||
<?php echo $_SESSION['alert_message']; ?>
|
||||
<button class='close' data-dismiss='alert'>×</button>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
unset($_SESSION['alert_type']);
|
||||
unset($_SESSION['alert_message']);
|
||||
|
||||
}
|
||||
|
||||
//Set Records Per Page
|
||||
if(empty($_SESSION['records_per_page'])){
|
||||
$_SESSION['records_per_page'] = 10;
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
include("config.php");
|
||||
include_once("functions.php");
|
||||
include("check_login.php");
|
||||
include("header.php");
|
||||
include("top_nav.php");
|
||||
include("inc_side_nav.php");
|
||||
include("inc_wrapper.php");
|
||||
include("inc_alert_feedback.php");
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
if(basename(parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH)) == "client.php"){
|
||||
include("client_side_nav.php");
|
||||
//}elseif(basename(parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH)) == "settings-general.php"){
|
||||
//include("admin_side_nav.php");
|
||||
}else{
|
||||
include("side_nav.php");
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
|
||||
<!-- Main content -->
|
||||
<div class="content mt-3">
|
||||
<div class="container-fluid">
|
||||
|
||||
<?php
|
||||
//Alert Feedback
|
||||
if(!empty($_SESSION['alert_message'])){
|
||||
if (!isset($_SESSION['alert_type'])){
|
||||
$_SESSION['alert_type'] = "info";
|
||||
}
|
||||
?>
|
||||
<div class="alert alert-<?php echo $_SESSION['alert_type']; ?>" id="alert">
|
||||
<?php echo $_SESSION['alert_message']; ?>
|
||||
<button class='close' data-dismiss='alert'>×</button>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
unset($_SESSION['alert_type']);
|
||||
unset($_SESSION['alert_message']);
|
||||
|
||||
}
|
||||
|
||||
//Set Records Per Page
|
||||
if(empty($_SESSION['records_per_page'])){
|
||||
$_SESSION['records_per_page'] = 10;
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
<!-- Breadcrumbs-->
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
include("header.php");
|
||||
include("inc_all.php");
|
||||
|
||||
if(isset($_GET['invoice_id'])){
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
include("header.php");
|
||||
include("inc_all.php");
|
||||
|
||||
$row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('invoice_id') AS num FROM invoices WHERE invoice_status = 'Sent' AND company_id = $session_company_id"));
|
||||
$sent_count = $row['num'];
|
||||
|
|
|
|||
2
logs.php
2
logs.php
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
<?php
|
||||
|
||||
function roundUpToNearestMultiple($n, $increment = 1000)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
<?php
|
||||
|
||||
function roundUpToNearestMultiple($n, $increment = 1000)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
include("header.php");
|
||||
include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php include("settings-nav.php"); ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php include("settings-nav.php"); ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php include("settings-nav.php"); ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php include("settings-nav.php"); ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php include("settings-nav.php"); ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php include("settings-nav.php"); ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php include("settings-nav.php"); ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php include("settings-nav.php"); ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php include("settings-nav.php"); ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php include("settings-nav.php"); ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php
|
||||
|
||||
|
|
|
|||
2
tags.php
2
tags.php
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
if(!empty($_GET['sb'])){
|
||||
$sb = mysqli_real_escape_string($mysqli,$_GET['sb']);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col-md-5">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
<?php include("config.php"); ?>
|
||||
<?php include("header.php"); ?>
|
||||
<?php include("inc_all.php"); ?>
|
||||
|
||||
<?php
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if (isset($_GET['p'])) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Rebuild URL
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php include("header.php");
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//Paging
|
||||
if(isset($_GET['p'])){
|
||||
|
|
|
|||
Loading…
Reference in New Issue