All pastes #568697 Raw Edit

Stuff

public text v1 · immutable
·published 2007-06-15 17:31 UTC
rendered paste body
  //-----------------------------------------
        // page Information
        //-----------------------------------------
        $this->ipsclass->admin->page_title   = "IP TOOLS";
        $this->ipsclass->admin->page_detail  = "Here you will find a few tasks related to IP Addresses";

		$this->ipsclass->html .= $this->ipsclass->adskin->start_form( array( 1 => array( 'act'  , 'sortips' ),
											      2 => array( 'code' , 'exportips'),
											      3 => array( 'act' , 'iptool'),
											      4 => array( 'section', $this->ipsclass->section_code ),
										 )      );

		$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Export IP Addresses" );

		$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Output results to</b><div class='graytext'>Select the method you would like to get the results</div>",
																		 $this->ipsclass->adskin->form_dropdown( 'exporttype', array( 0 => array( 'html'   , 'Browser' ),
																																		2 => array( 'csv', 'CSV File'    ),
																																	   )
																	))      );

		$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Find matches only</b><div class='graytext'>Very MySQL intensive. Find members using the same ip address</div>",
																		 $this->ipsclass->adskin->form_dropdown( 'findmatch', array( 0 => array( '0'   , 'No' ),
																		 																1 => array( '1'  , 'Yes'          ),
																																	   )
																	))      );
		$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Order By</b>",
																		 $this->ipsclass->adskin->form_dropdown( 'orderby', array( 0 => array( 'name'   , 'Login Name' ),
																		 															1 => array( 'joined'  , 'Registered Date'          ),
																		 															2 => array( 'email'  , 'Email Address'          ),
																																	   )
																	))      );
		$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic( "Select the Usergroups to include in the search [ <a href=\"javascript:checkedAll('theAdminForm', true)\">Check All</a> | <a href=\"javascript:checkedAll('theAdminForm', false)\">Uncheck All</a> ]", "left", "tablesubheader" );

		$getgroups = $this->ipsclass->DB->build_query(array(	'select'   => 'g_id, g_title',
																'from'     => 'groups',
															)
													);
		$getgroups = $this->ipsclass->DB->exec_query($getgroups);
		while( $group = $this->ipsclass->DB->fetch_row($getgroups) )
		{
			$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>$group[g_title]</b>",
																		 $this->ipsclass->adskin->form_checkbox( 'group[' . $group['g_id'] . ']' )
																	)      );
		}

		$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic( "<select id='button' name='sortby'>
												<option value='asc'>Sort by: ASCENDENT</option>
												<option value='desc'>Sort by: DESCENDENT</option>
											  </select>
											 <input type='submit' value='Go!' class='realbutton'></form>", "center", "tablerow2" );

		//$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "<div style=\"float:right;\">".$this->ipsclass->adskin->js_make_button("Add New Project", $this->ad_bugtracker->base_url."req=projects&code=addproject&parent={$this->par['project_id']}")."</div>{$this->par['project_name']} Overview" );
		$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
		$this->ipsclass->admin->output();
	}