Lithuanian PHP-Fusion Mods Support Site :: PHP-Fusion modifikacijų forumas :: Taisymas
 Spausdinti temą
v6 Vietu sukeitimas
skilerlt
#1 Spausdinti pranešimus
parašyta 2012-01-30 19:06
Pradinukas


Pranešimai: 40
Įstojo: 18.07.10

Noriu vietomis sukeisti headerio stovejimo vieta ir vartotojo paneles su naujausia muzika, bet neiseina man kazko. Va kodas (theme.php):

Atsisiųsti kodą  Kodas
*******************************//*Headeris START*//*****************************/

//*************//1 eilute//*************//


        echo "<table align='center' width='950' height='29' border='0' cellpadding='0' cellspacing='0'><tr>";
       
        echo "<td>";

        echo "<td background='".THEME."images/1.1.gif' border='0' width='950' height='29' alt=''>";

        echo "</td>";



//*************//2 eilute//*************//


        echo "<table align='center' width='950' height='223' border='0' cellpadding='0' cellspacing='0'><tr>";
     
        echo "<td>";

        echo "<td background='".THEME."images/2.1.gif' width='442' height='223' alt='' border='0'>";

        echo "</td>";


        echo "<td>";

        echo "<td background='".THEME."images/2.2.gif' width='237' height='223' alt='' border='0'>";

        //Prisijungimas

echo "<table cellpadding='0' cellspacing='0' width='220' >
<tr>

<td>";

if (iMEMBER) {

   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='220' border='0' cellspacing='0' cellpadding='0' align='left'  style='padding-left:px;'>
<tr>
<td>";
   if ($userdata['user_avatar'] != "") {
   echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='85' height='85' ></center>\n";
   } else {
   echo "<center><img src='".THEME."images/noav.png' width='85' height='85'></center>\n";
   }
   echo "</td><td align='left' class='small2'>";


echo"Labas, <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='small2' >".$userdata['user_name']."</a><br><br>";

echo"<a href='".BASEDIR."messages.php' class='small2'>Žinutės [naujų: <b><span style='color:#9f9f9f'>".sprintf($msg_count)."</span></b>]</a>";if ($msg_count) echo " <a href='".BASEDIR."messages.php?folder=inbox' class='side'><img src='".IMAGES."newpm.gif' alt='".$locale['on108'].$userdata['user_name']."' title='".$locale['on108'].$userdata['user_name']."'></a>\n"; echo"<br>
<a href='".BASEDIR."members.php' class='small2'>Nariai</a><br>
<a href='".BASEDIR."edit_profile.php' class='small2'>Aprašymas</a><br><br>";

   
   echo "<a href='".BASEDIR."setuser.php?logout=yes' class='small2'>Atsijungti</a><br>";


if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<a href='".ADMIN."index.php".$aidlink."' class='small2'>Administracija</a>\n";
   }



echo"</td>";



echo"</tr></table>";

} else {

echo "
<table width='220' border='0' cellspacing='0' cellpadding='0' >
<tr><td>


<table width='220' border='0' cellspacing='0' cellpadding='0' align='left'>
<form name='loginform' method='post' action='".FUSION_SELF."'>

  <tr>
    <td align='right' style='color:#fff;' class='small2' >Vardas: </td>
    <td>&nbsp;<input type='text' name='user_name' class='inputas' style='width:100px;border: 1px solid #999999;color : #ccc;'></td>
  </tr>

<tr><td><td background='".THEME."images/blank.gif border='0' height='3' width='0'></td></tr>

  <tr>
    <td align='right' style='color:#fff;' class='small2'  >Slaptažodis: </td>
    <td>&nbsp;<input type='password' name='user_pass' class='inputas' style='width:100px;border: 1px solid #999999;color : #ccc;'></td>
  </tr>

<tr><td><td background='".THEME."images/blank.gif border='0' height='5' width='0'></td></tr>

  <tr>
    <td align='right' style='color:#fff;' ><input type='checkbox' name='remember_me' value='y' class='small2'> Prisiminti</td>
    <td style='padding-left:25px;'>&nbsp;<input type='submit' name='login' value='Jungtis' class='button'></td>
</tr>
</form>";



   echo"</td></tr></table>";




      

echo"</td></tr></table>";


echo "<center><a href='".BASEDIR."register.php' class='small'><br>Registracija</a>     &nbsp;    &nbsp; ";
   
   echo " <a href='".BASEDIR."lostpassword.php' class='small'>Priminti slaptažodį</a></center>";


}





echo"</td>

</tr></table>\n";


        echo "</td>";



        echo "<td>";

        echo "<td background='".THEME."images/2.3.gif' width='238' height='223' alt='' align='center' border='0'>";

       //Naujausia muzika

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td style='padding-left:20px; padding-top:5px;'>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,17");
 if (dbrows($result) != 0) {
  echo "<table width='100%' cellpadding='0' cellspacing='0'>";
  while ($data = dbarray($result)) {
   echo "<tr>
    <td class='small'>

     <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='hed'>".trimlink($data['download_title'], 31)."</a>
</td>
      </tr>";
  }
  echo "</table>";
 } else {
  echo "<div style='text-align:center'>".$locale['004']."</div>\n";
 }


echo"</td></tr></table>";





Nieks nezino?.. Gal nesupratot ka norejau pasakyt? Dabar headeris stovi kaireje, o naujausia muzika su vartotojo panele desyneje. As noriu kad headeris butu desyneje, o vartotojo informacija su naujausia muzika kaireje.

UP
Redagavo skilerlt 2012-02-01 17:12
 
PM
peršokti į forumą: