mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 04:38:27 +01:00
Various <select> css fixes.
This commit is contained in:
parent
cfa177a9ad
commit
d7b0dcc755
@ -432,7 +432,7 @@ $text .= "<fieldset class='e-hideme' id='core-prefs-email'>
|
|||||||
<tr>
|
<tr>
|
||||||
<td style='vertical-align:top'>".LAN_MAILOUT_115."<br /></td>
|
<td style='vertical-align:top'>".LAN_MAILOUT_115."<br /></td>
|
||||||
<td>
|
<td>
|
||||||
<select class='tbox e-select' name='mailer' onchange='disp(this.value)'>\n";
|
<select class='tbox' name='mailer' onchange='disp(this.value)'>\n";
|
||||||
$mailers = array('php','smtp','sendmail');
|
$mailers = array('php','smtp','sendmail');
|
||||||
foreach($mailers as $opt)
|
foreach($mailers as $opt)
|
||||||
{
|
{
|
||||||
@ -477,7 +477,7 @@ $text .= "<fieldset class='e-hideme' id='core-prefs-email'>
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>".LAN_MAILOUT_90."</td><td>
|
<td>".LAN_MAILOUT_90."</td><td>
|
||||||
<select class='tbox e-select' name='smtp_options'>\n
|
<select class='tbox' name='smtp_options'>\n
|
||||||
<option value=''>".LAN_MAILOUT_96."</option>\n";
|
<option value=''>".LAN_MAILOUT_96."</option>\n";
|
||||||
$selected = (in_array('secure=SSL',$smtp_opts) ? " selected='selected'" : '');
|
$selected = (in_array('secure=SSL',$smtp_opts) ? " selected='selected'" : '');
|
||||||
$text .= "<option value='smtp_ssl'{$selected}>".LAN_MAILOUT_92."</option>\n";
|
$text .= "<option value='smtp_ssl'{$selected}>".LAN_MAILOUT_92."</option>\n";
|
||||||
|
@ -383,7 +383,7 @@ else
|
|||||||
<td>".$value."</td>
|
<td>".$value."</td>
|
||||||
<td class='center'>".r_userclass("core_handlers[".$key."][class]", $search_prefs['core_handlers'][$key]['class'], "off", "public,guest,nobody,member,admin,classes")."</td>
|
<td class='center'>".r_userclass("core_handlers[".$key."][class]", $search_prefs['core_handlers'][$key]['class'], "off", "public,guest,nobody,member,admin,classes")."</td>
|
||||||
<td class='center'>
|
<td class='center'>
|
||||||
<select name='core_handlers[".$key."][order]' class='tbox select e-select order'>
|
<select name='core_handlers[".$key."][order]' class='tbox order'>
|
||||||
";
|
";
|
||||||
for($a = 1; $a <= $handlers_total; $a++) {
|
for($a = 1; $a <= $handlers_total; $a++) {
|
||||||
$text .= ($search_prefs['core_handlers'][$key]['order'] == $a) ? "<option value='".$a."' selected='selected'>".$a."</option>" : "<option value='".$a."'>".$a."</option>";
|
$text .= ($search_prefs['core_handlers'][$key]['order'] == $a) ? "<option value='".$a."' selected='selected'>".$a."</option>" : "<option value='".$a."'>".$a."</option>";
|
||||||
@ -409,7 +409,7 @@ else
|
|||||||
<td>".$search_info[0]['qtype']."</td>
|
<td>".$search_info[0]['qtype']."</td>
|
||||||
<td class='center'>".r_userclass("plug_handlers[".$plug_dir."][class]", $search_prefs['plug_handlers'][$plug_dir]['class'], "off", "public,guest,nobody,member,admin,classes")."</td>
|
<td class='center'>".r_userclass("plug_handlers[".$plug_dir."][class]", $search_prefs['plug_handlers'][$plug_dir]['class'], "off", "public,guest,nobody,member,admin,classes")."</td>
|
||||||
<td class='center'>
|
<td class='center'>
|
||||||
<select name='plug_handlers[".$plug_dir."][order]' class='tbox select e-select order'>
|
<select name='plug_handlers[".$plug_dir."][order]' class='tbox order'>
|
||||||
";
|
";
|
||||||
for($a = 1; $a <= $handlers_total; $a++) {
|
for($a = 1; $a <= $handlers_total; $a++) {
|
||||||
$text .= (vartrue($search_prefs['plug_handlers'][$plug_dir]['order']) == $a) ? "<option value='".$a."' selected='selected'>".$a."</option>" : "<option value='".$a."'>".$a."</option>";
|
$text .= (vartrue($search_prefs['plug_handlers'][$plug_dir]['order']) == $a) ? "<option value='".$a."' selected='selected'>".$a."</option>" : "<option value='".$a."'>".$a."</option>";
|
||||||
|
@ -438,7 +438,7 @@ class user_class
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Only return the select box if we've ended up with some options
|
// Only return the select box if we've ended up with some options
|
||||||
if ($text) $text = "\n<select class='tbox select e-select' name='{$fieldname}' {$extra_js}>\n".$text."</select>\n";
|
if ($text) $text = "\n<select class='tbox' name='{$fieldname}' {$extra_js}>\n".$text."</select>\n";
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -246,7 +246,7 @@ $ns->tablerender($caption, $mes->render() . $text);
|
|||||||
|
|
||||||
function gen_select($prompt,$name,$value)
|
function gen_select($prompt,$name,$value)
|
||||||
{
|
{
|
||||||
$ret = "<div style='padding-bottom: 4px'>".$prompt." "."<select name='{$name}' class='tbox e-select'>\n
|
$ret = "<div style='padding-bottom: 4px'>".$prompt." "."<select name='{$name}' class='tbox'>\n
|
||||||
<option value='0' ".($value == 0 ? " selected='selected'" : "").">".ADSTAT_L50."</option>\n
|
<option value='0' ".($value == 0 ? " selected='selected'" : "").">".ADSTAT_L50."</option>\n
|
||||||
<option value='1' ".($value == 1 ? " selected='selected'" : "").">".ADSTAT_L49."</option>\n
|
<option value='1' ".($value == 1 ? " selected='selected'" : "").">".ADSTAT_L49."</option>\n
|
||||||
<option value='2' ".($value == 2 ? " selected='selected'" : "").">".ADSTAT_L48."</option>\n
|
<option value='2' ".($value == 2 ? " selected='selected'" : "").">".ADSTAT_L48."</option>\n
|
||||||
@ -258,7 +258,7 @@ function gen_select($prompt,$name,$value)
|
|||||||
function data_type_select($name,$value)
|
function data_type_select($name,$value)
|
||||||
{
|
{
|
||||||
global $stats_list;
|
global $stats_list;
|
||||||
$ret = "<select name='{$name}' class='tbox e-select' onchange=\"settypebox(this.value);\">\n
|
$ret = "<select name='{$name}' class='tbox' onchange=\"settypebox(this.value);\">\n
|
||||||
<option value='page' ".($value == 'page' ? " selected='selected'" : "").">".ADSTAT_L52."</option>\n";
|
<option value='page' ".($value == 'page' ? " selected='selected'" : "").">".ADSTAT_L52."</option>\n";
|
||||||
foreach ($stats_list as $k=>$v)
|
foreach ($stats_list as $k=>$v)
|
||||||
{
|
{
|
||||||
@ -381,7 +381,7 @@ switch ($action)
|
|||||||
|
|
||||||
// Period selection type for page data
|
// Period selection type for page data
|
||||||
$text .= "<tr><td>".ADSTAT_L41."</td><td>\n
|
$text .= "<tr><td>".ADSTAT_L41."</td><td>\n
|
||||||
<select class='tbox e-select' name='export_date' id='export_date' onchange=\"setdatebox(this.value);\" ".($export_type=='page' ? "" : "style='display:none'" ).">\n
|
<select class='tbox' name='export_date' id='export_date' onchange=\"setdatebox(this.value);\" ".($export_type=='page' ? "" : "style='display:none'" ).">\n
|
||||||
<option value='1'".($export_date==1 ? " selected='selected'" : "").">".ADSTAT_L42."</option>\n
|
<option value='1'".($export_date==1 ? " selected='selected'" : "").">".ADSTAT_L42."</option>\n
|
||||||
<option value='2'".($export_date==2 ? " selected='selected'" : "").">".ADSTAT_L43."</option>\n
|
<option value='2'".($export_date==2 ? " selected='selected'" : "").">".ADSTAT_L43."</option>\n
|
||||||
<option value='3'".($export_date==3 ? " selected='selected'" : "").">".ADSTAT_L44."</option>\n
|
<option value='3'".($export_date==3 ? " selected='selected'" : "").">".ADSTAT_L44."</option>\n
|
||||||
@ -391,7 +391,7 @@ switch ($action)
|
|||||||
|
|
||||||
// Period selection type for non-page data
|
// Period selection type for non-page data
|
||||||
$text .= "
|
$text .= "
|
||||||
<select class='tbox e-select' name='export2_date' id='export2_date' onchange=\"setdatebox(this.value);\" ".($export_type=='page' ? "style='display:none'" : "").">\n
|
<select class='tbox' name='export2_date' id='export2_date' onchange=\"setdatebox(this.value);\" ".($export_type=='page' ? "style='display:none'" : "").">\n
|
||||||
<option value='3'".($export2_date==3 ? " selected='selected'" : "").">".ADSTAT_L44."</option>\n
|
<option value='3'".($export2_date==3 ? " selected='selected'" : "").">".ADSTAT_L44."</option>\n
|
||||||
<option value='4'".($export2_date==4 ? " selected='selected'" : "").">".ADSTAT_L45."</option>\n
|
<option value='4'".($export2_date==4 ? " selected='selected'" : "").">".ADSTAT_L45."</option>\n
|
||||||
</select>";
|
</select>";
|
||||||
@ -405,7 +405,7 @@ switch ($action)
|
|||||||
|
|
||||||
// Now put the various dropdowns - their visibility is controlled by the export_type dropdown
|
// Now put the various dropdowns - their visibility is controlled by the export_type dropdown
|
||||||
|
|
||||||
$text .= "<select class='tbox e-select' name='export_day' id='export_day'>\n";
|
$text .= "<select class='tbox' name='export_day' id='export_day'>\n";
|
||||||
for ($i = 1; $i < 32; $i++)
|
for ($i = 1; $i < 32; $i++)
|
||||||
{
|
{
|
||||||
$selected = $export_day == $i ? " selected='selected'" : "";
|
$selected = $export_day == $i ? " selected='selected'" : "";
|
||||||
@ -414,7 +414,7 @@ switch ($action)
|
|||||||
$text .= "</select>\n ";
|
$text .= "</select>\n ";
|
||||||
|
|
||||||
|
|
||||||
$text .= "<select class='tbox e-select' name='export_month' id='export_month'>\n";
|
$text .= "<select class='tbox' name='export_month' id='export_month'>\n";
|
||||||
for ($i = 1; $i < 13; $i++)
|
for ($i = 1; $i < 13; $i++)
|
||||||
{
|
{
|
||||||
$selected = $export_month == $i ? " selected='selected'" : "";
|
$selected = $export_month == $i ? " selected='selected'" : "";
|
||||||
@ -423,7 +423,7 @@ switch ($action)
|
|||||||
$text .= "</select>\n ";
|
$text .= "</select>\n ";
|
||||||
|
|
||||||
$this_year = date("Y");
|
$this_year = date("Y");
|
||||||
$text .= "<select class='tbox e-select' name='export_year' id='export_year'>\n";
|
$text .= "<select class='tbox' name='export_year' id='export_year'>\n";
|
||||||
for ($i = $this_year; $i > $this_year - 6; $i--)
|
for ($i = $this_year; $i > $this_year - 6; $i--)
|
||||||
{
|
{
|
||||||
$selected = $export_year == $i ? " selected='selected'" : "";
|
$selected = $export_year == $i ? " selected='selected'" : "";
|
||||||
@ -440,13 +440,13 @@ switch ($action)
|
|||||||
{
|
{
|
||||||
// Separators, quotes
|
// Separators, quotes
|
||||||
$text .= "<tr><td>".ADSTAT_L59."</td><td>\n
|
$text .= "<tr><td>".ADSTAT_L59."</td><td>\n
|
||||||
<select class='tbox e-select' name='export_char'>";
|
<select class='tbox' name='export_char'>";
|
||||||
foreach ($separator_list as $k=>$v)
|
foreach ($separator_list as $k=>$v)
|
||||||
{
|
{
|
||||||
$selected = $export_char == $k ? " selected='selected'" : "";
|
$selected = $export_char == $k ? " selected='selected'" : "";
|
||||||
$text .= "<option value='{$k}'{$selected}>{$v}</option>\n";
|
$text .= "<option value='{$k}'{$selected}>{$v}</option>\n";
|
||||||
}
|
}
|
||||||
$text .= "</select>\n <select class='tbox e-select' name='export_quote'>\n";
|
$text .= "</select>\n <select class='tbox' name='export_quote'>\n";
|
||||||
foreach ($quote_list as $k=>$v)
|
foreach ($quote_list as $k=>$v)
|
||||||
{
|
{
|
||||||
$selected = $export_quote == $k ? " selected='selected'" : "";
|
$selected = $export_quote == $k ? " selected='selected'" : "";
|
||||||
@ -528,7 +528,7 @@ switch ($action)
|
|||||||
$admin_log->log_event('STAT_04',ADSTAT_L83.$logStr,'');
|
$admin_log->log_event('STAT_04',ADSTAT_L83.$logStr,'');
|
||||||
}
|
}
|
||||||
$text .= "<tr><td>".ADSTAT_L70."</td>";
|
$text .= "<tr><td>".ADSTAT_L70."</td>";
|
||||||
$text .= "<td><select class='tbox e-select' name='delete_month'>\n";
|
$text .= "<td><select class='tbox' name='delete_month'>\n";
|
||||||
$match_month = date("n");
|
$match_month = date("n");
|
||||||
for ($i = 1; $i < 13; $i++)
|
for ($i = 1; $i < 13; $i++)
|
||||||
{
|
{
|
||||||
@ -538,7 +538,7 @@ switch ($action)
|
|||||||
$text .= "</select>\n ";
|
$text .= "</select>\n ";
|
||||||
|
|
||||||
$this_year = date("Y");
|
$this_year = date("Y");
|
||||||
$text .= "<select class='tbox e-select' name='delete_year' id='export_year'>\n";
|
$text .= "<select class='tbox' name='delete_year' id='export_year'>\n";
|
||||||
for ($i = $this_year; $i > $this_year - 6; $i--)
|
for ($i = $this_year; $i > $this_year - 6; $i--)
|
||||||
{
|
{
|
||||||
$selected = ($this_year - 2) == $i ? " selected='selected'" : "";
|
$selected = ($this_year - 2) == $i ? " selected='selected'" : "";
|
||||||
|
@ -176,7 +176,7 @@ if (!$sql->db_Select("news_category"))
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$text .= "
|
$text .= "
|
||||||
<select name='cat_id' class='e-select tbox'>";
|
<select name='cat_id' class='tbox'>";
|
||||||
while (list($cat_id, $cat_name, $cat_icon) = $sql->db_Fetch(MYSQL_NUM))
|
while (list($cat_id, $cat_name, $cat_icon) = $sql->db_Fetch(MYSQL_NUM))
|
||||||
{
|
{
|
||||||
$sel = (varset($_POST['cat_id'],'') == $cat_id) ? "selected='selected'" : "";
|
$sel = (varset($_POST['cat_id'],'') == $cat_id) ? "selected='selected'" : "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user