+ complete task #303:add kindeditor to bug, story, task, todo, testtask module.
This commit is contained in:
@@ -41,7 +41,6 @@ class testtaskModel extends model
|
||||
$task = fixer::input('post')
|
||||
->add('product', $productID)
|
||||
->stripTags('name')
|
||||
->specialChars('desc')
|
||||
->get();
|
||||
$this->dao->insert(TABLE_TESTTASK)->data($task)->autoCheck()->batchcheck($this->config->testtask->create->requiredFields, 'notempty')->exec();
|
||||
if(!dao::isError()) return $this->dao->lastInsertID();
|
||||
@@ -79,7 +78,6 @@ class testtaskModel extends model
|
||||
$oldTask = $this->getById($taskID);
|
||||
$task = fixer::input('post')
|
||||
->stripTags('name')
|
||||
->specialChars('desc')
|
||||
->get();
|
||||
$this->dao->update(TABLE_TESTTASK)->data($task)->autoCheck()->batchcheck($this->config->testtask->edit->requiredFields, 'notempty')->where('id')->eq($taskID)->exec();
|
||||
if(!dao::isError()) return common::createChanges($oldTask, $task);
|
||||
|
||||
@@ -24,6 +24,14 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<script language='javascript'>
|
||||
/* 富文本编辑器。*/
|
||||
KE.show({
|
||||
id:'desc',
|
||||
items:simpleTools
|
||||
});
|
||||
</script>
|
||||
<div class='yui-d0'>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
@@ -54,7 +62,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testtask->desc;?></th>
|
||||
<td><?php echo html::textarea('desc', '', "rows=8 class='area-1'");?>
|
||||
<td><?php echo html::textarea('desc', '', "rows=10 class='area-1'");?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='a-center'><?php echo html::submitButton() . html::resetButton();?> </td>
|
||||
|
||||
@@ -24,6 +24,14 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<script language='javascript'>
|
||||
/* 富文本编辑器。*/
|
||||
KE.show({
|
||||
id:'desc',
|
||||
items:simpleTools
|
||||
});
|
||||
</script>
|
||||
<div class='yui-d0'>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
@@ -54,7 +62,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testtask->desc;?></th>
|
||||
<td><?php echo html::textarea('desc', $task->desc, "rows=8 class='area-1'");?>
|
||||
<td><?php echo html::textarea('desc', $task->desc, "rows=10 class='area-1'");?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='a-center'><?php echo html::submitButton() . html::resetButton();?> </td>
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testtask->desc;?></th>
|
||||
<td><?php echo nl2br($task->desc);?>
|
||||
<td><?php echo $task->desc;?>
|
||||
</tr>
|
||||
</table>
|
||||
<div class='a-center f-16px strong'>
|
||||
|
||||
Reference in New Issue
Block a user