first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<div class="panel-heading">
|
||||
<b>Country</b>
|
||||
</div>
|
||||
<form>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td >
|
||||
<div id="reason_msg"></div>
|
||||
<?= $country_table ?>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
<div class="panel-heading">
|
||||
<h6><b>Skills Categories</b> </h6>
|
||||
</div>
|
||||
<form name="resonform">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td >
|
||||
<table class="table">
|
||||
<tr><td><input type="text" class="form-control" id="skill_name" placeholder="Enter new reason here.." name="skill_name" maxlength="60" ></td><td style="width: 80px;"><button id='acc<?=$page_id?>' class="btn btn-info" onclick="addSkillCategory('<?=$page_id?>');">Add</button></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<div id="reason_msg"></div>
|
||||
<?= $skill_category_table ?>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
|
||||
function addSkillCategory(page_id) {
|
||||
|
||||
var skill_name = document.getElementById('skill_name').value;
|
||||
var n = skill_name.length;
|
||||
|
||||
if (n== null || n == 0 ) {
|
||||
alert('Please enter skill name ');
|
||||
return false;
|
||||
}
|
||||
|
||||
$('#reason_msg').html('Processing...');
|
||||
//$('#acc' + page_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "confg/addSkill?page_id=" + page_id + "&skill_name=" + skill_name
|
||||
}).done(function (data) {
|
||||
$('#reason_msg').html(data);
|
||||
// $('#acc' + page_id).prop('disabled', false);
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
<!--
|
||||
vi:ts=2
|
||||
-->
|
||||
Reference in New Issue
Block a user