<h1>YANZ UPLOAD ANJG</h1><?php

#CONECTAR AO MYSQL

include("conectar.php");

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Equipe Mexe Doce - Divulga&ccedil;&atilde;o Art&iacute;sticas em Geral</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<? $SqlContGer=mysql_query("SELECT COUNT(*) FROM noticia where tipo='08';")or die("<font color=\"#990000\" face=\"Verdana, Geneva, sans-serif\" size=\"-1\">Erro<? Contate o administrador.</font>");
list($ContGer)=mysql_fetch_row($SqlContGer);

$CapPagF=$_GET[pag];

if($CapPagF==""){
	$CapPag=1;
}else{
	$CapPag=$CapPagF;
}

$NPorPag=28;

$CapPagMySQL=($CapPag-1)*$NPorPag; 
$NdePag=ceil($ContGer/$NPorPag); ?>
<!--Fireworks CS3 Dreamweaver CS3 target.  Created Thu Aug 01 14:50:57 GMT-0400 2013-->
<link href="estilo.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style5 {
	font-size: 24px;
	font-weight: bold;
}
body {
	background-image: url(fundodentro.jpg);
	background-repeat: repeat-x;
}
.style20 {font-size: 13px; font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;}
.style20 {font-size: 13px; font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;}
.style29 {font-size: 12px
}
.style35 {font-size: 13px}
.style58 {
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FFFFFF;
}
.style63 {font-size: 24px;
	color: #990000;
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-weight: bold;
}
.style12 {font-size: 24px}
.style13 {color: #FFFFFF}
</style>
</head>
<body bgcolor="#ffffff">
<?php include("topo.php"); ?><table width="990" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td width="3">&nbsp;</td>
    <td width="979">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2"><span class="style5">ARTISTAS</span></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><table width="98%" border="0">
      <tr>
        <td height="390" valign="top"><table width="702" border="0" align="center">
          <tr>
            <td width="696" class="style52"><img src="IMG/spacer.gif" width="1" height="6" /></td>
          </tr>
          <tr>
            <td><table width="710" border="0" align="center">
              <tr>
                <td width="704" class="style63"><img src="IMG/spacer.gif" width="1" height="9" /></td>
              </tr>

              <tr>
                <td><table width="694" border="0" align="right">
                    <tr>
                      <td width="323"><span class="style20">
                        <?php 
							
							$titulo="select * from noticia where tipo='08' order by id desc LIMIT $CapPagMySQL,$NPorPag;" ;
							$titulo2=mysql_query ($titulo); 
							while( list($id_, $id_titulo, $id_chamada, $id_texto, $id_foto, $id_legenda, $id_autor, $id_data, $id_cadastro)=mysql_fetch_row($titulo2)){
							
							$id_data=split("-",$id_data);
							$hora=split(" ",$id_data[2] );
							
							$horaf=$hora[1];
							
							$id_dataf=$hora[0]. "/". $id_data[1]."/".$id_data[0]; 
					
							
				?>
                        </span>
                          <table width="684" border="0">
                            <tr>
                              <td width="678"><table width="672" border="0">
                                  <tr>
                                    <td width="132"><a href="noticia_select.php?id=<?php print $id_;?>" ><img src="<?php print "$id_foto"; ?>" alt="" width="215" border="2" /></a></td>
                                    <td width="554"><table width="530" border="0">
                                        <tr>
                                          <td width="524">&nbsp;</td>
                                        </tr>
                                        <tr>
                                          <td><a href="noticia_select.php?id=<?php print $id_;?>" class="style21 style29"><span class="style41 style35"><span class="style12">
                                            <?php       
						  				print $id_titulo; 
										
						   			?></span></span></a></td>
                                        </tr>
                                        <tr>
                                          <td>&nbsp;</td>
                                        </tr>
                                    </table></td>
                                  </tr>
                              </table></td>
                            </tr>
                          </table>
                        <?php
							}
						?>                      </td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td><div align="center">
                    <table width="254" border="0" align="center">
                      <tr>
                        <td><span class="style58">P&aacute;gina:</span>
                            <span class="style13">
                            <?php
			if($CapPag>3){
				echo " <a href=\"noticia_select-Artigos.php?pag=1\">1</a> ...";
			}
			$CapPag3=$CapPag+3;
			$Ini=0;
			$Ini=$CapPag-2;
            for ($i=$Ini; $i<$CapPag3; $i++) {
				if($i<=$NdePag){
					if($i<=0){
						;
					}else{
						if($i==$CapPag){
   							echo "&nbsp;&nbsp;<span><font color=\"#CCCCCC\">$i</font></span>&nbsp;&nbsp;";
						}else{
							echo "&nbsp;&nbsp;<a href=\"noticia_select-Artigos.php?pag=$i\">$i</a>&nbsp;&nbsp;";
						}
					}
				}
			}
			$CompPagF=$NdePag-3;
			if($CapPag<=$CompPagF){
				echo"... <a href=\"noticia_select-Artigos.php?pag=$NdePag\">$NdePag</a>";
			}
			?>
                            </span></td>
                      </tr>
                    </table>
                </div></td>
              </tr>

            </table></td>
          </tr>

        </table>
        <p><br />
        </p>
          </td>
      </tr>
    </table></td>
  </tr>
   
</table>
<p>
  <?php include("rodape.php");