<?php
ob_start();
session_start();
include_once('producao.class.php');
include_once('include/utilitarios.php');
include_once('class/class.mysql.php');
$mysqlCom = new MysqlConnect();
extract($_POST);

$Producao = new Producao();
$Producao->Processo(3);

?>

<script type="text/javascript" src="js/utilitario.js"></script>
<script type="text/javascript" src="producao/producao.script.js"></script>

<div id="tabsProducao" style="font-size:11px">
<ul>
  <li><a href="#tabs-1">Em Produção (3)</a></li>
  <li><a href="producao/em.processo.php?statos=2">Em Fila (2)</a></li>
  <li><a href="producao/em.processo.php?statos=1">Em Aprovação (1)</a></li>
  
  <li><a href="producao/em.processo.php?statos=4">Confirmar UpLoad(4)</a></li>
  <li><a href="producao/em.processo.php?statos=6">Contato Cliente (6)</a></li>
  <li><a href="producao/em.processo.php?statos=7">Escolhendo(7)</a></li>
</ul>
    <div id="tabs-1">
    	
<?php
while($row = mysqli_fetch_object($Producao->qry)){
	?>
	<div class="ui-widget-content ui-corner-all" id="pnEmFila<?php echo $row->id_producao?>"style="margin: 2px; margin-bottom: 6px; font-size: 12px">
		<div class="ui-state-default ui-corner-all" style="margin: 3px;"
			align="center">
			<strong><?php echo $row->tipo_edicao?> - <?php echo $row->nome?></strong> /  <span
				class="ui-state-highlight ui-corner-all" style="padding: 0 .7em;">Tempo
				<span id="pnDias<?php echo $row->id_producao?>">18</span> dias</span> 
                <?php echo $row->tipo_evento?> - <?php echo InverterData($row->data_evento)?>
		</div>
	  <script>DiasCorridos('pnDias<?php echo $row->id_producao?>', '<?php echo InverterData($row->data_inicio)?>', '')</script>
		<div id="pb<?php echo $row->id_producao?>"
			style="margin-left: 5px; margin-right: 5px;"></div>
	  <script>ProgresseBar('pb<?php echo $row->id_producao?>','<?php echo InverterData($row->data_inicio)?>', '')</script>

		<?php  $Producao->Historico($row->id_producao);
		$icone = array(1=>'ui-icon-pin-s', 2=>'ui-icon-image', 3=>'ui-icon-image', 4=>'ui-icon-image');
		while($rowH = mysqli_fetch_object($Producao->qry_ver)){

			?>

		<span class="ui-icon <?php echo $icone[$rowH->statos] ?>"
			style="float: left; margin-right: .3em;"></span> <span
			style="font-size: 11px; color: #999;"><?php echo InverterData($rowH->data) . ' '. $rowH->hora ?>
		</span>
		<?php echo $rowH->historico ?>
		- <strong> <?php echo $rowH->funcionario?> </strong><br />
		<?php }?>
	<div align="right" style="margin: 5px;">
		<button title="Finalizar Edição" class="button small orange" id="btnFinalizarEdicao" id_prod="<?php echo $row->id_producao?>">Finalizar Edição</button>
	</div>



</div>
<?php }?>



</div>

