Permalink
Browse files

wired in the ability to delete notes

this doesn’t use core functionality because the module and noun name
are not the same as they are in other modules;
Resolves: #7
  • Loading branch information...
caseysoftware committed Nov 21, 2017
1 parent 40cb44c commit bf59926ad738a912617eaebe196b28113be895eb
Showing with 16 additions and 2 deletions.
  1. +16 −2 notebook/view.php
@@ -1,4 +1,4 @@
<?php /* $Id: view.php 374 2012-06-26 07:35:45Z caseydk $ $URL: svn+ssh://caseydk@svn.code.sf.net/p/web2project-mod/code/notebook/trunk/view.php $ */
<?php
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
@@ -22,6 +22,13 @@
readonly : true
});
</script>
<script language="javascript" type="text/javascript">
function delIt() {
if (confirm("' . $AppUI->_('doDelete') . ' note?")){
document.frmDelete.submit();
}
}
</script>
';
$note_task = (int) w2PgetParam($_GET, 'task_id', 0);
@@ -52,7 +59,7 @@
$obj = new CNotebook();
$canDelete = $obj->canDelete($msg, $note_id);
$obj = null;
//$obj = null;
$q->loadObject($obj);
// load the record data
if (!$obj && $note_id > 0) {
@@ -120,6 +127,13 @@
$status = w2PgetSysVal('NoteStatus');
?>


<form name="frmDelete" action="?m=notebook" method="post" accept-charset="utf-8">
<input type="hidden" name="dosql" value="do_note_aed" />
<input type="hidden" name="del" value="1" />
<input type="hidden" name="note_id" value="<?php echo $note_id; ?>" />
</form>

<table width="100%" border="0" cellpadding="3" cellspacing="3" class="std">
<tr>
<td width="100%" valign="top" align="center">

0 comments on commit bf59926

Please sign in to comment.