Enhanced Theme: New CSS class added to file input fields to adjust their hight to be equal to other input fields.

This commit is contained in:
Nate Jones
2014-08-16 18:24:41 +00:00
parent afa6cf3577
commit 185786808e
7 changed files with 13 additions and 9 deletions

View File

@@ -408,7 +408,7 @@ else {
echo " ".$text['label-import_file_upload'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input name=\"ulfile\" type=\"file\" class=\"formfld\" id=\"ulfile\">\n";
echo " <input name=\"ulfile\" type=\"file\" class=\"formfld fileinput\" id=\"ulfile\">\n";
echo "<br />\n";
//echo "Select the enclosure.\n";
echo "</td>\n";

View File

@@ -450,7 +450,7 @@ else {
echo "<td class='vtable' align='left'>\n";
echo " <input name=\"id\" type=\"hidden\" value=\"\$id\">\n";
echo " <input name=\"type\" type=\"hidden\" value=\"fax_send\">\n";
echo " <input name=\"fax_file\" type=\"file\" class=\"formfld\" id=\"fax_file\" accept=\"image/tiff,application/pdf\">\n";
echo " <input name=\"fax_file\" type=\"file\" class=\"formfld fileinput\" id=\"fax_file\" accept=\"image/tiff,application/pdf\">\n";
echo " <br />\n";
echo " ".$text['description-upload']."\n";
echo "</td>\n";

View File

@@ -257,7 +257,7 @@ if ($_GET['act'] == "del" && permission_exists('music_on_hold_delete')) {
echo " <tr>\n";
echo " <td width='100%' style='padding-right: 5px;' nowrap>\n";
echo " ".$text['label-file-path']."<br>\n";
echo " <input name='upload_file' type='file' class='formfld' style='width: 85%; margin-right: 3px;' id='upload_file'><input type='button' class='btn' value='".$text['button-clear']."' onclick=\"reset_file_input('upload_file');\">\n";
echo " <input name='upload_file' type='file' class='formfld fileinput' style='width: 85%; margin-right: 3px;' id='upload_file'><input type='button' class='btn' value='".$text['button-clear']."' onclick=\"reset_file_input('upload_file');\">\n";
echo " </td>\n";
echo " <td style='padding-right: 5px;' nowrap>".$text['label-sampling']."<br>\n";
echo " <select id='upload_sampling_rate' name='upload_sampling_rate' class='formfld' style='width: auto;'>\n";

View File

@@ -183,7 +183,7 @@ require_once "resources/check_auth.php";
echo " <form action=\"\" method=\"POST\" enctype=\"multipart/form-data\" name=\"frmUpload\" onSubmit=\"\">\n";
echo " <input name=\"type\" type=\"hidden\" value=\"rec\">\n";
echo " ".$text['label-upload']."\n";
echo " <input name=\"ulfile\" type=\"file\" class=\"formfld\" style=\"width: 260px;\" id=\"ulfile\">\n";
echo " <input name=\"ulfile\" type=\"file\" class=\"formfld fileinput\" style=\"width: 260px;\" id=\"ulfile\">\n";
echo " <input name=\"submit\" type=\"submit\" class=\"btn\" id=\"upload\" value=\"".$text['button-upload']."\">\n";
echo " </form>";
echo " </td>\n";

View File

@@ -841,7 +841,7 @@ else {
echo "<td valign='top' align='left' class='vtable'>\n";
echo "<script type=\"text/javascript\">\n";
echo $row['field_name']." = \"\<input type=\'hidden\' name=\'".$x."field_name\' value=\'".$row['field_name']."\'>\\n\";\n";
echo $row['field_name']." += \"\<input tabindex='".$row['field_order_tab']."' class=\'txt\' type=\'file\' name='".$x."field_value\' value=\'".$data_row[$row['field_name']]."\'>\\n\";\n";
echo $row['field_name']." += \"\<input tabindex='".$row['field_order_tab']."' class=\'formfld fileinput\' type=\'file\' name='".$x."field_value\' value=\'".$data_row[$row['field_name']]."\'>\\n\";\n";
echo "</script>\n";
echo "<div id='".$row['field_name']."id'>";
@@ -873,7 +873,7 @@ else {
else {
echo "<td valign='top' align='left' class='vtable'>\n";
echo "<input type='hidden' name='".$x."field_name' value='".$row['field_name']."'>\n";
echo "<input tabindex='".$row['field_order_tab']."' class='formfld' style='width:90%' type='file' name='".$x."field_value' value=\"".$data_row[$row['field_name']]."\">\n";
echo "<input tabindex='".$row['field_order_tab']."' class='formfld fileinput' style='width:90%' type='file' name='".$x."field_value' value=\"".$data_row[$row['field_name']]."\">\n";
echo "</td>\n";
}
break;
@@ -882,7 +882,7 @@ else {
echo "<td valign='top' align='left' class='vtable'>\n";
echo "<script type=\"text/javascript\">\n";
echo $row['field_name']." = \"<input type='hidden' name='".$x."field_name' value='".$row['field_name']."'>\";\n";
echo $row['field_name']." += \"<input tabindex='".$row['field_order_tab']."' class='formfld' style='width:90%' type='file' name='".$x."field_value' value='".$data_row[$row['field_name']]."'>\";\n";
echo $row['field_name']." += \"<input tabindex='".$row['field_order_tab']."' class='formfld fileinput' style='width:90%' type='file' name='".$x."field_value' value='".$data_row[$row['field_name']]."'>\";\n";
echo "</script>\n";
echo "<span id='".$row['field_name']."'>";
@@ -902,7 +902,7 @@ else {
else {
echo "<td valign='top' align='left' class='vtable'>\n";
echo "<input type='hidden' name='".$x."field_name' value='".$row['field_name']."'>\n";
echo "<input tabindex='".$row['field_order_tab']."' class='formfld' style='width:90%' type='file' name='".$x."field_value' value=\"".$data_row[$row['field_name']]."\">\n";
echo "<input tabindex='".$row['field_order_tab']."' class='formfld fileinput' style='width:90%' type='file' name='".$x."field_value' value=\"".$data_row[$row['field_name']]."\">\n";
echo "</td>\n";
}

View File

@@ -235,7 +235,7 @@ else {
if (permission_exists('voicemail_greeting_upload')) {
echo " <td align='right' nowrap>\n";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"javascript:history.back();\" value='".$text['button-back']."'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n";
echo " <input name=\"file\" type=\"file\" class=\"formfld\" id=\"file\">\n";
echo " <input name=\"file\" type=\"file\" class=\"formfld fileinput\" id=\"file\">\n";
echo " <input name=\"type\" type=\"hidden\" value=\"rec\">\n";
echo " <input name=\"submit\" type=\"submit\" class=\"btn\" id=\"upload\" value=\"".$text['button-upload']."\">\n";
echo " </td>\n";

View File

@@ -326,6 +326,10 @@ input[type=text]::-ms-clear {
display: none;
}
input.fileinput {
padding: 1px;
}
.vncell {
border-bottom: 1px solid #fff;
background-color: #e5e9f0;