Merge branch 'sprint/168_liugang_bug' into 'sprint/168'
* Remove the outdated code. See merge request easycorp/zentaopms!143
This commit is contained in:
@@ -172,7 +172,6 @@ class baseHTML
|
||||
$selectedItems = ",$selectedItems,";
|
||||
foreach($options as $key => $value)
|
||||
{
|
||||
$key = str_replace('item', '', $key);
|
||||
$selected = strpos($selectedItems, ",$key,") !== false ? " selected='selected'" : '';
|
||||
$string .= "<option value='$key'$selected>$value</option>\n";
|
||||
}
|
||||
@@ -209,7 +208,6 @@ class baseHTML
|
||||
$string .= "<optgroup label='$groupName'>\n";
|
||||
foreach($options as $key => $value)
|
||||
{
|
||||
$key = str_replace('item', '', $key);
|
||||
$selected = strpos($selectedItems, ",$key,") !== false ? " selected='selected'" : '';
|
||||
$string .= "<option value='$key'$selected>$value</option>\n";
|
||||
}
|
||||
@@ -280,7 +278,6 @@ class baseHTML
|
||||
|
||||
foreach($options as $key => $value)
|
||||
{
|
||||
$key = str_replace('item', '', $key);
|
||||
if($isBlock) $string .= "<div class='checkbox'><label>";
|
||||
else $string .= "<label class='checkbox-inline'>";
|
||||
$string .= "<input type='checkbox' name='{$name}[]' value='$key' ";
|
||||
|
||||
@@ -86,7 +86,6 @@ class html extends baseHTML
|
||||
|
||||
foreach($options as $key => $value)
|
||||
{
|
||||
$key = str_replace('item', '', $key);
|
||||
if($isBlock) $string .= "<div class='checkbox-primary'>";
|
||||
else $string .= "<div class='checkbox-primary checkbox-inline'>";
|
||||
$string .= "<input type='checkbox' name='{$name}[]' value='$key' ";
|
||||
@@ -185,7 +184,6 @@ class html extends baseHTML
|
||||
foreach($options as $key => $value)
|
||||
{
|
||||
$optionPinyin = zget($convertedPinYin, $value, '');
|
||||
$key = str_replace('item', '', $key);
|
||||
$selected = strpos($selectedItems, ",$key,") !== false ? " selected='selected'" : '';
|
||||
$string .= "<option value='$key'$selected title='{$value}' data-keys='{$optionPinyin}'>$value</option>\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user