mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
r593
Завершаем с форматированием.
This commit is contained in:
parent
7495588152
commit
cd40f62cd6
7 changed files with 164 additions and 168 deletions
|
@ -96,7 +96,6 @@ else if (!empty($_POST['group_update']))
|
||||||
$release_group = isset($_POST['release_group']) ? intval($_POST['release_group']) : 0;
|
$release_group = isset($_POST['release_group']) ? intval($_POST['release_group']) : 0;
|
||||||
$group_name = isset($_POST['group_name']) ? trim($_POST['group_name']) : '';
|
$group_name = isset($_POST['group_name']) ? trim($_POST['group_name']) : '';
|
||||||
$group_desc = isset($_POST['group_description']) ? trim($_POST['group_description']) : '';
|
$group_desc = isset($_POST['group_description']) ? trim($_POST['group_description']) : '';
|
||||||
|
|
||||||
$group_moderator = isset($_POST['username']) ? $_POST['username'] : '';
|
$group_moderator = isset($_POST['username']) ? $_POST['username'] : '';
|
||||||
|
|
||||||
if ($group_name === '')
|
if ($group_name === '')
|
||||||
|
|
|
@ -27,17 +27,19 @@ switch ($mode)
|
||||||
$value = htmlCHR($value);
|
$value = htmlCHR($value);
|
||||||
$this->response['new_value'] = $value;
|
$this->response['new_value'] = $value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'group_type':
|
case 'group_type':
|
||||||
$this->response['new_value'] = $value;
|
$this->response['new_value'] = $value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'release_group':
|
case 'release_group':
|
||||||
$this->response['new_value'] = $value;
|
$this->response['new_value'] = $value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
$this->ajax_die('Unknown mode');
|
$this->ajax_die('Unknown mode');
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$value_sql = DB()->escape($value, true);
|
$value_sql = DB()->escape($value, true);
|
||||||
DB()->query("UPDATE ". BB_GROUPS ." SET $mode = $value_sql WHERE group_id = $group_id LIMIT 1");
|
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['group_id'] = $group_id;
|
||||||
$this->response['mode'] = $mode;
|
$this->response['mode'] = $mode;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -54,9 +54,7 @@ if ($is_moderator)
|
||||||
'GROUP_NAME' => htmlCHR($group_info['group_name']),
|
'GROUP_NAME' => htmlCHR($group_info['group_name']),
|
||||||
'GROUP_ID' => $group_id,
|
'GROUP_ID' => $group_id,
|
||||||
'GROUP_DESCRIPTION' => htmlCHR($group_info['group_description']),
|
'GROUP_DESCRIPTION' => htmlCHR($group_info['group_description']),
|
||||||
|
|
||||||
'U_GROUP_URL' => GROUP_URL . $group_id,
|
'U_GROUP_URL' => GROUP_URL . $group_id,
|
||||||
|
|
||||||
'GROUP_TYPE' => $group_type,
|
'GROUP_TYPE' => $group_type,
|
||||||
'S_GROUP_OPEN_TYPE' => GROUP_OPEN,
|
'S_GROUP_OPEN_TYPE' => GROUP_OPEN,
|
||||||
'S_GROUP_CLOSED_TYPE' => GROUP_CLOSED,
|
'S_GROUP_CLOSED_TYPE' => GROUP_CLOSED,
|
||||||
|
@ -70,7 +68,6 @@ if ($is_moderator)
|
||||||
));
|
));
|
||||||
|
|
||||||
$template->set_filenames(array('body' => 'group_config.tpl'));
|
$template->set_filenames(array('body' => 'group_config.tpl'));
|
||||||
|
|
||||||
$template->assign_vars(array('PAGE_TITLE' => $lang['GROUP_CONFIGURATION']));
|
$template->assign_vars(array('PAGE_TITLE' => $lang['GROUP_CONFIGURATION']));
|
||||||
|
|
||||||
require(PAGE_HEADER);
|
require(PAGE_HEADER);
|
||||||
|
|
|
@ -107,4 +107,3 @@
|
||||||
|
|
||||||
<!--========================================================================-->
|
<!--========================================================================-->
|
||||||
<!-- ENDIF / TPL_GROUP_SELECT -->
|
<!-- ENDIF / TPL_GROUP_SELECT -->
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function manage_group(mode, value){
|
function manage_group(mode, value) {
|
||||||
ajax.exec({
|
ajax.exec({
|
||||||
action : 'manage_group',
|
action : 'manage_group',
|
||||||
mode : mode,
|
mode : mode,
|
||||||
|
@ -9,14 +9,14 @@
|
||||||
ajax.callback.manage_group = function(data){
|
ajax.callback.manage_group = function(data){
|
||||||
console.log(data);
|
console.log(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h1 class="pagetitle">{PAGE_TITLE}<!-- IF GROUP_NAME --> :: {GROUP_NAME}<!-- ENDIF --></h1>
|
<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>
|
<p class="nav"><a href="{U_GROUP_URL}">{L_GROUP_RETURN}</a></p>
|
||||||
<form action="{S_GROUPCP_ACTION}" method="post">
|
<form action="{S_GROUPCP_ACTION}" method="post">
|
||||||
{S_HIDDEN_FIELDS}
|
{S_HIDDEN_FIELDS}
|
||||||
<table class="forumline pad_4">
|
<table class="forumline pad_4">
|
||||||
<col class="row1" width="20%">
|
<col class="row1" width="20%">
|
||||||
<col class="row2" width="100%">
|
<col class="row2" width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -59,5 +59,5 @@
|
||||||
<td>{L_AVATAR}</td>
|
<td>{L_AVATAR}</td>
|
||||||
<td><input type="file" /> <input class="mainoption" type="submit" name="avatarupload" value="{L_UPLOAD_AVATAR_FILE}" /></td>
|
<td><input type="file" /> <input class="mainoption" type="submit" name="avatarupload" value="{L_UPLOAD_AVATAR_FILE}" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
Loading…
Add table
Add a link
Reference in a new issue