<h1>YANZ UPLOAD ANJG</h1>
<?php require_once('Connections/banco1.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

mysql_select_db($database_banco1, $banco1);
$query_rsNot = "SELECT * FROM banner WHERE local = 'capa' ORDER BY codigo DESC limit 1";
$rsNot = mysql_query($query_rsNot, $banco1) or die(mysql_error());
$row_rsNot = mysql_fetch_assoc($rsNot);
$totalRows_rsNot = mysql_num_rows($rsNot);

mysql_select_db($database_banco1, $banco1);
$query_rsNot2 = "SELECT * FROM banner WHERE local = 'capa' ORDER BY codigo DESC limit 1,1";
$rsNot2 = mysql_query($query_rsNot2, $banco1) or die(mysql_error());
$row_rsNot2 = mysql_fetch_assoc($rsNot2);
$totalRows_rsNot2 = mysql_num_rows($rsNot2);

mysql_select_db($database_banco1, $banco1);
$query_rsNot3 = "SELECT * FROM banner WHERE local = 'capa' ORDER BY codigo DESC limit 2,1";
$rsNot3 = mysql_query($query_rsNot3, $banco1) or die(mysql_error());
$row_rsNot3 = mysql_fetch_assoc($rsNot3);
$totalRows_rsNot3 = mysql_num_rows($rsNot3);

mysql_select_db($database_banco1, $banco1);
$query_rsNot4 = "SELECT * FROM banner WHERE local = 'capa' ORDER BY codigo DESC limit 3,1";
$rsNot4 = mysql_query($query_rsNot4, $banco1) or die(mysql_error());
$row_rsNot4 = mysql_fetch_assoc($rsNot4);
$totalRows_rsNot4 = mysql_num_rows($rsNot4);


mysql_select_db($database_banco1, $banco1);
$query_rsNot5 = "SELECT * FROM banner WHERE local = 'capa' ORDER BY codigo DESC limit 4,1";
$rsNot5 = mysql_query($query_rsNot5, $banco1) or die(mysql_error());
$row_rsNot5 = mysql_fetch_assoc($rsNot5);
$totalRows_rsNot5 = mysql_num_rows($rsNot5);

mysql_select_db($database_banco1, $banco1);
$query_rsNot6 = "SELECT * FROM banner WHERE local = 'capa' ORDER BY codigo DESC limit 5,1";
$rsNot6 = mysql_query($query_rsNot6, $banco1) or die(mysql_error());
$row_rsNot6 = mysql_fetch_assoc($rsNot6);
$totalRows_rsNot6 = mysql_num_rows($rsNot6);

?>

<SCRIPT type=text/javascript src="js/jquery-1.7.2.min.js"></SCRIPT>
<SCRIPT type=text/javascript src="js/jquery.cycle.all.js"></SCRIPT>
<LINK rel=stylesheet type=text/css href="js/jquery.fancybox-1.3.4.css" media=screen>
<SCRIPT type=text/javascript>
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function fpopup(u, w, h){		
                $.fancybox({                
                'width' : w,
                'height' : h,
                'autoScale' : false,
                'transitionIn' : 'none',
                'transitionOut' : 'none',
                'href' : u,
                'type' : 'iframe'
                });                                
}
</SCRIPT>

<LINK rel=stylesheet type=text/css href="js/estilo.css">
<SCRIPT src="js/jquery-ui-1.9.0.custom.js"></SCRIPT>
<SCRIPT src="js/jquery.tabify.js"></SCRIPT>

<DIV class=conteudo_esq>
<STYLE>
#navC {
	TEXT-ALIGN: right; MARGIN-TOP: 10px; FONT-FAMILY: "Trebuchet MS", Arial, Helvetica, sans-serif; FONT-SIZE: 13px; FONT-WEIGHT: bold
}
#navC A {
	PADDING-BOTTOM: 5px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; BACKGROUND: #000000; COLOR: #fff; MARGIN-LEFT: 5px; TEXT-DECORATION: none; PADDING-TOP: 5px
}
#navC A.activeSlide {
	Z-INDEX: 2147483647; BACKGROUND: #990000; COLOR: #fff
}
#navC A:focus {
	OUTLINE-STYLE: none; OUTLINE-COLOR: invert; OUTLINE-WIDTH: medium
}

#slider {
	BACKGROUND-COLOR: #000; WIDTH: 980px; HEIGHT: 375px
}
</STYLE>

<SCRIPT type=text/javascript>
$(function() {
    $('#destaqueCapa').cycle({
		fx:         'fade',
        timeout:     5000,
        pager:      '#navC',
        pagerEvent: 'mouseover',
        fastOnEvent: true
    });
});
</SCRIPT>

<DIV id=slider>

<DIV style="Z-INDEX: 1" id=destaqueCapa>


<DIV class=item><A style="TEXT-DECORATION: none" 
href="<?php echo $row_rsNot['link']; ?>" target="_parent">
<DIV 
style="BACKGROUND-IMAGE: url(up/<?php echo $row_rsNot['arquivo']; ?>); HEIGHT: 375px" 
class=capa_abre1>
<DIV style="MARGIN-TOP: 259px; WIDTH: 980px" class=capa_abre2>
<img src="images/spacer.gif" />
</DIV></DIV></A></DIV>


<DIV class=item><A style="TEXT-DECORATION: none" 
href="<?php echo $row_rsNot2['link']; ?>" target="_parent">
<DIV 
style="BACKGROUND-IMAGE: url(up/<?php echo $row_rsNot2['arquivo']; ?>); HEIGHT: 375px" 
class=capa_abre1>
<DIV style="MARGIN-TOP: 259px; WIDTH: 980px" class=capa_abre2>

</DIV></DIV></A></DIV>


<DIV class=item><A style="TEXT-DECORATION: none" 
href="<?php echo $row_rsNot3['link']; ?>" target="_parent">
<DIV 
style="BACKGROUND-IMAGE: url(up/<?php echo $row_rsNot3['arquivo']; ?>); HEIGHT: 375px" 
class=capa_abre1>
<DIV style="MARGIN-TOP: 259px; WIDTH: 980px" class=capa_abre2>

</DIV></DIV></A></DIV>



<DIV class=item><A style="TEXT-DECORATION: none" 
href="<?php echo $row_rsNot4['link']; ?>" target="_parent">
<DIV 
style="BACKGROUND-IMAGE: url(up/<?php echo $row_rsNot4['arquivo']; ?>); HEIGHT: 375px" 
class=capa_abre1>
<DIV style="MARGIN-TOP: 259px; WIDTH: 980px" class=capa_abre2>

</DIV></DIV></A></DIV>




<DIV class=item><A style="TEXT-DECORATION: none" 
href="<?php echo $row_rsNot5['link']; ?>" target="_parent">
<DIV 
style="BACKGROUND-IMAGE: url(up/<?php echo $row_rsNot5['arquivo']; ?>); HEIGHT: 375px" 
class=capa_abre1>
<DIV style="MARGIN-TOP: 259px; WIDTH: 980px" class=capa_abre2>

</DIV></DIV></A></DIV>




<DIV class=item><A style="TEXT-DECORATION: none" 
href="<?php echo $row_rsNot6['link']; ?>" target="_parent">
<DIV 
style="BACKGROUND-IMAGE: url(up/<?php echo $row_rsNot6['arquivo']; ?>); HEIGHT: 375px" 
class=capa_abre1>
<DIV style="MARGIN-TOP: 259px; WIDTH: 980px" class=capa_abre2>

</DIV></DIV></A></DIV>




</DIV>



<DIV id=navC></DIV>

</DIV>
</DIV>
  


  

</BODY></HTML><?php
mysql_