<?php 
/*
CRIADO POR: K88
DATA ULTIMA ALTERAÇÃO: 16/08/2017 19:25
OBS.: ATUALIZAÇÃO DE NOVA ESTRUTURA E REVISÃO
*/

require_once('topo.php');
require_once('lateral.php');

if($_SESSION['master'] == 1){
   $AcaoUsuario = "Completa"; 
}

if($_SESSION['cargo'] == "1"){ 
$AcaoUsuario = "Completa";
}
if( $_SESSION['cargo'] == "2"){
$AcaoUsuario = "Completa";
}
$mes_atual = date('m');
$ano_atual = date('Y');

 $mes= $_GET['mes'];
 $ano= $_GET['ano'];
 $hoje = date('Y-m-d');
 if($mes == ""){
	$mes = date('m'); 
 }
 
  if($ano == ""){
	$ano = date('Y'); 
 }
 
 if($mes == 1)  {
 $dias=31;
 $nome="Janeiro";
 }
 if($mes == 2)  {
 $dias=29;
 $nome="Fevereiro";
 }
 if($mes == 3)  {
 $dias=31;
 $nome="Março";
 }
 if($mes == 4)  {
 $dias=30;
 $nome="Abril";
 }
 if($mes == 5)  {
 $dias=31;
 $nome="Maio";
 }
 if($mes == 6)  {
 $dias=30;
 $nome="Junho";
 }
 if($mes == 7)  {
 $dias=31;
 $nome="Julho";
 }
 if($mes == 8)  {
 $dias=31;
 $nome="Agosto";
 }
 if($mes == 9)  {
 $dias=30;
 $nome="Setembro";
 }
 if($mes == 10) {
 $dias=31;
 $nome="Outubro";
 }
 if($mes == 11) {
 $dias=30;
 $nome="Novembro";
 }
 if($mes == 12) {
 $dias=31;
 $nome="Dezembro";
 }
 
	
//PEGA ALBUM
    $seleciona_album = Seleciona("albuns", "WHERE idobra='".$_GET['idobra']."'", "");
    while($album = mysql_fetch_array($seleciona_album)){
    $idalbum = $album['album_id'];
    }		
	
  
$idobra = $_GET['idobra'];	  

$SelecionaObra = Seleciona("obras", "WHERE idobra='$idobra'", "LIMIT 0,1");
while($linha_obras = mysql_fetch_array($SelecionaObra)){

$idobra = $linha_obras['idobra']; 
$codmax = $linha_obras['codmax']; 
$idobra_origem = $linha_obras['idobra_origem']; 
$idcliente = $linha_obras['idcliente']; 
$idorcamento = $linha_obras['idorcamento']; 
$idvenda = $linha_obras['idvenda']; 
$titulo = $linha_obras['titulo']; 
$observacao = $linha_obras['observacao']; 
$valorprojeto = $linha_obras['valorprojeto']; 
$valormaximo = $linha_obras['valormaximo']; 
$lucro = $linha_obras['lucro']; 
$datainicio = $linha_obras['datainicio']; 
$datafim = $linha_obras['datafim']; 
$status = $linha_obras['status']; 
$idprofissional = $linha_obras['idprofissional']; 
$segunda = $linha_obras['segunda']; 
$terca = $linha_obras['terca']; 
$quarta = $linha_obras['quarta']; 
$quinta = $linha_obras['quinta']; 
$sexta = $linha_obras['sexta']; 
$sabado = $linha_obras['sabado']; 
$domingo = $linha_obras['domingo']; 
$horario_obra = $linha_obras['horario_obra']; 
$itens_obrigatorios = $linha_obras['itens_obrigatorios']; 
$local_obra = $linha_obras['local_obra']; 
$engenheiro_responsavel = $linha_obras['engenheiro_responsavel']; 
$arquiteto_responsavel = $linha_obras['arquiteto_responsavel']; 
$cordenador1 = $linha_obras['cordenador1']; 
$cordenador2 = $linha_obras['cordenador2']; 
$supervisor1 = $linha_obras['supervisor1']; 
$supervisor2 = $linha_obras['supervisor2']; 
$tecnicoseguranca = $linha_obras['tecnicoseguranca']; 
$descricao_obra = $linha_obras['descricao_obra']; 
$observacao_obra = $linha_obras['observacao_obra']; 
$listadeacesso = $linha_obras['listadeacesso']; 
$rrt = $linha_obras['rrt']; 
$seguro_obra = $linha_obras['seguro_obra']; 
$doc_segurancatrabalho = $linha_obras['doc_segurancatrabalho']; 

}  

//ALTERAR CHECKLIST

if($_GET['AlterarCheckList'] == "Concluido"){
	$AlterarCheckList = Alterar("checklist_inicial_obra", "status='Concluido', idusuario_atualizacao='".$_SESSION['usuarioID']."'","idchecklist", $_GET['idchecklist']);
	$redireciona = VerificaSqlSemAlert($AlterarCheckList, "detalhe_obra.php?idobra=".$_GET['idobra']."", "detalhe_obra.php?idobra=".$_GET['idobra']."");	
}
$SelecionaCheckListObra = Seleciona("checklist_inicial_obra", "WHERE idobra='$idobra'", "ORDER BY ordem ASC");
$TotalCheckObra = mysql_num_rows($SelecionaCheckListObra);

//GERAR CHECKLIST CASO NÃO EXISTA
if($_GET['GerarCheckList'] == "Operacional"){
//GERAR CHECKLIST
$SelecionaObras = Seleciona("obras", "WHERE idobra='".$_GET['idobra']."'", "LIMIT 0,1");
while($obras = mysql_fetch_array($SelecionaObras)){

//PEGO BASE DE CHECK
$SelecionaCheck = Seleciona("check_exemplo", "", "");
while($check = mysql_fetch_array($SelecionaCheck)){

//CRIO CHECKLIST PARA OBRA
$CriarChecklist = Salvar("checklist_inicial_obra", "idobra, titulo, ordem, status, datacadastro, idfilial", "'".$obras['idobra']."', '".$check['titulo']."', '".$check['ordem']."', '".$check['status']."', '".date('Y-m-d')."', '1'");
	
}	
}
$redireciona = VerificaSqlSemAlert($CriarChecklist, "detalhe_obra.php?idobra=".$_GET['idobra']."", "detalhe_obra.php?idobra=".$_GET['idobra']."");    
}

//CANCELO OBRA
if($_GET['Cancelar'] == "Obra"){
$AlterarObra = Alterar("obras", "status='Cancelado'", "idobra", $_GET['idobra']);	
$redireciona = VerificaSqlSemAlert($AlterarObra, "listar_obras.php", "detalhe_obra.php?idobra=".$_GET['idobra']."");    
}

//FINALIZAR OBRA
if($_GET['Finalizar'] == "Obra"){
$AlterarObra = Alterar("obras", "status='Finalizado'", "idobra", $_GET['idobra']);	
$redireciona = VerificaSqlSemAlert($AlterarObra, "listar_obras.php", "detalhe_obra.php?idobra=".$_GET['idobra']."");    
}
?>
<style type="text/css">
.box-header:hover {
	background-color:#003;
	cursor:pointer;
}
</style>

    <!-- Right side column. Contains the navbar and content of the page -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                Obra #<?php echo $codmax;?>
                <small><?php echo NomeCliente($idcliente);?></small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="index.php"><i class="fa fa-dashboard"></i> Home</a></li>
                <li class="active">Detalhe Obra</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <!--GRAFICOS-->
          <div class="row">
            <div class="col-xs-12">
              <div class="box box-solid">

                <div class="box-body">
                  <div class="row">

                    <div class="col-md-3 col-sm-6 col-xs-6 text-center">
                    <?php
					$SelecionaCheckPendente = Seleciona("checklist_inicial_obra", "WHERE idobra='$idobra' AND status='pendente'", "");
					$TotalCheckPendente = mysql_num_rows($SelecionaCheckPendente);
					$CheckListPendente = PercentualValor ($TotalCheckPendente, $TotalCheckObra);
                        
					?>
                      <input type="text" class="knob" value="<?php echo substr($CheckListPendente, 0,5);?>" data-skin="tron"  data-thickness="0.2" data-width="120" data-height="120" data-fgColor="#FF2626" data-readonly="true"/>
                      <div class="knob-label">% CheckList Operacional Pendente</div>
                    </div><!-- ./col -->
                    
                    <div class="col-md-3 col-sm-6 col-xs-6 text-center">
                    <?php
					$SelecionaCheckConcluido = Seleciona("checklist_inicial_obra", "WHERE idobra='$idobra' AND status='concluido'", "");
					$TotalCheckConcluido = mysql_num_rows($SelecionaCheckConcluido);
					$CheckListConcluido = PercentualValor ($TotalCheckConcluido, $TotalCheckObra);
					?>                    
                      <input type="text" class="knob" value="<?php echo substr($CheckListConcluido,0,5);?>" data-skin="tron"  data-thickness="0.2" data-width="120" data-height="120" data-fgColor="#7AFF4D" data-readonly="true"/>
                      <div class="knob-label">% CheckList Operacional Concluido</div>
                    </div><!-- ./col -->
                    
                    <div class="col-md-3 col-sm-6 col-xs-6 text-center">
                      <input type="text" class="knob" value="80" data-skin="tron"  data-thickness="0.2" data-width="120" data-height="120" data-fgColor="#3c8dbc" data-readonly="true"/>
                      <div class="knob-label">Andamento da Obra</div>
                    </div><!-- ./col -->
                    
                    <div class="col-md-3 col-sm-6 col-xs-6 text-center">
                      <input type="text" class="knob" value="80" data-skin="tron"  data-thickness="0.2" data-width="120" data-height="120" data-fgColor="#3c8dbc" data-readonly="true"/>
                      <div class="knob-label">Andamento da Obra</div>
                    </div><!-- ./col -->                                                            

                  </div><!-- /.row -->
                </div><!-- /.box-body -->
              </div><!-- /.box -->
            </div><!-- /.col -->
          </div><!-- /.row -->            
            
            <!-- FIM GRAFICOS -->
            
            
            <!--MENUS -->

          <div class="row">
          <a href="antigo/listar_operacional_obra.php?idobra=<?php echo $_GET['idobra'];?>" target="_blank">
            <div class="col-md-2">
              <!-- Navy tile -->
              <div class="box box-solid bg-light-blue">
                <div class="box-header" style="text-align:center;">
                <i class="fa fa-building" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">Sobre a Obra</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col -->
</a>
          <a href="manutencao_nucleo_obra.php?idobra=<?php echo $_GET['idobra'];?>" target="_blank">
            <div class="col-md-2">
              <!-- Navy tile -->
              <div class="box box-solid bg-light-blue">
                <div class="box-header" style="text-align:center;">
                <i class="fa fa-users" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">Núcleo da Obra</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col -->
</a>
<a href="antigo/listar_operacional_termoabertura.php?idobra=<?php echo $_GET['idobra'];?>"  target="_blank">
            <div class="col-md-2">
              <!-- Primary tile -->
              <div class="box box-solid bg-light-blue">
                <div class="box-header" style="text-align:center;">
                <i class="fa fa-rocket" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">Termo de Abertura</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col -->
            </a>
			<?php 													
            if($_SESSION['cargo'] != "14"){
            ?>
            <a href="antigo/listar_obras_listadeacessos.php?idobra=<?php echo $_GET['idobra'];?>"  target="_blank">
            <div class="col-md-2">
              <!-- Info box -->
              <div class="box box-solid bg-light-blue">
                <div class="box-header" style="text-align:center;">
                <i class="fa fa-users" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">Lista de Acesso</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col -->
            </a>
            <a href="antigo/listar_operacional_checklist.php?idobra=<?php echo $_GET['idobra'];?>"  target="_blank">
            <div class="col-md-2">
              <!-- Info box -->
              <div class="box box-solid bg-light-blue">
                <div class="box-header" style="text-align:center;">
                <i class="fa fa-check-square" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">CheckList da Obra</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col -->
            </a>
<a href="listar_operacional_planilhas_compra.php?idobra=<?php echo $_GET['idobra'];?>" target="_blank">            
            <div class="col-md-2">
              <!-- Info box -->
              <div class="box box-solid bg-light-blue">
                <div class="box-header" style="text-align:center;">
                <i class="fa fa-cart-plus" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">Planilha Compras</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col -->
            </a>                                  
            <?php }?>
          </div><!-- /.row -->

          <div class="row">
          <a href="antigo/listar_operacional_contatos.php?idobra=<?php echo $_GET['idobra'];?>" target="_blank">
            <div class="col-md-2">
              <!-- Navy tile -->
              <div class="box box-solid bg-light-blue">
                <div class="box-header" style="text-align:center;">
                <i class="fa fa-fax" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">Contatos</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col -->
			</a>
            <a href="antigo/listar_operacional_custo_orcamento.php?idobra=<?php echo $_GET['idobra'];?>" target="_blank">
            <div class="col-md-2">
              <!-- Primary tile -->
              <div class="box box-solid bg-light-blue">
                <div class="box-header" style="text-align:center;">
                <i class="fa fa-list-alt" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">Planilha de Custo</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col -->
            </a>
					  <?php
					  //TRAVA CRIADA POR ROQUE CARGO OPERACIONAL
					  if($_SESSION['cargo'] != "3"){  if( $_SESSION['cargo'] != "15"){ if( $_SESSION['cargo'] != "16"){ if( $_SESSION['cargo'] != "14"){ if( $_SESSION['cargo'] != "13"){ if( $_SESSION['cargo'] != "12"){
					  ?>	
            <a href="antigo/listar_operacional_despesas_obra.php?idobra=<?php echo $_GET['idobra'];?>" target="_blank">                      
            <div class="col-md-2">
              <!-- Info box -->
              <div class="box box-solid bg-light-blue">
                <div class="box-header" style="text-align:center;">
                <i class="fa fa-money" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">Despesas da Obra</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col -->
            </a>
            <?php }} } } } }?>
            <a href="antigo/listar_operacional_cronograma_novo.php?idobra=<?php echo $_GET['idobra'];?>" target="_blank">
            <div class="col-md-2">
              <!-- Info box -->
              <div class="box box-solid bg-light-blue">
                <div class="box-header" style="text-align:center;">
                <i class="fa fa-calendar" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">Cronograma</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col -->
            </a>
            <a class="fancybox fancybox.iframe" href="antigo/listar_albuns_obra.php?idobra=<?php echo $_GET['idobra'];?>">
            <div class="col-md-2">
              <!-- Info box -->
              <div class="box box-solid bg-light-blue">
                <div class="box-header" style="text-align:center;">
                <i class="fa fa-picture-o" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">Imagens</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col -->                                    
			</a>
            <a class="fancybox fancybox.iframe" href="antigo/listar_pastas_obra.php?origem=Obra&idobra=<?php echo $_GET['idobra'];?>&idvenda=<?php echo $idvenda;?>">
            <div class="col-md-2">
              <!-- Info box -->
              <div class="box box-solid bg-light-blue">
                <div class="box-header" style="text-align:center;">
                <i class="fa fa-folder-open" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">Arquivos</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col -->
            </a>
            <a href="antigo/listar_operacional_produtos.php?idobra=<?php echo $_GET['idobra'];?>" target="_blank">
            <div class="col-md-2">
              <!-- Info box -->
              <div class="box box-solid bg-light-blue">
                <div class="box-header" style="text-align:center;">
                <i class="fa fa-cubes" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">Produtos</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col --> 
            </a> 
            <?php if($AcaoUsuario == "Completa"){ ?>
            <a href="relatorio_orcamento_servicos.php?idvenda=<?php echo $idvenda;?>" target="_blank">
            <div class="col-md-2">
              <!-- Info box -->
              <div class="box box-solid bg-light-blue">
                <div class="box-header" style="text-align:center;">
                <i class="fa fa-shopping-cart" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">Proposta de Venda</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col --> 
            </a>             
            <?php }?>
             
		  <?php if($AcaoUsuario == "Completa"){ ?>	            
            <a href="detalhe_obra.php?idobra=<?php echo $_GET['idobra'];?>&Cancelar=Obra">
            <div class="col-md-2">
              <!-- Info box -->
              <div class="box box-solid bg-light-blue" style="background-color:#F00">
                <div class="box-header" style="text-align:center; background-color:#F00">
                <i class="fa fa-close" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">Cancelar Obra</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col --> 
            </a>              
             <?php } ?> 
             
		  <?php if($AcaoUsuario == "Completa"){ ?>	            
            <a href="finalizar_obra.php?idobra=<?php echo $_GET['idobra'];?>" target="_blank">
            <div class="col-md-2">
              <!-- Info box -->
              <div class="box box-solid bg-light-blue" style="background-color:#F00">
                <div class="box-header" style="text-align:center; background-color: #0C0">
                <i class="fa fa-check" aria-hidden="true" style="font-size: 35px; padding:10px;"></i><br />
                  <h3 class="box-title">Finalizar Obra</h3>
                </div>
              </div><!-- /.box -->
            </div><!-- /.col --> 
            </a>              
             <?php }?>              
                      
          </div><!-- /.row -->   
          
          <!--CHECKLIST -->
          
<div class="row">
            <div class="col-xs-12"><!-- /.box -->

              <div class="box">
                <div class="box-header">
                  <?php
                  if($TotalCheckObra == 0){                                        
                  ?>
                   <a href="detalhe_obra.php?idobra=<?php echo $_GET['idobra'];?>&GerarCheckList=Operacional">
                    <button type="button" class="btn btn-primary" style=" float:right;">Gerar CheckList Base</button>
                    </a>
                  <?php }?>                 
                  <h3 class="box-title">CheckList Operacional</h3>
                    <?php
                    //VERIFICAR USUARIO PROGRAMA
                    if($AcaoUsuario == "Inserir" or $AcaoUsuario == "Editar" or $AcaoUsuario == "Completa"){ 						
                    ?>                  
                  <!--<button type="button" class="btn btn-primary" style=" float:right;"><i class="fa fa-plus-circle" aria-hidden="true"></i> Novo CheckList</button>  -->              
                    <?php }?>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <table id="" class="table table-bordered table-striped">
                    <thead>
                      <tr>
                        <th style="cursor:pointer">Ordem</th>
                        <th style="cursor:pointer">Titulo</th>
                        <th style="cursor:pointer">Status</th>
                        <th style="cursor:pointer">Usuário</th>
                        <th style="cursor:pointer">Ultima Atualização</th>
                        <th style="cursor:pointer"></th>
                      </tr>
                    </thead>
                    <tbody>
                    <?php														
					while($linha = mysql_fetch_array($SelecionaCheckListObra)){
					if($linha['status'] == "pendente"){
					$cor_fundo = ' style="background-color:#FFCFBF;"';
					}else{
					$cor_fundo = ' style="background-color:#CFFFBF;"';
					}
					?>
                      <tr>
                        <td <?php echo $cor_fundo;?>><?php echo $linha['ordem'];?></td>
                        <td <?php echo $cor_fundo;?>><?php echo $linha['titulo'];?></td>
                        <td <?php echo $cor_fundo;?>><?php echo $linha['status'];?></td>
                        <td <?php echo $cor_fundo;?>><?php echo NomeUsuario($linha['idusuario_atualizacao']);?></td>
                        <td <?php echo $cor_fundo;?>><?php echo $linha['data_atualizacao'];?></td>
                        <td <?php echo $cor_fundo;?>>
                        <?php
						if($linha['status'] == "pendente"){
						?>
                        <button type='button' class='btn btn-danger' style="cursor:pointer;" onclick="ConfirmaLinkAcesso('detalhe_obra.php?idobra=<?php echo $linha['idobra'];?>&idchecklist=<?php echo $linha['idchecklist'];?>&AlterarCheckList=Concluido');"><i class="fa fa-check" aria-hidden="true"></i></button>
                        <?php }else{ ?>
                        <button type='button' class='btn btn-success'><i class="fa fa-check" aria-hidden="true"></i></button>
                        <?php }?>
                        </td>
                      </tr>
                      <?php 
					  $cor_fundo = "";
					  }?>
                    </tbody>
                  </table>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
            </div><!-- /.col -->
          </div>          
          
          
          
          
                   
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <!-- jQuery Knob -->
    <script src="plugins/knob/jquery.knob.js" type="text/javascript"></script>
    <!-- Sparkline -->
    <script src="plugins/sparkline/jquery.sparkline.min.js" type="text/javascript"></script>

    <!-- page script -->
    <script type="text/javascript">
      $(function () {
        /* jQueryKnob */

        $(".knob").knob({
          /*change : function (value) {
           //console.log("change : " + value);
           },
           release : function (value) {
           console.log("release : " + value);
           },
           cancel : function () {
           console.log("cancel : " + this.value);
           },*/
          draw: function () {

            // "tron" case
            if (this.$.data('skin') == 'tron') {

              var a = this.angle(this.cv)  // Angle
                      , sa = this.startAngle          // Previous start angle
                      , sat = this.startAngle         // Start angle
                      , ea                            // Previous end angle
                      , eat = sat + a                 // End angle
                      , r = true;

              this.g.lineWidth = this.lineWidth;

              this.o.cursor
                      && (sat = eat - 0.3)
                      && (eat = eat + 0.3);

              if (this.o.displayPrevious) {
                ea = this.startAngle + this.angle(this.value);
                this.o.cursor
                        && (sa = ea - 0.3)
                        && (ea = ea + 0.3);
                this.g.beginPath();
                this.g.strokeStyle = this.previousColor;
                this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sa, ea, false);
                this.g.stroke();
              }

              this.g.beginPath();
              this.g.strokeStyle = r ? this.o.fgColor : this.fgColor;
              this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sat, eat, false);
              this.g.stroke();

              this.g.lineWidth = 2;
              this.g.beginPath();
              this.g.strokeStyle = this.o.fgColor;
              this.g.arc(this.xy, this.xy, this.radius - this.lineWidth + 1 + this.lineWidth * 2 / 3, 0, 2 * Math.PI, false);
              this.g.stroke();

              return false;
            }
          }
        });
		});
        /* END JQUERY KNOB */

    </script>

   
    <?php require_once('rodape.php');?>