troubleshooting Question

Could you point what is causing this strange behaviour at views Codeigniter's pages?

Avatar of Eduardo Fuerte
Eduardo FuerteFlag for Brazil asked on
PHPCSSHTMLjQuery
5 Comments1 Solution90 ViewsLast Modified:
Hi Experts!

Could you point what is causing this strange behaviour at view Codeigniter's pages?

From a day to another it strangely starts.

The view page is presented at the left page and after a choice is done another view must be presented at the right.

img001
Controller
...
$this->load->view("camaras/ascamaras");

Open in new window


View that presents the left part:

<br/><div id="container_principal">
	<div class="row">
        <h3>As Câmaras </h3><hr class="hr_titulos"/>
		<div class="col-md-12">
         <script type='text/javascript'>
                $(document).ready(function(){
              // Executa o evento CLICK em todos os links do menu
               $('#ascamaras a').live('click',function(){
                // Faz o carregamento da pgina de acordo com o COD da pgina, que vai pegar os valores da pgina page.php.
                $('#camara').load($(this).attr('href'));
                return false;
               });
              });
        </script>
			
			<div class="row font">
				<div class="col-md-4">
					<!--<ul class="list-group" >-->
					<?php
					$table= array(
						'table_open'=> '<table class="table table-hover name="ascamaras" id="ascamaras">',
						'table_close'=>'</table>'
					);
					$this->table->set_template($table);
						foreach($resultadoCamaras as $resultadoCamaras){
							$this->table->add_row(anchor("camarashome/visualizarCamara/$resultadoCamaras->idcategoria",ucwords($resultadoCamaras->nome),"class='links' style='font-size:14px;' id=''"));
						}
						echo $this->table->generate();
					
						echo"<div class='paginacao'>";
						//echo "<br/> $paginacao"; 
						echo "</div>";

					?>
					<!--</ul>-->
                    </td>
                    </table>
				</div>
                <div class="col-md-7" id="camara">
                
                
                </div>
			</div>
		</div>
	</div>
</div>

Open in new window



The second part must be presented at right (and it was)  but instead of it another page is oppened without any configuration.

img002
the view that must to show at the right

	<div id="container_principal">
		        <div class="row font">
		      	   <?php
				 
						foreach($dadosCategoria as $dadosCategoria){
								echo "<div class='col-md-12 '>";
									echo "<h4 class='font'>Câmara Setorial de "; echo ucwords($dadosCategoria->nome); echo"</h4><hr class='as_camaras'/>";
								echo "</div>";	
						
		        			echo "<div class='col-md-6'>";
							echo "<h4  class='font'>Presidente</h4><p>"; echo ucwords($dadosCategoria->presidente);"</p>";
							echo "<h4  class='font'>Endereço</h4>
							<p> Entidade: "; echo mb_strtoupper($dadosCategoria->entidade);
							echo "<br/>Email: $dadosCategoria->email<a href='mailto:";echo $dadosCategoria->email;echo"?subject=Contato C&acirc;mara Setorial'><img src='";echo base_url('assets/img/camaras/mail.jpg'); echo "'border='0' title='contato' alt='Contato' /></a><br/>
							 	"; echo ucwords($dadosCategoria->endereco);echo"<br/>
								CEP: $dadosCategoria->cep<br/>
							 	Telefone:$dadosCategoria->telefonea|
								 $dadosCategoria->telefoneb<br/>
							 
							 </p>
							";
						}
					?>
		        </div>
		        <div class="col-md-5">
		         	<h5  class="font"><b>Atas</b></h5>
					
						<?php
						
							$options = array ('' => 'Selecione uma ata');
							foreach($dadosArquivos as $dadosArquivos){
								$ata= base_url("$dadosArquivos->arquivo");
								$options[$ata] = $dadosArquivos->nome;
								}
							//echo form_dropdown('atas', $options,'','class="atas" id="atas" onchange="document.location.href=this.value" target="_blank"');
							echo form_dropdown('atas', $options,'','class="atas" id="atas" onchange="window.open(this.value)" target="_blank"');
							
							?>
					
		        </div>
					<div class="col-md-10"><br/>
						<h5  class="font"><b>Propostas e Projetos em andamento</b></h5><hr class="as_camaras"/><br/>
                        <ul class="paginacao">
                        <?php 
							foreach($dadosProposta as $dadosProposta){	
								echo "<li style='text-align:justify'>";echo ucfirst($dadosProposta->proposta); echo ".</li>";	
								}
							if($dadosCategoria->idcategoria==12){
								echo "
								<br/><br/>
								<li><a href='"; echo base_url('arquivos/camaras/custo_de_producao_seringueira_cam_tec_12_08.pdf');  echo"'  target='_blank'>Custo de Produção e Rentabilidade da Cultura da Seringueira.(Clique e faça download)</a></li>";
								}
						?>
                        </ul>
					</div>
				</div><br/><br/>
		           <!--<a  href="<?php echo base_url('camarashome/camaras');?> "><img src="<?php echo base_url('assets/img/camaras/voltar.png');?>"></a>--><br/><br/>
		</div>

Open in new window


Could you point what could be done to correct it?

Thanks in advance!
ASKER CERTIFIED SOLUTION
Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 5 Comments.
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>

Mike

Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 5 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004