Demo
	
		
			Probiere ClanSphere aus und teste daran herum.
			Demo
		
	
 
      
Spenden
  
    ClanSphere ist freie OpenSource Software.
Bitte unterstützt uns.
    Spenden
  
 
			
				
  
  
  
    Antworten: 0 
      Seite  [1]   | 
  
  
  
      Rouven89 
       
      
      
      
         
      Going for pro  
       
      
      
        
       
       
      Beiträge: 539      | 
     # Thema - 14.03.2010 um 12:07 Uhr
       
      
      hey wollte auch die statischen seiten durchsuchen lassen nur iwie wird noch ein fheler bei mir angezeigt 
 
hier die list.php 
mehr...    
 1.  
2.  
3.  
4.  
5.  
6.  
7.  
8.  
9.  
10.  
11.  
12.  
13.  
14.  
15.  
16.  
17.  
18.  
19.  
20.  
21.  
22.  
23.  
24.  
25.  
26.  
27.  
28.  
29.  
30.  
31.  
32.  
33.  
34.  
35.  
36.  
37.  
38.  
39.  
40.  
41.  
42.  
43.  
44.  
45.  
46.  
47.  
48.  
49.  
50.  
51.  
52.  
53.  
54.  
55.  
56.  
57.  
58.  
59.  
60.  
61.  
62.  
63.  
64.  
65.  
66.  
67.  
68.  
  | 1. / 2. / ... 
 <?php 
// ClanSphere 2009 - www.clansphere.net 
// $Id: list.php 2266 2009-03-21 10:37:39Z duRiel $ 
 
$cs_lang = cs_translate('search'); 
 
$data = array(); 
 
$search_error = 0;  
$data['search']['where'] = '';  
$data['search']['text'] = ''; 
$data['search']['errmsg'] = ''; 
$submit = empty($_REQUEST['submit']) ? 0 : 1; 
 
$data['if']['errmsg'] = false; 
$data['if']['text'] = false; 
 
if(!empty($submit)) { 
  if(!empty($_REQUEST['text'])) { 
    $data['if']['text'] = true; 
    $data['search']['text'] = $_REQUEST['text']; 
    } else { 
    $data['search']['errmsg'] = cs_icon('important'). $cs_lang['error_text'] . cs_html_br(1); 
    $search_error++; 
  }  
  if(!empty($_REQUEST['where'])) { 
    $data['search']['where'] = $_REQUEST['where']; 
    } else { 
    $data['search']['errmsg'] .= cs_icon('important'). $cs_lang['error_modul']; 
    $search_error++; 
  } 
} 
 
$sel = 'selected="selected"'; 
$checked = 'checked="checked"'; 
 
$data['search']['news_check'] = $data['search']['where'] == 'news' ? $sel : ''; 
$data['search']['files_check'] = $data['search']['where'] == 'files' ? $sel : ''; 
$data['search']['static_check'] = $data['search']['where'] == 'static' ? $sel : ''; 
 
 
if(!empty($search_error)) { 
  $data['if']['errmsg'] = true; 
} 
 
echo cs_subtemplate(__FILE__,$data,'search','list'); 
 
if(!empty($submit) AND empty($search_error)) { 
     
  switch ($data['search']['where']) { 
    case 'clans': 
      $target = 'mods/search/mods/clans.php'; 
    break; 
    case 'news': 
      $target = 'mods/search/mods/news.php'; 
    break; 
    case 'files': 
      $target = 'mods/search/mods/files.php'; 
    break; 
    case 'files': 
      $target = 'mods/search/mods/view???.php'; 
    break; 
  } 
  require($target); 
} 
 
?> 
  |  
  
 
ist view richtig oder was muss da rein? 
 
hier die list.tpl 
 
mehr...    
 1.  
2.  
3.  
4.  
5.  
6.  
7.  
8.  
9.  
10.  
11.  
12.  
13.  
14.  
15.  
16.  
17.  
18.  
19.  
20.  
21.  
22.  
23.  
24.  
25.  
26.  
27.  
28.  
29.  
30.  
31.  
32.  
33.  
34.  
35.  
36.  
37.  
38.  
39.  
40.  
41.  
42.  
43.  
44.  
  | 1. / 2. / ... 
  <table class="forum" cellpadding="0" cellspacing="{page:cellspacing}" style="width:{page:width};"> 
  <tr> 
    <td class="headb"><img border="0" src="http://dtpdark.dt.funpic.de/templates/Template/images/header_suche.png" width="668" height="67"></td> 
  </tr> 
  <tr> 
    <td class="left" height="12"></td> 
  </tr> 
  <tr> 
    <td class="leftc">{lang:body_list}</td> 
  </tr> 
</table> 
<br /> 
<form method="post" id="search_list" action="/index/search/list"> 
<table class="forum" cellpadding="0" cellspacing="{page:cellspacing}" style="width:{page:width};"> 
  <tr> 
    <td class="leftc">Text *</td> 
    <td class="leftb"><input type="text" name="text" value="{if:text}{search:text}{stop:text}" maxlength="200" size="50"  /></td> 
  </tr> 
  <tr> 
    <td class="leftc">Kategorie *</td> 
    <td class="leftb"> 
    <select name="where" > 
    <option value="0">----</option> 
    <option value="news" {search:news_check}>{lang:news}</option> 
    <option value="files" {search:files_check}>Dateianhänge:</option> 
    <option value="static" {search:files_check}>Andere Seiten</option> 
    </select> 
    </td> 
  </tr> 
  <tr> 
      <td class="leftc">Optionen</td> 
    <td class="leftb"><input type="submit" name="submit" value="Suche" /> 
    <input type="reset" name="reset" value="Zurücksetzen" /></td> 
  </tr> 
</table> 
</form> 
<br /> 
{if:errmsg} 
<table class="forum" cellpadding="0" cellspacing="{page:cellspacing}" style="width:{page:width};"> 
  <tr> 
    <td class="leftc">{search:errmsg}</td> 
  </tr> 
</table> 
{stop:errmsg}  |  
  
 
mfg
      
      
      
  
------------------ 
http://sc-wiesens.de/ 
 
Der Sport Club "13 Eichen" Wiesens
      
        
       
      Zuletzt editiert von Yeee am 14.03.2010 um 12:07 Uhr (1x Editiert) 
       | 
  
  
     | 
    
            | 
  
  
  
  
  
  
    Antworten: 0 
      Seite  [1]   | 
  
 
  
    | Sie müssen sich registrieren, um zu antworten. |