Vergleich admin/modules/user/group_promotions.php - 1.4.3 - 1.4.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: group_promotions.php 3981 2008-07-04 21:24:03Z Tikitiki $

 * $Id: group_promotions.php 4338 2009-04-03 23:26:21Z Tikitiki $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 291Zeile 291
		"<=" => $lang->less_than_or_equal_to,
"<" => $lang->less_than
);

		"<=" => $lang->less_than_or_equal_to,
"<" => $lang->less_than
);

	
$form_container->output_row($lang->reputation_count, $lang->reputation_count_desc, $form->generate_text_box('reputationcount', $mybb->input['reputationcount'], array('id' => 'reputationcount'))." ".$form->generate_select_box("reputationtype", $options_type, $mybb->input['reputationtype'], array('id' => 'reputationtype')), 'reputationcount');

 
	
$form_container->output_row($lang->post_count, $lang->post_count_desc, $form->generate_text_box('postcount', $mybb->input['postcount'], array('id' => 'postcount'))." ".$form->generate_select_box("posttype", $options_type, $mybb->input['posttype'], array('id' => 'posttype')), 'postcount');

	
$form_container->output_row($lang->post_count, $lang->post_count_desc, $form->generate_text_box('postcount', $mybb->input['postcount'], array('id' => 'postcount'))." ".$form->generate_select_box("posttype", $options_type, $mybb->input['posttype'], array('id' => 'posttype')), 'postcount');

 
	
$form_container->output_row($lang->reputation_count, $lang->reputation_count_desc, $form->generate_text_box('reputationcount', $mybb->input['reputationcount'], array('id' => 'reputationcount'))." ".$form->generate_select_box("reputationtype", $options_type, $mybb->input['reputationtype'], array('id' => 'reputationtype')), 'reputationcount');

	
$options = array(
"hours" => $lang->hours,

	
$options = array(
"hours" => $lang->hours,

Zeile 309Zeile 309
	$options = array();

$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title'));

	$options = array();

$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title'));

	$options['*'] = $lang->all_user_groups;

 
	while($usergroup = $db->fetch_array($query))
{
$options[(int)$usergroup['gid']] = $usergroup['title'];

	while($usergroup = $db->fetch_array($query))
{
$options[(int)$usergroup['gid']] = $usergroup['title'];

Zeile 359Zeile 358
		if(!trim($mybb->input['requirements']))
{
$errors[] = $lang->error_no_requirements;

		if(!trim($mybb->input['requirements']))
{
$errors[] = $lang->error_no_requirements;

		}


		}


		if(!trim($mybb->input['originalusergroup']))
{
$errors[] = $lang->error_no_orig_usergroup;

		if(!trim($mybb->input['originalusergroup']))
{
$errors[] = $lang->error_no_orig_usergroup;

Zeile 427Zeile 426
		'title' => $lang->add_new_promotion,
'link' => "index.php?module=user/group_promotions&amp;action=add",
'description' => $lang->add_new_promotion_desc

		'title' => $lang->add_new_promotion,
'link' => "index.php?module=user/group_promotions&amp;action=add",
'description' => $lang->add_new_promotion_desc

	);


	);


	$sub_tabs['promotion_logs'] = array(
'title' => $lang->view_promotion_logs,
'link' => "index.php?module=user/group_promotions&amp;action=logs"

	$sub_tabs['promotion_logs'] = array(
'title' => $lang->view_promotion_logs,
'link' => "index.php?module=user/group_promotions&amp;action=logs"

Zeile 470Zeile 469
		"<=" => $lang->less_than_or_equal_to,
"<" => $lang->less_than
);

		"<=" => $lang->less_than_or_equal_to,
"<" => $lang->less_than
);

	
$form_container->output_row($lang->reputation_count, $lang->reputation_count_desc, $form->generate_text_box('reputationcount', $mybb->input['reputationcount'], array('id' => 'reputationcount'))." ".$form->generate_select_box("reputationtype", $options_type, $mybb->input['reputationtype'], array('id' => 'reputationtype')), 'reputationcount');

 
	
$form_container->output_row($lang->post_count, $lang->post_count_desc, $form->generate_text_box('postcount', $mybb->input['postcount'], array('id' => 'postcount'))." ".$form->generate_select_box("posttype", $options_type, $mybb->input['posttype'], array('id' => 'posttype')), 'postcount');

	
$form_container->output_row($lang->post_count, $lang->post_count_desc, $form->generate_text_box('postcount', $mybb->input['postcount'], array('id' => 'postcount'))." ".$form->generate_select_box("posttype", $options_type, $mybb->input['posttype'], array('id' => 'posttype')), 'postcount');

 
	
$form_container->output_row($lang->reputation_count, $lang->reputation_count_desc, $form->generate_text_box('reputationcount', $mybb->input['reputationcount'], array('id' => 'reputationcount'))." ".$form->generate_select_box("reputationtype", $options_type, $mybb->input['reputationtype'], array('id' => 'reputationtype')), 'reputationcount');

	
$options = array(
"hours" => $lang->hours,

	
$options = array(
"hours" => $lang->hours,

Zeile 487Zeile 486
	$options = array();

$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title'));

	$options = array();

$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title'));

	$options['*'] = $lang->all_user_groups;

 
	while($usergroup = $db->fetch_array($query))
{
$options[(int)$usergroup['gid']] = $usergroup['title'];

	while($usergroup = $db->fetch_array($query))
{
$options[(int)$usergroup['gid']] = $usergroup['title'];

Zeile 593Zeile 591
	
$table->output($lang->promotion_logs);


	
$table->output($lang->promotion_logs);


	$query = $db->simple_select("promotions", "COUNT(pid) as promotions");
$total_rows = $db->fetch_field($query, "promotions");

	$query = $db->simple_select("promotionlogs", "COUNT(plid) as promotionlogs");
$total_rows = $db->fetch_field($query, "promotionlogs");

	
echo "<br />".draw_admin_pagination($mybb->input['page'], "20", $total_rows, "index.php?module=user/group_promotions&amp;action=logs&amp;page={page}");


	
echo "<br />".draw_admin_pagination($mybb->input['page'], "20", $total_rows, "index.php?module=user/group_promotions&amp;action=logs&amp;page={page}");