first commit
This commit is contained in:
@@ -0,0 +1,206 @@
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Recent Members -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Possible Decision Logic</h6>
|
||||
<div class="heading-elements">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div id="logic_list" class="table-responsive">
|
||||
<?= $logic_list ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Recent Members -->
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-6" style="background-color:#B7F0E4; padding:5px;">
|
||||
<!-- Recent Members -->
|
||||
<div class="panel panel-flat" >
|
||||
<div class="panel-heading">
|
||||
<!-- h6 class="panel-title">Decision Cards</h6 -->
|
||||
<div class="heading-elements">
|
||||
<b><h5><?= $decision_group_desc ?> : <?= $decision_group_title ?> </h5></b>
|
||||
</div>
|
||||
</div>
|
||||
<div id="sel_logic_list" class="table-responsive">
|
||||
<?= $group_logic_list ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Recent Members -->
|
||||
|
||||
<hr size="2">
|
||||
|
||||
<!-- Recent Members -->
|
||||
<div class="panel panel-flat" style="background-color:#F0C1B7;">
|
||||
|
||||
<div id="sel_logic_list" class="table-responsive">
|
||||
|
||||
<table class="table table-sm">
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th scope="col" colspan="3">Add Survey Condition</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">Survey</th>
|
||||
<td colspan="2"><?= $survey_list ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Answer</th>
|
||||
<td> <input type="text" maxlength="15" id="survey_ans" class="form-control" id="basic-url" aria-describedby="basic-addon3"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" colspan="2"><div id="survey_result"></div></th>
|
||||
<td><button type="button" class="btn btn-warning btn-sm" onclick="addSurveyCondition('<?= $decision_group_title ?>');">Add</button></td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Recent Members -->
|
||||
|
||||
<hr size="2">
|
||||
|
||||
<!--tr Recent Members -->
|
||||
<div class="panel panel-flat" style="background-color:#F0C100;">
|
||||
|
||||
<div id="sel_logic_list" class="table-responsive">
|
||||
|
||||
<table class="table table-sm">
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th scope="col" colspan="3">Add GPS Trigger Location Condition</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">Location</th>
|
||||
<td colspan="2"><?= $location_list ?></td>
|
||||
</tr>
|
||||
<!-- tr>
|
||||
<th scope="row">Frequency</th>
|
||||
<td> <input type="text" maxlength="10" id="dcount" class="form-control" id="basic-url" aria-describedby="basic-addon3"></td>
|
||||
<td></td>
|
||||
</!-- tr -->
|
||||
<tr>
|
||||
<th scope="row" colspan="2"><div id="survey_result"></div></th>
|
||||
<td><button type="button" class="btn btn-warning btn-sm" onclick="addGPSTriggerCondition('<?= $decision_group_title ?>');">Add</button><div id="trigger_result"></div></td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Recent Members -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
//gps_location_list
|
||||
function addGPSTriggerCondition(decision_group) {
|
||||
// alert(card_id);
|
||||
var result = confirm("Continue adding GPS Trigger Logic ? ");
|
||||
if (result) {
|
||||
//alert(110);
|
||||
|
||||
|
||||
var gps_location_list = "gps_location_list";
|
||||
|
||||
|
||||
var e = document.getElementById("gps_location_list");
|
||||
var address_id_value = e.options[e.selectedIndex].value;
|
||||
|
||||
|
||||
// alert("/descision/addGPSTriggerLogic?decision_group=" + decision_group + "&gps_address_id=" + address_id_value);
|
||||
|
||||
//Logic to delete the item
|
||||
$.ajax({
|
||||
url: "/descision/addGPSTriggerLogic?decision_group=" + decision_group + "&gps_address_id=" + address_id_value
|
||||
}).done(function (data) {
|
||||
$('#trigger_result').html(data);
|
||||
//alert(data);
|
||||
});
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function addSurveyCondition(decision_group) {
|
||||
// alert(card_id);
|
||||
var result = confirm("Continue adding Survey Logic ? ");
|
||||
if (result) {
|
||||
//alert(110);
|
||||
|
||||
var survey_ans = "survey_ans";
|
||||
// alert(decision_group);
|
||||
var survey_ans_value = document.getElementById(survey_ans).value;
|
||||
//alert(survey_ans_value);
|
||||
|
||||
var survey_list = "survey_list";
|
||||
// var survey_id_value = document.getElementsByName(survey_list).value;
|
||||
// alert(survey_id_value);
|
||||
|
||||
var e = document.getElementById("survey_list");
|
||||
var survey_id_value = e.options[e.selectedIndex].value;
|
||||
//alert("/descision/addSurveyLogic?decision_group=" + decision_group + "&survey_id_value=" + survey_id_value + "&survey_ans_value=" + survey_ans_value);
|
||||
|
||||
//Logic to delete the item
|
||||
$.ajax({
|
||||
url: "/descision/addSurveyLogic?decision_group=" + decision_group + "&survey_id_value=" + survey_id_value + "&survey_ans_value=" + survey_ans_value
|
||||
}).done(function (data) {
|
||||
$('#survey_result').html(data);
|
||||
//alert(data);
|
||||
});
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function updateLogic(setting_id, setting_key) {
|
||||
// alert(card_id);
|
||||
var result = confirm("Update Settings = " + setting_id + ":" + setting_key + "?");
|
||||
if (result) {
|
||||
//alert(110);
|
||||
|
||||
var temp = "T" + setting_id;
|
||||
//alert(temp);
|
||||
var setting_value = document.getElementById(temp).value;
|
||||
// alert(setting_value);
|
||||
//Logic to delete the item
|
||||
$.ajax({
|
||||
url: "/descision/updatelogic?setting_id=" + setting_id + "&setting_key=" + setting_key + "&setting_value=" + setting_value
|
||||
}).done(function (data) {
|
||||
//$('#set_form'+setting_key).html(data);
|
||||
alert(data);
|
||||
});
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
$(function () {
|
||||
$('select[name=card_category]').change(function () {
|
||||
configureCard(<?= $decision_id ?>, this.value == '' ? '0' : this.value);
|
||||
});
|
||||
});
|
||||
|
||||
//initMap();
|
||||
// -->
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user