diff --git a/lib/front/front.class.php b/lib/front/front.class.php index 91641384f4..04ed5837b8 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -39,6 +39,26 @@ class html extends baseHTML return parent::a($href, $title, $misc, $newline); } + /** + * 生成input输入标签。 + * Create tags like "" + * + * @param string $name the name of the text input tag. + * @param string $value the default value. + * @param string $attrib other attribs. + * @static + * @access public + * @return string + */ + static public function input($name, $value = "", $attrib = "", $autocomplete = false) + { + $id = "id='$name'"; + if(strpos($attrib, 'id=') !== false) $id = ''; + $value = str_replace("'", ''', $value); + $autocomplete = $autocomplete ? 'autocomplete="on"' : 'autocomplete="off"'; + return "\n"; + } + /** * 生成多选按钮。 * Create tags like "" diff --git a/module/doc/view/browse.html.php b/module/doc/view/browse.html.php index a390fffaeb..faeb47261b 100644 --- a/module/doc/view/browse.html.php +++ b/module/doc/view/browse.html.php @@ -49,8 +49,8 @@ var browseType = ''; " . $this->lang->doc->create, '', "class='btn btn-primary'");?> diff --git a/module/project/view/bug.html.php b/module/project/view/bug.html.php index b829eb0506..543809d370 100644 --- a/module/project/view/bug.html.php +++ b/module/project/view/bug.html.php @@ -100,7 +100,7 @@ id"; common::printIcon('bug', 'confirmBug', $params, $bug, 'list', 'confirm', '', 'iframe', true); - common::printIcon('bug', 'resolve', $params, $bug, 'list', 'check', '', 'iframe', true); + common::printIcon('bug', 'resolve', $params, $bug, 'list', 'checked', '', 'iframe', true); common::printIcon('bug', 'close', $params, $bug, 'list', '', '', 'iframe', true); common::printIcon('bug', 'create', "product=$bug->product&branch=$bug->branch&extra=$params", $bug, 'list', 'copy'); common::printIcon('bug', 'edit', $params, $bug, 'list'); diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php index ce2a273682..6f2838017e 100644 --- a/module/story/view/view.html.php +++ b/module/story/view/view.html.php @@ -322,8 +322,8 @@ - - story->legendBugs;?> + + story->legendBugs;?>