mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
Checkbox alignment and minor code cleanup.
This commit is contained in:
parent
c2776f84d2
commit
31d738829b
@ -677,7 +677,7 @@ class system_tools
|
||||
";
|
||||
|
||||
$pref_types = e107::getConfig()->aliases;
|
||||
unset($pref_types['core_old'],$pref_types['core_backup']);
|
||||
unset($pref_types['core_old'], $pref_types['core_backup']);
|
||||
// $exclusions = array('core_old'=>1,'core_backup'=>1);
|
||||
// $filteredprefs = array_diff($pref_types,$exclusions);
|
||||
|
||||
@ -687,8 +687,8 @@ class system_tools
|
||||
|
||||
$text .= "<tr>
|
||||
<td>
|
||||
".$frm->checkbox("xml_prefs[".$key."]", $key, $checked)."
|
||||
".LAN_PREFS.": ".$key."</td>
|
||||
".$frm->checkbox("xml_prefs[".$key."]", $key, $checked, array('label'=>LAN_PREFS.": ".$key))."
|
||||
</td>
|
||||
<td> </td>
|
||||
|
||||
</tr>";
|
||||
@ -717,8 +717,8 @@ class system_tools
|
||||
$checked = (vartrue($_POST['xml_tables'][$name]) == $name) ? 1: 0;
|
||||
$text .= "<tr>
|
||||
<td>
|
||||
".$frm->checkbox("xml_tables[".$name."]", $name, $checked)." Table Data: ".$name."
|
||||
</td>
|
||||
".$frm->checkbox("xml_tables[".$name."]", $name, $checked, array('label'=>"Table Data: ".$name)).
|
||||
"</td>
|
||||
<td class='right'>$count</td>
|
||||
</tr>";
|
||||
}
|
||||
|
@ -938,12 +938,12 @@ class e_form
|
||||
}
|
||||
|
||||
/**
|
||||
* checkbox
|
||||
* parm $name
|
||||
* parm $value
|
||||
* parm $checked
|
||||
* Render a checkbox
|
||||
* @param string $name
|
||||
* @param mixed $value
|
||||
* @param boolean $checked
|
||||
* @param array $options
|
||||
* @return void
|
||||
* @author
|
||||
*/
|
||||
function checkbox($name, $value, $checked = false, $options = array())
|
||||
{
|
||||
|
@ -47,9 +47,9 @@ class faqs_sitelink // include plugin-folder in the name.
|
||||
$tp = e107::getParser();
|
||||
$sublinks = array();
|
||||
|
||||
$sql->db_Select("faqs_info","*","faq_info_id != '' ORDER BY faq_info_order");
|
||||
$sql->select("faqs_info","*","faq_info_id != '' ORDER BY faq_info_order");
|
||||
|
||||
while($row = $sql->db_Fetch())
|
||||
while($row = $sql->fetch())
|
||||
{
|
||||
$sublinks[] = array(
|
||||
'link_name' => $tp->toHtml($row['faq_info_title'],'','TITLE'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user