/app/views/elements/leftpanel.ctp
---------------------------------------------------

<?php echo $this->element('categoriesmenu');?>
<?php $categories = $this->requestAction('entries/categories'); ?>
<?php $regions = $this->requestAction('entries/regions'); ?>
<?php $def = array('1' => 'Prodej', '2' => 'Pronájem'); ?>
<div id="searchform">
<?php
    echo $form->create('Entry', array('action' => 'search'));
 ?>
  <p>
 <label>Typ nabídky:</label><br />
 <?php   echo $form->select('def', $def); ?>
 </p>
 <p>
 <label>Region:</label><br />
 <?php   echo $form->select('region_id', $regions); ?>
 </p>
 <p>
 <label>Typ reality:</label><br />
 <?php echo $form->select('category_id', $categories); ?>
 </p>
 <input type="image" src="<?php echo $html->url('/img/
searchButton.gif');?>" name="image">
 </form>
</div>
<div id="kontakt">
        <p><strong>PD Reality</strong><br />
        Antonín Seifert<br />
        Rovečné 90<br />593 01,
        Bystřice nad Pernštejnem
        </p>
        <p>
                <strong>Telefon</strong>: +420 604 934 685<br />
                <strong>E-mail</strong>: [email protected]
        </p>
</div>


-----------------------------
categoriesmenu.ctp
----------------------------

<?php
        $action = $this->params['action'];
        if($action == 'listcategories'){
                $id = $this->params['id'];
        }
?>
<?php $categories = $this->requestAction('categories/
categoriesmenu'); ?>
<ul id="kategorie">
<?php foreach($categories as $category): ?>
<li<?php if($category['Category']['id']==$id) echo ' class="aktivni"';?
>>
        <?= $html->link($category['Category']['title'], array('controller' =>
'entries', 'action' => 'listcategories','seourl' => $category
['Category']['seourl'],'id' => $category['Category']['id'])) ?>
</li>
<?php endforeach; ?>
</ul>

-----------------------------
rightpanel.ctp
----------------------------

<?php echo $this->element('tip');?>

-----------------------------
tip.ctp
----------------------------

<h2>Náš Tip</h2>
<?php
$entries = $this->requestAction('entries/tip');
$def = array('1'=>'Prodej', '2'=>'Pronájem');
?>
<div id="vypisTip">
<?php $i=0; ?>
<?php foreach($entries as $entry): ?>
<?php $i++; ?>
<div class="nabidka <?php if($i%2==0){?> druha<?php } ?>">
        <?php if(!empty($entry['Photo'])){?>
        <div class="foto"><?= $html->image('uploads/small/'.$entry['Photo']
['0']['images']); ?></div>
        <?php } ?>
        <h3><?= $html->link($entry['Entry']['title'], array('controller' =>
'entries', 'action' => 'detail', 'id' => $entry['Entry']['id'],
'seourl' => $seo->url($entry['Entry']['title']))) ?></h3>
        <div class="info">
        <p class="lokalita"><strong>Lokalita:</strong> <?php echo $entry
['Entry']['locality']; ?></p>
        <p class="region"><strong>Region:</strong> <?php echo $entry['Region']
['title']; ?></p>
        <p class="cena"><strong>Cena:</strong> <?php echo $entry['Entry']
['price']; ?></p>
        <p class="typ"><strong>Typ nabídky</strong>: <?php echo $def[$entry
['Entry']['def']]; ?></p>
        <p class="detail"><?= $html->link('Více informací', array
('controller' => 'entries', 'action' => 'detail', 'id' => $entry
['Entry']['id'], 'seourl' => $seo->url($entry['Entry']['title']))) ?></
p>
        </div>
</div>
<?php endforeach; ?>
</div>



On 21 Pro, 10:13, "Arthur Pemberton" <[email protected]> wrote:
> On Sun, Dec 21, 2008 at 2:44 AM, Petr Vytlačil <[email protected]> 
> wrote:
>
> > Hi i developing a application for my friends, i try this applicaton on
> > two webhosting (on local and other) all go very fine, but when i
> > uploaded application on webhosting my friends application show bad.
>
> > My problem you can see on this url:http://www.pdreality.cz/, how you
> > can see in content is show full page, its look like recursing include.
> > If you want show in source output html, its look like very bad .-(
>
> > There is source of my default layout:
>
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
> >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> > <html xmlns="http://www.w3.org/1999/xhtml";>
> > <head>
> >    <meta http-equiv="content-type" content="text/html;
> > charset=utf-8" />
> >    <meta http-equiv="content-language" content="cs" />
> >    <meta name="robots" content="all,follow" />
> >    <meta name="description" content="" />
> >    <meta name="keywords" content="" />
> >        <title>PD Reality | <?php echo $title_for_layout; ?></title>
> >        <?php
> >                echo $html->meta('icon');
> >                echo $html->css('main');
> >                echo $html->css('jquery.lightbox.css');
> >                echo $scripts_for_layout;
> >        ?>
> >        <?php echo $javascript->link('jquery.js'); ?>
> >        <?php echo $javascript->link('jquery.lightbox-0.5.pack.js'); ?>
> > </head>
> > <body>
> >        <div id="main">
> >                <div id="header">
> >                        <h1 id="logo"><a title="PD Reality" href="<?php echo 
> > $html->url
> > ('/');?>"><span></span>PD Reality</a></h1>
> >                        <?php echo $this->element('topmenu');?>
> >                        <div id="headGirlBg"></div>
> >                </div>
> >                <div id="description">
> >                        <div id="line"></div>
> >                        <div id="girlBody"></div>
> >                        <div id="descSlogan">
> >                                <h1 id="slogan"><span></span>PD REALITY Vám 
> > pomůže při prodeji
> > nebo nákupu realit</h1>
> >                                <ul>
> >                                        <li>Naše realitní kancelář, Vám ráda 
> > pomůže s prodejem nebo
> > pronájmem Vaší reality.</li>
> >                                        <li>Pomůžeme Vám nalézt vhodné 
> > bydlení, rekreační chatu nebo
> > komerční prostory pro Vaše podnikání.</li>
> >                                        <li>Spotředkujeme Vám vhodný úvěr 
> > pro financování nákupu vybrané
> > nemovitosti.</li>
> >                                </ul>
> >                        </div>
> >                </div>
> >                <div id="content">
> >                        <div id="left">
> >                                <?php echo $this->element('leftpanel');?>
> >                        </div>
> >                        <div id="center">
> >                                <?php $session->flash(); ?>
> >                                <?php echo $content_for_layout; ?>
> >                        </div>
> >                        <div id="right">
> >                                <?php echo $this->element('rightpanel');?>
> >                        </div>
> >                        <hr class="clear"/>
> >                </div>
> >                <div id="footer">
> >                        <p>Copyright (c) 2008 PD Reality - Realitní kancelář 
> > | realizace: <a
> > href="http://www.4people.cz";>Webdesign 4People</a></p>
> >                </div>
> >        </div>
> >        <?php echo $cakeDebug; ?>
> > </body>
> > </html>
>
> > I tried show page only with blank default layout and in output is
> > still in body tag is any h2.
> > Im desperate, I dont know how solve this problem, on two webhosting
> > application show good but on this no.
>
> You may need to post your: /app/views/elements/leftpanel.ctp file.
>
> --
> Fedora 9 : sulphur is good for the skin
> (www.pembo13.com)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to