Ir para conteúdo
Fórum Script Brasil

Parisi

Membros
  • Total de itens

    56
  • Registro em

  • Última visita

Tudo que Parisi postou

  1. Parisi

    Duvida index varias paginas

    Boa noite Usa isso daqui, onde você quer que apareça o conteudo diferente: Ai nos links, você coloca index.php?area=pagina1 ou index.php?area=pagina2 e assim por adiante.. Se você quiser trocar o ?area= é só alterar no código.. E desse jeito ai, se alguém acessar página inexistente, vai abrir a inicial. Isso sempre funcionou pra mim. Espero que tenha ajudado. Abrass
  2. Boa tarde Amigo, entrei no site que você passou ai. Muito simples, no caso do site, no arquivo index.php mostra o limit 8, ou seja, aparece 8 noticias. No proprio site explica. Se você quer que apareça apenas uma, muda o 8 pelo numero de noticias que você quer mostrar, no caso 1. Espero ter ajudado. Abrass
  3. Bom dia. O que você quer é exibir resultados em colunas ?!
  4. Parisi

    redirecionamento fixo

    Cara.. Fui dar uma pesquisa sobre url fixa, pessoa fala sobre iframe na página toda, é mais simples pra manter ela fixa.. Mas eu não aconselho muito não. E tem por esse método .htaccess Achei um forum, que explica como que faz, mas tem que colocar todas as páginas, não sei se é viavel pro teu trabalho.. mas dá uma olhada.. http://forum.imasters.com.br/topic/385231-url-fixo/ Ahhh.. outra coisa que tinha esquecido.. Você pode fazer teu site com AJAX, pelo dominio chega na index e depois com ajax, você só muda o body do teu site.. É uma outra opção... http://forum.imasters.com.br/topic/179515-...ter-a-url-fixa/ Abrass
  5. Parisi

    redirecionamento fixo

    Tá, mas mesmo quando a pessoa navega pelo site, você quer que a URL fique fixa na barra de endereços ? Redirecionamento, quando eu preciso eu uso por PHP mesmo.. Vê se isso serve pra você.. Abrass
  6. Boa noite. Não seria mais facil usar o BETWEEN na consulta pelo sql ?! SELECT * FROM tabela WHERE campo_data BETWEEN ’$datainicio′ AND ’$datafim′; Só foi uma ideia que veio agora, mas nem pensei em como você vai montar o código. rsrs Abrass
  7. Parisi

    redirecionamento fixo

    Boa noite. Posso estar errado, mas pra manter o endereço fixo na barra de endereço, só com iframe na página inteira. Vamos ver se alguém que saiba fazer isso, de outro modo, responde aqui. Assim fico sabendo também.. rsrs Abrass
  8. Bom dia. A sua intenção é fazer um blog, um site normal, uma loja virtual ? Para blog, o melhor e mais usado realmente é o Wordpress, porém você pode criar sites com ele, alterando o layout da forma que você preferir. Para sites, também existem outros como Joomla, Drupal.. Para loja virtual existem diversos também, oscommerce, cubecart, o proprio wordpress com alguns plugins, você tranforma em uma loja virtual, porem por opnião propria, o melhor na parte de loja virtual eu prefiro o Magento, apesar de ser um pouco mais complexo, mas ele tem muito mais opções na parte administrativa. Precisa ver qual a sua intenção, pois todos os CMS tem temas disponiveis na internet que você pode ir adaptando pro seu resultado final. Tem temas free e pagos, ai você quem tem que ver o que está na sua idéia de gastos. Abrass
  9. Bom dia. Você pode fazer a busca em todos os campos, por exemplo: Se a empresa é o SUPERMERCADO BOMDI +, se a pessoa digitar "SUPE" ele irá aparecer. Mas você pode relaciona-los com palavras-chaves sim, fica bem mais amplo a pesquisa que o usuário poderá fazer, não dependendo só de digitar o nome correto. Lembrando, que não existe o certo ou errado, na minha opnião existe o que funciona e o que não funciona, na minha opnião ! Se pra você, isso gera o resultado esperado, então manda bala. Abrass
  10. Bom dia. Desculpa a demora em responder, esta meio corrido esses dias.. rsrs Então Vivian, o lance da carteirinha em uma página, é simples.. é só você usar o seu sistema pra cadastrar e depois uma outra página para mostrar a carteirinha, com a imagem de fundo e com DIV's ou SPAN's você vai posicionando as informações com CSS. Agora pra mandar por e-mail, já é um pouco mais complicado. Posso estar errado, mas não sei se os sistemas de e-mail reconhecem background. As vezes que tentei montar qualquer coisa pra e-mail com BG, não deu certo. O que você pode fazer, é mandar o e-mail com um link com ID de cada cachorrinho, pra pessoa abrir a página e ver a carteirinha. Tenta depois disponibilizar as imagens que vai usar, pra eu tentar te ajudar com os códigos. Até mais Beijo
  11. Boa noite. Isso, você deverá usar um banco de dados. O painel administrativo, nada mais é que um site, você monta a estrutura normal como um site, com as opções que o seu primo irá precisar pra editar as informações. Para essa back-end, você deverá montar as opções em conjunto com o BD, para salvar tudo nele e com uma um sistema de login, para somente o usuario e senha que estiver cadastrado no BD, possa ter acesso. Dei uma googlada rápida, e peguei o primeiro resultado.. Achei bastante interessante. Caso você saiba trabalhar com CSS e JQuery, dá uma olhada. http://www.webmaster.pt/painel-administrat...arte1-9510.html Espero ter ajudado. Abrass
  12. Parisi

    Como decode md5?

    Boa noite. Você pode usar base64_encode, md5 ou crypt para senhas e afins. Para voltar a criptografia do base64_encode é possivel e dessa forma: Porém, se não me engano, quando você usa o modo MD5 ou CRYPT, não é possivel ter o valor da variavel inicial. Tenta alterar o seu código, para base64, se caso uma senha seja cadastrada, você possa ver o seu valor inicial. Espero ter ajudado. Abrass OBS: mais informações em http://br3.php.net/md5
  13. Parisi

    Ajuda layout php zend

    Boa tarde. Você viu o código que eu te passei ? É que sem esse sistema seu, fica dificil eu montar pra testar.. Mas o que gera as colunas é o código.. <?php foreach( $this->users as $user ): ?> <table border="0" cellpadding="0" style="border-collapse: collapse" align="center"> <tr> <? // Você define o número de Colunas desejadas $colunas = 5; // Criamos um verificador, para contagem $i = 1; // Aqui é parte do truque, fizemos um calculo, dividindo nosso $i pelo número de colunas $resto = $i%$colunas; ?> <td width="140" height="150" align="center" valign="top"> <?php echo $this->htmlLink($user->getHref(), $this->itemPhoto($user, 'thumb.icon')) ?> <?php if( $this->viewer()->getIdentity() ): ?> <?php echo $this->userFriendship($user) ?> <?php endif; ?> <?php echo $this->htmlLink($user->getHref(), $user->getTitle()) ?> <?php echo $user->status; ?> <?php if( $user->status != "" ): ?> <?php echo $this->timestamp($user->status_date) ?> <?php endif; ?> </td> <? // Aqui vem o truque, se o $resto for igual 0, iniciamos uma nova linha de dados na tabela, fechando a anterior com o </tr> if($resto == 0){ print "</tr>"; print "<tr>"; } // Incrementamos +1 no $i ao final de cada loop do WHILE $i++; // Se o $resto for diferente de 0, fecha a linha da tabela, com o </tr> if($resto != 0){ ?> <? } ?> </table> <?php endforeach; ?> Não sei se isso dai vai funcionar, mas vai testando.. rsrsrs Abrass
  14. Boa tarde. Cara, eu não entendi porque você abre vários <html> e fecha </html>. O erro tá informando a respeito disso. Tenta colocar esse daqui: <?php include "pages-setting.php"; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title><?=$pagetitle;?></title> <link href="style.css" rel="stylesheet" type="text/css"> <!-- LEECHED FROM www.xxxxxxxx ---> <style type="text/css"> <!-- .style3 { font-size: 36px; font-family: "Baveuse 3D"; color: #FF9300; font-weight: bold; } .style7 { font-family: "Times New Roman", Times, serif; font-size: 16px; } .style15 { font-size: 16px; font-weight: bold; } .style20 {font-size: 11px} .style29 {font-size: 8px} a:link { color: #009900; } .style31 {font-size: 9px} --> </style></head> <body > <table cellpadding="0" cellspacing="0" border="0" align="center" style="width:100%; height:900px "> <tr> <td valign="top" style=" width:100%; height:900px " > <table border="0" cellspacing="0" cellpadding="0" style="width:100% "> <tr> <td valign="top" style="width:100%; background:URL(images/tall1.jpg) repeat-x" height="799" align="center"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" width="702" height="160"> <table border="0" cellspacing="0" cellpadding="0"> <!--DWLayoutTable--> <tr> <td width="702" height="160" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="702" height="159"> <param name="movie" value="flash/header.swf"> <param name="quality" value="high"> <embed src="flash/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="702" height="159"></embed> </object></td> </tr> </table> </td> </tr> <tr> <td valign="top" width="702" height="639"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" width="439" height="639" style="background-color:#292929 "> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/back_bot.gif) no-repeat bottom; height:100%"> <!--DWLayoutTable--> <tr> <td width="439" height="207" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="439" height="207"> <param name="movie" value="flash/banner.swf"> <param name="quality" value="high"> <embed src="flash/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="439" height="207"></embed> </object></td> </tr> <tr> <td valign="top" style="background:URL(images/back2.jpg) no-repeat top right; height:100%"> <div style="margin-left:25px; margin-top:18px "> <div align="left"> <p><em><span class="style3"> <img src="images/1_w1.gif" width="34" height="34"></span></em><span class="style7"> </span> <span class="style15">LATEST</span> <br> <br style="line-height:11px "> <br> Music</p> <p align="center"><span class="style29"><a href="list.php?abc=a">A</a> | <a href="list.php?abc=b">B</a> | <a href="list.php?abc=c">C</a> | <a href="list.php?abc=d">D</a> | <a href="list.php?abc=e">E</a> | <a href="list.php?abc=f">F</a> | <a href="list.php?abc=g">G</a> | <a href="list.php?abc=h">H</a> | <a href="list.php?abc=i">I</a> | <a href="list.php?abc=j">J</a> | <a href="list.php?abc=k">K</a> | <a href="list.php?abc=l">L</a> | <a href="list.php?abc=m">M</a> | <a href="list.php?abc=n">N</a> | <a href="list.php?abc=o">O</a> | <a href="list.php?abc=p">P</a> | <a href="list.php?abc=q">Q</a> | <a href="list.php?abc=r">R</a> | <a href="list.php?abc=s">S</a> | <a href="list.php?abc=t">T</a> | <a href="list.php?abc=u">U</a> | <a href="list.php?abc=v">V</a> | <a href="list.php?abc=w">W</a> | <a href="list.php?abc=x">X</a> | <a href="list.php?abc=y">Y</a> | <a href="list.php?abc=z">Z</a> </span> </p> </div> <table border="0" cellspacing="0" cellpadding="0"> <!--DWLayoutTable--> <?php include ("config.php"); mysql_connect($db_host,$db_user,$db_pass) or die(mysql_error()); mysql_select_db($db_name) or die(mysql_error()); $result = mysql_query("SELECT * FROM mp3 order by id desc LIMIT 3"); while($r=mysql_fetch_array($result)) { $album=$r["album"]; $artist=$r["artist"]; $id=$r["id"]; $img=$r["img"]; $date=$r["date"]; ?> <tr> <td colspan="2" rowspan="5" valign="top" ><div align="center"><? echo "<img border='0' src="; if ($img=="") { echo 'images/nopic.gif'; } else { echo "$img"; } echo" width='70' height='60'>"; ?></div></td> <td width="13" height="18" ></td> <td width="176" valign="top" >Artist : <?=$artist?></td> <td width="63" ></td> <td width="16" ></td> <td width="23" ></td> </tr> <tr> <td height="18" ></td> <td valign="top" >Album : <?=$album?> </td> <td ></td> <td ></td> <td ></td> </tr> <tr> <td height="18" ></td> <td valign="top" >Added Date : <?=$date?> </td> <td ></td> <td ></td> <td ></td> </tr> <tr> <td height="19" ></td> <td colspan="2" valign="top" ><div align="center"><a href="download.php?id=<?=$id?>">Click Here To Download <?=$album?> Album</a> </div></td> <td > </td> <td ></td> </tr> <tr> <td height="19" ></td> <td > </td> <td > </td> <td > </td> <td ></td> </tr> <tr> <td width="13" height="19"></td> <td colspan="5" valign="top"><div align="center"><img src="images/hl.gif" alt="" width="300"></div></td> <td> </td> </tr> <tr> <td height="1"></td> <td width="96"></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <? } ?> </table> <p><br style="line-height:13px "> <img src="images/hl.gif" alt=""><br> </p> <p>Video </p> <p align="center"><span class="style29"><a href="video.php?abc=a">A</a> | <a href="video.php?abc=b">B</a> | <a href="video.php?abc=c">C</a> | <a href="video.php?abc=d">D</a> | <a href="video.php?abc=e">E</a> | <a href="video.php?abc=f">F</a> | <a href="video.php?abc=g">G</a> | <a href="video.php?abc=h">H</a> | <a href="video.php?abc=i">I</a> | <a href="video.php?abc=j">J</a> | <a href="video.php?abc=k">K</a> | <a href="video.php?abc=l">L</a> | <a href="video.php?abc=m">M</a> | <a href="video.php?abc=n">N</a> | <a href="video.php?abc=o">O</a> | <a href="video.php?abc=p">P</a> | <a href="video.php?abc=q">Q</a> | <a href="video.php?abc=r">R</a> | <a href="video.php?abc=s">S</a> | <a href="video.php?abc=t">T</a> | <a href="video.php?abc=u">U</a> | <a href="video.php?abc=v">V</a> | <a href="video.php?abc=w">W</a> | <a href="video.php?abc=x">X</a> | <a href="video.php?abc=y">Y</a> | <a href="video.php?abc=z">Z</a> </span> </p> <table border="0" cellspacing="0" cellpadding="0"> <!--DWLayoutTable--> <tr> <td width="414" height="200" valign="top"><?php include ("config.php"); mysql_connect($db_host,$db_user,$db_pass) or die(mysql_error()); mysql_select_db($db_name) or die(mysql_error()); $result = mysql_query("SELECT * FROM video order by id desc LIMIT 3"); while($r=mysql_fetch_array($result)) { $video=$r["video"]; $artist=$r["artist"]; $id=$r["id"]; $img=$r["img"]; ?> <style type="text/css"> <!-- .style1 {font-size: 12px} --> </style> <table width="406" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td colspan="2" rowspan="7" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="121" height="126" valign="top" background="images/1_back3.jpg"><p> </p> <p align="center"><? echo "<img border='0' src="; if ($img=="") { echo 'images/nopic.gif'; } else { echo "$img"; } echo" width='80' height='70'>"; ?></p></td> </tr> <tr> <td height="18" valign="top" background="images/1_back3.jpg"><div align="center"><?=$artist?> </div></td> </tr> <tr> <td height="1"></td> </tr> <tr> <td height="19" valign="top" bgcolor="#000000"><div align="center"><?=$video?> </div></td> </tr> </table></td> <td width="17" height="17"></td> <td width="10"></td> <td width="11"></td> <td colspan="3" valign="top"><div align="center" class="style1">Video Details </div></td> <td width="10"></td> <td width="40"></td> </tr> <tr> <td height="16"></td> <td></td> <td></td> <td width="75"></td> <td width="100"></td> <td width="23"></td> <td></td> <td></td> </tr> <tr> <td height="19"> </td> <td colspan="3" valign="top"><span class="style1">Artist : </span></td> <td valign="top"><?=$artist?> </td> <td></td> <td></td> <td></td> </tr> <tr> <td height="7"></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="19"> </td> <td colspan="3" valign="top"><span class="style1">Video Name : </span></td> <td valign="top"><?=$video?> </td> <td></td> <td></td> <td></td> </tr> <tr> <td height="68"></td> <td> </td> <td> </td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="19"></td> <td> </td> <td colspan="5" valign="top"><span class="style1"><a href="vdownload.php?id=<?=$id?>">Click Here To Watch <?=$video?> Video </a></span></td> <td> </td> </tr> <tr> <td width="13" height="10"></td> <td width="107"></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="5"></td> <td colspan="9" valign="top"><img src="images/hl.gif" width="393" height="1"></td> </tr> <tr> <td height="8"></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> </table> <? } ?> <?php mysql_close(); ?> </td> </tr> </table> <br style="line-height:14px "> </div> </td> </tr> </table> </td> <td valign="top" width="263" height="639" style="background-color:#404040 "> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" width="10" height="639"></td> <td valign="top" width="243" height="639"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" width="243" height="40"> <table border="0" cellspacing="0" cellpadding="0"> <!--DWLayoutTable--> <tr> <td width="156" height="13"></td> <td width="87" rowspan="2" align="right" valign="top" style="background:URL(images/back3.gif) no-repeat left top"> <div align="center"><br style="line-height:13px "> <center> <div id=Clock align=Center style="font-family Tahoma; font-size: 11; color:#9C9C9C"> </div> &lt;script language = "JavaScript"> //This script was created by Gary Perry //Email: shadow_chaser@hotmail.com //Web: http://www.garyperry.com //This script will display a real time clock at the top of your webpage. //Put this code in the body section of your webpage, and that's all //there is to it. No images to worry about, nothing, except it //only works for IE 4 and above. //Change the color of the font above in the div tag to match your webpage //colors. function tick() { var hours, minutes, seconds, ap; var intHours, intMinutes, intSeconds; var today; today = new Date(); intHours = today.getHours(); intMinutes = today.getMinutes(); intSeconds = today.getSeconds(); switch(intHours){ case 0: intHours = 12; hours = intHours+":"; ap = "A.M."; break; case 12: hours = intHours+":"; ap = "P.M."; break; case 24: intHours = 12; hours = intHours + ":"; ap = "A.M."; break; default: if (intHours > 12) { intHours = intHours - 12; hours = intHours + ":"; ap = "P.M."; break; } if(intHours < 12) { hours = intHours + ":"; ap = "A.M."; } } if (intMinutes < 10) { minutes = "0"+intMinutes+":"; } else { minutes = intMinutes+":"; } if (intSeconds < 10) { seconds = "0"+intSeconds+" "; } else { seconds = intSeconds+" "; } timeString = hours+minutes+seconds+ap; Clock.innerHTML = timeString; window.setTimeout("tick();", 100); } window.onload = tick; </script> </div></td> </tr> <tr> <td height="27" valign="top"><div align="center"> <center> &lt;script language="JavaScript"> <!-- This figures out what day of the week it is, and the date, and year. --> <!-- s_date = new Date(); var weekDay = ""; selectMonth = new Array(12); selectMonth[0] = "January"; selectMonth[1] = "February"; selectMonth[2] = "March"; selectMonth[3] = "April"; selectMonth[4] = "May"; selectMonth[5] = "June"; selectMonth[6] = "July"; selectMonth[7] = "August"; selectMonth[8] = "September"; selectMonth[9] = "October"; selectMonth[10] = "November"; selectMonth[11] = "December"; if(s_date.getDay() == 1){ weekDay = "Monday"; } if(s_date.getDay() == 2){ weekDay = "Tuesday"; } if(s_date.getDay() == 3){ weekDay = "Wednesday"; } if(s_date.getDay() == 4){ weekDay = "Thursday"; } if(s_date.getDay() == 5){ weekDay = "Friday"; } if(s_date.getDay() == 6){ weekDay = "Saturday"; } if(s_date.getDay() == 7){ weekDay = "Sunday"; } if(s_date.getDay() == 0){ weekDay = "Sunday"; } var setYear = s_date.getYear(); var BName = navigator.appName; if(BName == "Netscape"){ var setYear = s_date.getYear() + 1900; } document.write(weekDay + ", " + selectMonth[s_date.getMonth()] + " " + s_date.getDate() + ", " + setYear); // --> </script> </div></td> </tr> </table> </td> </tr> <tr> <td valign="top" width="243" height="210" style="background-color:#292929 "> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/tall_b.gif) repeat-x top; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/tall_b.gif) repeat-y right; width:100%; height:100%"> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/tall_b.gif) repeat-x bottom; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/tall_b.gif) repeat-y left; width:100%; height:100%"> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/l_t.gif) no-repeat left top; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/r_t.gif) no-repeat right top; width:100%; height:100%"> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/l_b.gif) no-repeat left bottom; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/r_b.gif) no-repeat right bottom; width:100%; height:100%"> <div style="margin-left:11px; margin-top:12px "> <p align="center">Welcome To <?=$sitename?> </p> <p align="center">This Website Powered By Persian MP3 Which is writen by A.Ghotbi (Persian Script Team),This Script Is Completely Free And You Can Download It From Www.Persianscript.com. If You Have Any Comments or Sugestion You can Contact us : nomad_6_6_6@hotmail.com and nomad_6_6_6@yahoo.com, And You Can Also contact Us With The Form In Contact Us page of Our Official Website. And If You Need Any CMS Script You Can Also Order It And We Will Do It For Free!!!</p> </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td valign="top" width="243" height="10"></td> </tr> <tr> <td valign="top" width="243" height="150"><a href="#"><img src="images/ban2.jpg" alt="" border="0"></a></td> </tr> <tr> <td valign="top" width="243" height="10"></td> </tr> <tr> <td valign="top" width="243" height="208" style="background-color:#292929 "> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/tall_b.gif) repeat-x top; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/tall_b.gif) repeat-y right; width:100%; height:100%"> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/tall_b.gif) repeat-x bottom; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/tall_b.gif) repeat-y left; width:100%; height:100%"> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/l_t.gif) no-repeat left top; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/r_t.gif) no-repeat right top; width:100%; height:100%"> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/l_b.gif) no-repeat left bottom; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/r_b.gif) no-repeat right bottom; width:100%; height:100%"> <div style="margin-left:11px; margin-top:15px "> <p>Request You Favorite Song/Video</p> <form action="musicrequest.php" method="post" name="form1" target="_blank"> <p align="left">Your Name : <input name="your_name" type="text" id="your_name"> </p> <p align="left">Your Email : <input name="your_email" type="text" id="your_email"> </p> <p align="left">Type : <select name="type" id="type"> <option>---------</option> <option>Album</option> <option>Music</option> <option>Video</option> </select> </p> <p align="left"><span class="style20">Artist : </span> <input name="artist" type="text" id="artist"> </p> <p align="left"><span class="style20">Album/Music/Video name : </span> <input name="album_name" type="text" id="album_name"> </p> <p align="center"> <input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"> <br> </p> </form> </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td valign="top" width="243" height="11"></td> </tr> </table> </td> <td valign="top" width="10" height="639"></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td valign="top" style="width:100%; background:URL(images/tall2.gif) repeat-x;" height="101"> <table border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td valign="top" width="702" height="101" align="center" class="pol"> <br style="line-height:30px "> <a href="#" class="pol"><? include ("dn-menu.php"); ?> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </body> </html> Eu retirei as tags <HTML> desnecessária... Se não der certo, posta novamente.. Abrass
  15. Parisi

    Ajuda layout php zend

    Boa tarde. Olha, quando eu mexia bastante com Magento, eu alterava bastante coisa. Acredito ser possivel sim, mas tem que ir organizando tudo certinho e testando.. Ohh.. eu uso esse esquema aqui, quando preciso fazer colunas com resultado do BD.. <table border="0" cellpadding="0" style="border-collapse: collapse" align="center"> <tr> <? include "conecta.php"; // Conecta ao banco de dados // Você define o número de Colunas desejadas $colunas = 6; // Criamos um verificador, para contagem $i = 1; // Fizemos a nossa query normal no Banco de Dados // E iniciamos a exibição dos dados com o WHILE $q_produto = mysql_query("SELECT * FROM tabela_qualquer"); while($produto = mysql_fetch_object($q_produto)){ // Aqui é parte do truque, fizemos um calculo, dividindo nosso $i pelo número de colunas $resto = $i%$colunas; ?> <td width="140" height="150" align="center" valign="top"> AQUI VOCÊ MONTA AS INFORMAÇÕES </td> <? // Aqui vem o truque, se o $resto for igual 0, iniciamos uma nova linha de dados na tabela, fechando a anterior com o </tr> if($resto == 0){ print "</tr>"; print "<tr>"; } // Incrementamos +1 no $i ao final de cada loop do WHILE $i++; } // Se o $resto for diferente de 0, fecha a linha da tabela, com o </tr> if($resto != 0){ ?> <? } ?> </table> Só que assim, eu pego as informações do BD e faço as colunas, pelo while.. Tenta alterar ai pra ver se consegue, porque eu precisava testar com os códigos do proprio sistema que você tem ai, pra te dar o código certo... Se não conseguir, posta de novo.. Abrass
  16. Parisi

    Ajuda layout php zend

    Boa tarde. É um site pronto com back-end ? Lá não existe a opção de alterar entre Grid ou List ? Abrass
  17. Boa noite. Bom, eu deu uma olhada beeeeem por cima mesmo.. rsrs Mas você tá colocando <? $cepbanco ?> Tenta colocar um echo ou print antes: <? print $cepbanco ?> Vê se é isso mesmo, se não for, eu tenho testar aqui.. Abrass
  18. Parisi

    laço de repetiçao

    Tu tá querendo fazer SPAM em mural de recados ? rsrsrs brincadeira.. Abrass
  19. Parisi

    Duvida simples.

    Boa noite. É basicamente isso mesmo.. Salva o formulário em uma página e coloca como action a pagina para mostrar, no caso a mostra.php index.php mostra.php Só complementando a resposta do Marko Neto.. Abrass
  20. Boa tarde.. Você está usando "$tamanho do arquivo" com espaços ?
  21. Boa tarde. Então, eu também pensei nesse esquema de IF's, mas colocando o "http://messenger.services.live.com/users/78216eb35f72e3e4@apps.messenger.live.com/presenceimage?mkt=pt-br" como um link, acho que não resolve.. porquê vai resultar nesse mesmo link.. Porque com esse link, o sistema do MSN reconhece o seu status e te redireciona pro link da imagem: "http://www.wlmessenger.net/static/img/presence/Offline.gif" O que precisava, era com alguma váriavel abrir o primeiro link, pra ser redirecionado e pegar o resultado, que é o link da imagem. Daí era simples fazer o IF. Mas eu não sei se abrir um link que é redirecionado pra outro, rola com PHP.. :wacko: Ainda to quebrando a cabeça aqui, mas não cheguei a um resultado.. Mas vamos tentando.. rsrsrs Abrass
  22. Parisi

    Pagina com combobox

    Pelo que eu entendi, ele quer que fique: Onde [2] é o List/Menu, que mostra a página atual e dá opção de escolher qual página quer abrir.. Abrass
  23. Quando você acessa a página que você mencionou no primeiro post, e habilita o MSN e depois vai no editor de HTML, pra escolher o modelo e tal.. Observe que no código que fica abaixo, irá aparecer um código, que é referente ao seu contato. Ele fica depois de É um código com numeros e letras tipo: "3d4bf0ee208ad12" É só você substituir o seu código nos lugares que eu mencionei como [código-do-seu-MSN], entendeu ?! Se conseguir alguma coisa pra reconhecer automaticamente, me avisa e se eu conseguir, posto aqui. Abrass
  24. Boa tarde. Primeiramente, tem o código JS que faz a função de abertura da janela de conversa em uma popup. Para alterar o tamanho da popup, só alterar no código JS os campos "height" e "width". Em seguida vem o código PHP, como expliquei pra você, para funciona entre os horários pré-definidos: <?php $horainicio = "08:00"; $horafim = "17:00"; if ((date("H:i") >= $horainicio) and (date("H:i") <= $horafim)) { echo "<a href='java script:startConversation[código-do-seu-MSN](\"http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=[código-do-seu-MSN]@apps.messenger.live.com&mkt=pt-br&useTheme=true&themeName=pink&foreColor=444444&backColor=FFD5D5&linkColor=444444&borderColor=ED7B7B&buttonForeColor=AA3636&buttonBackColor=FAD6D6&buttonBorderColor=AA3636&buttonDisabledColor=FAD6D6&headerForeColor=444444&headerBackColor=F9A3A3&menuForeColor=E45A5A&menuBackColor=FFFFFF&chatForeColor=444444&chatBackColor=FEF6F6&chatDisabledColor=F6F6F6&chatErrorColor=760502&chatLabelColor=6E6C6C\")'><img src=\"images/MSN-on.jpg\" border=\"0\" /></a>"; } else { echo "<img src=\"images/MSN-off.jpg\" border=\"0\" />"; } ?> Você poderá alterar as cores na página da Microsoft que você configura o MSN online e colar a parte do código, como aparece acima. Você terá que colocar o seu código em três lugares, que mostrei como [código-do-seu-MSN], são numeros e letras. As imagens você altera onde aparece <img src="images/MSN-on.jpg" border="0" />. Se você tiver alguma idéia, de como fazer o código atualizar automaticamente, me dá um toque.. Podemos trocar idéias em relação, pois estou atrás disso há dias.. rsrsrs Abrass
  25. Boa noite. Cara, também estou atras desse sistema, usando o MSN como atendimento online. Consigo fazer ele funcionar normalmente, com imagem On/Off personalizada por mim. O unico problema é que não consegui ainda, é fazer uma variavel que rode a URL do usúario, para chegar na imagem de ON ou OFF da Microsoft, e então fazer com que o sistema reconheça e mostre a imagem personalizada por mim. Por enquanto, estou quebrando um galho com variavel em relação ao horário comercial e com IF's, por exemplo: Se o horário atual estiver entre as 08 hrs e 17 hrs, a imagem fica como ONLINE e com link para janela de conversa, mas se estiver fora desse horário, fica OFFLINE sem link. Dá pra ir quebrando um galho, enquanto não descubro como fazer pra reconhecer automaticamente o status pelo sistema da Microsoft. Se servir desse modo pra você, dá um toque que explico como fazer... Abrass
×
×
  • Criar Novo...