first commit
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
<!-- Media library -->
|
||||
<div class="panel panel-white">
|
||||
<form class="search-block" action="/Descision/descisionlogic/" method="GET" autocomplete="off">
|
||||
<div class="search-block-item">
|
||||
<div class="form-group">
|
||||
<label for="logic">Logic</label>
|
||||
<input type="search" class="form-control" id="logic" name="logic" value='<?= isset($logic) ? $logic : '' ?>'>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title">Description</label>
|
||||
<input type="search" class="form-control" id="description" name="description" value='<?= isset($description) ? $description : '' ?>'>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="search_text">Status</label>
|
||||
<?= $card_status ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="search_text">Survey</label>
|
||||
<?= $card_survey ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="from_date">Weight</label>
|
||||
<div class="search-by-weight">
|
||||
<input type="search" class="form-control" id="from_weight" name="from_weight" value='<?= isset($from_weight) ? $from_weight : '' ?>'>
|
||||
|
||||
<input type="search" class="form-control" id="to_weight" name="to_weight" value='<?= isset($to_weight) ? $to_weight : '' ?>'>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary btn-search" type="submit">Search</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?= $link ?>
|
||||
<div class="panel panel-white">
|
||||
<?= $pos_table ?>
|
||||
</div>
|
||||
<!-- /media library -->
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.search-block-item {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.search-block-item .form-group {
|
||||
flex-basis: 100px;
|
||||
}
|
||||
|
||||
.search-by-weight {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,78 @@
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-4">
|
||||
<!-- Media library -->
|
||||
<div class="panel panel-white">
|
||||
<form class="search-block" action="/Descision/descisionreport/" method="GET" autocomplete="off">
|
||||
<div class="search-block-item">
|
||||
<div class="form-group">
|
||||
<label for="logic">Decision Group</label>
|
||||
<input type="search" class="form-control" id="decision_group" name="member[decision_group]" value='<?= isset($decision_group) ? $decision_group : '' ?>'>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title">Description</label>
|
||||
<input type="search" class="form-control" id="description" name="member[description]" value='<?= isset($description) ? $description : '' ?>'>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="from_date">Count</label>
|
||||
<div class="search-by-weight">
|
||||
<input type="search" class="form-control" id="from_count" name="member[from_count]" value='<?= isset($from_count) ? $from_count : '' ?>'>
|
||||
|
||||
<input type="search" class="form-control" id="to_weigto_countht" name="member[to_count]" value='<?= isset($to_count) ? $to_count : '' ?>'>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary btn-search" type="submit">Search</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?= $link ?>
|
||||
<div class="panel panel-white">
|
||||
<h3>Active Users Personalty</h3>
|
||||
|
||||
<?= $member_report ?>
|
||||
</div>
|
||||
<!-- /media library -->
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
|
||||
<div class="panel panel-white">
|
||||
<h3>Account Refresh</h3>
|
||||
|
||||
<?= $refresh_report ?>
|
||||
</div>
|
||||
<!-- /media library -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.search-block-item {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.search-block-item .form-group {
|
||||
flex-basis: 75px;
|
||||
}
|
||||
|
||||
.search-block-item .form-group input {
|
||||
padding: 2px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.search-by-weight {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,224 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-2">
|
||||
<a href="/descision/descisiontree">Refresh</a>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-10">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
|
||||
|
||||
<div class="col-lg-12">
|
||||
|
||||
<section id="visualisation" style="border: 0px black solid; max-width: 100%;">
|
||||
</section>
|
||||
|
||||
<script>
|
||||
function getData() {
|
||||
var data = {
|
||||
"id": 1,
|
||||
"name": "A10AA01",
|
||||
"type": "Root",
|
||||
"description": "New User no Data",
|
||||
"children": [
|
||||
{
|
||||
"id": 2,
|
||||
"name": "A10BB01",
|
||||
"type": "Type",
|
||||
"description": "Not new User no Data",
|
||||
"children": [
|
||||
{
|
||||
"id": 3,
|
||||
"name": "Felidae",
|
||||
"type": "Family",
|
||||
"description": "Also known as cats",
|
||||
"children": [
|
||||
{
|
||||
"id": 4,
|
||||
"name": "Siamese Cat",
|
||||
"type": "Organism",
|
||||
"description": "A breed of Asian cat. it has white fur",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"name": "Javanese Cat",
|
||||
"type": "Organism",
|
||||
"description": "Domestic breed of cats, of oriental origin",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"name": "Ursidae",
|
||||
"type": "Family",
|
||||
"description": "Also known as bears",
|
||||
"children": [
|
||||
{
|
||||
"id": 7,
|
||||
"name": "Polar Bear",
|
||||
"type": "Organism",
|
||||
"description": "White bear native to the Arctic Circle",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"name": "Panda Bear",
|
||||
"type": "Organism",
|
||||
"description": "Spotted bear native to South Central China",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"name": "Canidae",
|
||||
"type": "Family",
|
||||
"description": "Also known as dogs",
|
||||
"children": [
|
||||
{
|
||||
"id": 10,
|
||||
"name": "Labradore Retriever",
|
||||
"type": "Organism",
|
||||
"description": "One of the most popular dog breeds in Canada, UK and USA",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"name": "Golden Retriever",
|
||||
"type": "Organism",
|
||||
"description": "Generally friendly, loyal and intelligent breed of dogs",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"name": "A100001",
|
||||
"type": "Type",
|
||||
"description": "Not New User with Data",
|
||||
"children": [
|
||||
{
|
||||
"id": 13,
|
||||
"name": "Bovidae",
|
||||
"type": "Family",
|
||||
"description": "Also known as cattle or cows",
|
||||
"children": [
|
||||
{
|
||||
"id": 14,
|
||||
"name": "Angus Cattle",
|
||||
"type": "Organism",
|
||||
"description": "Scottish breed of black cattle",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"name": "Holstein Friesian Cattle",
|
||||
"type": "Organism",
|
||||
"description": "Known as the highest-production dairy animals",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"name": "Equidae",
|
||||
"type": "Family",
|
||||
"description": "Also known as horses",
|
||||
"children": [
|
||||
{
|
||||
"id": 17,
|
||||
"name": "Barb Horse",
|
||||
"type": "Organism",
|
||||
"description": "A breed of Northern African horses with high stamina and hardiness. Their generally hot temperament makes it harder to tame.",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": 18,
|
||||
"name": "Holsteiner Horse",
|
||||
"type": "Organism",
|
||||
"description": "One of the oldest of warmblood breeds, tracing back to the 13th century. Originates from Germany",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 19,
|
||||
"name": "Leporidae",
|
||||
"type": "Family",
|
||||
"description": "Also known as rabbits",
|
||||
"children": [
|
||||
{
|
||||
"id": 20,
|
||||
"name": "Lionhead rabbit",
|
||||
"type": "Organism",
|
||||
"description": "Unusual rabbit with a wool mane circling it's head, similar to a lion, hence it's name.",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": 21,
|
||||
"name": "Silver Fox Rabbit",
|
||||
"type": "Organism",
|
||||
"description": "Bred for their meat and unique fur.",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
var data = getData();
|
||||
|
||||
var treePlugin = new d3.mitchTree.boxedTree()
|
||||
.setData(data)
|
||||
.setElement(document.getElementById("visualisation"))
|
||||
.setIdAccessor(function(data) {
|
||||
return data.id;
|
||||
})
|
||||
.setChildrenAccessor(function(data) {
|
||||
return data.children;
|
||||
})
|
||||
.setBodyDisplayTextAccessor(function(data) {
|
||||
return data.description;
|
||||
})
|
||||
.setTitleDisplayTextAccessor(function(data) {
|
||||
return data.name;
|
||||
})
|
||||
.initialize();
|
||||
|
||||
/* Alternative Options Object Syntax, opposed to the Fluent Interface Above
|
||||
var options = {
|
||||
data: data,
|
||||
element: document.getElementById("visualisation"),
|
||||
getId: function (data) {
|
||||
return data.id;
|
||||
},
|
||||
getChildren: function (data) {
|
||||
return data.children;
|
||||
},
|
||||
getBodyDisplayText: function (data) {
|
||||
return data.description;
|
||||
},
|
||||
getTitleDisplayText: function (data) {
|
||||
return data.name;
|
||||
}
|
||||
};
|
||||
var treePlugin = new d3.MitchTree.BoxedTree(options).initialize();
|
||||
*/
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Recent Members -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Next Personalty</h6>
|
||||
<div class="heading-elements">
|
||||
xxxxxx
|
||||
</div>
|
||||
</div>
|
||||
<div id="logic_list" class="table-responsive">
|
||||
<?= $logic_list ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Recent Members -->
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Recent Members -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Personalty Conditions</h6>
|
||||
<div class="heading-elements">
|
||||
xxxxxx
|
||||
</div>
|
||||
</div>
|
||||
<div id="logic_list" class="table-responsive">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Recent Members -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-8">
|
||||
<!-- Media library -->
|
||||
<div class="panel panel-white">
|
||||
<form class="search-block" action="/Descision/personaltycards/" method="GET" autocomplete="off">
|
||||
<div class="search-block-item">
|
||||
<div class="form-group">
|
||||
<label for="dkey">Dkey</label>
|
||||
<input type="search" class="form-control" id="dkey" name="dkey" value='<?= isset($dkey) ? $dkey : '' ?>'>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="search_text">Status</label>
|
||||
<?= $card_status ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title">Description</label>
|
||||
<input type="search" class="form-control" id="description" name="description" value='<?= isset($description) ? $description : '' ?>'>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="search_text">Personality</label>
|
||||
<input type="search" class="form-control" id="personality" name="personality" value='<?= isset($personality) ? $personality : '' ?>'>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary btn-search" type="submit">Search</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?= $link ?>
|
||||
<div class="panel panel-white">
|
||||
|
||||
<table class='table table-striped table-hover table-bordered table-condensed' style='font-size:10px;'>
|
||||
<thead class='bg-teal'>
|
||||
<tr>
|
||||
<th style="width:50px">ID</th>
|
||||
<th style="width:50px">Lorder</th>
|
||||
<th style="width:50px">Dkey</th>
|
||||
<th style="width:50px">Status</th>
|
||||
<th>Description</th>
|
||||
<th>Personality</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<? foreach ($pers_data as $row) { ?>
|
||||
<tr style="background-color:lightgreen;">
|
||||
<td><?=$row['id']?></td>
|
||||
<td><?=$row['lorder']?></td>
|
||||
<td><?=$row['dkey']?></td>
|
||||
<td><?=$row['status']?></td>
|
||||
<td><?=$row['description']?></td>
|
||||
<td><?=$row["personality"]?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<table>
|
||||
<td><?= $row["card_list"] ?></td>
|
||||
<td><?= $row["card_group"] ?></td>
|
||||
<td><?= $row["card_country"] ?></td>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- /media library -->
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function updatePersonaltyName(id, dkey) {
|
||||
// alert(card_id);
|
||||
var result = confirm("Continue saving prsonality text ? ");
|
||||
if (result) {
|
||||
//alert(110);
|
||||
|
||||
var pers_text = "txt" + dkey;
|
||||
var pers_text_value = document.getElementById(pers_text).value;
|
||||
alert(pers_text_value);
|
||||
|
||||
|
||||
//Logic to delete the item
|
||||
$.ajax({
|
||||
url: "/descision/updatePersonaltyName?id=" + id + "&pers_text=" + pers_text_value + "&dkey=" + dkey
|
||||
}).done(function (data) {
|
||||
$('#pres' + dkey).html(data);
|
||||
//alert(data);
|
||||
});
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.search-block-item {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: flex-end;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,151 @@
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-8">
|
||||
<!-- Media library -->
|
||||
<div class="panel panel-white">
|
||||
<form class="search-block" action="/Descision/personaltyname/" method="GET" autocomplete="off">
|
||||
<div class="search-block-item">
|
||||
<div class="form-group">
|
||||
<label for="dkey">Dkey</label>
|
||||
<input type="search" class="form-control" id="dkey" name="dkey" value='<?= isset($dkey) ? $dkey : '' ?>'>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="search_text">Status</label>
|
||||
<?= $card_status ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title">Description</label>
|
||||
<input type="search" class="form-control" id="description" name="description" value='<?= isset($description) ? $description : '' ?>'>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="search_text">Personality</label>
|
||||
<input type="search" class="form-control" id="personality" name="personality" value='<?= isset($personality) ? $personality : '' ?>'>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="from_offer">Offers</label>
|
||||
<div class="search-by-weight">
|
||||
<input type="search" class="form-control" id="from_offer" name="from_offer" value='<?= isset($from_offer) ? $from_offer : '' ?>'>
|
||||
|
||||
<input type="search" class="form-control" id="to_offer" name="to_offer" value='<?= isset($to_offer) ? $to_offer : '' ?>'>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary btn-search" type="submit">Search</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?= $link ?>
|
||||
<div class="panel panel-white">
|
||||
<?= $pers_table ?>
|
||||
</div>
|
||||
<!-- /media library -->
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
let input_changed_map = new Map();
|
||||
|
||||
$(document).ready(function() {
|
||||
$('input[id^=ofc]').on('change', function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
const id = $(this).closest('tr').find('td:eq(2)').html();
|
||||
!input_changed_map.has(id) ?
|
||||
input_changed_map.set(id, ['offers']) :
|
||||
input_changed_map.get(id).indexOf('offers') === -1 ?
|
||||
input_changed_map.set(id, ['offers', ...input_changed_map.get(id)]) :
|
||||
null;
|
||||
})
|
||||
|
||||
$('input[id^=txt]').on('change', function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
const id = $(this).closest('tr').find('td:eq(2)').html();
|
||||
!input_changed_map.has(id) ?
|
||||
input_changed_map.set(id, ['personality']) :
|
||||
input_changed_map.get(id).indexOf('personality') === -1 ?
|
||||
input_changed_map.set(id, ['personality', ...input_changed_map.get(id)]) :
|
||||
null;
|
||||
})
|
||||
})
|
||||
|
||||
function updatePersonaltyName(id, dkey) {
|
||||
// alert(card_id);
|
||||
let message = '';
|
||||
const input_changed = input_changed_map.get(dkey);
|
||||
|
||||
if (input_changed === undefined) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const input_changed_length = input_changed.length;
|
||||
|
||||
if (input_changed_length === 2) {
|
||||
|
||||
message = "Continue saving prsonality text and offers ? ";
|
||||
|
||||
} else if (input_changed.indexOf('personality') !== -1) {
|
||||
|
||||
message = "Continue saving prsonality text ?";
|
||||
|
||||
} else if (input_changed.indexOf('offers') !== -1) {
|
||||
|
||||
message = "Continue saving offers ?";
|
||||
|
||||
} else {
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
var result = confirm(message);
|
||||
if (result) {
|
||||
//alert(110);
|
||||
|
||||
var pers_text = "txt" + dkey;
|
||||
var pers_text_value = document.getElementById(pers_text).value;
|
||||
|
||||
var pers_offers = "ofc" + dkey;
|
||||
var pers_offers_value = document.getElementById(pers_offers).value;
|
||||
|
||||
alert(pers_text_value + ' ' + pers_offers_value);
|
||||
|
||||
//Logic to delete the item
|
||||
$.ajax({
|
||||
url: "/descision/updatePersonaltyName?id=" + id + "&pers_text=" + pers_text_value + "&dkey=" + dkey + "&pers_offers=" + pers_offers_value
|
||||
}).done(function(data) {
|
||||
$('#pres' + dkey).html(data);
|
||||
input_changed_map.get(dkey).length = 0;
|
||||
//alert(data);
|
||||
});
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
//initMap();
|
||||
// -->
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.search-block-item {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.search-block-item .form-group {
|
||||
flex-basis: 100px;
|
||||
}
|
||||
|
||||
.search-by-weight {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user