1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +02:00

Checkbox alignment and minor code cleanup.

This commit is contained in:
Cameron
2013-05-20 01:06:52 -07:00
parent c2776f84d2
commit 31d738829b
3 changed files with 12 additions and 12 deletions

View File

@@ -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>&nbsp;</td> <td>&nbsp;</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>";
} }

View File

@@ -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())
{ {

View File

@@ -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'),