+ complete task #303:add kindeditor to bug, story, task, todo, testtask module.

This commit is contained in:
fujia
2010-09-09 10:02:53 +00:00
parent 2394cefd95
commit 3b3045fed1
304 changed files with 6910 additions and 1809 deletions
-2
View File
@@ -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);
+9 -1
View File
@@ -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>
+9 -1
View File
@@ -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>
+1 -1
View File
@@ -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'>