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:
@@ -208,14 +208,12 @@ if (($action == 'words') || ($action == 'edit'))
|
|||||||
$frm = e107::getForm();
|
$frm = e107::getForm();
|
||||||
|
|
||||||
$text = "
|
$text = "
|
||||||
<div class='center'>
|
|
||||||
<form method='post' action='".e_SELF."?words'>
|
<form method='post' action='".e_SELF."?words'>
|
||||||
<table class='table adminform'>
|
<table class='table adminform'>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col class='col-label' />
|
<col class='col-label' />
|
||||||
<col class='col-control' />
|
<col class='col-control' />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>".LWLAN_21."</td>
|
<td>".LWLAN_21."</td>
|
||||||
<td>
|
<td>
|
||||||
@@ -247,8 +245,8 @@ $text = "
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>".LWLAN_22."</td>
|
<td>".LWLAN_22."</td>
|
||||||
<td style='text-align:left'><select class='tbox' name='linkword_active'>".lw_act_opts($linkword_active).
|
<td>
|
||||||
"</select>
|
<select class='tbox' name='linkword_active'>".lw_act_opts($linkword_active)."</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</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))."
|
(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>
|
</div>
|
||||||
</form>
|
</form>\n";
|
||||||
</div>\n";
|
|
||||||
|
|
||||||
|
|
||||||
$ns -> tablerender(LWLAN_31, $text);
|
$ns -> tablerender(LWLAN_31, $text);
|
||||||
@@ -272,11 +269,10 @@ if (($action == 'words') || ($action == 'edit'))
|
|||||||
{
|
{
|
||||||
$text .= LWLAN_4;
|
$text .= LWLAN_4;
|
||||||
}
|
}
|
||||||
else
|
else // TODO FIX table below needs proper GUI
|
||||||
{
|
{
|
||||||
$text = "
|
$text = "
|
||||||
<div class='center'>
|
<table class='table adminlist'>
|
||||||
<table class='table adminform'>
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style='width: 5%; vertical-align:top;' />
|
<col style='width: 5%; vertical-align:top;' />
|
||||||
<col style='width: 15%; 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: 5%; vertical-align:top;' />
|
||||||
<col style='width: 10%; vertical-align:top; text-align: center;' />
|
<col style='width: 10%; vertical-align:top; text-align: center;' />
|
||||||
<col style='width: 15%; 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_61."</td>
|
||||||
<td>".LWLAN_5."</td>
|
<td>".LWLAN_5."</td>
|
||||||
<td>".LWLAN_6."</td>
|
<td>".LWLAN_6."</td>
|
||||||
@@ -322,7 +319,6 @@ if (($action == 'words') || ($action == 'edit'))
|
|||||||
$text .= "</table>";
|
$text .= "</table>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$text .= "</div>";
|
|
||||||
$ns -> tablerender(LWLAN_11, $text);
|
$ns -> tablerender(LWLAN_11, $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -338,9 +334,8 @@ if ($action=='options')
|
|||||||
<form method='post' action='".e_SELF."?options'>
|
<form method='post' action='".e_SELF."?options'>
|
||||||
<table class='table adminform'>
|
<table class='table adminform'>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style='width: 30%; vertical-align:top;' />
|
<col style='width: 30%; />
|
||||||
<col style='width: 40%; vertical-align:top;' />
|
<col style='width: 70%; />
|
||||||
<col style='width: 30%; vertical-align:top;' />
|
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tr>
|
<tr>
|
||||||
<td>".LWLAN_26."</td>
|
<td>".LWLAN_26."</td>
|
||||||
@@ -348,35 +343,29 @@ if ($action=='options')
|
|||||||
foreach ($lw_context_areas as $lw_key=>$lw_desc)
|
foreach ($lw_context_areas as $lw_key=>$lw_desc)
|
||||||
{
|
{
|
||||||
$checked = $pref['lw_context_visibility'][$lw_key] ? "checked='checked'" : '';
|
$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>
|
$text .= "</td>
|
||||||
<td>".LWLAN_27."</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>".LWLAN_28."</td>
|
<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>
|
||||||
<td>".LWLAN_29."</td>
|
|
||||||
</tr>";
|
</tr>";
|
||||||
|
|
||||||
$checked = varset($pref['lw_ajax_enable'],0) ? 'checked=checked' : '';
|
$checked = varset($pref['lw_ajax_enable'],0) ? 'checked=checked' : '';
|
||||||
$text .= "
|
$text .= "
|
||||||
<tr>
|
<tr>
|
||||||
<td>".LWLAN_59."</td>
|
<td>".LWLAN_59."</td>
|
||||||
<td><input type='checkbox' name='lw_ajax_enable' {$checked} />
|
<td><input type='checkbox' name='lw_ajax_enable' {$checked} /></td>
|
||||||
</td>
|
|
||||||
<td>".""."</td>
|
|
||||||
</tr>";
|
</tr>";
|
||||||
|
|
||||||
$checked = varset($pref['lw_notsamepage'],0) ? 'checked=checked' : '';
|
$checked = varset($pref['lw_notsamepage'],0) ? 'checked=checked' : '';
|
||||||
$text .= "
|
$text .= "
|
||||||
<tr>
|
<tr>
|
||||||
<td>".LWLAN_64."</td>
|
<td>".LWLAN_64."</td>
|
||||||
<td><input type='checkbox' name='lw_notsamepage' {$checked} />
|
<td><input type='checkbox' name='lw_notsamepage' {$checked} /><span class='field-help'>".LWLAN_65."</span></td>
|
||||||
</td>
|
|
||||||
<td>".LWLAN_65."</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
Reference in New Issue
Block a user