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