fix
This commit is contained in:
@@ -92,12 +92,10 @@ class Member extends Member_Controller {
|
|||||||
// echo "Yes i got to the controller";
|
// echo "Yes i got to the controller";
|
||||||
}
|
}
|
||||||
|
|
||||||
public function myprofile(){
|
public function myprofile() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function configure() {
|
public function configure() {
|
||||||
// echo 'yes'; view_mypage
|
// echo 'yes'; view_mypage
|
||||||
|
|
||||||
@@ -133,14 +131,14 @@ class Member extends Member_Controller {
|
|||||||
|
|
||||||
// exit();
|
// exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$this->configure();
|
$this->configure();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function addNotecard() {
|
||||||
|
$data = array();
|
||||||
|
// $this->renderMemberPages('view_mycalendar', $data);
|
||||||
|
}
|
||||||
|
|
||||||
public function mycalendar() {
|
public function mycalendar() {
|
||||||
$data = array();
|
$data = array();
|
||||||
$this->renderMemberPages('view_mycalendar', $data);
|
$this->renderMemberPages('view_mycalendar', $data);
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<form class="form">
|
<form class="form">
|
||||||
|
<input type="hidden" id='member_id' name='member_id' value="<?=$_SESSION["member_id"]?>" />
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="feedback1" class="sr-only">Note Title</label>
|
<label for="feedback1" class="sr-only">Note Title</label>
|
||||||
@@ -14,12 +15,12 @@
|
|||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="feedback3" class="sr-only">Note Detail</label>
|
<label for="feedback3" class="sr-only">Note Detail</label>
|
||||||
<textarea id="feedback3" rows="6" class="form-control" name="message" placeholder="Note Detail"><?=isset($details)?$details:''?></textarea>
|
<textarea id="feedback3" rows="6" class="form-control" name="detail" placeholder="Note Detail"><?=isset($details)?$details:''?></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-actions" style="text-align: right;">
|
<div class="form-actions" style="text-align: right;">
|
||||||
<button type="submit" class="btn btn-primary mr-1" id="pagebt" onclick="return addNewItem(this.form);">Add Note</button>
|
<div id="save_detail"></div> <button type="submit" class="btn btn-primary mr-1" id="pagebt" onclick="return addNewItem(this.form);">Add Note</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@@ -30,12 +31,12 @@
|
|||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
let member_id = '<?= $member_id ?>';
|
let member_id = '<?=$_SESSION["member_id"]?>';
|
||||||
// Attach a submit handler to the form
|
// Attach a submit handler to the form
|
||||||
|
|
||||||
|
|
||||||
function addNewItem(form) {
|
function addNewItem(form) {
|
||||||
// $('#profile_detail').html('Saving');
|
$('#save_detail').html('Saving');
|
||||||
$('#pagebt').prop('disabled', true);
|
$('#pagebt').prop('disabled', true);
|
||||||
|
|
||||||
//alert(form.member_id.value);
|
//alert(form.member_id.value);
|
||||||
@@ -46,12 +47,12 @@
|
|||||||
};
|
};
|
||||||
alert(1);
|
alert(1);
|
||||||
// Get some values from elements on the page:
|
// Get some values from elements on the page:
|
||||||
var url = "/member/updateMemberProfile";
|
var url = "/member/addNotecard";
|
||||||
// Send the data using post
|
// Send the data using post
|
||||||
var posting = $.post(url, post_data);
|
var posting = $.post(url, post_data);
|
||||||
// Put the results in a div
|
// Put the results in a div
|
||||||
posting.done(function (data) {
|
posting.done(function (data) {
|
||||||
// $('#profile_detail').html(data);
|
$('#save_detail').html(data);
|
||||||
$('#pagebt').prop('disabled', false);
|
$('#pagebt').prop('disabled', false);
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user