Ver Mensaje Individual
  #7 (permalink)  
Antiguo 22/06/2008, 19:02
Avatar de nicolyto77
nicolyto77
 
Fecha de Ingreso: marzo-2007
Ubicación: Buenos Aires
Mensajes: 782
Antigüedad: 17 años, 10 meses
Puntos: 12
Exclamación Respuesta: Conteo de Mensajes

Ok, Perdon y muchas gracias.

Ya lo busco y Edito. Saludos

EDITADO:

Aca la tercer parte:

Código PHP:
<br />
    <?php if ($totalRows_rsUserID 0) { // Show if recordset not empty ?>
      <table border="0" cellspacing="0" cellpadding="0" width="165" id="navigation">
        <tr>
          <td width="165" align="center">&nbsp;<br />
            <span class="Estilo1">Panel de Usuario  </span><br /></td>
          </tr>
        
        <tr>
          <td width="165"><br />
            <table width="100%" border="0">
                <tr>
                  <td><span class="Estilo3">Hola <strong><?php echo $row_rsUserID['username']; ?></strong>! Modifica tu Perfil o Cierra Sesion! </span></td>
                </tr>
                <tr>
                  <td><a href="perfil.php">Modificar Perfil</a> </td>
                </tr>
                <tr>
                  <td><span class="Estilo2"><a href="<?php echo $logoutAction ?>">Cerrar Sesion</a></span></td>
                </tr>
              </table>            </td>
          </tr>
        </table>
      <?php // Show if recordset not empty ?>
    <br />
    <br /></p></td>
    <td width="50"><img src="image/mm_spacer.gif" alt="" width="50" height="1" border="0" /></td>
    <td colspan="2" valign="top"><img src="image/mm_spacer.gif" alt="" width="305" height="1" border="0" /><br />
    &nbsp;
    <?php if ($totalRows_rsUserID 0) { // Show if recordset not empty ?>
      <a href="<?php echo $logoutAction ?>">Desconectar</a>
      <?php // Show if recordset not empty ?><br />
    <br />
    <table border="0" cellspacing="0" cellpadding="0" width="305">
        <tr>
          <td align="center" class="pageName">Mensaje N&ordm;<?php echo $row_DetailRS1['id']; ?> </td>
        </tr>

        <tr>
          <td class="bodyText"><p>&nbsp;</p>        </td>
        </tr>
      </table>
    <p><a href="mensajes.php">Mensajes</a> / <?php echo $row_DetailRS1['titulo']; ?><a name="Titulo" id="Titulo"></a></p>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
    <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#003300">
      <tr bgcolor="#CCCCCC">
        <th align="center">Tema #<?php echo $row_DetailRS1['id']; ?></th>
        <th width="20" align="center"><strong><?php echo $row_DetailRS1['titulo']; ?></strong></th>
      </tr>
      <tr>
        <td align="left" valign="top"><p><em><?php echo $row_DetailRS1['descripcion']; ?></em></p>
          <p><?php echo $row_DetailRS1['mensaje']; ?></p></td>
        <td width="20" align="center" valign="top"><p><span class="Estilo6"><?php echo $row_DetailRS1['autor']; ?></span><br />
          <img src="<?php echo $row_DetailRS1['imagen']; ?>" width="45" height="45" hspace="3" vspace="3" border="0" /><br />
          Pais: <?php echo $row_DetailRS1['pais']; ?><br />
          Email: <a href=mailto:<?php echo $row_DetailRS1['email']; ?>><?php echo $row_DetailRS1['email']; ?></a></p>          </td>
      </tr>
      <tr>
        <td align="left" valign="top"><p>Conocimientos Adisionales: </p>
          <p class="Estilo5"><?php echo $row_DetailRS1['adisional']; ?></p>
          <p>| Conocimientos N&ordm; <span class="Estilo4"><?php echo $row_DetailRS1['conocimientos']; ?></span>&nbsp;|</p></td>
        <td width="20" align="left" valign="top"><p>Enviado el <?php echo $row_DetailRS1['fecha']; ?> por <?php echo $row_DetailRS1['autor']; ?></p>
          <p>IP: <?php echo $row_DetailRS1['ip']; ?></p>          </td>
      </tr>
    </table>
    <p>
      <?php if ($totalRows_rsUserID 0) { // Show if recordset not empty ?>
        <a href="#Respuesta" title="Responder" target="_self">Responder</a>...
        <?php // Show if recordset not empty ?></p>
    <hr align="center" width="100%" />
<?php if($totalRows_rsRespuestas 0) { ?>
    <?php do { ?>
      <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#003300">
        <tr bgcolor="#CCCCCC">
          <th align="center">Respuesta #<?php echo $row_rsRespuestas['id']; ?></th>
          <th width="20" align="center">&nbsp;</th>
        </tr>
        <tr>
          <td align="left" valign="top"><p><?php echo $row_rsRespuestas['mensaje']; ?></p>
           [B] <p>Total Mensajes: <?php echo $row_rsRespuestas['mensajes']; ?></p>[/B]</td>
            <td width="20" align="center" valign="top"><p><span class="Estilo6"><?php echo $row_rsRespuestas['autor']; ?></span><br />
                <img src="<?php echo $row_rsRespuestas['imagen']; ?>" width="45" height="45" hspace="3" vspace="3" border="0" />                <br />
              Pais: <?php echo $row_rsRespuestas['pais']; ?><br />
            Email: <a href=mailto:<?php echo $row_rsRespuestas['email']; ?>><?php echo $row_rsRespuestas['email']; ?></a></p>          </td>
          </tr>
        <tr>
          <td align="left" valign="top"><p>Datos del User que Respondio: </p>
              <p class="Estilo5"><?php echo $row_rsRespuestas['adisional']; ?></p>
            <p>| Conocimientos Previos<span class="Estilo4"><?php echo $row_rsRespuestas['conocimientos']; ?></span>&nbsp;|</p></td>
            <td width="20" align="left" valign="top"><p>Enviado el <?php echo $row_rsRespuestas['fecha']; ?> por <?php echo $row_rsRespuestas['autor']; ?></p>
              <p>IP: <?php echo $row_rsRespuestas['ip']; ?></p>            </td>
          </tr>
        </table>
      <br />
      <?php } while ($row_rsRespuestas mysql_fetch_assoc($rsRespuestas)); ?><p>
        <?php } else {
echo 
"No hay Respuestas a tu pedido..."; } ?>
    </p>
<hr align="center" width="100%" />    
    <?php if ($totalRows_rsUserID == 0) { // Show if recordset empty ?>
      <p>Hace falta estar Registrado o Logueado para Responder... </p>
      <?php // Show if recordset empty ?>
    <?php if ($totalRows_rsUserID 0) { // Show if recordset not empty ?>
      <p><u>Respuesta<a name="Respuesta" id="Respuesta"></a></u> </p>
      <form method="post" name="form1" action="<?php echo $editFormAction?>">
        <table align="center">
          <tr valign="baseline">
            <td nowrap align="right">Autor:</td>
              <td><input type="text" name="autor" value="<?php echo $row_rsUserID['username']; ?>" size="32" readonly="readonly"></td>
            </tr>
          <tr valign="baseline">
            <td nowrap align="right">Email:</td>
              <td><input type="text" name="email" value="<?php echo $row_rsUserID['email']; ?>" size="32" readonly="readonly"></td>
            </tr>
          <tr valign="baseline">
            <td nowrap align="right">Imagen:</td>
              <td><input type="text" name="avatar" value="<?php echo $row_rsUserID['avatar']; ?>" size="32" readonly="readonly"></td>
            </tr>
          <tr valign="baseline">
            <td nowrap align="right">Pais:</td>
              <td><input type="text" name="pais" value="<?php echo $row_rsUserID['pais']; ?>" size="32" readonly="readonly"></td>
            </tr>
          <tr valign="baseline">
            <td nowrap align="right">Conocimientos:</td>
              <td><input type="text" name="conocimientos" value="<?php echo $row_rsUserID['conocimientos']; ?>" size="32" readonly="readonly"></td>
            </tr>
          <tr valign="baseline">
            <td nowrap align="right">Mensajes:</td>
              <td><input name="mensajes" type="text" value="<?php echo $row_rsUserID['resp']; ?>" size="32" readonly="readonly"></td>
            </tr>
          <tr valign="baseline">
            <td nowrap align="right" valign="top">Adisional:</td>
              <td><textarea name="adisional" cols="50" rows="5"></textarea>              </td>
            </tr>
          <tr valign="baseline">
            <td nowrap align="right">Ip:</td>
              <td><input type="text" name="ip" value="<?php echo "".$ip.""?>" size="32" readonly="readonly"></td>
            </tr>
          <tr valign="baseline">
            <td nowrap align="right" valign="top">Mensaje:</td>
              <td><p>
                <textarea name="mensaje" cols="50" rows="5"></textarea>
              </p></td>
            </tr>
          <tr valign="baseline">
            <td nowrap align="right">Fecha:</td>
              <td><input type="text" name="fecha" value="<?php echo "".$fecha.""?>" size="32" readonly="readonly"></td>
            </tr>
          <tr valign="baseline">
            <td nowrap align="right">&nbsp;</td>
              <td><input name="Submity" type="submit" class="subHeader" id="Submity" value="Responder"></td>
            </tr>
          </table>
          <input type="hidden" name="id" value="">
        <input type="hidden" name="id_mensajes" value="<?php echo $row_DetailRS1['id']; ?>">
        <input type="hidden" name="MM_insert" value="form1">
        </form>
      <p align="left"><a href="#Titulo" title="Volver" target="_self">Ir arriba <<</a></p>
      <?php // Show if recordset not empty ?></td>
    <td width="126"><img src="image/mm_spacer.gif" alt="" width="50" height="1" border="0" /></td>
        <td width="3" valign="top"><br />
        &nbsp;<br /></td>
    <td width="4">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="7" align="center">Copyright 2008 (c) <strong>SU</strong></td>
  </tr>
</table>

        
</body>
</html>
<?php
mysql_free_result
($rsUserID);

mysql_free_result($DetailRS1);
?>
Adios
__________________
CabaSoft Networks

Última edición por nicolyto77; 22/06/2008 a las 19:58