mirror of
https://github.com/itflow-org/itflow
synced 2026-03-16 02:34:50 +00:00
tocuhed up avatar icon and placement on top nav
This commit is contained in:
68
api.php
68
api.php
@@ -36,7 +36,7 @@ if($_GET['api_key'] == $config_api_key){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_GET['phonebookalpha'])){
|
if(isset($_GET['phonebook'])){
|
||||||
|
|
||||||
header('Content-type: text/xml');
|
header('Content-type: text/xml');
|
||||||
header('Pragma: public');
|
header('Pragma: public');
|
||||||
@@ -57,46 +57,54 @@ if($_GET['api_key'] == $config_api_key){
|
|||||||
<Phone>
|
<Phone>
|
||||||
<phonenumber><?php echo $client_phone; ?></phonenumber>
|
<phonenumber><?php echo $client_phone; ?></phonenumber>
|
||||||
</Phone>
|
</Phone>
|
||||||
|
<Groups>
|
||||||
|
<groupid>0</groupid>
|
||||||
|
</Groups>
|
||||||
</Contact>
|
</Contact>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
echo '</AddressBook>';
|
|
||||||
|
|
||||||
}
|
$sql = mysqli_query($mysqli,"SELECT * FROM contacts;");
|
||||||
|
|
||||||
if(isset($_GET['phonebookbeta'])){
|
|
||||||
|
|
||||||
$myfile = fopen("phonebook.xml", "w");
|
|
||||||
|
|
||||||
$txt = "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
|
|
||||||
|
|
||||||
fwrite($myfile, $txt);
|
|
||||||
|
|
||||||
$txt = "<AddressBook>\n";
|
|
||||||
|
|
||||||
fwrite($myfile, $txt);
|
|
||||||
$sql = mysqli_query($mysqli,"SELECT * FROM clients;");
|
|
||||||
|
|
||||||
while($row = mysqli_fetch_array($sql)){
|
while($row = mysqli_fetch_array($sql)){
|
||||||
$client_name = $row['client_name'];
|
$vendor_name = $row['contact_name'];
|
||||||
$client_phone = $row['client_phone'];
|
$vendor_phone = $row['contact_phone'];
|
||||||
|
|
||||||
$txt = "<Contact>\n
|
?>
|
||||||
<LastName>$client_name</LastName>\n
|
<Contact>
|
||||||
<Phone>\n
|
<LastName><?php echo $contact_name; ?></LastName>
|
||||||
<phonenumber>$client_phone</phonenumber>\n
|
<Phone>
|
||||||
</Phone>\n
|
<phonenumber><?php echo $contact_phone; ?></phonenumber>
|
||||||
</Contact>\n";
|
</Phone>
|
||||||
|
<Groups>
|
||||||
|
<groupid>1</groupid>
|
||||||
|
</Groups>
|
||||||
|
</Contact>
|
||||||
|
|
||||||
fwrite($myfile, $txt);
|
<?php
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$txt = "</AddressBook>";
|
$sql = mysqli_query($mysqli,"SELECT * FROM vendors;");
|
||||||
fwrite($myfile, $txt);
|
|
||||||
fclose($myfile);
|
|
||||||
|
|
||||||
header("Location: phonebook.xml");
|
while($row = mysqli_fetch_array($sql)){
|
||||||
|
$vendor_name = $row['vendor_name'];
|
||||||
|
$vendor_phone = $row['vendor_phone'];
|
||||||
|
|
||||||
|
?>
|
||||||
|
<Contact>
|
||||||
|
<LastName><?php echo $vendor_name; ?></LastName>
|
||||||
|
<Phone>
|
||||||
|
<phonenumber><?php echo $vendor_phone; ?></phonenumber>
|
||||||
|
</Phone>
|
||||||
|
<Groups>
|
||||||
|
<groupid>2</groupid>
|
||||||
|
</Groups>
|
||||||
|
</Contact>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
echo '</AddressBook>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -109,9 +109,14 @@ if(isset($_GET['client_id'])){
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
<?php
|
||||||
|
if(!empty($client_phone)){
|
||||||
|
?>
|
||||||
<i class="fa fa-fw fa-phone text-secondary ml-1 mr-2 mb-2"></i> <?php echo $client_phone; ?>
|
<i class="fa fa-fw fa-phone text-secondary ml-1 mr-2 mb-2"></i> <?php echo $client_phone; ?>
|
||||||
<br>
|
<br>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
<?php
|
<?php
|
||||||
if(!empty($client_website)){
|
if(!empty($client_website)){
|
||||||
?>
|
?>
|
||||||
|
|||||||
15
invoice.php
15
invoice.php
@@ -221,7 +221,7 @@ if(isset($_GET['invoice_id'])){
|
|||||||
|
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><input type="text" class="form-control typeahead" name="name" id="item"></td>
|
<td><input type="text" class="form-control typeahead" name="name" id="item"></td>
|
||||||
<td><textarea class="form-control" rows="1" name="description"></textarea></td>
|
<td><textarea class="form-control" id="description" rows="1" name="description"></textarea></td>
|
||||||
<td><input type="text" class="form-control" style="text-align: center;" name="qty"></td>
|
<td><input type="text" class="form-control" style="text-align: center;" name="qty"></td>
|
||||||
<td><input type="text" class="form-control" style="text-align: right;" id="price" name="price"></td>
|
<td><input type="text" class="form-control" style="text-align: right;" id="price" name="price"></td>
|
||||||
<td>
|
<td>
|
||||||
@@ -416,22 +416,13 @@ var productCosts = [
|
|||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
$('#item1').typeahead({
|
$('#item').typeahead({
|
||||||
source: products,
|
source: products,
|
||||||
afterSelect: function(){
|
afterSelect: function(){
|
||||||
$('#price').val( '<?php echo $product_cost; ?>' );
|
$('#item').val( '<?php echo $product_name; ?>' );
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#item').typeahead({
|
|
||||||
minLength: 3,
|
|
||||||
source: function (query, process) {
|
|
||||||
data: productCosts
|
|
||||||
|
|
||||||
afterSelect: function(args){
|
|
||||||
$('#price').val(args.cost );
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@@ -1,12 +1,10 @@
|
|||||||
<?php include("header.php"); ?>
|
<?php include("header.php"); ?>
|
||||||
|
|
||||||
<?php $sql = mysqli_query($mysqli,"SELECT * FROM accounts ORDER BY account_id DESC"); ?>
|
|
||||||
|
|
||||||
<?php include("settings-nav.php"); ?>
|
<?php include("settings-nav.php"); ?>
|
||||||
|
|
||||||
<div class="card mb-3">
|
<div class="card mb-3">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h6 class="float-left mt-1"><i class="fa fa-cog"></i> Defaults Settings</h6>
|
<h6 class="float-left mt-1"><i class="fa fa-cog mr-2"></i>Defaults Settings</h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<form class="p-3" action="post.php" method="post" autocomplete="off">
|
<form class="p-3" action="post.php" method="post" autocomplete="off">
|
||||||
@@ -14,9 +12,24 @@
|
|||||||
<label>Transfer From Account</label>
|
<label>Transfer From Account</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-server"></i></span>
|
<span class="input-group-text"><i class="fa fa-exchange-alt"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<input type="text" class="form-control" name="smtp_host" placeholder="Mail Server Address" required autofocus>
|
<select class="form-control selectpicker show-tick" name="config_default_transfer_from_account">
|
||||||
|
<option value="">- Account -</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$sql = mysqli_query($mysqli,"SELECT * FROM accounts");
|
||||||
|
while($row = mysqli_fetch_array($sql)){
|
||||||
|
$account_id = $row['account_id'];
|
||||||
|
$account_name = $row['account_name'];
|
||||||
|
|
||||||
|
?>
|
||||||
|
<option value="<?php echo $account_id; ?>"><?php echo $account_name; ?></option>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -24,9 +37,24 @@
|
|||||||
<label>Transfer To Account</label>
|
<label>Transfer To Account</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-user"></i></span>
|
<span class="input-group-text"><i class="fa fa-exchange-alt"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<input type="text" class="form-control" name="username" placeholder="Username" required>
|
<select class="form-control selectpicker show-tick" name="config_default_transfer_to_account">
|
||||||
|
<option value="">- Account -</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$sql = mysqli_query($mysqli,"SELECT * FROM accounts");
|
||||||
|
while($row = mysqli_fetch_array($sql)){
|
||||||
|
$account_id = $row['account_id'];
|
||||||
|
$account_name = $row['account_name'];
|
||||||
|
|
||||||
|
?>
|
||||||
|
<option value="<?php echo $account_id; ?>"><?php echo $account_name; ?></option>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -34,19 +62,74 @@
|
|||||||
<label>Payment Account</label>
|
<label>Payment Account</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-user"></i></span>
|
<span class="input-group-text"><i class="fa fa-credit-card"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<input type="text" class="form-control" name="username" placeholder="Username" required>
|
<select class="form-control selectpicker show-tick" name="config_default_payment_account">
|
||||||
|
<option value="">- Account -</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$sql = mysqli_query($mysqli,"SELECT * FROM accounts");
|
||||||
|
while($row = mysqli_fetch_array($sql)){
|
||||||
|
$account_id = $row['account_id'];
|
||||||
|
$account_name = $row['account_name'];
|
||||||
|
|
||||||
|
?>
|
||||||
|
<option value="<?php echo $account_id; ?>"><?php echo $account_name; ?></option>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Expense Account</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<div class="input-group-prepend">
|
||||||
|
<span class="input-group-text"><i class="fa fa-shopping-cart"></i></span>
|
||||||
|
</div>
|
||||||
|
<select class="form-control selectpicker show-tick" name="config_default_expense_account">
|
||||||
|
<option value="">- Account -</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$sql = mysqli_query($mysqli,"SELECT * FROM accounts");
|
||||||
|
while($row = mysqli_fetch_array($sql)){
|
||||||
|
$account_id = $row['account_id'];
|
||||||
|
$account_name = $row['account_name'];
|
||||||
|
|
||||||
|
?>
|
||||||
|
<option value="<?php echo $account_id; ?>"><?php echo $account_name; ?></option>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group mb-5">
|
<div class="form-group mb-5">
|
||||||
<label>Expense Account</label>
|
<label>Default Calendar</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-user"></i></span>
|
<span class="input-group-text"><i class="fa fa-calendar"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<input type="text" class="form-control" name="username" placeholder="Username" required>
|
<select class="form-control selectpicker show-tick" name="config_default_calendar">
|
||||||
|
<option value="">- Calendar -</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$sql = mysqli_query($mysqli,"SELECT * FROM calendars");
|
||||||
|
while($row = mysqli_fetch_array($sql)){
|
||||||
|
$calendar_id = $row['calendar_id'];
|
||||||
|
$calendar_name = $row['calendar_name'];
|
||||||
|
|
||||||
|
?>
|
||||||
|
<option value="<?php echo $cakendar_id; ?>"><?php echo $calendar_name; ?></option>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,14 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link <?php if(basename($_SERVER["REQUEST_URI"]) == "settings-default.php") { echo "active"; } ?>"
|
||||||
|
href="settings-default.php">
|
||||||
|
<i class="fa fa-fw fa-2x fa-cog"></i><br>
|
||||||
|
Defaults
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link <?php if(basename($_SERVER["REQUEST_URI"]) == "settings-invoice.php") { echo "active"; } ?>"
|
<a class="nav-link <?php if(basename($_SERVER["REQUEST_URI"]) == "settings-invoice.php") { echo "active"; } ?>"
|
||||||
href="settings-invoice.php">
|
href="settings-invoice.php">
|
||||||
|
|||||||
20
top_nav.php
20
top_nav.php
@@ -1,7 +1,5 @@
|
|||||||
<nav class="navbar navbar-expand navbar-dark bg-primary static-top">
|
<nav class="navbar navbar-expand navbar-dark bg-primary static-top">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<button class="btn btn-link btn-sm text-white order-1 order-sm-0" id="sidebarToggle" href="#">
|
<button class="btn btn-link btn-sm text-white order-1 order-sm-0" id="sidebarToggle" href="#">
|
||||||
<i class="fas fa-bars"></i>
|
<i class="fas fa-bars"></i>
|
||||||
</button>
|
</button>
|
||||||
@@ -23,7 +21,7 @@
|
|||||||
<li class="nav-item dropdown no-arrow mx-2">
|
<li class="nav-item dropdown no-arrow mx-2">
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="alertsDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<a class="nav-link dropdown-toggle" href="#" id="alertsDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<?php if($num_alerts > 0){ ?> <span class="badge badge-danger"><?php echo $num_alerts; ?></span> <?php } ?>
|
<?php if($num_alerts > 0){ ?> <span class="badge badge-danger"><?php echo $num_alerts; ?></span> <?php } ?>
|
||||||
<i class="fas fa-bell mt-2"></i>
|
<i class="fas fa-fw fa-bell mt-1"></i>
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="alertsDropdown">
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="alertsDropdown">
|
||||||
@@ -35,11 +33,23 @@
|
|||||||
</li>
|
</li>
|
||||||
<li class="nav-item dropdown no-arrow">
|
<li class="nav-item dropdown no-arrow">
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<img height="32" width="32" src="<?php echo "$session_avatar"; ?>" class="img-fluid rounded-circle"> <strong><?php echo "$session_name"; ?></strong>
|
<?php if(!empty($session_avatar)){ ?>
|
||||||
|
<img height="28" width="28" src="<?php echo "$session_avatar"; ?>" class="img-fluid rounded-circle">
|
||||||
|
<?php }else{ ?>
|
||||||
|
<i class="fa fa-fw fa-user mt-1"></i>
|
||||||
|
<?php } ?>
|
||||||
|
<strong><?php echo "$session_name"; ?></strong>
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="userDropdown">
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="userDropdown">
|
||||||
<center>
|
<center>
|
||||||
<img height="128" width="128" src="<?php echo "$session_avatar"; ?>" class="img-fluid rounded-circle">
|
<?php if(!empty($session_avatar)){ ?>
|
||||||
|
<img class="img-fluid rounded-circle" src="<?php echo $session_avatar; ?>" height="128" width="128">
|
||||||
|
<?php }else{ ?>
|
||||||
|
<span class="fa-stack fa-4x">
|
||||||
|
<i class="fa fa-circle fa-stack-2x text-secondary"></i>
|
||||||
|
<span class="fa fa-stack-1x text-white"><?php echo initials($session_name); ?></span>
|
||||||
|
</span>
|
||||||
|
<?php } ?>
|
||||||
</center>
|
</center>
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<a class="dropdown-item" href="settings-user.php"><i class="fa fa-fw fa-cog"></i> Settings</a>
|
<a class="dropdown-item" href="settings-user.php"><i class="fa fa-fw fa-cog"></i> Settings</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user