members list

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    members list

    hi people.
    I wont add status icon and sex icon at this users list:

    PHP Code:
    //////////////////////////////////Members List

    if($action=="members")
    {
        
    addonline(getuid_sid($sid),"Viewing Members List","");
        
    $view $_GET["view"];
        if(
    $view=="")$view="date";
        echo 
    "<head>";
        echo 
    "<title>Members List</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "<img src=\"../images/bdy.gif\" alt=\"*\"/><br/>";
        echo 
    "<a href=\"lists.php?action=members&amp;view=name&amp;sid=$sid\">Order By Name</a><br/>";
        echo 
    "<a href=\"lists.php?action=members&amp;view=date&amp;sid=$sid\">Order By Join Date</a><br/>";
        echo 
    "</p>";
        
    //////ALL LISTS SCRIPT <<

        
    if($page=="" || $page<=0)$page=1;
        
    $num_items regmemcount(); //changable
        
    $items_per_page10;
        
    $num_pages ceil($num_items/$items_per_page);
        if((
    $page>$num_pages)&&$page!=1)$page$num_pages;
        
    $limit_start = ($page-1)*$items_per_page;

        
    //changable sql
        
    if($view=="name")
        {
            
    $sql "SELECT id, name, regdate FROM ibwf_users ORDER BY name LIMIT $limit_start$items_per_page";
        }else{
            
    $sql "SELECT id, name, regdate FROM ibwf_users ORDER BY regdate DESC LIMIT $limit_start$items_per_page";
        }

        echo 
    "<p>";
        
    $items mysql_query($sql);
        
        if(
    mysql_num_rows($items)>0)
        {
        while (
    $item mysql_fetch_array($items))
        {
          
    $jdt date("d-m-y"$item[2]);
          
    $lnk "<a href=\"index.php?action=viewuser&amp;who=$item[0]&amp;sid=$sid\">$item[1]</a> <small>joined: $jdt</small>";
          echo 
    "$lnk<br/>";
        }
        }
        echo 
    "</p>";
        echo 
    "<p align=\"center\">";
        if(
    $page>1)
        {
          
    $ppage $page-1;
          echo 
    "<a href=\"lists.php?action=members&amp;page=$ppage&amp;sid=$sid&amp;view=$view\">«PREV</a> ";
        }
        if(
    $page<$num_pages)
        {
          
    $npage $page+1;
          echo 
    "<a href=\"lists.php?action=members&amp;page=$npage&amp;sid=$sid&amp;view=$view\">Next»</a>";
        }
        echo 
    "<br/>$page/$num_pages<br/>";
        if(
    $num_pages>2)
        {
            
    $rets "<form action=\"lists.php\" method=\"get\">";
            
    $rets .= "<input name=\"page\" style=\"-wap-input-format: '*N'\" size=\"2\"/>";
            
    $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
            
    $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
            
    $rets .= "<input type=\"hidden\" name=\"view\" value=\"$view\"/>";
            
    $rets .= "<input type=\"submit\" value=\"Go To Page\"/>";
            
    $rets .= "</form>";

            echo 
    $rets;
        }
        echo 
    "</p>";
      
    ////// UNTILL HERE >>
        
    echo "<p align=\"center\">";
        echo 
    "<b>9 </b><a accesskey=\"9\" href=\"index.php?action=stats&amp;sid=$sid\"><img src=\"../images/stat.gif\" alt=\"\"/>Site Stats</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";

    how I can add this?

    #2
    Code:
    [COLOR=#000000][COLOR=#FF8000]//////////////////////////////////Members List 
     
    [/COLOR][COLOR=#007700]if([/COLOR][COLOR=#0000BB]$action[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#DD0000]"members"[/COLOR][COLOR=#007700]) 
    { 
        [/COLOR][COLOR=#0000BB]addonline[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]getuid_sid[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$sid[/COLOR][COLOR=#007700]),[/COLOR][COLOR=#DD0000]"Viewing Members List"[/COLOR][COLOR=#007700],[/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700]); 
        [/COLOR][COLOR=#0000BB]$view [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]"view"[/COLOR][COLOR=#007700]]; 
        if([/COLOR][COLOR=#0000BB]$view[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700])[/COLOR][COLOR=#0000BB]$view[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#DD0000]"date"[/COLOR][COLOR=#007700]; 
        echo [/COLOR][COLOR=#DD0000]"<head>"[/COLOR][COLOR=#007700]; 
        echo [/COLOR][COLOR=#DD0000]"<title>Members List</title>"[/COLOR][COLOR=#007700]; 
        echo [/COLOR][COLOR=#DD0000]"<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">"[/COLOR][COLOR=#007700]; 
        echo [/COLOR][COLOR=#DD0000]"</head>"[/COLOR][COLOR=#007700]; 
        echo [/COLOR][COLOR=#DD0000]"<body>"[/COLOR][COLOR=#007700]; 
        echo [/COLOR][COLOR=#DD0000]"<p align=\"center\">"[/COLOR][COLOR=#007700]; 
        echo [/COLOR][COLOR=#DD0000]"<img src=\"../images/bdy.gif\" alt=\"*\"/><br/>"[/COLOR][COLOR=#007700]; 
        echo [/COLOR][COLOR=#DD0000]"<a href=\"lists.php?action=members&amp;view=name&amp;sid=$sid\">Order By Name</a><br/>"[/COLOR][COLOR=#007700]; 
        echo [/COLOR][COLOR=#DD0000]"<a href=\"lists.php?action=members&amp;view=date&amp;sid=$sid\">Order By Join Date</a><br/>"[/COLOR][COLOR=#007700]; 
        echo [/COLOR][COLOR=#DD0000]"</p>"[/COLOR][COLOR=#007700]; 
        [/COLOR][COLOR=#FF8000]//////ALL LISTS SCRIPT << 
     
        [/COLOR][COLOR=#007700]if([/COLOR][COLOR=#0000BB]$page[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#DD0000]"" [/COLOR][COLOR=#007700]|| [/COLOR][COLOR=#0000BB]$page[/COLOR][COLOR=#007700]<=[/COLOR][COLOR=#0000BB]0[/COLOR][COLOR=#007700])[/COLOR][COLOR=#0000BB]$page[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]; 
        [/COLOR][COLOR=#0000BB]$num_items [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]regmemcount[/COLOR][COLOR=#007700](); [/COLOR][COLOR=#FF8000]//changable 
        [/COLOR][COLOR=#0000BB]$items_per_page[/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]10[/COLOR][COLOR=#007700]; 
        [/COLOR][COLOR=#0000BB]$num_pages [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]ceil[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$num_items[/COLOR][COLOR=#007700]/[/COLOR][COLOR=#0000BB]$items_per_page[/COLOR][COLOR=#007700]); 
        if(([/COLOR][COLOR=#0000BB]$page[/COLOR][COLOR=#007700]>[/COLOR][COLOR=#0000BB]$num_pages[/COLOR][COLOR=#007700])&&[/COLOR][COLOR=#0000BB]$page[/COLOR][COLOR=#007700]!=[/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700])[/COLOR][COLOR=#0000BB]$page[/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$num_pages[/COLOR][COLOR=#007700]; 
        [/COLOR][COLOR=#0000BB]$limit_start [/COLOR][COLOR=#007700]= ([/COLOR][COLOR=#0000BB]$page[/COLOR][COLOR=#007700]-[/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700])*[/COLOR][COLOR=#0000BB]$items_per_page[/COLOR][COLOR=#007700]; 
     
        [/COLOR][COLOR=#FF8000]//changable sql 
        [/COLOR][COLOR=#007700]if([/COLOR][COLOR=#0000BB]$view[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#DD0000]"name"[/COLOR][COLOR=#007700]) 
        { 
            [/COLOR][COLOR=#0000BB]$sql [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]"SELECT id, name, regdate,sex FROM ibwf_users ORDER BY name LIMIT $limit_start, $items_per_page"[/COLOR][COLOR=#007700]; 
        }else{ 
            [/COLOR][COLOR=#0000BB]$sql [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]"SELECT id, name, regdate,sex FROM ibwf_users ORDER BY regdate DESC LIMIT $limit_start, $items_per_page"[/COLOR][COLOR=#007700]; 
        } 
     
        echo [/COLOR][COLOR=#DD0000]"<p>"[/COLOR][COLOR=#007700]; 
        [/COLOR][COLOR=#0000BB]$items [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]mysql_query[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$sql[/COLOR][COLOR=#007700]); 
         
        if([/COLOR][COLOR=#0000BB]mysql_num_rows[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$items[/COLOR][COLOR=#007700])>[/COLOR][COLOR=#0000BB]0[/COLOR][COLOR=#007700]) 
        { 
        while ([/COLOR][COLOR=#0000BB]$item [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]mysql_fetch_array[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$items[/COLOR][COLOR=#007700])) 
        { 
    if($item[3]==M)
      {
        $usex = "<img src=\"images/male.gif\" alt=\"M\"/>";
      }else if($item[3]==F){
        $usex = "<img src=\"images/female.gif\" alt=\"F\"/>";
      }else{
        $usex = "<img src=\"smilies/alien.gif\" alt=\"Shemale\"/>";
      }
    
          [/COLOR][COLOR=#0000BB]$jdt [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]date[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"d-m-y"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]$item[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]2[/COLOR][COLOR=#007700]]); 
          [/COLOR][COLOR=#0000BB]$lnk [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]"<a href=\"index.php?action=viewuser&amp;who=$item[0]&amp;sid=$sid\">$item[1]</a> <small>joined: $jdt</small>"[/COLOR][COLOR=#007700]; 
          echo [/COLOR][COLOR=#DD0000]"$usex $lnk<br/>"[/COLOR][COLOR=#007700]; 
        } 
        } 
        echo [/COLOR][COLOR=#DD0000]"</p>"[/COLOR][COLOR=#007700]; 
        echo [/COLOR][COLOR=#DD0000]"<p align=\"center\">"[/COLOR][COLOR=#007700]; 
        if([/COLOR][COLOR=#0000BB]$page[/COLOR][COLOR=#007700]>[/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]) 
        { 
          [/COLOR][COLOR=#0000BB]$ppage [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$page[/COLOR][COLOR=#007700]-[/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]; 
          echo [/COLOR][COLOR=#DD0000]"<a href=\"lists.php?action=members&amp;page=$ppage&amp;sid=$sid&amp;view=$view\">«PREV</a> "[/COLOR][COLOR=#007700]; 
        } 
        if([/COLOR][COLOR=#0000BB]$page[/COLOR][COLOR=#007700]<[/COLOR][COLOR=#0000BB]$num_pages[/COLOR][COLOR=#007700]) 
        { 
          [/COLOR][COLOR=#0000BB]$npage [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$page[/COLOR][COLOR=#007700]+[/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]; 
          echo [/COLOR][COLOR=#DD0000]"<a href=\"lists.php?action=members&amp;page=$npage&amp;sid=$sid&amp;view=$view\">Next»</a>"[/COLOR][COLOR=#007700]; 
        } 
        echo [/COLOR][COLOR=#DD0000]"<br/>$page/$num_pages<br/>"[/COLOR][COLOR=#007700]; 
        if([/COLOR][COLOR=#0000BB]$num_pages[/COLOR][COLOR=#007700]>[/COLOR][COLOR=#0000BB]2[/COLOR][COLOR=#007700]) 
        { 
            [/COLOR][COLOR=#0000BB]$rets [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]"<form action=\"lists.php\" method=\"get\">"[/COLOR][COLOR=#007700]; 
            [/COLOR][COLOR=#0000BB]$rets [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#DD0000]"<input name=\"page\" style=\"-wap-input-format: '*N'\" size=\"2\"/>"[/COLOR][COLOR=#007700]; 
            [/COLOR][COLOR=#0000BB]$rets [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#DD0000]"<input type=\"hidden\" name=\"action\" value=\"$action\"/>"[/COLOR][COLOR=#007700]; 
            [/COLOR][COLOR=#0000BB]$rets [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#DD0000]"<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>"[/COLOR][COLOR=#007700]; 
            [/COLOR][COLOR=#0000BB]$rets [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#DD0000]"<input type=\"hidden\" name=\"view\" value=\"$view\"/>"[/COLOR][COLOR=#007700]; 
            [/COLOR][COLOR=#0000BB]$rets [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#DD0000]"<input type=\"submit\" value=\"Go To Page\"/>"[/COLOR][COLOR=#007700]; 
            [/COLOR][COLOR=#0000BB]$rets [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#DD0000]"</form>"[/COLOR][COLOR=#007700]; 
     
            echo [/COLOR][COLOR=#0000BB]$rets[/COLOR][COLOR=#007700]; 
        } 
        echo [/COLOR][COLOR=#DD0000]"</p>"[/COLOR][COLOR=#007700]; 
      [/COLOR][COLOR=#FF8000]////// UNTILL HERE >> 
        [/COLOR][COLOR=#007700]echo [/COLOR][COLOR=#DD0000]"<p align=\"center\">"[/COLOR][COLOR=#007700]; 
        echo [/COLOR][COLOR=#DD0000]"<b>9 </b><a accesskey=\"9\" href=\"index.php?action=stats&amp;sid=$sid\"><img src=\"../images/stat.gif\" alt=\"\"/>Site Stats</a><br/>"[/COLOR][COLOR=#007700]; 
      echo [/COLOR][COLOR=#DD0000]"<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>"[/COLOR][COLOR=#007700]; 
      echo [/COLOR][COLOR=#DD0000]"</p>"[/COLOR][COLOR=#007700]; 
        echo [/COLOR][COLOR=#DD0000]"</body>"[/COLOR][COLOR=#007700]; 
    }  [/COLOR][/COLOR]
    tru ths
    sigpichttp://happy.srecnica.com/web

    Comment

    Working...
    X