Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 1 misafir

Farklı Amaçla Kullanma

İleti ayhaner » 07 Åžub 2010

Merhaba projede şubeler kısmında herhangi bir şubeye tıklandığında o kategorinin başlığını göstersin istiyorum.

Bu şubede şukadar personel diye bir yazı var oranın hemen üstüne girilen kategorinin isminide eklemek istiyorum nasıl bir satır eklemem gerekiyor.

Rica etsem yardımcı olurmusunuz.

(ps: q personel bileşenini farklı bir amaçla kullanmak maksadıyla yapımcısını kaynak göstererek dil dosyalarında bir takım değişiklikler yaptım. Ürün katalog ve tanıtım şeklinde kullanılacak. Oldukça yararlı ve kullanışlı bir bileşendi adınıda q stock olarak kaydettim umarım bu sorun olmaz. )



kullanışlı ve türkçe kokan projelerinizden dolayı sizi ayrıca kutlamak ve teşekkür etmek istiyorum.
Rumuz: ayhaner
Yeni Üyemiz
Durum: Offline
Kullanıcı avatarı

İleti: 16
Kayıt: 23 Oca 2010

Re: Farklı Amaçla Kullanma

İleti ayhaner » 08 Åžub 2010

Son olarak birden fazla resim kullanabilir miyiz?
Rumuz: ayhaner
Yeni Üyemiz
Durum: Offline
Kullanıcı avatarı

İleti: 16
Kayıt: 23 Oca 2010

Re: Farklı Amaçla Kullanma

İleti batinefe » 08 Åžub 2010

4 gündür bi sorumun cevabını alamadım :d daha çok beklersin sanırım dostum :d
Rumuz: batinefe
Yeni Üyemiz
Durum: Offline
Kullanıcı avatarı

İleti: 5
Kayıt: 04 Şub 2010

Re: Farklı Amaçla Kullanma

İleti Hasan » 10 Åžub 2010

Kusura bakmayın arkadaşlar çok sık bakamıyoruz forumlara.. Biraz iş yoğunluğumuz birazda soğuduk açıkcası.

components/com_qpersonel/qpersonel.html.php 70. satırdan sonra koyu ile işaretliğim kodu eklersen kategori ismini çekebilirsin.


Kod: Tümünü seç

    
[b]echo KategoriYolu($rows[0]->katid);[/b]
    
printf (_HE_BUKATPERVAR$toplam);
 
Quality Joomla! Projects Team
Rumuz: Hasan
GeliÅŸtirici
Durum: Offline
Kullanıcı avatarı

İleti: 1250
Kayıt: 05 Eyl 2007

Re: Farklı Amaçla Kullanma

İleti ayhaner » 11 Åžub 2010

Yanıt için teşekkürler.. Hasan bey soğumayın lütfen hem çalışıp hem bu gibi şeylere vakit ayırmanın zor olduğunu biliyorum bu yüzden sizi anlıyorum ne söylesek boş.. Ama önemli olduğunuzu bilin.

Bu yerel tür yerel kaynaklar neredeyse sıfır düzeyde heyecanla başlayıp hayal kırıklığına uğramanızı istemem tavsiyem çabalamaya devam edin. Şahsım adıma kişisel desteğimi vermeye çalışıyorum ama tabi bir iki tıklamayla link ve kaynak belirtmeklede destek olunamayacağının farkındayım...

Hayırlısı diyeyim..

Kolay gelsin.
Rumuz: ayhaner
Yeni Üyemiz
Durum: Offline
Kullanıcı avatarı

İleti: 16
Kayıt: 23 Oca 2010

Re: Farklı Amaçla Kullanma

İleti ayhaner » 11 Åžub 2010

Denedim malesef çalışmadı çok hassas sanırım en ufak ayar değişikliğinde bozuluyor hemen baştan dosya upload etmek lazım.. Farklı birşey önerebilirmisin.

Hata veriyor host hataları görüntülemediği için göremiyorum tabi ama bir defasında bu kategoride şu kadar personel yazısı iki tane alt alta çıktı sonra acaba aynısını mı kopyaladım diye düşümdüm ama kodlar farklı neyse işin içinden çıkamadım..
Rumuz: ayhaner
Yeni Üyemiz
Durum: Offline
Kullanıcı avatarı

İleti: 16
Kayıt: 23 Oca 2010

Re: Farklı Amaçla Kullanma

İleti Hasan » 12 Åžub 2010

o satırdaki kodlarını yazabilirmisin bakalım ne hatasıymış bu.
Quality Joomla! Projects Team
Rumuz: Hasan
GeliÅŸtirici
Durum: Offline
Kullanıcı avatarı

İleti: 1250
Kayıt: 05 Eyl 2007

Re: Farklı Amaçla Kullanma

İleti ayhaner » 12 Åžub 2010

Aynen bu şekilde dediğiniz gibi 70 satırdan sonrasına verdiğiniz kodu yerleştirdim. Hostumun hataları görüntüle özelliği kapalı talepte bulundum henüz açmadılar.


Kod: Tümünü seç
Rumuz: ayhaner
Yeni Üyemiz
Durum: Offline
Kullanıcı avatarı

İleti: 16
Kayıt: 23 Oca 2010

Re: Farklı Amaçla Kullanma

İleti ayhaner » 12 Åžub 2010

Kod: Tümünü seç
<?Php

    /*************************************************\
    **   q-personel bileþeni                 **
    **   copyright (c) 2008 by q-proje            **
    **   quality joomla projects team members!       **
    **   version    : 1.0                   **
    **   homepage   : http://www.Qproje.Com      **
    **   license    : gnu gpl lisans           **
    \*************************************************/
defined('_valıd_mos') or die('kısıtlı alan');



class html_bilesen{

function katlistesi($option, $rows){
    global $qp_ayar, $ıtemid;

    if ($ıtemid){
      $ıtemid = '&amp;ıtemid=' . $ıtemid;
    }else{
      $ıtemid = '';
    }

      ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td  colspan="<? Echo $qp_ayar['qp_katsutun'];
      ?>" width="100%"><?Php echo _he_kategorıler;
      ?></td>
  </tr>
  <tr>
    <?Php

       $sutunlar = 0;
       foreach ($rows as $row1){
         if (($sutunlar % $qp_ayar['qp_katsutun'] == 0) and ($sutunlar <> 0))
           echo "</tr>\n<tr>\n";

         ?>
    <td style="padding:10px;" width="50%" align="left" valign="top"><div align="left"> <a href="<?Php echo sefreltoabs('index.Php?Option=com_qpersonel&task=qplistele&katid=' . $row1->katid . $ıtemid);
        ?>"> <b><?Php echo $row1->isim;
        ?> </b></a><font size="-7">( <?Php echo linklerinumarala($row1->katid) . " " . _he_adet;
        ?> )</font> <br />
    </div>
    <?Php if (@$row1->katresim <> ""){
          ?>
    <a href="<?Php echo sefreltoabs('index.Php?Option=com_qpersonel&task=qplistele&katid=' . $row1->katid . $ıtemid);?>">
      <img src="images/stories/<?Php echo $row1->katresim;?>" width="120" vspace="5" hspace="3" style="border: #ccc 1px solid; padding:3px;" /><br />
    </a>
    <?Php
        }
        echo $row1->aciklama;
        echo '</td>';
        $sutunlar++;
      }

       ?>
  </tr>
</table>
<br>
<?Php

}

function plistele (&$option , &$rows, &$pagenav, &$toplam, &$klistele){
    global $database, $mosconfig_live_site, $mosconfig_absolute_path, $ıtemid;
    global $qp_ayar;

  [b]echo kategoriyolu($rows[0]->katid);[/b]
    printf (_he_bukatpervar, $toplam);
   
    echo altkategoriler($_get["katid"]);
    printf (_he_bukatpervar, $toplam);

    if ($ıtemid){
      $ıtemid = '&amp;ıtemid=' . $ıtemid;
    }else{
      $ıtemid = '';
    }
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td  colspan="<? Echo $qp_ayar['qp_persutun'];?>" width="100%"><?Php echo _he_personelıstesı;?></td>
  </tr>
  <tr>
    <?

       $cizgi = 2;
       $sutunlar = 0;
       foreach ($rows as $row1){
         if (($sutunlar % $qp_ayar['qp_persutun'] == 0) and ($sutunlar <> 0))
          echo "</tr>\n<tr>\n";

        $tle = ereg_replace('"', '', $row1->baslik);
        $cizgiler = ($cizgi % 2) + 1;
          if ($row1->resim){
            $resimizle = $mosconfig_live_site . $qp_ayar['qp_kresim'] . "/kck_$row1->resim";
          }else{
            $resimizle = "components/com_qpersonel/images/resimyok.jpg";
          }
    ?>
    <td align="left" valign="top"><div style="padding:5px;">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td align="center">
          <a href="<?Php echo sefreltoabs('index.Php?Option=com_qpersonel&amp;task=detay&amp;id=' . $row1->id . '&amp;katid=' . $row1->katid . $ıtemid) ?>">
          <img src="<?Php echo $resimizle;?>" width="<?Php echo $qp_ayar['qp_kckgen'];?>" height="<?Php echo $qp_ayar['qp_kckuzun'];?>" style="border: #ddd 1px solid;  padding:3px;"/> </a> </td>
      </tr>
      <tr>
        <td align="center"><strong><?Php echo substr($row1->baslik, 0, $qp_ayar['qp_baslikuzun']) ?></strong></td>
      </tr>
      <tr>
        <td align="center"><?Php echo $row1->gorev;?></td>
      </tr>
      <tr>
        <td align="center"><?Php echo $row1->unvan;?></td>
      </tr>
      </table>
    </div></td>
    <?Php
       $sutunlar++;
       $cizgi++;
    }
      ?>
  </tr>
</table>
<br />
<?
    İf ($rows[0]->katid <= 0){
    ?>
<span><?Php echo _he_uyarkatbos ?></span>
<? } ?>
<div align="center">
  <?Php
       echo $pagenav->writepageslinks('index.Php?Option=com_qpersonel&amp;task=qplistele&amp;katid=' . $_get['katid']);
       echo "<br>" . $pagenav->writepagescounter();
      ?>
</div>
<?

}

function detaylarigoster($option, $id, $katid, $baslik, $metin, $gorev, $unvan, $dtarih, $ogr_durum, $eposta, $grv_baslangic, $dyeri, $ekleyen, $tarih, $resim, $yayinda, $hit, $kontrol_etti, $kontrol_zaman, $kisi){
    global $database, $mosconfig_live_site, $my;
    global $qp_ayar;
    global $qp_mods;

    if ($kisi[0]->name == null){
      $yazar_adi = _he_mısafır;
      $yazar_kisi = $yazar_adi;
    }else if ($qp_ayar['qp_cbetkin']){
      $yazar_kisi = '<a href="' . Sefreltoabs($cb_link . $kisi[0]->id) . '">' . $kisi[0]->name . '</a>';
    }else{
      $yazar_kisi = $yazar_adi;
    }

    if ($resim){
      $qp_bresmi = $mosconfig_live_site . $qp_ayar['qp_oresim'] . "/$resim";
    }else{
      $qp_bresmi = "components/com_qpersonel/images/resimyok.jpg";
    }

    if ($resim){
      $qp_resmi = $mosconfig_live_site . $qp_ayar['qp_kresim'] . "/kck_$resim";
    }else{
      $qp_resmi = "components/com_qpersonel/images/resimyok.jpg";
    }
?>
<?Php if ($qp_ayar['qp_lightbox']){ ?>
<link rel="stylesheet" href="components/com_qpersonel/lightbox/lightbox.Css" type="text/css" />
<script language="javascript" type="text/javascript" src="components/com_qpersonel/lightbox/lightbox.Js"></script>
<?Php } // lightbox bitti ?>
<script language="javascript" type="text/javascript">
    function yorumu_gonder(){
      if ((document.Yorumform.Y_adi.Value=="") || (document.Yorumform.Y_yorum.Value=="")){
        alert("<?Php echo _he_yrm_uyaryorum;?>");
      } else {
        document.Yorumform.Action = "index.Php";
        document.Yorumform.Submit();
      }
    }
</script>

<table width="100%" border="0" cellspacing="1" cellpadding="0">
  <tr >
    <td><strong><?Php echo $baslik ?></strong></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
  <tr>
    <td height="100%" valign="top"><table height="100%" align="left">
      <tr height="100%">
      <td align="center" valign="top" height="100%">
          <?Php if ($qp_ayar['qp_lightbox']){ ?>
        <a href="<?Php echo $qp_bresmi;?>" rel="lightbox" title="<?Php echo $baslik . " - " . $gorev;?>">
        <img src="<?Php echo $qp_resmi;?>" width="<?Php echo $qp_ayar['qp_kckgen'];?>" height="<?Php echo $qp_ayar['qp_kckuzun'];?>" hspace="5" vspace="5" style="border: #ccc 1px solid; padding:3px;" /></a>
        <? }else{ ?>
        <img src="<?Php echo $qp_resmi;?>" width="<?Php echo $qp_ayar['qp_kckgen'];?>" height="<?Php echo $qp_ayar['qp_kckuzun'];?>" hspace="5" vspace="5" style="border: #ccc 1px solid; padding:3px;" />
        <? } ?>
      </td>
      </tr>
      <?Php if ($qp_mods['moderator']){ ?>
      <tr>
      <td align="center" valign="top"><b><?Php echo _he_dty_ıslemler ?>&raquo;</b> <a href="<?Php echo sefreltoabs('index.Php?Option=com_qpersonel&task=duzenle&id=' . $id) ?>"> <img src="components/com_qpersonel/images/duzenle.png" width="16" height="16" border="0" title="<?Php echo _he_duzenle ?>"></a> <a href="javascript:if (confirm('<?Php echo _he_dty_ıslemsıl ?>')){ location.Href='<?Php echo sefreltoabs("index.Php?Option=com_qpersonel&task=sil&id=$id") ?>';}" title="<?Php echo _he_sıl ?>"> <img src="components/com_qpersonel/images/sil.png" width="16" border="0"></a>
        <?Php

         if ($yayinda){
           $onaylama = "onaylandi.png";
        }else{
          $onaylama = "onaylanmadi.png";
        }
        ?>
        <a href="<?Php echo sefreltoabs('index.Php?Option=com_qpersonel&task=yayinkont&id=' . $id . '&katid=' . $katid . '&yayin_durum=' . $yayinda) ?>">
          <img src="components/com_qpersonel/images/<?Php echo $onaylama ?>" border="0" title="<?Php echo _he_yayınla . "/" . _he_yayınlama ?>"></a>
        </td>
      </tr>
      <? }
      ?>
    </table>
    <table border="0" cellpadding="0" cellspacing="1" style="align:left; vertical-align: top;">
      <tr  style="vertical-align:top">
      <?Php if ($qp_ayar['qp_alan_gorev']){
        if ($gorev){ ?>
      <td  width="24%"valign="top"><?Php echo _he_dty_gorev; ?></td>
      <td width="1" align="center" valign="top">:</td>
      <td  width="76%" valign="top">&nbsp;<?Php echo $gorev; ?></td>
      <? }
      } ?>
      </tr>
      <?Php if ($qp_ayar['qp_alan_unvan']){
        if ($unvan){
          ?>
      <tr>
      <td valign="top"><?Php echo _he_dty_unvanı;
          ?></td>
      <td align="center" valign="top">:</td>
      <td valign="top">&nbsp;<?Php echo $unvan;
          ?></td>
      </tr>
      <?Php }
      }
      ?>
      <?Php if ($qp_ayar['qp_alan_dtarih']){
        if ($dtarih){
          ?>
      <tr>
      <td valign="top"><?Php echo _he_dty_dtarıh;
          ?></td>
      <td align="center" valign="top">:</td>
      <td valign="top">&nbsp;<?Php echo strftime ("%d %b %y, %a", strtotime($dtarih));
          ?></td>
      </tr>
      <?Php }
      }
      ?>
      <?Php if ($qp_ayar['qp_alan_ogrdurum']){
        if ($ogr_durum){
          ?>
      <tr>
      <td valign="top"><?Php echo _he_dty_ogr_durum;
          ?></td>
      <td align="center" valign="top">:</td>
      <td valign="top">&nbsp;<?Php echo $ogr_durum;
          ?></td>
      </tr>
      <?Php }
      }
      ?>
      <?Php if ($qp_ayar['qp_alan_eposta']){
        if ($eposta){
          ?>
      <tr>
      <td valign="top"><?Php echo _he_dty_eposta;
          ?></td>
      <td align="center" valign="top">:</td>
      <td valign="top">&nbsp;<a href="mailto:<?Php echo $eposta;
          ?>"><?Php echo $eposta;
          ?></a></td>
      </tr>
      <?Php }
      }
      ?>
      <?Php if ($qp_ayar['qp_alan_grvbas']){
        if ($grv_baslangic){
          ?>
      <tr>
      <td valign="top"><?Php echo _he_dty_grv_baslangıc;
          ?></td>
      <td align="center" valign="top">:</td>
      <td valign="top">&nbsp;<?Php echo strftime ("%d %b %y, %a", strtotime($grv_baslangic));
          ?></td>
      </tr>
      <?Php }
      }
      ?>
      <?Php if ($qp_ayar['qp_alan_dyeri']){
        if ($dyeri){
          ?>
      <tr>
      <td valign="top"><? Echo _he_dty_dyerı;
          ?></td>
      <td align="center" valign="top">:</td>
      <td valign="top">&nbsp;<?Php echo $dyeri;
          ?></td>
      </tr>
      <?Php }
      }
      ?>
    </table></td>
  </tr>
</table>
<?Php if ($qp_ayar['qp_alan_ozgecmis']){
        if ($metin){
          ?>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
  <tr>
    <td colspan="4" align="center" valign="top"><?Php echo _he_dty_ozgecmıs;
          ?></td>
  </tr>
  <tr>
    <td colspan="4" valign="top">
        <div id="ozgecmis">
          <?Php
         
          $metin = str_replace ('\"','\'',$metin);
          echo nl2br($metin);
         
          ?>
        </div>
    </td>
  </tr>
  <?Php }
      }
      ?>
</table>
<?
    İf ($qp_ayar['qp_herkesyorumlar']){
      $qp_ayar['qp_herkesyorumlar'] = 1;
    }else if ($my->username){
      $qp_ayar['qp_herkesyorumlar'] = 1;
    }else{
    $qp_ayar['qp_herkesyorumlar'] = 0;
    $mesaj = _he_yrm_yorumuyar;
    }

    if ($qp_ayar['qp_yorumlaraizin']){
      if ($qp_ayar['qp_herkesyorumlar']){
?>
<form name="yorumform" action="index.Php" target="_top" method="post">
  <input type="hidden" name="option" value="com_qpersonel" />
  <input type="hidden" name="task" value="yorumla" />
  <input type="hidden" name="y_id" value="<?Php echo $my->id ?>"/>
  <input type="hidden" name="did" value="<?Php echo $id ?>"  />
  <input type="hidden" name="katid" value="<?Php echo $_get["katid"] ?>" />
  <? İf (!$my->username){
      $ip = getenv("remote_addr"); ?>
  <input type="hidden" name="y_ip" value="<?Php echo $ip ?>" />
  <? }} ?>
  <table width="100%" border="0" cellspacing="1" cellpadding="4">
    <?

         $cizgi = 2;
         $database->setquery("select a.*, kk.İd as did"
           . "\n from #__qpersonel_yorumlar as a"
           . "\n left joın #__qpersonel as kk on kk.İd=a.Did"
           . " where a.Did = '$id' and a.Yayinda = '1'"
           . " order by a.İd asc");
        $sonuclar1 = $database->query();

        ?>
    <tr>
    <td><?Php echo _he_yrm_yazar ?></td>
    <td width="90%"><?Php echo _he_yrm_msj ?></td>
    <? İf (mysql_num_rows($sonuclar1) <= 0){
          ?>
    <tr>
    <td align="center" colspan="2"><span><?Php echo _he_yrm_uyaryrmyok ?></span></td>
    </tr>
    <? } while ($row1 = mysql_fetch_object($sonuclar1)){
        $cizgiler = ($cizgi % 2) + 1;
        $database->setquery("select name "
          . " from #__users "
          . " where username='$row1->y_id' ");
        $userid = $database->loadresult();

           ?>
    <tr>
    <td valign="top"><?Php if ($qp_mods['moderator']){ ?>
      <span title="yorumlayan ıp : <?Php echo $row1->y_ip ?>">
        <img src="<?Php echo $qp_mods['dizin'];?>/images/ip.gif" hspace="3" border="0" alt="<?Php echo $row1->y_ip ?>" />
        <a href="javascript:if (confirm('yorumu silmek istediginizden eminmisiniz?')){ location.Href='<?Php echo sefreltoabs('index.Php?Option=com_qpersonel&amp;task=yorumsil&amp;yrm_id=' . $row1->id . '&amp;pid=' . $row1->did . '&amp;katid=' . $katid) ?>'};">
        <img src="<?Php echo $qp_mods['dizin'];?>/images/sil.png" title="<?Php echo _he_yrm_uyarsıl ?>" hspace="3" border="0" /> </a> </span> <br>
      <?Php } ?>
      <div align="center" style="border:#ccc 1px dotted;" title="<?Php echo $row1->y_adi . " ";
        printf(_he_yrm_yaptar, strftime("%d.%m.%y %h:%m", $row1->y_tarih)); ?>"><strong> <?Php echo $row1->y_adi; ?></strong><br />
      <?Php

        if ($qp_ayar['qp_cbetkin'] <> 0){
          if ($row1->y_id){
            $link = sefreltoabs($qp_mods['cb_link'] . $row1->y_id);
          }else{
            $link = "#";
          }
        $user_avatar_path = 'images/comprofiler';

        $query = "select dıstınct avatar from #__comprofiler where user_id = '$row1->y_id'";
        $database->setquery($query);
        $avatar = $database->loadresult();

          if ($avatar != "" and file_exists($user_avatar_path . "/tn" . $avatar)){
            echo "<a href = '$link'><img src=$user_avatar_path/tn" . $avatar . " width='40' /></a>";
          }else{
            $cb_trizin = "components/com_comprofiler/images/turkish/nophoto.jpg";
            $cb_engizin = "components/com_comprofiler/images/english/nophoto.jpg";
            $ds_kontr = file_exists ($cb_trizin);
            $ds_konteng = file_exists ($cb_engizin);
            if ($ds_kontr){
                echo '<a href ="' . $link . '"><img src="' . $cb_trizin . '" width="40px" style="border: #ccc 1px solid;" /></a>';
            }else if ($ds_konteng){
                echo '<a href ="' . $link . '"><img src="' . $cb_engizin . '" width="40px" style="border: #ccc 1px solid;" /></a>';
            }
          }
        }else{
          $resimyok = "components/com_qpersonel/images/resimyok.jpg";
            echo '<a href ="' . $link . '"><img src="' . $resimyok . '" width="40px" style="border: #ccc 1px solid;" /></a>';

        }
    ?>
      </strong></div></td>
      <td valign="top"><?Php echo nl2br($row1->y_yrm);?></td>
    </tr>
    <? $cizgi++;
      }
      ?>
</table>
    <?Php
      if ($qp_ayar['qp_herkesyorumlar']){
        if (@$http_cookıe_vars["sessioncookie"] <> ""){
          $cryptsessionıd = md5($http_cookıe_vars["sessioncookie"]);

          $database->setquery("select username from #__session where session_ıd='$cryptsessionıd'");
          $sonuc2 = $database->query();
          list($y_adi) = mysql_fetch_row($sonuc2);
        }
        $misafirs = _he_mısafır;
    ?>
    <br />
    <table width="100%" border="0">
      <tr>
      <td><?Php echo _he_yrm_yap ?></td>
      </tr>
      <tr >
      <td valign="top">
      <? İf ($my->username){
          $database->setquery("select name from #__users where username='$my->username'");
          $ubn = $database->loadobjectlist(); ?>
        <strong><?Php echo $ubn[0]->name ?></strong>
        <input type="hidden" name="y_adi" value="<?Php echo $ubn[0]->name ?>"/>
        <?Php }else{ ?>
        <input type="text" name="y_adi" value="<?Php echo $misafirs ?>"/>
        <?Php } ?>
      </td>
      </tr>
      <tr >
      <td valign="top"><textarea cols="50" rows="5" name="y_yorum"></textarea></td>
      </tr>
      <tr>
      <td><input type="button" name="gonder" value="<?Php echo _he_buton_gonder ?>" onclick="yorumu_gonder()" />
        <input type="reset" value="<?Php echo _he_buton_temızle ?>" name="reset" />
      </td>
      </tr>
    </table>
    <br />
    </form>
    <? }else{ ?>
    <?Php
      if ($qp_ayar['qp_cbetkin']){
        $kayit_link = "<a href=\"index.Php?Option=com_comprofiler&task=registers\">";
      }else{
        $kayit_link = "<a href=\"index.Php?Option=com_registration&amp;task=register\">";
      }
        printf ("<br><span class=\"error\">" . $mesaj . "</span>", $kayit_link);
    ?>
    </span>
<?Php }
    }
}

function duzenle(&$row, &$options, &$klistele, &$gruplar, &$listeler){
    global $my, $mosconfig_live_site, $mosconfig_absolute_path;
    global $qp_ayar, $qp_mods;

    if ($row->resim){
      $onizlemeresmi = $mosconfig_absolute_path . $qp_kresim . "/kck_$row->resim";
    }else{
      $onizlemeresmi = "components/com_qpersonel/images/resimyok.jpg";
    }

?>
<script type="text/javascript">var cbtemplatedir="<? Echo $mosconfig_live_site . "/administrator/components/com_qpersonel/js/";?>"</script>
<script type="text/javascript">calendar = function () { };</script>
<script type="text/javascript" src="<? Echo $mosconfig_live_site . "/administrator/components/com_qpersonel/js/";?>calendar-locals.Js"></script>
<script type="text/javascript" src="<? Echo $mosconfig_live_site . "/administrator/components/com_qpersonel/js/";?>calendardateinput.Js"></script>
<script language="javascript" type="text/javascript">
    function qp_gonder(){
    var form = document.Mosform;

      if (form.Baslik.Value == ""){
        alert("<?Php echo _he_form_pers;?>");
        form.Baslik.Focus();
        form.Baslik.Style.Backgroundcolor = "red";
      }else if (form.Gorev.Value == ""){
        alert("<?Php echo _he_form_grv;?>");
        form.Gorev.Focus();
        form.Gorev.Style.Backgroundcolor = "red";
        return false();
      }else if (form.Unvan.Value == ""){
        alert("<?Php echo _he_form_unv;?>");
        form.Unvan.Focus();
        form.Unvan.Style.Backgroundcolor = "red";
      }else if (form.Katid.Value == "0"){
        alert("<?Php echo _he_form_kat;?>");
        form.Katid.Focus();
        form.Katid.Style.Backgroundcolor = "red";
      }else {
        document.Mosform.Action = "index.Php";
        document.Mosform.Submit();
        }
    }
</script>
<?


İf ($gruplar[0]->grup_id >= $qp_ayar['qp_gid'] or $qp_ayar['qp_gid'] == 29){ ?>
<form action="index.Php" method="post" name="mosform" enctype="multipart/form-data">
  <table cellpadding="0" cellspacing="0">
    <tr>
    <th colspan="4"><?Php echo _he_buton_ekle;?></th>
    </tr>
    <tr>
    <td width="15%"><strong><?Php echo _he_l_baslık;?></strong></td>
    <td><input name="baslik" type="text" id="baslik" value="<?Php echo $row->baslik;?>" size="40" />
    </td>
    </tr>
    <?Php if ($qp_ayar['qp_alan_gorev']){?>
    <tr>
    <td><strong><?Php echo _he_gorev;?></strong></td>
    <td><input name="gorev" type="text" id="gorev" value="<?Php echo $row->gorev;?>" size="40" />
    </td>
    </tr>
    <?Php } ?>
    <?Php if ($qp_ayar['qp_alan_unvan']){ ?>
    <tr>
    <td><strong><?Php echo _he_unvan; ?></strong></td>
    <td><input name="unvan" type="text" id="unvan" value="<?Php echo $row->unvan; ?>" size="40" />
    </td>
    </tr>
    <?Php } ?>
    <?Php if ($qp_ayar['qp_alan_dtarih']){ ?>
    <tr>
    <td valign="top"><strong><?Php echo _he_dtarıh; ?></strong></td>
    <td><script type="text/javascript">cbcaldateınput('dtarih', false, 'mm/dd/yyyy', '<?Php echo $row->dtarih;?>', 'dtarih', '')</script></td>
    </tr>
    <?Php }?>
    <?Php if ($qp_ayar['qp_alan_dyeri']){?>
    <tr>
    <td><strong><?Php echo _he_d_yerı;?></strong></td>
    <td><?Php


    // ıl listesi
    if ($qp_ayar['qp_iller']) $tum_iller = split(",", $qp_ayar['qp_iller']);
      echo '<select name="dyeri"><option value="">' . _he_ltf_sec . '</option>';
        foreach ($tum_iller as $deger){
          echo '<option value="' . $deger . '"';
          if ($row->dyeri == $deger){
            echo " selected ";
          }
            echo '>' . $deger . '</option>';
        }
        echo '</select>';
        ?>
    </td>
    </tr>
    <?Php } ?>
    <?Php if ($qp_ayar['qp_alan_ogrdurum']){ ?>
    <tr>
    <td><strong><?Php echo _he_ogrenım_durum; ?></strong></td>
    <td><?Php

    // ögrenim listesi
    if ($qp_ayar['qp_ogr_durum']) $ogrenim_durum = split(",", $qp_ayar['qp_ogr_durum']);
      echo '<select name="ogr_durum"><option value="">' . _he_ltf_sec . '</option>';
        foreach ($ogrenim_durum as $ogr_durum){
          echo '<option value="' . $ogr_durum . '"';
            if ($row->ogr_durum == $ogr_durum){
                echo "selected";
            }
               echo '>' . $ogr_durum . '</option>';
        }
        echo '</select>'; ?>
    </td>
    </tr>
    <?Php }
        ?>
    <?Php if ($qp_ayar['qp_alan_eposta']){
          ?>
    <tr>
    <td><strong><?Php echo _he_eposta;
          ?></strong></td>
    <td><input name="eposta" type="text" id="eposta" value="<?Php echo $row->eposta;
          ?>" size="40" />
    </td>
    </tr>
    <?Php }
        ?>
    <?Php if ($qp_ayar['qp_alan_grvbas']){
          ?>
    <tr>
    <td valign="top"><strong><?Php echo _he_grv_baslangıc;
          ?></strong></td>
    <td><script type="text/javascript">cbcaldateınput('grv_baslangic', false, 'mm/dd/yyyy', '<?Php echo $row->grv_baslangic;
          ?>', 'grv_baslangic', '')</script>
    </td>
    </tr>
    <?Php } ?>
    <tr>
    <td valign="top"><strong><?Php echo _he_l_kategorı; ?>:</strong></td>
    <td><?Php echo $klistele; ?></td>
    </tr>
    <?Php if ($qp_ayar['qp_alan_ozgecmis']){ ?>
    <tr>
    <td><strong><?Php echo _he_l_metın; ?></strong></td>
    <td>
<?Php

    if ($qp_ayar['qp_editor'] == "editor_joomla"){
      echo editorarea('editor1', $row->metin , 'metin', '400', '200', '10', '15') . '</td>';
    }else{
?>      <textarea id="metin" name="metin" cols="45" rows="5" style="width:100%px; height:250px;"><? Echo $row->metin;?></textarea>
<?Php } ?></td>
    </tr>
    <?Php } ?>
    <tr>
    <td valign="top"><strong><?Php echo _he_dresım; ?></strong></td>
    <td><input type="file" name="resim"/>
      <?Php if($uid){ ?>

<script language="javascript">
<!--
    function showınfo(baslik, resim) {
      html = '<div style="width:100%;text-align:left;vertical-align:left;"><img style="border:1px solid #fff; margin:20px" src='+resim+' name="imagelib" /></div>';
      return overlib(html, captıon, baslik)
    }
    function editentry(number) {
      var elm = document.Getelementbyıd('cb'+number);
      if (elm) {
        elm.Checked = true;
      }
    }
    -->
</script>
    <a href="javascript:editentry(<?Php echo $i; ?>); submitform('#');" onmouseover="showınfo('<?Php echo $row->baslik; ?>', '<?Php echo $onizlemeresmi; ?>')" onmouseout="return nd();">
    <img src="<? Echo $mosconfig_live_site . "/components/" . $com_bilesen . "/images/ip.gif"?>" border="0" alt="<?Php echo _he_mvct_resım;?>" />
    </a>
    <?Php } ?>
    </td>
    </tr>
    <? İf ($qp_mods['moderator']){ ?>
    <tr>
    <td valign="top" ><strong><?Php echo _he_yayında; ?></strong></td>
    <td nowrap="nowrap" ><?Php echo $listeler['yayinlama'];?></td>
    </tr>
    <? } ?>
    <tr>
    <td><strong><?Php echo _he_l_ekleyen; ?></strong></td>
    <td><strong>
<?Php
    if (!$my->username){
      $ekleyen = _he_mısafır;
      echo $ekleyen;
    }else{
      echo $my->name;
    }
?>
    </strong></td>
    </tr>
  </table>
  <input type="hidden" name="task" value="kaydet">
  <input type="hidden" name="option" value="com_qpersonel"/>
  <input type="hidden" name="tarih" value="<?Php echo $tarih = time();?>" />
  <input type="hidden" name="ekleyen" value="<?Php echo $my->id;?>" />
  <input type="hidden" name="mresim" value="<?Php echo $row->resim;?>" />
  <input type="hidden" name="id" value="<?Php echo $row->id;?>" />
  <input type="hidden" name="textfieldcheck" value="<?Php echo $n;?>" />
  <input type="button" name="send" value="<?Php echo _he_buton_gonder;?>" onclick="qp_gonder()" />
</form>
<?Php
      }else{
        echo "<span class='error'>" . _he_kayıtuyar . "</span>";
      }
}

function aramalistesi($option , $rows, $pagenavem, $toplam){
    global $database, $mosconfig_live_site, $ıtemid;
    global $qp_ayar;
    global $qp_mods;

    if ($toplam <= 0){
      echo _he_aramakrıter;
    }else{
    printf (_he_toplamsonuc, $toplam);
    }
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="<? Echo $qp_ayar['qp_persutun'];?>" width="100%">
    <?Php echo _he_personelıstesı;?></td>
    <? $cizgi = 2; ?>
  </tr>
  <tr>
<?

    $sutunlar = 0;
    foreach ($rows as $row1){

      $query = "select count(*)"
        . "\n from #__qpersonel_yorumlar where did = '$row1->id' and yayinda = 1" ;
      $database->setquery($query);
      $yorumlar = $database->loadresult();


      $query = "select name"
        . "\n from #__users where id = '$row1->ekleyen'" ;
      $database->setquery($query);
      $ekler = $database->loadresult();

      if (($sutunlar % $qp_ayar['qp_persutun'] == 0) and ($sutunlar <> 0))
      echo "</tr>\n<tr>\n";

      $tle = ereg_replace('"', '', $row1->baslik);
      $cizgiler = ($cizgi % 2) + 1;

      if ($row1->resim){
        $resimizle = $mosconfig_live_site . $qp_ayar['qp_kresim'] . "/kck_$row1->resim";
      }else{
        $resimizle = "components/com_qpersonel/images/resimyok.jpg";
      }
?>
    <td align="left" valign="top">
    <div style="padding:5px;">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" id="personel">
      <tr>
        <td align="center">
          <a href="<?Php echo sefreltoabs($qp_link . 'index.Php?Option=com_qpersonel&task=detay&id=' . $row1->id . '&katid=' . $row1->katid . $ıtemid) ?>">
            <img src="<?Php echo $resimizle;?>" width="<?Php echo $qp_ayar['qp_kckgen'];?>" height="<?Php echo $qp_ayar['qp_kckuzun'];?>"  border="0" style="border: #ddd 1px solid;  padding:3px;"/>
          </a>
        </td>
      </tr>
      <tr>
        <td align="center"><strong><?Php echo substr($row1->baslik, 0, $qp_ayar['qp_baslikuzun']) ?></strong></td>
      </tr>
      <tr>
        <td align="center"><?Php echo $row1->gorev;?></td>
      </tr>
      <tr>
        <td align="center"><?Php echo $row1->unvan;?></td>
      </tr>
      </table>
    </div>
    </td>
    <?Php

      $sutunlar++;
      $cizgi++;
    } ?>
  </tr>
</table>
<div align="center"><?Php echo $pagenavem->writepageslinks("$qp_link&task=arama&aranan_kelime=$aranan_kelime");?><br>
  <?Php echo $pagenavem->writepagescounter();?>
</div>
<?Php
    echo "<br><div align='right'>" . $yapim . "</div>";
    } // arama : bitti


function harfsirala (&$option , &$rows, &$pagenavem, &$toplam){
    global $database, $mosconfig_live_site, $mosconfig_absolute_path, $ıtemid;
    global $qp_ayar;
    global $qp_mods;

    if ($ıtemid){
      $ıtemid = '&amp;ıtemid=' . $ıtemid;
    }else{
      $ıtemid = '';
    }
    printf ("<b>" . Strip_tags($_get["personel_sira"]) . "</b>" . _he_on_harfsonuc, $toplam);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td  colspan="<? Echo $qp_ayar['qp_persutun'];?>" width="100%"><?Php echo _he_personelıstesı;?></td>
  </tr>
  <tr>
    <?


      $cizgi = 2;
      $sutunlar = 0;
      foreach ($rows as $row1){
        if (($sutunlar % $qp_ayar['qp_persutun'] == 0) and ($sutunlar <> 0))
        echo "</tr>\n<tr>\n";

        $tle = ereg_replace('"', '', $row1->baslik);
        $cizgiler = ($cizgi % 2) + 1;

        if ($row1->resim){
          $resimizle = $mosconfig_live_site . $qp_ayar['qp_kresim'] . "/kck_$row1->resim";
        }else{
          $resimizle = "components/com_qpersonel/images/resimyok.jpg";
        }
?>
    <td align="left" valign="top"><div style="padding:5px;">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" id="personel">
      <tr>
        <td align="center">
          <a href="<?Php echo sefreltoabs('index.Php?Option=com_qpersonel&amp;task=detay&amp;id=' . $row1->id . '&amp;katid=' . $row1->katid . $ıtemid) ?>">
            <img src="<?Php echo $resimizle;?>" width="<?Php echo $qp_ayar['qp_kckgen'];?>" height="<?Php echo $qp_ayar['qp_kckuzun'];?>" style="border: #ddd 1px solid;  padding:3px;"/>
          </a>
        </td>
      </tr>
      <tr>
        <td align="center"><strong><?Php echo substr($row1->baslik, 0, $qp_ayar['qp_baslikuzun']) ?></strong></td>
      </tr>
      <tr>
        <td align="center"><?Php echo $row1->gorev;?></td>
      </tr>
      <tr>
        <td align="center"><?Php echo $row1->unvan;?></td>
      </tr>
      </table>
    </div></td>
    <?Php
         $sutunlar++;
         $cizgi++;
      }
    ?>
  </tr>
  <tr>
    <td align="left" valign="top">&nbsp;</td>
  </tr>
</table>
<div align="center">
  <?Php

    echo $pagenavem->writepageslinks("index.Php?Option=com_qpersonel&amp;task=sirala&amp;personel_sira=" . $_get[personel_sira]);
    echo "<br>" . $pagenavem->writepagescounter();

       ?>
</div>
<?
    } // harf sýrala : bitti
} // class bitti
?>
Rumuz: ayhaner
Yeni Üyemiz
Durum: Offline
Kullanıcı avatarı

İleti: 16
Kayıt: 23 Oca 2010

Re: Farklı Amaçla Kullanma

İleti ayhaner » 14 Åžub 2010

Hocam pardonya hataları görüntüle modu açılınca hatayı gördüm yanlış koymuşum.. Problem yok düzelttim. Dediğiniz gibi çalışıyor.
Rumuz: ayhaner
Yeni Üyemiz
Durum: Offline
Kullanıcı avatarı

İleti: 16
Kayıt: 23 Oca 2010

Re: Farklı Amaçla Kullanma

İleti ayhaner » 19 Åžub 2010

Son bir ricam var. Rica etsem eklediğimiz kodu nasıl büyütebiliriz.
Mesela kategori ismi bu kadar büyütebilirmiyiz.
Rumuz: ayhaner
Yeni Üyemiz
Durum: Offline
Kullanıcı avatarı

İleti: 16
Kayıt: 23 Oca 2010

Re: Farklı Amaçla Kullanma

İleti ayhaner » 19 Åžub 2010

Son olarak personel modülünde küçük bir değişiklik yapmak istedim ama başaramadım. Başlığın üzerine geldiğinde fare imleci el işareti olsun istiyorum ama text olarak ayarlanmış.. Css dosyasında cursor hand yaptım olmadı pointer yaptım gene olmadı acaba nereden değişir bu?
Rumuz: ayhaner
Yeni Üyemiz
Durum: Offline
Kullanıcı avatarı

İleti: 16
Kayıt: 23 Oca 2010

Re: Farklı Amaçla Kullanma

İleti ayhaner » 20 Åžub 2010

Modülünüzde zaten istediğim özellikler varmış ama kurulum yaptıktan sonra modül klasörünün içerisinde mod_qpersonel ve bu klasörün içindede mod_qpersonel diye bir klasör açmış kendine kodlamalarda dosya yolu aşağıdaki gibi yapmak lazım.
Kod: Tümünü seç
<link href="<?Php echo $mosconfig_live_site."/modules/mod_qpersonel/mod_qpersonel/mod_qpersonel.Css" ?>" rel="stylesheet" type="text/css" />
<script src="<?Php echo $mosconfig_live_site."/modules/mod_qpersonel/mod_qpersonel/mootools.Qpersonel.Js" ?>" type=text/javascript></script>
Rumuz: ayhaner
Yeni Üyemiz
Durum: Offline
Kullanıcı avatarı

İleti: 16
Kayıt: 23 Oca 2010


Geliştirme & Özelleştirme

Yapimci phpBB © 2009 phpBB Group Style Tasarim Q-Proje