Skip to content

Commit

Permalink
Fixed misplaced " for "datetime date" and "datetime time" classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gitsponge authored and dleffler committed Mar 29, 2011
1 parent b14765e commit 3141113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subsystems/forms/controls/datetimecontrol.php
Expand Up @@ -91,14 +91,14 @@ function controlToHTML($name) {
$html = "<input type='hidden' id='__".$name."' name='__".$name."' value='".($this->showdate?"1":"0").($this->showtime?"1":"0")."' />";
if ($this->showdate) {
if (!defined("SYS_DATETIME")) require_once(BASE."subsystems/datetime.php");
$html .= '<div class="datetime date>"<label>Date: </label>';
$html .= '<div class="datetime date"><label>Date: </label>';
$html .= exponent_datetime_monthsDropdown($name . "_month",$default_date['mon']);
$html .= '<input class="text" type="text" id="' . $name . '_day" name="' . $name . '_day" size="3" maxlength="2" value="' . $default_date['mday'] . '" />';
$html .= '<input class="text" id="' . $name . '_year" name="' . $name . '_year" size="5" maxlength="4" value="' . $default_date['year'] . '" />';
$html .= '</div>';
}
if ($this->showtime) {
$html .= '<div class="datetime time>"<label>Time: </label>';
$html .= '<div class="datetime time"><label>Time: </label>';
$html .= '<input class="text" type="text" id="' . $name . '_hour" name="' . $name . '_hour" size="3" maxlength="2" value="' . $hour . '" />';
$html .= '<input class="text" type="text" id="' . $name . '_minute" name="' . $name . '_minute" size="3" maxlength="2" value="' . $minute . '" />';
$html .= '<select class="select" id="' . $name . '_ampm" name="' . $name . '_ampm" size="1">';
Expand Down

0 comments on commit 3141113

Please sign in to comment.