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

GUI fixes to Linkwords and code clean-up

This commit is contained in:
Tijn Kuyper
2012-12-07 16:34:49 +01:00
parent 4a216fbf87
commit a059b5f664

View File

@@ -208,14 +208,12 @@ if (($action == 'words') || ($action == 'edit'))
$frm = e107::getForm();
$text = "
<div class='center'>
<form method='post' action='".e_SELF."?words'>
<table class='table adminform'>
<colgroup>
<col class='col-label' />
<col class='col-control' />
</colgroup>
<tr>
<td>".LWLAN_21."</td>
<td>
@@ -247,8 +245,8 @@ $text = "
<tr>
<td>".LWLAN_22."</td>
<td style='text-align:left'><select class='tbox' name='linkword_active'>".lw_act_opts($linkword_active).
"</select>
<td>
<select class='tbox' name='linkword_active'>".lw_act_opts($linkword_active)."</select>
</td>
</tr>
</table>
@@ -256,8 +254,7 @@ $text = "
".
(defined("LW_EDIT") ? $frm->admin_button('update_linkword','no-value','update',LAN_UPDATE) . "<input type='hidden' name='lw_edit_id' value='{$id}' />" : $frm->admin_button('submit_linkword','no-value','submit',LAN_CREATE))."
</div>
</form>
</div>\n";
</form>\n";
$ns -> tablerender(LWLAN_31, $text);
@@ -272,11 +269,10 @@ if (($action == 'words') || ($action == 'edit'))
{
$text .= LWLAN_4;
}
else
else // TODO FIX table below needs proper GUI
{
$text = "
<div class='center'>
<table class='table adminform'>
<table class='table adminlist'>
<colgroup>
<col style='width: 5%; vertical-align:top;' />
<col style='width: 15%; vertical-align:top;' />
@@ -286,7 +282,8 @@ if (($action == 'words') || ($action == 'edit'))
<col style='width: 5%; vertical-align:top;' />
<col style='width: 10%; vertical-align:top; text-align: center;' />
<col style='width: 15%; vertical-align:top; text-align: center;' />
</colgroup> <tr>
</colgroup>
<tr>
<td>".LWLAN_61."</td>
<td>".LWLAN_5."</td>
<td>".LWLAN_6."</td>
@@ -322,7 +319,6 @@ if (($action == 'words') || ($action == 'edit'))
$text .= "</table>";
}
$text .= "</div>";
$ns -> tablerender(LWLAN_11, $text);
}
@@ -338,9 +334,8 @@ if ($action=='options')
<form method='post' action='".e_SELF."?options'>
<table class='table adminform'>
<colgroup>
<col style='width: 30%; vertical-align:top;' />
<col style='width: 40%; vertical-align:top;' />
<col style='width: 30%; vertical-align:top;' />
<col style='width: 30%; />
<col style='width: 70%; />
</colgroup>
<tr>
<td>".LWLAN_26."</td>
@@ -348,35 +343,29 @@ if ($action=='options')
foreach ($lw_context_areas as $lw_key=>$lw_desc)
{
$checked = $pref['lw_context_visibility'][$lw_key] ? "checked='checked'" : '';
$text .= "<input type='checkbox' name='lw_visibility_area[]' value='{$lw_key}' {$checked} />{$lw_desc}<br />";
$text .= "<input type='checkbox' name='lw_visibility_area[]' value='{$lw_key}' {$checked} /> {$lw_desc}s<pan class='field-help>".LWLAN_27."</span><br />";
}
$text .= "</td>
<td>".LWLAN_27."</td>
</tr>
<tr>
<td>".LWLAN_28."</td>
<td><textarea rows='5' cols='60' class='tbox' name='linkword_omit_pages' >".$menu_pages."</textarea>
<td><textarea rows='5' cols='60' class='tbox' name='linkword_omit_pages' >".$menu_pages."</textarea><span class='field-help'>".LWLAN_29."</span>
</td>
<td>".LWLAN_29."</td>
</tr>";
$checked = varset($pref['lw_ajax_enable'],0) ? 'checked=checked' : '';
$text .= "
<tr>
<td>".LWLAN_59."</td>
<td><input type='checkbox' name='lw_ajax_enable' {$checked} />
</td>
<td>".""."</td>
<td><input type='checkbox' name='lw_ajax_enable' {$checked} /></td>
</tr>";
$checked = varset($pref['lw_notsamepage'],0) ? 'checked=checked' : '';
$text .= "
<tr>
<td>".LWLAN_64."</td>
<td><input type='checkbox' name='lw_notsamepage' {$checked} />
</td>
<td>".LWLAN_65."</td>
<td><input type='checkbox' name='lw_notsamepage' {$checked} /><span class='field-help'>".LWLAN_65."</span></td>
</tr>
</table>