1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00

Some CSS standardization.

This commit is contained in:
CaMer0n 2009-07-10 14:25:23 +00:00
parent b9b460a319
commit 62d5c8b49c
11 changed files with 365 additions and 266 deletions

View File

@ -9,8 +9,8 @@
* Custom Menus/Pages Administration
*
* $Source: /cvs_backup/e107_0.8/e107_admin/cpage.php,v $
* $Revision: 1.14 $
* $Date: 2009-07-08 10:31:52 $
* $Revision: 1.15 $
* $Date: 2009-07-10 14:25:21 $
* $Author: e107coders $
*
*/
@ -328,7 +328,7 @@ class page
</table>
</fieldset>
<fieldset id='core-cpage-create-options'>
<legend>".CUSLAN_3."</legend>
<legend>".LAN_OPTIONS."</legend>
<table cellpadding='0' cellspacing='0' class='adminedit options'>
<colgroup span='2'>
<col class='col-label' />
@ -452,9 +452,16 @@ class page
if($type)
{
$menu_name = $tp -> toDB($_POST['menu_name']); // not to be confused with menu-caption.
$sql->db_Update("menus", "menu_name='{$menu_name}' WHERE menu_path='{$mode}' ");
if($sql -> db_Update("menus", "menu_name='{$menu_name}' WHERE menu_path='{$mode}' "))
{
$update++;
}
else
{
$sql -> db_Insert("menus", "0, '$menu_name', '0', '0', '0', '', '".$mode."' ");
}
}
if ($_POST['page_link'])
{
@ -534,7 +541,7 @@ class page
$text = "
<form method='post' action='".e_SELF."?".e_QUERY."'>
<fieldset id='core-cpage-options'>
<legend class='e-hideme'>".CUSLAN_3."</legend>
<legend class='e-hideme'>".LAN_OPTIONS."</legend>
<table cellpadding='0' cellspacing='0' class='adminform'>
<colgroup span='2'>
<col class='col-label' />
@ -563,7 +570,7 @@ class page
</form>
";
$e107->ns->tablerender(CUSLAN_3, $emessage->render().$text);
$e107->ns->tablerender(LAN_OPTIONS, $emessage->render().$text);
}

View File

@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/notify.php,v $
| $Revision: 1.6 $
| $Date: 2009-07-08 06:58:00 $
| $Revision: 1.7 $
| $Date: 2009-07-10 14:25:22 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
@ -29,7 +29,11 @@ require_once('auth.php');
require_once(e_HANDLER.'userclass_class.php');
require_once(e_HANDLER.'form_handler.php');
$emessage = &eMessage::getInstance();
$rs = new form;
$frm = new e_form;
$nc = new notify_config;
$uc = new user_class;
@ -38,8 +42,19 @@ $uc->text_class_link['email'] = 'email';
if (isset($_POST['update']))
{
$message = ($nc -> update()) ? LAN_UPDATED : LAN_UPDATED_FAILED;
$ns -> tablerender($message,"<div style='text-align:center'>".$message."</div>");
if($nc -> update())
{
$message = LAN_UPDATED;
$style = E_MESSAGE_SUCCESS;
}
else
{
$message = LAN_UPDATED_FAILED;
$style = E_MESSAGE_FAILED;
}
$emessage->add($message, $style);
// $ns -> tablerender($message,"<div style='text-align:center'>".$message."</div>");
}
$nc -> config();
@ -84,19 +99,25 @@ class notify_config
function config()
{
global $ns, $rs;
global $ns, $rs, $frm, $emessage;
$text = "<div style='text-align: center'>
<form action='".e_SELF."?results' method='post' id='scanform'>
<table class='adminlist'>
<fieldset id='core-notify-config'>
<table cellpadding='0' cellspacing='0' class='adminform'>
<colgroup span='2'>
<col class='col-label' />
<col class='col-control' />
</colgroup>
<thead>
<tr>
<th colspan='2'>".NT_LAN_2.":</th>
</tr>";
</tr>
</thead>";
$text .= "</thead><tbody><tr>
<td colspan='2'>".NU_LAN_1."</td>
</tr>";
$text .= "<tbody>
<tr><td colspan='2'>".NU_LAN_1."</td></tr>
";
$text .= $this -> render_event('usersup', NU_LAN_2);
$text .= $this -> render_event('userveri', NU_LAN_3);
@ -140,15 +161,19 @@ class notify_config
}
}
$text .= "<tr>
<td colspan='2' class='center button-bar'>".$rs -> form_button('submit', 'update', LAN_UPDATE)."</td>
</tr>
$text .= " </tr>
</tbody>
</table>
<div class='buttons-bar center'>";
$text .= $frm->admin_button('update', LAN_UPDATE,'update');
$text .= "
</div>
</fieldset>
</form>
</div>";
$ns -> tablerender(NT_LAN_1, $text);
$ns -> tablerender(NT_LAN_1,$emessage->render(). $text);
}
@ -157,8 +182,8 @@ class notify_config
global $rs, $tp, $uc;
$text .= "
<tr>
<td style='width: 40%'>".$description.": </td>
<td style='width: 60%; white-space: nowrap'>
<td >".$description.": </td>
<td class='nowrap'>
".$uc->uc_dropdown('event['.$id.'][class]', $this -> notify_prefs['event'][$id]['class'],"nobody,main,admin,member,classes,email","onchange=\"mail_field(this.value,'event_".$id."');\" ");
if($this -> notify_prefs['event'][$id]['class'] == 'email')

View File

@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/plugin.php,v $
| $Revision: 1.28 $
| $Date: 2009-07-09 02:47:10 $
| $Revision: 1.29 $
| $Date: 2009-07-10 14:25:22 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
@ -637,25 +637,29 @@ class pluginManager{
$text = "
<form enctype='multipart/form-data' method='post' action='".e_SELF."'>
<table class='adminlist' cellpadding='0' cellspacing='0'>
<table cellpadding='0' cellspacing='0' class='adminform'>
<colgroup span='2'>
<col class='col-label' />
<col class='col-control' />
</colgroup>
<tr>
<td style='width: 50%;'>".EPL_ADLAN_37."</td>
<td style='width: 50%;'>
<td>".EPL_ADLAN_37."</td>
<td>
<input type='hidden' name='MAX_FILE_SIZE' value='{$max_file_size}' />
<input type='hidden' name='ac' value='".md5(ADMINPWCHANGE)."' />
<input class='tbox' type='file' name='file_userfile[]' size='50' />
</td>
</tr>
<tr>
<td colspan='2' class='center buttons-bar'>";
</tr>
</table>
<div class='center buttons-bar'>";
$text .= $frm->admin_button('upload', EPL_ADLAN_38, 'submit', EPL_ADLAN_38);
$text .= "
</td>
</tr>
</table>
</form>
<br />\n";
</div>
</form>\n";
}
$ns->tablerender(EPL_ADLAN_16, $text);
@ -921,23 +925,22 @@ class pluginManager{
$text = "
<form action='".e_SELF."?".e_QUERY."' method='post'>
<table style='".ADMIN_WIDTH."' class='fborder'>
<colgroup>
<col style='width:75%' />
<col style='width:25%' />
<fieldset id='core-plugin-confirmUninstall'>
<legend>".EPL_ADLAN_54." ".$tp->toHtml($plug_vars['@attributes']['name'], "", "defs,emotes_off, no_make_clickable")."</legend>
<table cellpadding='0' cellspacing='0' class='adminform'>
<colgroup span='2'>
<col class='col-label' />
<col class='col-control' />
</colgroup>
<tr>
<td colspan='2' class='forumheader'>".EPL_ADLAN_54." ".$tp->toHtml($plug_vars['name'], "", "defs,emotes_off, no_make_clickable")."</td>
<td>".EPL_ADLAN_55."</td>
<td>".LAN_YES."</td>
</tr>
<tr>
<td class='forumheader3'>".EPL_ADLAN_55."</td>
<td class='forumheader3'>".LAN_YES."</td>
</tr>
<tr>
<td class='forumheader3'>
<td>
".EPL_ADLAN_57."<div class='smalltext'>".EPL_ADLAN_58."</div>
</td>
<td class='forumheader3'>
<td>
<select class='tbox' name='delete_tables'>
<option value='1'>".LAN_YES."</option>
<option value='0'>".LAN_NO."</option>
@ -948,10 +951,10 @@ class pluginManager{
if ($userclasses)
{
$text .= " <tr>
<td class='forumheader3'>
<td>
".EPL_ADLAN_78."<div class='indent'>".$userclasses."</div><div class='smalltext'>".EPL_ADLAN_79."</div>
</td>
<td class='forumheader3'>
<td>
<select class='tbox' name='delete_userclasses'>
<option value='1'>".LAN_YES."</option>
<option value='0'>".LAN_NO."</option>
@ -963,10 +966,10 @@ class pluginManager{
if ($eufields)
{
$text .= " <tr>
<td class='forumheader3'>
<td>
".EPL_ADLAN_80."<div class='indent'>".$eufields."</div><div class='smalltext'>".EPL_ADLAN_79."</div>
</td>
<td class='forumheader3'>
<td>
<select class='tbox' name='delete_xfields'>
<option value='1'>".LAN_YES."</option>
<option value='0'>".LAN_NO."</option>
@ -976,23 +979,22 @@ class pluginManager{
}
$text .="<tr>
<td class='forumheader3'>".EPL_ADLAN_59."<div class='smalltext'>".EPL_ADLAN_60."</div></td>
<td class='forumheader3'>{$del_text}</td>
<td>".EPL_ADLAN_59."<div class='smalltext'>".EPL_ADLAN_60."</div></td>
<td>{$del_text}</td>
</tr>
<tr>
<td colspan='2' class='forumheader' style='text-align:center'>";
</table>
<div class='buttons-bar center'>";
$text .= "<input class='button' type='submit' name='uninstall_confirm' value=\"".EPL_ADLAN_3."\" />&nbsp;&nbsp;
<input class='button' type='submit' name='uninstall_cancel' value='".EPL_ADLAN_62."' onclick=\"location.href='".e_SELF."'; return false;\"/>";
// $frm->admin_button($name, $value, $action = 'submit', $label = '', $options = array());
$text .= "</td>
</tr>
</table>
$text .= "</div>
</fieldset>
</form>
";
$ns->tablerender(EPL_ADLAN_63." ".$tp->toHtml($plug_vars['name'], "", "defs,emotes_off, no_make_clickable"), $text);
$ns->tablerender(EPL_ADLAN_63." ".$tp->toHtml($plug_vars['@attributes']['name'], "", "defs,emotes_off, no_make_clickable"), $text);
}

View File

@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/users_extended.php,v $
| $Revision: 1.14 $
| $Date: 2008-12-06 20:56:40 $
| $Author: e107steved $
| $Revision: 1.15 $
| $Date: 2009-07-10 14:25:22 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
require_once('../class2.php');
@ -308,24 +308,27 @@ class users_ext
{ // Show existing fields
$mode = 'show';
$text = "<div style='text-align:center'>";
$text .= "<table style='".ADMIN_WIDTH."' class='fborder'>
$text .= "<table class='adminlist' cellpadding='0' cellspacing='0'>
<thead>
<tr>
<td class='fcaption'>".EXTLAN_1."</td>
<td class='fcaption'>".EXTLAN_2."</td>";
$text .="<td class='fcaption'>".EXTLAN_4."</td>
<td class='fcaption'>".EXTLAN_5."</td>
<td class='fcaption'>".EXTLAN_6."</td>
<td class='fcaption'>".EXTLAN_7."</td>
<td class='fcaption'>&nbsp;</td>
<td class='fcaption'>".EXTLAN_8."</td>
<th>".EXTLAN_1."</th>
<th>".EXTLAN_2."</th>
<th>".EXTLAN_4."</th>
<th>".EXTLAN_5."</th>
<th>".EXTLAN_6."</th>
<th>".EXTLAN_7."</th>
<th>&nbsp;</th>
<th>".EXTLAN_8."</th>
</tr>
</thead>
<tbody>
";
foreach($catNums as $cn)
{
$text .= "
<tr>
<td class='forumheader' colspan='9' style='text-align:center'>{$catList[$cn][0]['user_extended_struct_name']}</td>
<td colspan='9' style='text-align:center'>{$catList[$cn][0]['user_extended_struct_name']}</td>
</tr>
";
@ -338,13 +341,13 @@ class users_ext
$uVal = str_replace(chr(1), "", $ext['user_extended_struct_default']); // Is this right?
$text .= "
<tr>
<td class='forumheader3'>{$ext['user_extended_struct_name']}<br />[".$tp->toHTML($ext['user_extended_struct_text'], FALSE, "defs")."]</td>
<td class='forumheader3'>".$ue->user_extended_edit($ext,$uVal)."</td>
<td class='forumheader3'>".($ext['user_extended_struct_required'] == 1 ? LAN_YES : LAN_NO)."</td>
<td class='forumheader3'>".r_userclass_name($ext['user_extended_struct_applicable'])."</td>
<td class='forumheader3'>".r_userclass_name($ext['user_extended_struct_read'])."</td>
<td class='forumheader3'>".r_userclass_name($ext['user_extended_struct_write'])."</td>
<td class='forumheader3' style='width:5px'>
<td>{$ext['user_extended_struct_name']}<br />[".$tp->toHTML($ext['user_extended_struct_text'], FALSE, "defs")."]</td>
<td>".$ue->user_extended_edit($ext,$uVal)."</td>
<td>".($ext['user_extended_struct_required'] == 1 ? LAN_YES : LAN_NO)."</td>
<td>".r_userclass_name($ext['user_extended_struct_applicable'])."</td>
<td>".r_userclass_name($ext['user_extended_struct_read'])."</td>
<td>".r_userclass_name($ext['user_extended_struct_write'])."</td>
<td>
<form method='post' action='".e_SELF."'>
<input type='hidden' name='id' value='{$ext['user_extended_struct_id']}.{$ext['user_extended_struct_order']}.{$ext['user_extended_struct_parent']}' />
";
@ -384,7 +387,7 @@ class users_ext
}
}
//Show add/edit form
$text .= "
$text .= "</tbody>
</table>";
}
else
@ -406,12 +409,17 @@ class users_ext
$text .= "
<form method='post' action='".e_SELF."?".e_QUERY."'>
";
$text .= "<table style='".ADMIN_WIDTH."' class='fborder'> ";
<fieldset id='core-user-extended-create'>";
$text .= "
<table cellpadding='0' cellspacing='0' class='adminform'>
<colgroup span='2'>
<col class='col-label' />
<col class='col-control' />
</colgroup>
<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".EXTLAN_10.":</td>
<td style='width:70%' class='forumheader3' colspan='3'>user_";
<td>".EXTLAN_10.":</td>
<td>user_";
if(is_array($current) && $current['user_extended_struct_name'])
{
$text .= $current['user_extended_struct_name']."
@ -430,8 +438,8 @@ class users_ext
</tr>
<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".EXTLAN_12.":</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<td>".EXTLAN_12.":</td>
<td colspan='3'>
<input class='tbox' type='text' name='user_text' size='40' value='".$current['user_extended_struct_text']."' maxlength='50' /><br />
<span class='smalltext'>".EXTLAN_13."</span>
</td>
@ -439,7 +447,7 @@ class users_ext
";
$text .= "<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".EXTLAN_14."</td>
<td >".EXTLAN_14."</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<select onchange='changeHelp(this.value)' class='tbox' name='user_type' id='user_type'>";
foreach($ue->user_extended_types as $key => $val)
@ -460,8 +468,8 @@ class users_ext
$text .= "
<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".EXTLAN_3."</td>
<td style='width:70%' class='forumheader3' colspan='3'>";
<td>".EXTLAN_3."</td>
<td colspan='3'>";
// Start of Values ---------------------------------
$val_hide = ($current['user_extended_struct_type'] != 4) ? "visible" : "none";
@ -548,40 +556,40 @@ class users_ext
</tr>
<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".EXTLAN_16."</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<td>".EXTLAN_16."</td>
<td colspan='3'>
<input class='tbox' type='text' name='user_default' size='40' value='{$current['user_extended_struct_default']}' />
</td>
</tr>
<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".EXTLAN_15."</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<td>".EXTLAN_15."</td>
<td colspan='3'>
<textarea class='tbox' name='user_include' cols='60' rows='2'>{$current_include}</textarea><br />
<span class='smalltext'>".EXTLAN_51."</span><br />
</td>
</tr>
<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".EXTLAN_52."</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<td>".EXTLAN_52."</td>
<td colspan='3'>
<input class='tbox' type='text' name='user_regex' size='30' value='{$current_regex}' /><br />
<span class='smalltext'>".EXTLAN_53."</span><br />
</td>
</tr>
<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".EXTLAN_54."</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<td >".EXTLAN_54."</td>
<td colspan='3'>
<input class='tbox' type='text' name='user_regexfail' size='40' value='{$current_regexfail}' /><br />
<span class='smalltext'>".EXTLAN_55."</span><br />
</td>
</tr>
<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".EXTLAN_44."</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<td>".EXTLAN_44."</td>
<td colspan='3'>
<select class='tbox' name='user_parent'>";
foreach($catNums as $k)
{
@ -594,8 +602,8 @@ class users_ext
</tr>
<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".EXTLAN_18."</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<td>".EXTLAN_18."</td>
<td colspan='3'>
<select class='tbox' name='user_required'>
";
$_r = array('0' => EXTLAN_65, '1' => EXTLAN_66, '2' => EXTLAN_67);
@ -613,30 +621,30 @@ class users_ext
</tr>
<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".EXTLAN_5."</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<td >".EXTLAN_5."</td>
<td colspan='3'>
".r_userclass("user_applicable", $current['user_extended_struct_applicable'], 'off', 'member, admin, classes, nobody')."<br /><span class='smalltext'>".EXTLAN_20."</span>
</td>
</tr>
<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".EXTLAN_6."</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<td>".EXTLAN_6."</td>
<td colspan='3'>
".r_userclass("user_read", $current['user_extended_struct_read'], 'off', 'public, member, admin, readonly, classes')."<br /><span class='smalltext'>".EXTLAN_22."</span>
</td>
</tr>
<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".EXTLAN_7."</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<td>".EXTLAN_7."</td>
<td colspan='3'>
".r_userclass("user_write", $current['user_extended_struct_write'], 'off', 'member, admin, classes')."<br /><span class='smalltext'>".EXTLAN_21."</span>
</td>
</tr>
<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".EXTLAN_49."
<td>".EXTLAN_49."
</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<td colspan='3'>
<select class='tbox' name='user_hide'>
";
if($current_hide)
@ -659,7 +667,9 @@ class users_ext
";
$text .= "<tr>
<td colspan='4' style='text-align:center' class='forumheader'>";
</table>
<div class='buttons-bar center'>
";
// if ((!is_array($current) || $action == "continue") && $sub_action == "")
if ((($mode == 'new') || $action == "continue") && $sub_action == "")
@ -675,11 +685,10 @@ class users_ext
<input class='button' type='submit' name='cancel' value='".EXTLAN_33."' />
";
}
// ======= end added by Cam.
$text .= "</td>
</tr>
</table></form>
$text .= "</div>
</fieldset></form>
";
}
// $text .= "</div>";
@ -771,30 +780,30 @@ class users_ext
$text .= "
<tr>
<td style='width:30%' class='forumheader3'>".EXTLAN_38.":</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<td>".EXTLAN_38.":</td>
<td colspan='3'>
<input class='tbox' type='text' name='user_field' size='40' value='".$current['user_extended_struct_name']."' maxlength='50' />
<br /><span class='smalltext'>".EXTLAN_11."</span>
</td>
</tr>
<tr>
<td style='width:30%' class='forumheader3'>".EXTLAN_5."</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<td>".EXTLAN_5."</td>
<td colspan='3'>
".r_userclass("user_applicable", $current['user_extended_struct_applicable'], 'off', 'member, admin, classes')."<br /><span class='smalltext'>".EXTLAN_20."</span>
</td>
</tr>
<tr>
<td style='width:30%' class='forumheader3'>".EXTLAN_6."</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<td>".EXTLAN_6."</td>
<td colspan='3'>
".r_userclass("user_read", $current['user_extended_struct_read'], 'off', 'public, member, admin, classes, readonly')."<br /><span class='smalltext'>".EXTLAN_22."</span>
</td>
</tr>
<tr>
<td style='width:30%' class='forumheader3'>".EXTLAN_7."</td>
<td style='width:70%' class='forumheader3' colspan='3'>
<td >".EXTLAN_7."</td>
<td colspan='3'>
".r_userclass("user_write", $current['user_extended_struct_write'], 'off', 'member, admin, classes')."<br /><span class='smalltext'>".EXTLAN_21."</span>
</td>
</tr>";
@ -1081,13 +1090,14 @@ function headerjs()
<script type='text/javascript'>
function changeHelp(type) {
//<![CDATA[
var ftype;
var helptext;
";
for($i=1; $i<=9; $i++)
{
$type_const = "UE_LAN_{$i}";
$help_const = "EXTLAN_HELP_{$i}";
$help_const = "\"".str_replace("/","\/","EXTLAN_HELP_{$i}")."\"";
$text .= "
if(type == \"{$i}\")
{
@ -1106,6 +1116,7 @@ function headerjs()
document.getElementById('values').style.display = '';
document.getElementById('db_mode').style.display = 'none';
}
// ]]>
}

View File

@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/wmessage.php,v $
| $Revision: 1.2 $
| $Date: 2008-11-02 12:23:51 $
| $Author: e107steved $
| $Revision: 1.3 $
| $Date: 2009-07-10 14:25:22 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
require_once("../class2.php");
@ -38,6 +38,7 @@ require_once(e_HANDLER.'userclass_class.php');
require_once(e_HANDLER."ren_help.php");
$rs = new form;
$frm = new e_form;
$action == '';
if (e_QUERY)
@ -111,21 +112,21 @@ if ($action == "main" || $action == "")
$wmList = $sql->db_getList();
$text = $rs->form_open("post", e_SELF, "myform_{$gen_id}", "", "");
$text .= "<div style='text-align:center'>
<table class='fborder' style='".ADMIN_WIDTH."'>
<table class='adminlist'>
<tr>
<td class='fcaption' style='width:5%'>ID</td>
<td class='fcaption' style='width:70%'>".WMLAN_02."</td>
<td class='fcaption' style='width:20%'>".WMLAN_03."</td>
<td class='fcaption' style='width:15%'>".LAN_OPTIONS."</td>
<td style='width:5%'>ID</td>
<td style='width:70%'>".WMLAN_02."</td>
<td style='width:20%'>".WMLAN_03."</td>
<td style='width:15%'>".LAN_OPTIONS."</td>
</tr>";
foreach($wmList as $row)
{
$text .= "
<tr>
<td class='forumheader3' style='width:5%; text-align: center; vertical-align: middle'>".$row['gen_id']."</td>
<td style='width:70%' class='forumheader3'>".strip_tags($tp->toHTML($row['gen_ip']))."</td>
<td style='width:70%' class='forumheader3'>".r_userclass_name($row['gen_intdata'])."</td>
<td style='width:15%; text-align:center; white-space: nowrap' class='forumheader3'>
<td style='width:5%; text-align: center; vertical-align: middle'>".$row['gen_id']."</td>
<td style='width:70%'>".strip_tags($tp->toHTML($row['gen_ip']))."</td>
<td style='width:70%'>".r_userclass_name($row['gen_intdata'])."</td>
<td style='width:15%; text-align:center; white-space: nowrap'>
<a href='".e_SELF."?create.edit.{$row['gen_id']}'>".ADMIN_EDIT_ICON."</a>
<input type='image' title='".LAN_DELETE."' name='main_delete[".$row['gen_id']."]' src='".ADMIN_DELETE_ICON_PATH."' onclick=\"return jsconfirm('".LAN_CONFIRMDEL." [ID: {$row['gen_id']} ]')\"/>
</td>
@ -159,20 +160,25 @@ if ($action == "create" || $action == "edit")
$text = "
<div style='text-align:center'>
<form method='post' action='".e_SELF."' id='wmform'>
<table style='".ADMIN_WIDTH."' class='fborder'>
<fieldset id='code-wmessage-create'>
<table cellpadding='0' cellspacing='0' class='adminform'>
<colgroup span='2'>
<col class='col-label' />
<col class='col-control' />
</colgroup>
";
$text .= "
<tr>
<td style='width:20%' class='forumheader3'>".WMLAN_10."</td>
<td style='width:60%' class='forumheader3'>
<td>".WMLAN_10."</td>
<td>
<input type='text' class='tbox' id='wm_caption' name='wm_caption' maxlength='80' style='width:95%' value=\"".$tp->toForm($row['gen_ip'])."\" />
</td>
</tr>";
$text .= "<tr>
<td style='width:20%' class='forumheader3'>".WMLAN_04."</td>
<td style='width:60%' class='forumheader3'>
<td>".WMLAN_04."</td>
<td>
<textarea class='tbox' id='data' name='data' cols='70' rows='15' style='width:95%' onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this)'>".$tp->toForm($row['gen_chardata'])."</textarea>
<br />";
@ -182,19 +188,25 @@ if ($action == "create" || $action == "edit")
$text .= "
</td>
</tr>
<tr><td class='forumheader3'>".WMLAN_03."</td>
<td class='forumheader3'>".r_userclass("wm_active", $row['gen_intdata'], "off", "public,guest,nobody,member,admin,classes")."</td></tr>";
<tr><td>".WMLAN_03."</td>
<td>".r_userclass("wm_active", $row['gen_intdata'], "off", "public,guest,nobody,member,admin,classes")."</td></tr>
</table>";
$text .= "
<tr style='vertical-align:top'>
<td colspan='2' class='forumheader' style='text-align:center'>";
<div class='buttons-bar center'>";
if($sub_action == "edit")
{
$text .= $frm->admin_button('wm_update', LAN_UPDATE, 'update');
}
else
{
$text .= $frm->admin_button('wm_insert', LAN_CREATE);
}
$text .= ($sub_action == "edit") ? "<input class='button' type='submit' name='wm_update' value='".LAN_UPDATE."' />" :
"<input class='button' type='submit' name='wm_insert' value='".LAN_CREATE."' />" ;
$text .= "<input type='hidden' name='wm_id' value='".$id."' />";
$text .= "</td>
</tr>
</table>
$text .= "</div>
</fieldset>
</form>
</div>";
$ns->tablerender(WMLAN_01, $text);
@ -205,32 +217,37 @@ if ($action == "opt") {
global $pref, $ns;
$text = "<div style='text-align:center'>
<form method='post' action='".e_SELF."?".e_QUERY."'>\n
<table style='".ADMIN_WIDTH."' class='fborder'>
<fieldset id='code-wmessage-options'>
<table cellpadding='0' cellspacing='0' class='adminform'>
<colgroup span='2'>
<col class='col-label' />
<col class='col-control' />
</colgroup>
<tr>
<td style='width:70%' class='forumheader3'>
<td>
".WMLAN_05."<br />
<span class='smalltext'>".WMLAN_06."</span>
</td>
<td class='forumheader3' style='width:30%;text-align:center'>". ($pref['wm_enclose'] ? "<input type='checkbox' name='wm_enclose' value='1' checked='checked' />" : "<input type='checkbox' name='wm_enclose' value='1' />")."
<td>". ($pref['wm_enclose'] ? "<input type='checkbox' name='wm_enclose' value='1' checked='checked' />" : "<input type='checkbox' name='wm_enclose' value='1' />")."
</td>
</tr>
<tr>
<td style='width:70%' class='forumheader3'>
<td>
".WMLAN_07."
</td>
<td class='forumheader3' style='width:30%;text-align:center'>". ($pref['wmessage_sc'] ? "<input type='checkbox' name='wmessage_sc' value='1' checked='checked' />" : "<input type='checkbox' name='wmessage_sc' value='1' />")."
<td>". ($pref['wmessage_sc'] ? "<input type='checkbox' name='wmessage_sc' value='1' checked='checked' />" : "<input type='checkbox' name='wmessage_sc' value='1' />")."
</td>
</tr>
<tr style='vertical-align:top'>
<td colspan='2' style='text-align:center' class='forumheader'>
<input class='button' type='submit' name='updateoptions' value='".LAN_SAVE."' />
</td>
</tr>
</table>
<div class='buttons-bar center'>";
$text .= $frm->admin_button('updateoptions', LAN_SAVE);
$text .= "
</div>
</fieldset>
</form>
</div>";

View File

@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/theme_handler.php,v $
| $Revision: 1.31 $
| $Date: 2009-07-09 20:51:59 $
| $Revision: 1.32 $
| $Date: 2009-07-10 14:25:22 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
@ -270,37 +270,7 @@ class themeHandler{
if($mode == "upload") // Show Upload Form
{
if(!is_writable(e_THEME)) {
$ns->tablerender(TPVLAN_16, TPVLAN_15);
$text = "";
}
else
{
require_once(e_HANDLER.'upload_handler.php');
$max_file_size = get_user_max_upload();
$text = "<div style='text-align:center'>
<table style='".ADMIN_WIDTH."' class='fborder'>
<tr>
<td class='forumheader3' style='width: 50%;'>".TPVLAN_13."</td>
<td class='forumheader3' style='width: 50%;'>
<input type='hidden' name='MAX_FILE_SIZE' value='{$max_file_size}' />
<input type='hidden' name='ac' value='".md5(ADMINPWCHANGE)."' />
<input class='tbox' type='file' name='file_userfile[]' size='50' />
</td>
</tr>
<tr>
<td colspan='2' style='text-align:center' class='forumheader'>";
$text .= $this->frm->admin_button('upload', TPVLAN_14, 'submit');
$text .= "
</td>
</tr>
</table>
<br /></div>\n";
}
$ns->tablerender(TPVLAN_26." :: ".TPVLAN_38, $text);
$this -> renderUploadForm();
}
@ -319,6 +289,53 @@ class themeHandler{
echo "</form>\n</div>\n";
}
function renderUploadForm()
{
global $sql,$ns;
if(!is_writable(e_THEME)) {
$ns->tablerender(TPVLAN_16, TPVLAN_15);
$text = "";
}
else
{
require_once(e_HANDLER.'upload_handler.php');
$max_file_size = get_user_max_upload();
$text = "
<div style='text-align:center'>
<table cellpadding='0' cellspacing='0' class='adminform'>
<colgroup span='2'>
<col class='col-label' />
<col class='col-control' />
</colgroup>
<tr>
<td>".TPVLAN_13."</td>
<td>
<input type='hidden' name='MAX_FILE_SIZE' value='{$max_file_size}' />
<input type='hidden' name='ac' value='".md5(ADMINPWCHANGE)."' />
<input class='tbox' type='file' name='file_userfile[]' size='50' />
</td>
</tr>
</table>
<div class='buttons-bar center'>";
$text .= $this->frm->admin_button('upload', TPVLAN_14, 'submit');
$text .= "
</div>
</div>\n";
}
$ns->tablerender(TPVLAN_26." :: ".TPVLAN_38, $text);
}
function renderThemeInfo($theme)
{
@ -331,7 +348,7 @@ class themeHandler{
$text = "<div style='font-weight:bold;margin-bottom:10px'>".TPVLAN_7."</div>
<table class='adminlist' cellpadding='4'>";
<table class='adminlist' cellpadding='0' cellspacing='0'>";
$text .= $author ? "<tr><td style='vertical-align:top; width:24%'><b>".TPVLAN_4."</b>:</td><td style='vertical-align:top'>".$author."</td></tr>" : "";
$text .= $website ? "<tr><td style='vertical-align:top; width:24%'><b>".TPVLAN_5."</b>:</td><td style='vertical-align:top'>".$website."</td></tr>" : "";
$text .= $theme['date'] ? "<tr><td style='vertical-align:top; width:24%'><b>".TPVLAN_6."</b>:</td><td style='vertical-align:top'>".$theme['date']."</td></tr>" : "";
@ -525,10 +542,16 @@ class themeHandler{
$text .= "
<div id='core-thememanager-configure'>
<table class='adminlist'>
<tr><td colspan='3'></td></tr>
<tr><td><b>".TPVLAN_11."</b></td><td>".$theme['version']."</td>
<td class='first last' rowspan='6' style='text-align:center;width:25%'>$newpreview </td></tr>";
<table cellpadding='0' cellspacing='0' class='adminform'>
<colgroup span='2'>
<col class='col-label' />
<col class='col-control' />
</colgroup>
<tr>
<td><b>".TPVLAN_11."</b></td>
<td>".$theme['version']."</td>
<td class='first last' rowspan='6' style='text-align:center;width:25%'>$newpreview </td>
</tr>";
$text .= "<tr><td style='vertical-align:top; width:25%'><b>".TPVLAN_4."</b>:</td><td style='vertical-align:top'>".$author."</td></tr>";
$text .= "<tr><td style='vertical-align:top; width:25%'><b>".TPVLAN_5."</b>:</td><td style='vertical-align:top'>".$website."</td></tr>";

View File

@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/poll/admin_config.php,v $
| $Revision: 1.7 $
| $Date: 2008-12-11 21:13:48 $
| $Author: e107steved $
| $Revision: 1.8 $
| $Date: 2009-07-10 14:25:22 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
require_once("../../class2.php");
@ -139,24 +139,33 @@ $text = "<div style='text-align:center'><div style='padding : 1px; ".ADMIN_WIDTH
if ($poll_total = $sql->db_Select("polls", "*", "poll_type=1"))
{
$text .= "<table class='fborder' style='width:99%'>
$text .= "<table class='adminlist' cellpadding='0' cellspacing='0'>
<colgroup span='3'>
<col style='width:5%' />
<col style='width:75%' />
<col style='width:20%' />
</colgroup>
<thead>
<tr>
<td style='width:5%' class='fcaption'>ID
<th>ID
<input type='hidden' name='del_poll_confirm' id='del_poll_confirm' value='1' />
</td>
<td style='width:75%' class='fcaption'>".POLLAN_3."</td>
<td style='width:20%' class='fcaption'>".POLLAN_4."</td>
</tr>";
</th>
<th>".POLLAN_3."</th>
<th class='center'>".POLLAN_4."</th>
</tr>
</thead>
<tbody>";
while ($row = $sql->db_Fetch()) {
extract($row);
$text .= "<tr>
<td style='width:5%' class='forumheader3'>$poll_id</td>
<td style='width:5%' >$poll_id</td>
<td style='width:75%' class='forumheader3'>".$tp -> toHTML($poll_title, TRUE,"no_hook, emotes_off, defs")."</td>
<td style='width:20%; text-align:center' class='forumheader3'><div>". $rs->form_button("button", "main_edit_{$poll_id}", POLLAN_5, "onclick=\"document.location='".e_SELF."?edit.$poll_id'\""). $rs->form_button("submit", "main_delete_{$poll_id}", POLLAN_6, "onclick=\"confirm_($poll_id)\"")."
</div></td>
</tr>";
}
$text .= "</table>";
$text .= "</tbody></table>";
}
else
{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 788 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/poll/poll_class.php,v $
| $Revision: 1.14 $
| $Date: 2008-11-16 18:01:19 $
| $Author: e107steved $
| $Revision: 1.15 $
| $Date: 2009-07-10 14:25:23 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
@ -473,16 +473,16 @@ class poll
<td colspan='2' class='nforumcaption2'>".LAN_4."</td>
</tr>
<tr>
<td colspan='2' class='forumheader3'>
<td colspan='2'>
<span class='smalltext'>".LAN_386."</span>
</td>
</tr>
<tr><td style='width:20%' class='forumheader3'><div class='normaltext'>".LAN_5."</div></td><td style='width:80%'class='forumheader3'><input class='tbox' type='text' name='poll_title' size='70' value='".$tp->post_toForm($_POST['poll_title'])."' maxlength='200' /></td></tr>";
<tr><td style='width:20%'><div class='normaltext'>".LAN_5."</div></td><td style='width:80%'class='forumheader3'><input class='tbox' type='text' name='poll_title' size='70' value='".$tp->post_toForm($_POST['poll_title'])."' maxlength='200' /></td></tr>";
$option_count = (count($_POST['poll_option']) ? count($_POST['poll_option']) : 1);
$text .= "<tr>
<td style='width:20%' class='forumheader3'>".LAN_391."</td>
<td style='width:80%' class='forumheader3'>
<td style='width:20%'>".LAN_391."</td>
<td style='width:80%'>
<div id='pollsection'>";
for($count = 1; $count <= $option_count; $count++)
@ -501,20 +501,20 @@ class poll
<tr>
<td style='width:20%' class='forumheader3'>".POLL_506."</td>
<td style='width:80%' class='forumheader3'>
<td style='width:20%'>".POLL_506."</td>
<td style='width:80%'>
<input type='radio' name='multipleChoice' value='1'".($_POST['multipleChoice'] ? " checked='checked'" : "")." /> ".POLL_507."&nbsp;&nbsp;
<input type='radio' name='multipleChoice' value='0'".(!$_POST['multipleChoice'] ? " checked='checked'" : "")." /> ".POLL_508."
</td>
</tr>
<tr>
<td style='width:30%' class='forumheader3'>".POLLAN_16."</td>
<td class='forumheader3'>
<td style='width:30%'>".POLLAN_16."</td>
<td>
<input type='radio' name='storageMethod' value='0'".(!$_POST['storageMethod'] ? " checked='checked'" : "")." /> ".POLLAN_17."<br />
<input type='radio' name='storageMethod' value='1'".($_POST['storageMethod'] == 1 ? " checked='checked'" : "")." /> ".POLLAN_18."<br />
<input type='radio' name='storageMethod' value='2'".($_POST['storageMethod'] ==2 ? " checked='checked'" : "")." /> ".POLLAN_19."
</tr>
</td></tr>
";
@ -525,17 +525,21 @@ class poll
$text = "<div style='text-align:center'>
<form method='post' action='$formgo'>
<table style='".ADMIN_WIDTH."' class='fborder'>
<table class='adminform' cellpadding='0' cellspacing='0'>
<colgroup span='2'>
<col class='col-label' />
<col class='col-control' />
</colgroup>
<tr>
<td style='width:30%' class='forumheader3'><div class='normaltext'>".POLLAN_3.":</div></td>
<td style='width:70%'class='forumheader3'>
<td style='width:30%'><div class='normaltext'>".POLLAN_3.":</div></td>
<td style='width:70%'>
<input class='tbox' type='text' name='poll_title' size='70' value='".$tp -> post_toForm($_POST['poll_title'])."' maxlength='200' />";
$option_count = (count($_POST['poll_option']) ? count($_POST['poll_option']) : 1);
$text .= "<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".LAN_OPTIONS." :</td>
<td style='width:70%' class='forumheader3'>
$text .= "</td></tr><tr>
<td style='width:30%;vertical-align:top'>".LAN_OPTIONS." :</td>
<td style='width:70%'>
<div id='pollsection'>";
for($count = 1; $count <= $option_count; $count++)
@ -553,45 +557,45 @@ class poll
</td></tr>
<tr>
<td style='width:30%' class='forumheader3'>".POLLAN_9."</td>
<td style='width:70%' class='forumheader3'>
<td style='width:30%'>".POLLAN_9."</td>
<td style='width:70%'>
<input type='radio' name='multipleChoice' value='1'".($_POST['multipleChoice'] ? " checked='checked'" : "")." /> ".POLLAN_10."&nbsp;&nbsp;
<input type='radio' name='multipleChoice' value='0'".(!$_POST['multipleChoice'] ? " checked='checked'" : "")." /> ".POLLAN_11."
</td>
</tr>
<tr>
<td style='width:30%' class='forumheader3'>".POLLAN_12."</td>
<td style='width:70%' class='forumheader3'>
<td style='width:30%'>".POLLAN_12."</td>
<td style='width:70%'>
<input type='radio' name='showResults' value='0'".(!$_POST['showResults'] ? " checked='checked'" : "")." /> ".POLLAN_13."<br />
<input type='radio' name='showResults' value='1'".($_POST['showResults'] ? " checked='checked'" : "")." /> ".POLLAN_14."
</td>
</tr>
<tr>
<td style='width:30%' class='forumheader3'>".POLLAN_15."</td>
<td class='forumheader3'>".r_userclass("pollUserclass", $_POST['pollUserclass'], 'off', "public,member,admin,classes,matchclass")."</td>
<td style='width:30%'>".POLLAN_15."</td>
<td>".r_userclass("pollUserclass", $_POST['pollUserclass'], 'off', "public,member,admin,classes,matchclass")."</td>
</tr>
<tr>
<td style='width:30%' class='forumheader3'>".POLLAN_16."</td>
<td class='forumheader3'>
<td style='width:30%'>".POLLAN_16."</td>
<td>
<input type='radio' name='storageMethod' value='0'".(!$_POST['storageMethod'] ? " checked='checked'" : "")." /> ".POLLAN_17."<br />
<input type='radio' name='storageMethod' value='1'".($_POST['storageMethod'] ==1 ? " checked='checked'" : "")." /> ".POLLAN_18."<br />
<input type='radio' name='storageMethod' value='2'".($_POST['storageMethod'] ==2 ? " checked='checked'" : "")." /> ".POLLAN_19."
</tr>
</td></tr>
<tr>
<td class='forumheader3'>".POLLAN_20.": </td><td class='forumheader3'>
<td>".POLLAN_20.": </td><td class='forumheader3'>
<input type='radio' name='poll_comment' value='1'".($_POST['poll_comment'] ? " checked='checked'" : "")." /> ".POLLAN_10."
<input type='radio' name='poll_comment' value='0'".(!$_POST['poll_comment'] ? " checked='checked'" : "")." /> ".POLLAN_11."
</td>
</tr>
<tr style='vertical-align:top'>
<td colspan='2' style='text-align:center' class='forumheader'>";
</table>
<div class='buttons-bar center'>";
if (isset($_POST['preview'])) {
$text .= "<input class='button' type='submit' name='preview' value='".POLLAN_21."' /> ";
@ -607,7 +611,7 @@ class poll
$text .= "<input class='button' type='submit' name='reset' value='".POLLAN_25."' /> ";
}
$text .= "</td></tr></table>
$text .= "</div>
</form>
</div>";

View File

@ -9,8 +9,8 @@
* Plugin Administration - gsitemap
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/tinymce/admin_config.php,v $
* $Revision: 1.3 $
* $Date: 2009-07-02 00:13:11 $
* $Revision: 1.4 $
* $Date: 2009-07-10 14:25:23 $
* $Author: e107coders $
*
*/
@ -78,22 +78,26 @@ if($_POST['save_settings']) // is there an if $emessage? $emessage->hasMessage
$text = "<div style='text-align:center'>
<form method='post' action='".e_SELF."' id='linkform'>
<table style='".ADMIN_WIDTH."' class='fborder'>
<form method='post' action='".e_SELF."'>
<fieldset id='plugin-tinymce-config'>
<table cellpadding='0' cellspacing='0' class='adminform'>
<colgroup span='2'>
<col class='col-label' />
<col class='col-control' />
</colgroup>
<tr>
<td style='width:20%' class='forumheader3'>Preview<div style='padding:20px'>[<a href='javascript:start_tinyMce();'>Refresh Preview</a>]
<td>Preview<div style='padding:20px'>[<a href='javascript:start_tinyMce();'>Refresh Preview</a>]
<br /><br />[<a href='#' onclick=\"tinyMCE.execCommand('mceToggleEditor',false,'content');\">Toggle WYSIWYG</a>]
</div>
</td>
<td style='width:80%' class='forumheader3'>
<td>
<textarea id='content' rows='10' cols='10' name='name3' class='tbox' style='width:80%'> </textarea>
</td>
</tr>
<tr>
<td style='width:20%' class='forumheader3'>Installed Plugins</td>
<td style='width:80%' class='forumheader3'><div style='width:80%'>
<td>Installed Plugins</td>
<td><div style='width:80%'>
";
foreach($plug_array as $mce_plg)
@ -109,7 +113,7 @@ if($_POST['save_settings']) // is there an if $emessage? $emessage->hasMessage
</tr>
<tr>
<td class='forumheader3' style='width:20%' >Button Layout</td>
<td>Button Layout</td>
<td style='width:80%' class='forumheader3'>";
for ($i=1; $i<=4; $i++)
{
@ -122,20 +126,17 @@ if($_POST['save_settings']) // is there an if $emessage? $emessage->hasMessage
</tr>
<tr>
<td style='width:20%' class='forumheader3'>Custom TinyMce Javascript</td>
<td style='width:80%' class='forumheader3'>
<td>Custom TinyMce Javascript</td>
<td>
<textarea rows='5' cols='10' name='customjs' class='tbox' style='width:80%'>".$pref['tinymce']['customjs']."</textarea>
</td>
</tr>
<tr style='vertical-align:top'>
<td colspan='2' style='text-align:center' class='forumheader'>";
$text .= "<input class='button' type='submit' name='save_settings' value='".LAN_SAVE."' />";
$text .= "</td>
</tr>
</table>
<div class='buttons-bar center'>";
$text .= "<input class='button' type='submit' name='save_settings' value='".LAN_SAVE."' />";
$text .= "
</div>
</fieldset>
</form>
</div>";