Завершаем с форматированием.
This commit is contained in:
Exile 2014-08-02 22:42:17 +04:00
commit cd40f62cd6
7 changed files with 164 additions and 168 deletions

View file

@ -96,7 +96,6 @@ else if (!empty($_POST['group_update']))
$release_group = isset($_POST['release_group']) ? intval($_POST['release_group']) : 0;
$group_name = isset($_POST['group_name']) ? trim($_POST['group_name']) : '';
$group_desc = isset($_POST['group_description']) ? trim($_POST['group_description']) : '';
$group_moderator = isset($_POST['username']) ? $_POST['username'] : '';
if ($group_name === '')

View file

@ -27,17 +27,19 @@ switch ($mode)
$value = htmlCHR($value);
$this->response['new_value'] = $value;
break;
case 'group_type':
$this->response['new_value'] = $value;
break;
case 'release_group':
$this->response['new_value'] = $value;
break;
default:
$this->ajax_die('Unknown mode');
}
$value_sql = DB()->escape($value, true);
DB()->query("UPDATE ". BB_GROUPS ." SET $mode = $value_sql WHERE group_id = $group_id LIMIT 1");
@ -47,4 +49,3 @@ $this->response['new_value'] = $value;
$this->response['group_id'] = $group_id;
$this->response['mode'] = $mode;
*/

View file

@ -54,9 +54,7 @@ if ($is_moderator)
'GROUP_NAME' => htmlCHR($group_info['group_name']),
'GROUP_ID' => $group_id,
'GROUP_DESCRIPTION' => htmlCHR($group_info['group_description']),
'U_GROUP_URL' => GROUP_URL . $group_id,
'GROUP_TYPE' => $group_type,
'S_GROUP_OPEN_TYPE' => GROUP_OPEN,
'S_GROUP_CLOSED_TYPE' => GROUP_CLOSED,
@ -70,7 +68,6 @@ if ($is_moderator)
));
$template->set_filenames(array('body' => 'group_config.tpl'));
$template->assign_vars(array('PAGE_TITLE' => $lang['GROUP_CONFIGURATION']));
require(PAGE_HEADER);

View file

@ -107,4 +107,3 @@
<!--========================================================================-->
<!-- ENDIF / TPL_GROUP_SELECT -->

View file

@ -1,5 +1,5 @@
<script type="text/javascript">
function manage_group(mode, value){
function manage_group(mode, value) {
ajax.exec({
action : 'manage_group',
mode : mode,
@ -9,14 +9,14 @@
ajax.callback.manage_group = function(data){
console.log(data);
}
}
}
</script>
<h1 class="pagetitle">{PAGE_TITLE}<!-- IF GROUP_NAME --> :: {GROUP_NAME}<!-- ENDIF --></h1>
<p class="nav"><a href="{U_GROUP_URL}">{L_GROUP_RETURN}</a></p>
<form action="{S_GROUPCP_ACTION}" method="post">
{S_HIDDEN_FIELDS}
<table class="forumline pad_4">
<table class="forumline pad_4">
<col class="row1" width="20%">
<col class="row2" width="100%">
<tr>
@ -59,5 +59,5 @@
<td>{L_AVATAR}</td>
<td><input type="file" />&nbsp;<input class="mainoption" type="submit" name="avatarupload" value="{L_UPLOAD_AVATAR_FILE}" /></td>
</tr>
</table>
</table>
</form>