Skip to content

Commit

Permalink
"Put in dropdown" was generated twice. Also set a margin-left on Zoom…
Browse files Browse the repository at this point in the history
… settings.
  • Loading branch information
mescon committed Feb 24, 2016
1 parent ff1e68a commit e6dad15
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions muximux.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function parse_ini()
else if ($key == "name") {
$pageOutput .= "<div><label for='" . $section . "-" . $key . "' >Name:</label><input class='appName " . $section . "-value' was='" . $section . "' name='" . $section . "-" . $key . "' type='text' value='" . $val . "'></div>";
} else if ($key == "icon") {
$pageOutput .= "<div><label for='" . $section . "-" . $key . "' >Icon: </label><button class=\"iconpicker btn btn-default\" name='" . $section . "-" . $key . "' data-search=\"true\" data-search-text=\"Search...\" data-iconset=\"fontawesome\" data-icon=\"" . $val . "\"></button></div>";
$pageOutput .= "<div><label for='" . $section . "-" . $key . "' >Icon: </label><button role=\"iconpicker\" class=\"iconpicker btn btn-default\" name='" . $section . "-" . $key . "' data-rows=\"4\" data-cols=\"6\" data-search=\"true\" data-search-text=\"Search...\" data-iconset=\"fontawesome\" data-placement=\"left\" data-icon=\"" . $val . "\"></button></div>";
} elseif ($key == "default") {
$pageOutput .= "<div><label for='" . $section . "-" . $key . "' >Default:</label><input type='radio' class='radio " . $section . "-value' id='" . $section . "-" . $key . "' name='" . $section . "-" . $key . "'";
if ($val == "true")
Expand All @@ -145,19 +145,19 @@ function parse_ini()
$pageOutput .= " checked></div>";
else
$pageOutput .= "></div>";
} else {
$pageOutput .= "<div><label for='" . $section . "-" . $key . "' >Put in dropdown: </label><input class='checkbox " . $section . "-value' id='" . $section . "-" . $key . "' name='" . $section . "-" . $key . "' type='checkbox' ";
} else if ($key == "dd") {
$pageOutput .= "<div><label for='" . $section . "-dd'>Put in dropdown: </label><input class='checkbox " . $section . "-value' id='" . $section . "-dd' name='" . $section . "-dd' type='checkbox' ";
if ($val == "true")
$pageOutput .= " checked></div>";
else
$pageOutput .= "></div>";
}
}
$pageOutput .= "
<label for='" . $section . "-scale'>Zoom: </label>
<div style=\"margin-left:5px;\"><label for='" . $section . "-scale'>Zoom: </label>
<select id='" . $section . "-scale' name='" . $section . "-scale'>";

$pageOutput .= $scaleRange ."</select>\n<button type='button' class='removeButton btn btn-danger btn-xs' value='Remove' id='remove-" . $section . "'>Remove</button></div>";
$pageOutput .= $scaleRange ."</select></div>\n<button type='button' class='removeButton btn btn-danger btn-xs' value='Remove' id='remove-" . $section . "'>Remove</button></div>";
}
}
$pageOutput .= "</div>
Expand Down

0 comments on commit e6dad15

Please sign in to comment.