* Code for task#848.
This commit is contained in:
@@ -115,7 +115,7 @@ class html
|
||||
|
||||
/* The begin. */
|
||||
$id = $name;
|
||||
if($pos = strpos($name, '[')) $id = substr($name, 0, $pos);
|
||||
if(strpos($name, '[') !== false) $id = trim(str_replace(']', '', str_replace('[', '', $name)));
|
||||
$string = "<select name='$name' id='$id' $attrib>\n";
|
||||
|
||||
/* The options. */
|
||||
|
||||
@@ -148,6 +148,7 @@ function loadProjectBuilds(projectID)
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$("#story").chosen({no_results_text:noResultsMatch});
|
||||
$("#mailto").autocomplete(userList, { multiple: true, mustMatch: true});
|
||||
setAssignedTo();
|
||||
})
|
||||
|
||||
@@ -187,7 +187,7 @@ function getList(module)
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$("#story").chosen({no_results_text: noResultsMatch});
|
||||
$("#mailto").autocomplete(userList, { multiple: true, mustMatch: true});
|
||||
$("#searchStories").colorbox({width:680, height:400, iframe:true, transition:'none'});
|
||||
$("#searchTasks").colorbox({width:680, height:400, iframe:true, transition:'none'});
|
||||
});
|
||||
|
||||
@@ -11,9 +11,11 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/chosen.html.php';?>
|
||||
<?php include '../../common/view/autocomplete.html.php';?>
|
||||
<?php include '../../common/view/alert.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<script>var noResultsMatch = '<?php echo $lang->noResultsMatch;?>'</script>
|
||||
<script>var holders = '<?php echo json_encode($lang->bug->placeholder);?>'</script>
|
||||
<script language='Javascript'>
|
||||
userList = "<?php echo join(',', array_keys($users));?>".split(',');
|
||||
|
||||
@@ -11,9 +11,11 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/chosen.html.php';?>
|
||||
<?php include '../../common/view/autocomplete.html.php';?>
|
||||
<?php include '../../common/view/alert.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<script>var noResultsMatch = <?php echo $lang->noResultsMatch;?></script>
|
||||
<script language='Javascript'>
|
||||
changeProductConfirmed = false;
|
||||
changeProjectConfirmed = false;
|
||||
@@ -129,8 +131,7 @@ userList = "<?php echo join(',', array_keys($users));?>".split(','
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->bug->story;?></td>
|
||||
<td><div id='storyIdBox' class='searchleft'><?php echo html::select('story', $stories, $bug->story, "class=select-3");?></div>
|
||||
<!--<div id='storyListIdBox'><?php echo html::a('', $lang->go, "_blank", "class='search' id='searchStories' onclick=getList('story')");?></div>-->
|
||||
<td><div id='storyIdBox'><?php echo html::select('story', $stories, $bug->story, "class=select-3");?></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -297,6 +297,8 @@ $lang->zentaoDESC = "ZenTaoPMS is an open sourced project management system.
|
||||
|
||||
$lang->suhosinInfo = "Warming:data is too large! Please enlarge the setting of <font color=red>sohusin.post.max_vars</font> and <font color=red>sohusin.request.max_vars</font> in php.ini. Otherwise partial data can't be saved.";
|
||||
|
||||
$lang->noResultsMatch = "No results match";
|
||||
|
||||
/* Date times. */
|
||||
define('DT_DATETIME1', 'Y-m-d H:i:s');
|
||||
define('DT_DATETIME2', 'y-m-d H:i');
|
||||
|
||||
@@ -297,6 +297,8 @@ $lang->zentaoDESC = "禅道项目管理软件(ZenTaoPMS)是一款国产的
|
||||
|
||||
$lang->suhosinInfo = "警告:数据太多,请在php.ini中修改<font color=red>sohusin.post.max_vars</font>和<font color=red>sohusin.request.max_vars</font>(设置更大的数)。 保存并重新启动apache,否则会造成部分数据无法保存。";
|
||||
|
||||
$lang->noResultsMatch = "没有匹配结果";
|
||||
|
||||
/* 时间格式设置。*/
|
||||
define('DT_DATETIME1', 'Y-m-d H:i:s');
|
||||
define('DT_DATETIME2', 'y-m-d H:i');
|
||||
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
$(function() {
|
||||
for(i=0; i<batchCreateNum; i++) $("#story" + i).chosen({no_results_text: noResultsMatch});
|
||||
})
|
||||
@@ -40,6 +40,6 @@ function setPreview()
|
||||
$(document).ready(function()
|
||||
{
|
||||
setPreview();
|
||||
$("#story").chosen();
|
||||
$("#story").chosen({no_results_text: noResultsMatch});
|
||||
$("#mailto").autocomplete(userList, { multiple: true, mustMatch: true});
|
||||
});
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
$(function() {
|
||||
$("#story").chosen({no_results_text: noResultsMatch});
|
||||
$("#mailto").autocomplete(userList, { multiple: true, mustMatch: true});
|
||||
$("#searchStories").colorbox({width:680, height:400, iframe:true, transition:'none'});
|
||||
|
||||
})
|
||||
|
||||
@@ -11,6 +11,11 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/chosen.html.php';?>
|
||||
<script>
|
||||
var batchCreateNum = '<?php echo $config->task->batchCreate;?>';
|
||||
var noResultsMatch = '<?php echo $lang->noResultsMatch;?>';
|
||||
</script>
|
||||
<form method='post'>
|
||||
<table class='table-1 fixed'>
|
||||
<caption><?php echo $lang->task->project . $lang->colon . $lang->task->batchCreate;?></caption>
|
||||
@@ -31,7 +36,7 @@
|
||||
<?php $pri = 3;?>
|
||||
<tr class='a-center'>
|
||||
<td><?php echo $i+1;?></td>
|
||||
<td><?php echo html::select("story[$i]", $stories, $story, 'class=select-1');?></td>
|
||||
<td class='a-left' style='overflow:visible'><?php echo html::select("story[$i]", $stories, $story, "class='select-1'");?></td>
|
||||
<td><?php echo html::input("name[$i]", '', 'class=text-1'); echo "<span class='star'>*</span>";?></td>
|
||||
<td><?php echo html::textarea("desc[$i]", '', "class=text-1 rows='1'");?></td>
|
||||
<td><?php echo html::select("type[$i]", $lang->task->typeList, $type, 'class=select-1'); echo "<span class='star'>*</span>";?></td>
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
<?php include '../../common/view/chosen.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<script> var holders = '<?php echo json_encode($lang->task->placeholder);?>'</script>
|
||||
<script> var noResultsMatch = '<?php echo $lang->noResultsMatch;?>'</script>
|
||||
<script language='javascript'> var userList = "<?php echo join(',', array_keys($users));?>".split(',');</script>
|
||||
<script language='Javascript'>
|
||||
$(function()
|
||||
|
||||
@@ -12,8 +12,10 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<?php include '../../common/view/chosen.html.php';?>
|
||||
<?php include '../../common/view/autocomplete.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<script> var noResultsMatch = '<?php echo $lang->noResultsMatch;?>'</script>
|
||||
<script language='Javascript'>var userList = "<?php echo join(',', array_keys($users));?>".split(',');</script>
|
||||
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
|
||||
<div id='titlebar'>
|
||||
@@ -54,9 +56,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->story;?></th>
|
||||
<td><div class='searchleft'><?php echo html::select('story', $stories, $task->story, 'class=select-1');?></div>
|
||||
<?php echo html::a($this->createLink('search', 'select', "productID=0&projectID=$project->id&module=story&storyID=$task->story"), $lang->go, "_blank", "class='search' id='searchStories'");?>
|
||||
</td>
|
||||
<td><?php echo html::select('story', $stories, $task->story, 'class=select-1');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->assignedTo;?></th>
|
||||
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
$(document).ready(function()
|
||||
{
|
||||
for(i = 0; i < testcaseBatchCreateNum; i++) $("#story" + i).chosen({no_results_text: noResultsMatch});
|
||||
});
|
||||
@@ -14,5 +14,6 @@ function setPreview()
|
||||
}
|
||||
$(function()
|
||||
{
|
||||
$("#story").chosen({no_results_text: noResultsMatch});
|
||||
$("#preview").colorbox({width:1000, height:600, iframe:true, transition:'elastic', speed:350, scrolling:true});
|
||||
})
|
||||
|
||||
@@ -15,5 +15,6 @@ function getList()
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#story").chosen({no_results_text: noResultsMatch});
|
||||
$("#searchStories").colorbox({width:680, height:400, iframe:true, transition:'none'});
|
||||
});
|
||||
|
||||
@@ -11,6 +11,11 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/chosen.html.php';?>
|
||||
<script>
|
||||
var testcaseBatchCreateNum = '<?php echo $config->testcase->batchCreate;?>';
|
||||
var noResultsMatch = '<?php echo $lang->noResultsMatch;?>';
|
||||
</script>
|
||||
<form method='post' enctype='multipart/form-data'>
|
||||
<table align='center' class='table-1 fixed'>
|
||||
<caption><?php echo $lang->testcase->batchCreate;?></caption>
|
||||
@@ -30,7 +35,7 @@
|
||||
<td><?php echo $i+1;?></td>
|
||||
<td><?php echo html::select("module[$i]", $moduleOptionMenu, $currentModuleID, "class=select-1");?></td>
|
||||
<td><?php echo html::select("type[$i]", $lang->testcase->typeList, $type, "class=select-1"); echo "<span class='star'>*</span>";?></td>
|
||||
<td><?php echo html::select("story[$i]", $stories, $story, 'class=select-1');?></td>
|
||||
<td class='a-left'style='overflow:visible'><?php echo html::select("story[$i]", $stories, $story, 'class=select-1');?></td>
|
||||
<td><?php echo html::input("title[$i]", '', "class='text-1'"); echo "<span class='star'>*</span>";?></td>
|
||||
</tr>
|
||||
<?php endfor;?>
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
*/
|
||||
?>
|
||||
<?php include './header.html.php';?>
|
||||
<?php include '../../common/view/chosen.html.php';?>
|
||||
<script>var noResultsMatch = '<?php echo $lang->noResultsMatch;?>'</script>
|
||||
<script>var holders = '<?php echo json_encode($lang->testcase->placeholder);?>'</script>
|
||||
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
*/
|
||||
?>
|
||||
<?php include './header.html.php';?>
|
||||
<?php include '../../common/view/chosen.html.php';?>
|
||||
<script>var noResultsMatch = '<?php echo $lang->noResultsMatch;?>'</script>
|
||||
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
|
||||
<div id='titlebar'>
|
||||
<div id='main'>
|
||||
@@ -84,8 +86,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->testcase->story;?></td>
|
||||
<td class='a-left'><div id='storyIdBox' class='searchleft'><?php echo html::select('story', $stories, $case->story, 'class=select-1');?></div>
|
||||
<!--<div id='storyListIdBox'><?php echo html::a('', $lang->go, "_blank", "class='search' id='searchStories' onclick=getList()");?></div>-->
|
||||
<td class='a-left'><div id='storyIdBox'><?php echo html::select('story', $stories, $case->story, 'class=select-1');?></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user