Changeset 316


Ignore:
Timestamp:
04/18/12 11:32:53 (14 months ago)
Author:
petschko
Message:
  • Itemlog Forumlar fertig gestellt

+ Funktion für das Itemlog-Formular

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Forum/includes/lol_control.php

    r315 r316  
    400400        $itemperpage = 20; 
    401401                 
    402                 $code .= "<div align='rigth'>" . $this->generate_paginationn ( "portal.php?mod=lol_control&modus=item_log", $all_records, $itemperpage, $start ) . "</div><br />"; 
     402        $code .= "<div align='rigth'>" . $this->generate_paginationn ( "portal.php?mod=lol_control&modus=item_log", $all_records, $itemperpage, $start ) . "</div><br />"; 
     403         
     404        $code .= $this->itemlog_form ( $data ); 
     405                 
     406                 
     407                return $code; 
     408        } 
     409         
     410         
     411        private function itemlog_form ( $data ) 
     412        { 
     413                $code = ""; 
    403414                 
    404415                $code .= "<div align='center'><b>Diese Funktion ist nicht einsatzbereit!</b><br />Hier kannst du den Item-Log durchsuchen.<br />Zum durchsuchen gebe mindestens die Pflichtfelder (*) an!<br />Info: Felder die leergelassen werden, gelten als \"Suche hier alles\".<br /><table width='75%'><tr><th COLSPAN='2'>Suche</th></tr><tr><td align='center'><table><tr><td><form action='?mod=lol_control&modus=item_log&search=true' method='POST'>"; 
    405                 $code .= "<select name='typ' size='1'>"; 
    406                 if( ! isset ( $data['typ'] ) || $data['typ'] == "all" ) $code .= "<option value='all' selected>Alles</option>"; 
    407                 $code .= "<option value='charname'";  
     416                $code .= "<select name='typ' size='1'><option value='all'"; 
     417                 
     418                if( ! isset ( $data['typ'] ) || $data['typ'] == "all" ) $code .= " selected"; 
     419                $code .= ">Alles (Name)</option><option value='charname'";  
     420                 
    408421                if( $data['typ'] == "charname" ) $code .= " selected"; 
    409422                $code .= ">Charaktername</option><option value='account'";  
     423                 
    410424                if( $data['typ'] == "account" ) $code .= " selected"; 
    411425                $code .= ">Accountname</option><option value='guid'";  
     426                 
    412427                if( $data['typ'] == "guid" ) $code .= " selected"; 
    413428                $code .= ">GUID</option></select><b>*</b>:</td><td><input type='text' name='name'"; 
     429                 
    414430                if( isset ( $data['name'] ) ) $code .= " value='{$data['name']}'"; 
    415431                $code .= "></td></tr><tr><td>Itemname / Id:</td><td><input type='text' name='item'"; 
     432                 
    416433                if( isset ( $data['item'] ) ) $code .= " value='{$data['item']}'"; 
    417                 $code .= "></td></tr></table></td><td><table><tr><td><u>Flags:</u> <i>Wenn keins ausgew&auml;hlt ist, wird nach allen gesucht</i></td></tr>"; 
     434                $code .= "></td></tr><tr><td>Anzahl:</td><td><select name='anz_operator' size='1'><option value='='"; 
     435                 
     436                if( ! isset ( $data['anz_operator'] ) || $data['anz_operator'] == "=" ) $code .= " selected"; 
     437                $code .= ">=</option><option value='>'"; 
     438                 
     439                if( $data['anz_operator'] == ">" ) $code .= " selected"; 
     440                $code .= ">></option><option value='<'"; 
     441                 
     442                if( $data['anz_operator'] == "<" ) $code .= " selected"; 
     443                $code .= "><</option></select> <input type='text' name='anzahl' size='14'"; 
     444                 
     445                if( isset ( $data['anzahl'] ) ) $code .= " value='{$data['anzahl']}'"; 
     446                $code .= "></td></tr><tr><td>Von:</td><td><select name='von' size='1'><option value='now'"; 
     447                 
     448                if( ! isset ( $data['von'] ) || $data['von'] == "now" ) $code .= " selected"; 
     449                $code .= ">Jetzt</option><option value='-1'"; 
     450                 
     451                if( $data['von'] == -1 ) $code .= " selected"; 
     452                $code .= ">vor 1 Woche</option><option value='-2'"; 
     453                 
     454                if( $data['von'] == -2 ) $code .= " selected"; 
     455                $code .= ">vor 2 Wochen</option><option value='-3'"; 
     456                 
     457                if( $data['von'] == -3 ) $code .= " selected"; 
     458                $code .= ">vor 3 Wochen</option><option value='-4'"; 
     459                 
     460                if( $data['von'] == -4 ) $code .= " selected"; 
     461                $code .= ">vor 4 Wochen</option></select></td></tr><tr><td>Bis:</td><td><select name='bis' size='1'><option value='-1'"; 
     462                 
     463                if( $data['bis'] == -1 ) $code .= " selected"; 
     464                $code .= ">vor 1 Woche</option><option value='-2'"; 
     465                 
     466                if( $data['bis'] == -2 ) $code .= " selected"; 
     467                $code .= ">vor 2 Wochen</option><option value='-3'"; 
     468                 
     469                if( $data['bis'] == -3 ) $code .= " selected"; 
     470                $code .= ">vor 3 Wochen</option><option value='-4'"; 
     471                 
     472                if( $data['bis'] == -4 ) $code .= " selected"; 
     473                $code .= ">vor 4 Wochen</option><option value='-5'"; 
     474                 
     475                if( ! isset ( $data['bis'] ) || $data['bis'] == -5 ) $code .= " selected"; 
     476                $code .= ">vor mehr als 4 Wochen</option></select></td></tr></table></td><td><table><tr><td><u>Flags:</u> <i>Wenn keins ausgew&auml;hlt ist, wird nach allen gesucht</i></td></tr>"; 
    418477                $code .= "<tr><td><input type='checkbox' name='flag1' value='1'"; if( $data['flag1'] == 1 ) { $code .= " checked='checked'"; } $code .= "> Item gelootet</td></tr>"; 
    419478                $code .= "<tr><td><input type='checkbox' name='flag2' value='1'"; if( $data['flag2'] == 1 ) { $code .= " checked='checked'"; } $code .= "> Item zerst&ouml;rt</td></tr>"; 
     
    430489                $code .= "<tr><td><input type='checkbox' name='flag13' value='1'"; if( $data['flag13'] == 1 ) { $code .= " checked='checked'"; } $code .= "> Item gewonnen durch W&uuml;rfeln</td></tr>"; 
    431490                 
    432                 $code .= "</td></tr></table></td></tr></table></div>"; 
     491                $code .= "</td></tr></table></td></tr><tr><td COLSPAN='2'align='center'><input type='submit' value='Log Durchsuchen'></td></tr></table></div>"; 
     492                 
     493                 
    433494                 
    434495                return $code; 
Note: See TracChangeset for help on using the changeset viewer.