• 03-07-2010, 15:06:16
    #1
    Arkadaşlar Lugesoft dizi scripti kullanıyorum.

    ben anasayfaya X kategorideki videoları göstermek istiyorum bunu nasıl yaparım asagıdaki kodları düzenleyecek arkadaslar varmı acaba?

    mesala arkadalsar kategori ID'si 2 olan kategorideki videolar anasayfada yayınlansın istiyorum.

    Kat.php dosyası ;


    <?php if (! $this->_tpl_vars['video']['video']): ?><p align="center"><strong>Henüz Film Eklenmemiş.</strong></p><?php endif; ?>
    <?php unset($this->_sections['nr']);
    $this->_sections['nr']['name'] = 'nr';
    $this->_sections['nr']['loop'] = is_array($_loop=$this->_tpl_vars['video']['video']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
    $this->_sections['nr']['show'] = true;
    $this->_sections['nr']['max'] = $this->_sections['nr']['loop'];
    $this->_sections['nr']['step'] = 1;
    $this->_sections['nr']['start'] = $this->_sections['nr']['step'] > 0 ? 0 : $this->_sections['nr']['loop']-1;
    if ($this->_sections['nr']['show']) {
        $this->_sections['nr']['total'] = $this->_sections['nr']['loop'];
        if ($this->_sections['nr']['total'] == 0)
            $this->_sections['nr']['show'] = false;
    } else
        $this->_sections['nr']['total'] = 0;
    if ($this->_sections['nr']['show']):
    
                for ($this->_sections['nr']['index'] = $this->_sections['nr']['start'], $this->_sections['nr']['iteration'] = 1;
                     $this->_sections['nr']['iteration'] <= $this->_sections['nr']['total'];
                     $this->_sections['nr']['index'] += $this->_sections['nr']['step'], $this->_sections['nr']['iteration']++):
    $this->_sections['nr']['rownum'] = $this->_sections['nr']['iteration'];
    $this->_sections['nr']['index_prev'] = $this->_sections['nr']['index'] - $this->_sections['nr']['step'];
    $this->_sections['nr']['index_next'] = $this->_sections['nr']['index'] + $this->_sections['nr']['step'];
    $this->_sections['nr']['first']      = ($this->_sections['nr']['iteration'] == 1);
    $this->_sections['nr']['last']       = ($this->_sections['nr']['iteration'] == $this->_sections['nr']['total']);
    ?>
    
    			<div class="product-box">
    					<div class="product-image"> <a href="/<?php echo $this->_tpl_vars['video']['video'][$this->_sections['nr']['index']]['adi_s']; ?>
    .html" class="red-link" title="<?php echo $this->_tpl_vars['video']['video'][$this->_sections['nr']['index']]['adi']; ?>
    "><img src="<?php echo $this->_tpl_vars['video']['video'][$this->_sections['nr']['index']]['resim']; ?>
    " alt="<?php echo $this->_tpl_vars['video']['video'][$this->_sections['nr']['index']]['adi']; ?>
    " style="border-width: 0px; height: 100px; width: 110px;" /></a> </div>
    					<div class="product-disc"> <a href="/<?php echo $this->_tpl_vars['video']['video'][$this->_sections['nr']['index']]['adi_s']; ?>
    .html" class="red-link" title="<?php echo $this->_tpl_vars['video']['video'][$this->_sections['nr']['index']]['adi']; ?>
    "><?php echo $this->_tpl_vars['video']['video'][$this->_sections['nr']['index']]['adi']; ?>
    </a> <br />
    						İzlenme: <strong><?php echo $this->_tpl_vars['video']['video'][$this->_sections['nr']['index']]['hit']; ?>
    </strong><br />
    						Süre: <strong><?php echo $this->_tpl_vars['video']['video'][$this->_sections['nr']['index']]['sure']; ?>
    </strong><br />
    						Puan: <strong><?php echo $this->_tpl_vars['video']['video'][$this->_sections['nr']['index']]['puan']; ?>
    </strong><br />
    						<?php if ($this->_tpl_vars['video']['video'][$this->_sections['nr']['index']]['etiketler']): ?>Etiketler: <?php unset($this->_sections['nt']);
    $this->_sections['nt']['name'] = 'nt';
    $this->_sections['nt']['loop'] = is_array($_loop=$this->_tpl_vars['video']['video'][$this->_sections['nr']['index']]['etiketler']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
    $this->_sections['nt']['show'] = true;
    $this->_sections['nt']['max'] = $this->_sections['nt']['loop'];
    $this->_sections['nt']['step'] = 1;
    $this->_sections['nt']['start'] = $this->_sections['nt']['step'] > 0 ? 0 : $this->_sections['nt']['loop']-1;
    if ($this->_sections['nt']['show']) {
        $this->_sections['nt']['total'] = $this->_sections['nt']['loop'];
        if ($this->_sections['nt']['total'] == 0)
            $this->_sections['nt']['show'] = false;
    } else
        $this->_sections['nt']['total'] = 0;
    if ($this->_sections['nt']['show']):
    
                for ($this->_sections['nt']['index'] = $this->_sections['nt']['start'], $this->_sections['nt']['iteration'] = 1;
                     $this->_sections['nt']['iteration'] <= $this->_sections['nt']['total'];
                     $this->_sections['nt']['index'] += $this->_sections['nt']['step'], $this->_sections['nt']['iteration']++):
    $this->_sections['nt']['rownum'] = $this->_sections['nt']['iteration'];
    $this->_sections['nt']['index_prev'] = $this->_sections['nt']['index'] - $this->_sections['nt']['step'];
    $this->_sections['nt']['index_next'] = $this->_sections['nt']['index'] + $this->_sections['nt']['step'];
    $this->_sections['nt']['first']      = ($this->_sections['nt']['iteration'] == 1);
    $this->_sections['nt']['last']       = ($this->_sections['nt']['iteration'] == $this->_sections['nt']['total']);
    ?>
    
    <a class="tag-link" href="/etiket/<?php echo ((is_array($_tmp=$this->_tpl_vars['video']['video'][$this->_sections['nr']['index']]['etiketler'][$this->_sections['nt']['index']])) ? $this->_run_mod_handler('urlencode', true, $_tmp) : urlencode($_tmp)); ?>
    .html"><?php echo $this->_tpl_vars['video']['video'][$this->_sections['nr']['index']]['etiketler'][$this->_sections['nt']['index']]; ?>
     </a><?php endfor; endif; ?><?php endif; ?></div>
  • 03-07-2010, 15:09:23
    #2
    kat.php değil nerde gösterceksen oraya sql sorgusu yazıp while ile döndüreceksin.
    sql sorgusunu yazarken where katid='2' kullanıcaksın
  • 03-07-2010, 15:10:43
    #3
    malesef php bilgim yok (
  • 03-07-2010, 15:11:52
    #4
    hocam lugesoft sistemini bilmiyorum tablo yapısı gerekli
  • 03-07-2010, 15:13:21
    #5
    hangi dosya gereki hocam?
    yada ne gerekli yazsam buraya ?
  • 03-07-2010, 15:24:05
    #6
    tablo yapısı gerekli lugesoft kullanan programcı bi arkadaş olması gerek