Zamknięty przez: ExeQtoR 2009-05-12, 18:24
Problem z kolumną w tabelce
Autor
Wiadomość
Petermechanic
Wymiata!
Pomógł: 34 razy Skąd: Przemyśl
Wysłany: 2008-05-17, 10:14 Problem z kolumną w tabelce
Witam. Mam problem z "Pole Admin'a/Mod'a". Otóż chcę, aby to pole było minimalne, dopasowane do tego, co w nim jest, a to pole wyżej z "Edytuj", "Cytuj" itp. było długie, tak, aby wszystko grało. Screen prezentuje w załączniku. Oto kod(proszę nie zwracać uwagi na PHP):
Kod:
<!-- post id #<?= $skin['tp_id'];?>
<table class="maintable" width="<?= TABLES_WIDTH; ?>" style="border-width: 0px">
<tr>
<td width="17" style="background-image: url('skins/subPurple/images/td_beam_left.gif')"></td>
<td width="100" id="p<? echo $skin['tp_id']; ?>" height="14" class="beam" align="center" style="background-image: url('skins/subPurple/images/td_beam_top.gif')"></td>
<td width="<?= (TABLES_WIDTH -244); ?>" height="14" class="beam" align="center" style="background-image: url('skins/subPurple/images/td_beam_top.gif')">Post</td>
<td width="110" height="15" class="beam" align="center" style="background-image: url('skins/subPurple/images/td_beam_top.gif')"><? echo $skin['lpinfo']; ?></td>
<td width="17" style="background-image: url('skins/subPurple/images/td_beam_right.gif')"></td>
</tr>
<table class="maintable" width="<?= TABLES_WIDTH; ?>" style="border-top: 0px">
<tr>
<td width="116" height="1" class="fitem" align="center" rowspan="<?= $skin['rowspan']; ?>" valign="top">
<a href="user.php?id=<? echo $skin['u_id']; ?>" class="fsmall"><? echo $skin['username']; ?></a><br>
<? echo $skin['avatar']; ?><br><br><br>
</td>
<td width="<?= (TABLES_WIDTH -264); ?>" height="76" class="fitem" align="left" colspan="3" rowspan="<?= $skin['rowspan']; ?>" valign="top">
<p align="left"><span class="fstandard"><? echo $skin['posttext']; ?></span><p class="fsmall" align="left"><? echo $skin['sig']; ?></p></p>
</td>
<td width="148" height="22" class="fitem" align="center" valign="top">
<span class="fsmall">Post <? echo $skin['lno']; ?> </span>
<a href="#p<? echo $skin['tp_id']; ?>" class="fsmall"><b>#<? echo $skin['tp_id']; ?></b></a><br>
<span class="fsmall"><? echo $skin['ldate']; ?>: <b><? echo $skin['pdate']; ?></b></span><br>
<span class="fsmall"><b><?= $skin['lstat']; ?>: </b></span><img src="images/<?= $skin['online']?>" alt="online">
</td>
</tr>
<tr>
<td width="148" class="fitem" align="center" valign="top">
<a href="posting.php?mode=qpost&id=<? echo $skin['p_id']; ?>&t=<? echo $tid; ?>"><img border="0" src="skins/subPurple/images/lng_<? echo $skin['lang']; ?>/quote_small.gif" width="48" onMouseOver="this.style.cursor='hand'; this.src='skins/<?= $default_skin; ?>/images/lng_<?= $default_lang; ?>/quote_small_active.gif'"
onMouseOut="this.src='skins/<?= $default_skin; ?>/images/lng_<?= $default_lang; ?>/quote_small.gif'" alt="quote"></a><br>
<? echo $skin['edit']; ?>
<? echo $skin['user_gg']; ?>
<a href="msgs.php?mode=write&id=<? echo $skin['u_id']; ?>"><img src="skins/subPurple/images/lng_<? echo $skin['lang']; ?>/pm_small.gif" onMouseOver="this.style.cursor='hand'; this.src='skins/<?= $default_skin; ?>/images/lng_<?= $default_lang; ?>/pm_small_active.gif'"
onMouseOut="this.src='skins/<?= $default_skin; ?>/images/lng_<?= $default_lang; ?>/pm_small.gif'" border="0" alt="pw"></a><br>
<img src="images/user_agent/<?= $skin['ua_system']; ?>" alt="<?= $skin['ua_system_desc']; ?>" title="<?= $skin['ua_system_desc']; ?>"> <img src="images/user_agent/<?= $skin['ua_browser']; ?>" alt="<?= $skin['ua_browser_desc']; ?>" title="<?= $skin['ua_browser_desc']; ?>">
</td>
</tr>
<? if ($_SESSION['uid']>0) { if(RANK>0) {?>
<tr>
<td height="40" colspan="3" class="fitem" style="background-color: #FFFF99" align="center" valign="top">
<span class="fsmall"><b><?= $skin['admin'];?></b><br></span>
<span class="fsmall"><?= $skin['L.IP']; ?></span>
<? echo $skin['mode_p_del']; ?>
<a href="http://localhost/DSF/warns.php?mode=add&id=<?= $skin['u_id']; ?>" class="fsmall" style="color: green"><?= $skin['add_warn']; ?></a><br>
<? if (RANK==2) { ?>
<a href="admin/admin_users.php?mode=edit&id=<?= $skin['u_id']; ?>" class="fsmall" style="color: red"><?= $skin['edit_profile']; ?></a><br>
<a href="admin/banlist.php?mode=add&submode=all&ip=<?= $skin['IP']; ?>&uid=<?= $skin['u_id']; ?>" class="fsmall" style="color: red"><?= $skin['ban']; ?></a><br>
<? }?>
</td>
</tr>
<? } }?>
<tr>
<td width="116" height="1" class="fitem" align="center"><span class="fsmall"><?= $skin['warns_pool']; ?></td>
<td width="105" height="1" class="fitem" align="center"><span class="fsmall"><? echo $skin['lposts']; ?>: <b><? echo $skin['posts']; ?></b></span></td>
<td width="153" height="1" class="fitem" align="center"><span class="fsmall"><? echo $skin['lregdate']; ?>: <b><? echo $skin['regdate']; ?></b></span></td>
<td width="228" height="1" class="fitem" align="center"><span class="fsmall"><? echo $skin['llastvisit']; ?>: <b><? echo $skin['lastvisit']; ?></b></span></td>
<td width="142" height="1" class="fitem" align="center"><span class="fsmall"><? echo $skin['lrank']; ?>: <? echo $skin['userrank']; ?></span></td>
</tr>
</table>
<span class="fverysmall"> <br></span>
<!-- end of post id #<?= $skin['tp_id'];?>
Proszę o pomoc!
_________________ XMPP: piotrek@jabder.ath.cx
Asdef
Administrator
Pomógł: 32 razy Skąd: Lodz
Kimimaro2485
Skąd: Z daleka
Wysłany: 2009-05-12, 11:22
Administrator Asdef napisał/a: Komórka wewnątrz komórki, lub div.. ratuje sprawe...
Jeśli chodzi o ten temat to w zupełności zgadzam się z Administratorem, ale tak nawiasem mówiąc to pod jakim adresem lub pod jaką nazwą będzie funkcjonowało Twoje forum Petermechanic???
No i o jakiej będzie tematyce?????
_________________Piszę to co myślę, myślę to co chcę...
Petermechanic
Wymiata!
Pomógł: 34 razy Skąd: Przemyśl
Wysłany: 2009-05-12, 18:05
nie odświeżaj tematów.
Forum będzie obejmowało moje zainteresowania oraz programy, skrypty itp.
Również proszę o EoT
_________________ XMPP: piotrek@jabder.ath.cx
Kimimaro2485
Skąd: Z daleka
Wysłany: 2009-05-12, 18:11
Petermechanic napisał/a: nie odświeżaj tematów.
Forum będzie obejmowało moje zainteresowania oraz programy, skrypty itp.
Również proszę o EoT
Ok, sorki... ((((
_________________Piszę to co myślę, myślę to co chcę...