* fix errors.
This commit is contained in:
@@ -482,7 +482,7 @@ EOT;
|
||||
* @access public
|
||||
* @return string the common button tag.
|
||||
*/
|
||||
public static function commonButton($label = '', $misc = '', $class = '', $icon)
|
||||
public static function commonButton($label = '', $misc = '', $class = '', $icon = '')
|
||||
{
|
||||
if($icon) $label = "<i class='icon-" . $icon . "'></i> " . $label;
|
||||
if($class) $class = 'btn ' . $class; else $class = 'btn';
|
||||
|
||||
@@ -234,13 +234,13 @@ class commonModel extends model
|
||||
echo "<div class='dropdown' id='langSelection'><a href='javascript:;' data-toggle='dropdown'>" . $app->config->langs[$app->cookie->lang] . " <span class='caret'></span></a><ul class='dropdown-menu pull-right'>";
|
||||
foreach ($app->config->langs as $key => $value)
|
||||
{
|
||||
echo "<li" . ($app->cookie->lang == $key ? " class='active'" : '') . "><a href='javascript:;' data-value='" . $key . "'>" . $value . "</a></li>";
|
||||
echo "<li" . ($app->cookie->lang == $key ? " class='active'" : '') . "><a href='javascript:selectLang(\"$key\");' data-value='" . $key . "'>" . $value . "</a></li>";
|
||||
}
|
||||
echo '</ul></div>';
|
||||
echo "<div class='dropdown' id='themeSelection'><a href='javascript:;' data-toggle='dropdown'>" . $app->lang->themes[$app->cookie->theme] . " <span class='caret'></span></a><ul class='dropdown-menu pull-right'>";
|
||||
foreach ($app->lang->themes as $key => $value)
|
||||
{
|
||||
echo "<li" . ($app->cookie->theme == $key ? " class='active'" : '') . "><a href='javascript:;' data-value='" . $key . "'>" . $value . "</a></li>";
|
||||
echo "<li" . ($app->cookie->theme == $key ? " class='active'" : '') . "><a href='javascript:selectTheme(\"$key\");' data-value='" . $key . "'>" . $value . "</a></li>";
|
||||
}
|
||||
echo '</ul></div>';
|
||||
}
|
||||
|
||||
@@ -41,5 +41,6 @@ $lang->my->home->createProduct = "创建一个产品?";
|
||||
$lang->my->home->help = "<a href='http://www.zentao.net/help-read-79236.html' target='_blank'>帮助文档</a>";
|
||||
$lang->my->home->noProductsTip = "这里还没有产品。";
|
||||
|
||||
$lang->my->form = new stdclass();
|
||||
$lang->my->form->lblBasic = '基本信息';
|
||||
$lang->my->form->lblContact = '联系信息';
|
||||
|
||||
@@ -63,7 +63,7 @@ class productModel extends model
|
||||
|
||||
setCookie("lastProduct", $productID, $this->config->cookieLife, $this->config->webRoot);
|
||||
$currentProduct = $this->getById($productID);
|
||||
$output .= "<a id='currentItem' href=\"javascript:showDropMenu('product', '$productID', '$currentModule', '$currentMethod', '$extra')\">{$currentProduct->name} <span class='icon-caret-down'></span></a><div id='dropMenu'></div>";
|
||||
$output = "<a id='currentItem' href=\"javascript:showDropMenu('product', '$productID', '$currentModule', '$currentMethod', '$extra')\">{$currentProduct->name} <span class='icon-caret-down'></span></a><div id='dropMenu'></div>";
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ class projectModel extends model
|
||||
|
||||
setCookie("lastProject", $projectID, $this->config->cookieLife, $this->config->webRoot);
|
||||
$currentProject = $this->getById($projectID);
|
||||
$output .= "<a id='currentItem' href=\"javascript:showDropMenu('project', '$projectID', '$currentModule', '$currentMethod', '$extra')\">{$currentProject->name} <span class='icon-caret-down'></span></a><div id='dropMenu'></div>";
|
||||
$output = "<a id='currentItem' href=\"javascript:showDropMenu('project', '$projectID', '$currentModule', '$currentMethod', '$extra')\">{$currentProject->name} <span class='icon-caret-down'></span></a><div id='dropMenu'></div>";
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user