function addAkreditasyonValues (params, name){ var arr = new Array (); var pathName = new Array (); var fileName = new Array (); var ekId = new Array (); <?php $data = $this->akreditasyon; $tableCount = count($data); $c = 0; for ($i = 0; $i < $tableCount; $i++) { $arr = $data[$i]; echo 'ekId[' . $i . ']= "' . $arr["AKREDITASYON_ID"] . '";'; echo 'pathName[' . $i . ']= "' . FormFactory::normalizeVariable($arr["AKREDITASYON_PATH"]) . '";'; echo 'fileName[' . $i . ']= "' . FormFactory::getNormalFilename(basename($arr["AKREDITASYON_PATH"])) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["AKREDITASYON_ADI"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["AKREDITASYON_ACIKLAMA"]) . '";'; // echo 'arr['.$c++.']= "'. FormFactory::normalizeVariable ($arr["AKREDITASYON_SEVIYE"]) .'";'; // echo 'arr['.$c++.']= "'. FormFactory::normalizeVariable ($arr["AKREDITASYON_STANDARDI"]) .'";'; // echo 'arr['.$c++.']= "'. FormFactory::normalizeVariable ($arr["AKREDITASYON_BASLANGIC"]) .'";'; // echo 'arr['.$c++.']= "'. FormFactory::normalizeVariable ($arr["AKREDITASYON_BITIS"]) .'";'; // echo 'arr['.$c++.']= "'. FormFactory::normalizeVariable ($arr["AKREDITASYON_DENETIM"]) .'";'; // echo 'arr['.$c++.']= "'. FormFactory::normalizeVariable ($arr["AKREDITASYON_KAPSAM"]) .'";'; } ?> if (isset (arr)){ addTableValues (arr, new Array (), params, name); for (var i = 0; i < pathName.length; i++){ var path = pathName[i]; var fileName = fileName[i]; var id = name + "_0";
echo 'arrId[0]= "' . $personel_id . '";'; echo "arr[0] = new Array ();"; echo 'arr[0][0]= "' . $data[0]["DIL_ADI"] . '";'; for ($i = 0; $i < $tableCount; $i++) { $arr = $data[$i]; if ($personel_id != $arr["GOREVLI_PERSONEL_ID"]) { $p++; echo "arr[" . $p . "] = new Array ();"; echo 'arrId[' . $id . ']= "' . $arr["GOREVLI_PERSONEL_ID"] . '";'; echo 'arr[' . $p . '][0]= "' . FormFactory::normalizeVariable($arr["DIL_ADI"]) . '";'; $personel_id = $arr["GOREVLI_PERSONEL_ID"]; $id++; $c = 1; } if ($c % 5 == 0) { echo 'arr[' . $p . '][' . $c . ']= "' . FormFactory::normalizeVariable($arr["DIL_ADI"]) . '";'; $c++; } echo 'arr[' . $p . '][' . $c . ']= "' . $arr["DIL_DERECESI"] . '";'; $c++; } } ?> var inpName = ""; for (var i = 1; i < panelCount+1; i++){ if (i == 1) inpName = "divpersonelForm_panel-21-20"; else inpName = "divpersonelForm_panel"+ i +"-21-20";
if (isReadOnly){ satirEkleKaldir (tableName); satirSilKaldir (tableName, 2); } } function addTutumValues (tutum, name){ var length = tutum.length; var params = new Array (); var arr = new Array (); var arrId = new Array (); for (var i = 0; i < length; i++){ params[i] = tutum[i][0]; } <?php $tableCount = count($this->tutumDavranis); $c = 0; $id = 0; for ($i = 0; $i < $tableCount; $i++) { $arr = $this->tutumDavranis[$i]; echo 'arrId[' . $id++ . ']= "' . $arr["TUTUM_DAVRANIS_ID"] . '";'; echo 'arr[' . $c++ . ']= "' . ($i + 1) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["TUTUM_DAVRANIS_ADI"]) . '";'; } ?> if (isset (arr)) addTableValues (arr, arrId, params, name); } </script>
<th>Unvan</th> <th>Kurum / Kuruluş</th> <th>Satırı Sil?</th> </tr> </thead> <tbody> <?php $i = 0; foreach ($gorevAlan[4] as $row) { $i++; echo ' <tr class="tablo_row" id="gorevAlanlarSatir5' . $i . '"> <td style="text-align:center;"><input type="hidden" id="datatablosuId5" value="' . $i . '">' . $i . '</td> <td><input type="text" id="adSoyad5' . $i . '" name="adSoyad[5][]" size="25" class="required" value="' . FormFactory::normalizeVariable($row["GOREV_ALAN_AD_SOYAD"]) . '"></td> <td><input type="text" id="unvan5' . $i . '" name="unvan[5][]" size="25" value="' . FormFactory::normalizeVariable($row["GOREV_ALAN_UNVAN"]) . '"></td> <td><input type="text" id="kurum5' . $i . '" name="kurum[5][]" size="50" value="' . FormFactory::normalizeVariable($row["GOREV_ALAN_KURULUS"]) . '"></td> <td width="10%" class="tablo_sil_hucre"><input type="button" value="Sil" onclick="satirsil(5,' . $i . ');"></td> </tr> '; } ?> </tbody> </table> <input type="button" value="Yeni Satır Ekle" style="" onclick="satirekle('gorevAlanlarListesi','',5);"/> </div> </div> </div> </div> <div style="width:100%; float: none; text-align:center;;">
function addTaslakPdf (tableName){ var paths = new Array (); var fileNames = new Array (); <?php //$path1 = FormFactory::normalizeVariable ($yet_bilgi["ILK_TASLAK_PDF"]); if ($revize_no == "00") { $path2 = FormFactory::normalizeVariable($yet_bilgi["RESMI_GORUS_ONCESI_PDF"]); $path3 = FormFactory::normalizeVariable($yet_bilgi["SEKTOR_KOMITESI_ONCESI_PDF"]); $path4 = FormFactory::normalizeVariable($yet_bilgi["YONETIM_KURULU_ONCESI_PDF"]); $path5 = FormFactory::normalizeVariable($yet_bilgi["SON_TASLAK_PDF"]); //3 } else { $path2 = FormFactory::normalizeVariable($rev_bilgi["RESMI_GORUS_ONCESI_PDF"]); $path3 = FormFactory::normalizeVariable($rev_bilgi["SEKTOR_KOMITESI_ONCESI_PDF"]); $path4 = FormFactory::normalizeVariable($rev_bilgi["YONETIM_KURULU_ONCESI_PDF"]); $path5 = FormFactory::normalizeVariable($rev_bilgi["SON_TASLAK_PDF"]); //3 } //echo "paths[0] = '".$path1."';"; echo "paths[0] = '" . $path2 . "';"; echo "paths[1] = '" . $path3 . "';"; echo "paths[2] = '" . $path4 . "';"; echo "paths[3] = '" . $path5 . "';"; //4 //echo "fileNames [0] = '".FormFactory::getNormalFilename(basename ($path1))."';"; echo "fileNames [0] = '" . FormFactory::getNormalFilename(basename($path2)) . "';"; echo "fileNames [1] = '" . FormFactory::getNormalFilename(basename($path3)) . "';"; echo "fileNames [2] = '" . FormFactory::getNormalFilename(basename($path4)) . "';"; echo "fileNames [3] = '" . FormFactory::getNormalFilename(basename($path5)) . "';"; //5 ?>
//FILE UPLOAD dTables.protokolDosya = new Array(new Array("upload")); function createTables(){ tableName = "protokolDosya"; createTable(tableName, new Array('')); satirEkleKaldir (tableName); satirSilKaldir (tableName, 0); addProtokolDosya (tableName); } function addProtokolDosya (tableName){ <?php $path = $dosya; echo "var path = '" . FormFactory::normalizeVariable($path) . "';"; echo "var fileName = '" . FormFactory::getNormalFilename(basename($path)) . "';"; ?> if (path != null && path != ''){ var id = tableName + "_0"; var sira = 1; var resultDiv = document.getElementById(id + "_result_div_" + sira); var inputPath = '<input type="hidden" value="'+path+'" name="path_'+id+'_'+sira +'">' + '<input type="hidden" value="" name="filename_'+id+'_'+sira +'">'; var result = inputPath + '<div class="up_success">'+fileName+' yüklendi!'; result += '<input type="button" value="İndir" onclick="window.location.href=\'index.php?option=com_yetkilendirme_yet&task=indir&protokolID=<?php echo $protokolID; ?> \'" class="up_submitbtn" style="float:none;"> <\/div>';
$dataB = array_merge($this->bilgi, $this->beceri, $this->yetkinlik); $dataB = subval_sort($dataB, 'BECERI_YETKINLIK_ADI'); $r = 'dTables.degerlendirme = new Array(new Array("combo", new Array('; $so = 'new Array ("Seçiniz", "Seçiniz"),'; if (isset($dataO)) { foreach ($dataO as $row) { $id = $row["DEGERLENDIRME_ARAC_ID"]; $value = FormFactory::normalizeVariable($row["DEGERLENDIRME_ARAC_ADI"]); $so .= 'new Array ("' . $id . '","' . $value . '"),'; } } $sb = 'new Array ("Seçiniz", "Seçiniz"),'; if (isset($dataB)) { foreach ($dataB as $row) { $id = $row["BECERI_YETKINLIK_ID"]; $value = FormFactory::normalizeVariable($row["BECERI_YETKINLIK_ADI"]); $sb .= 'new Array ("' . $id . '","' . $value . '"),'; } } $so = substr($so, 0, strlen($so) - 1); $sb = substr($sb, 0, strlen($sb) - 1); $r = $r . $so . '),"comboReq", "", "250"), new Array("combo", new Array(' . $sb . '),"comboReq", "", "250"));'; echo $r; ?> //DEGERLENDIRME SON //dTables.degerlendirme = new Array(new Array("text","","40", "", readOnly),new Array("text","","40", "", readOnly)); function createTables(){ var tableName = 'degerlendirme'; createTable(tableName, new Array ('Değerlendirme Aracı', 'Ölçülen Öğrenme Çıktıları'));
<thead class="tablo_header"> <tr id="ekipmanListeBaslik"> <td style="font-weight: bold; text-align: center;">Sıra No</td> <td style="font-weight: bold; text-align: center;">Ekipman</td> <td style="font-weight: bold; text-align: center;">Sil?</td> </tr> </thead> <?php $i = 0; foreach ($ekipman as $arr) { $i++; echo ' <tr id="ekipmanSatir' . $i . '" class="tablo_row"> <input type="hidden" name="datatablosuId" value="' . $i . '"> <td style="text-align:center;">' . $i . '</td> <td style=""><input name="ekipman[]" size=75 id="ekipman' . $i . '" value="' . FormFactory::normalizeVariable($arr["EKIPMAN_ADI"]) . '"></td> <td style="text-align: center;"><input type="button" value="Sil" onclick="satirsil(' . $i . ');"></td> </tr> '; } echo "<script>\n window.sonSatir=" . $i . "\n </script>"; ?> </table> <div style="width:100%;float: none;text-align:center; padding-bottom: 15px;"> <input type="button" value="Yeni Satır Ekle" style="" onclick="satirekle('ekipmanListesi');"/> <input type="button" id="topluEkleLink" value="Toplu Satır Ekle"> </div> </div> <?php if ($this->canEdit) { ?>
} function createAddIrtibatValues (name, buttonName){ var arry = new Array (); <?php $data = $this->irtibat; $panelCount = count($data); echo 'var panelCount =' . $panelCount . ';'; $c = 0; for ($i = 0; $i < $panelCount; $i++) { $arrIrtibat = $data[$i]; echo 'arry[' . $c++ . ']= "' . $arrIrtibat["IRTIBAT_ID"] . '";'; echo 'arry[' . $c++ . ']= "' . FormFactory::normalizeVariable($arrIrtibat["IRTIBAT_KISI_ADI"]) . '";'; echo 'arry[' . $c++ . ']= "' . FormFactory::normalizeVariable($arrIrtibat["IRTIBAT_EPOSTA"]) . '";'; echo 'arry[' . $c++ . ']= "' . FormFactory::normalizeVariable($arrIrtibat["IRTIBAT_TELEFON"]) . '";'; echo 'arry[' . $c++ . ']= "' . FormFactory::normalizeVariable($arrIrtibat["IRTIBAT_FAKS"]) . '";'; } ?> var rowCount = 4; createNPanels(panelCount, name, buttonName); if (isset (arry)) addPanelValues (arry, name, panelCount, rowCount); } jQuery("#ChronoContact_akreditasyon_basvuru_t4").validate(); jQuery("#text_4").mask("(999) 999-9999"); jQuery("#text_5").mask("(999) 999-9999"); jQuery("#text_6").live("keypress",function(){ var url = jQuery(this).val();
function formGoster($kuruluslar, $denetimSonuc, $denetimRow) { ?> <script type="text/javascript"> dTables.denetimEkibi = new Array(new Array("text","required", "30"), new Array("text","required", "30")); dTables.rapor = new Array(new Array("upload")); </script> <form method="POST" action="index.php?option=com_denetim_duzenle" id="denetim_form" onSubmit="return validate('denetim_form')"> <input type="hidden" name="gorev" value="kaydet"></input> <input type="hidden" name="denetimId" value="<?php echo $denetimRow['DENETIM_ID']; ?> "></input> <table> <tr> <td>Denetim Yapılan Kuruluş</td> <td><select name="kurulus"> <option value="Seçiniz">Seçiniz</option> <?php echo $kuruluslar; ?> </select></td> </tr> <tr> <td>Denetim Tarihi</td> <td><input type="text" id="inputdenetim_tarihi" name="denetim_tarihi" size="10" value="<?php echo $denetimRow['DENETIM_TARIHI_F']; ?> " class="required date"> <input type="button" value="..." id="denetim_tarihi_button"></input>(GG.AA.YYYY)</td> </tr> <tr> <td>Denetim Süresi</td> <td><input type="text" name="denetimSuresi" value="<?php echo $denetimRow['DENETIM_SURESI']; ?> " size="10"></td> </tr> <tr> <td>DENETİM EKİBİ</td> <td> <div id="denetimEkibi_div"></div> </td> </tr> <tr> <td>DENETİM MASRAF KARŞILIĞI /HESAP NUMARASI</td> <td><input type="text" value="<?php echo $denetimRow['DENETIM_HESAP_NO']; ?> " name="hesapNo"></input></td> </tr> <tr> <td>MASRAF YATIRILDI MI?</td> <td><select name="yatirildimi"> <option value="Seçiniz">Seçiniz</option> <option value="0" <?php echo $denetimRow['DENETIM_UCRETI_YATTI_MI'] == '0' ? 'selected="selected"' : ''; ?> >Hayır</option> <option value="1" <?php echo $denetimRow['DENETIM_UCRETI_YATTI_MI'] == '1' ? 'selected="selected"' : ''; ?> >Evet</option> </select></td> </tr> <tr> <td>DENETİM RAPORU</td> <td> <div id="rapor_div"></div> </td> </tr> <tr> <td>DENETİM SONUCU</td> <td><select name="sonuc"> <option value="Seçiniz">Seçiniz</option> <?php echo $denetimSonuc; ?> </select></td> </tr> <tr> <td>DENETİM SONUCU AÇIKLAMA</td> <td><input type="text" name="sonucAciklama" value="<?php echo $denetimRow['DENETIM_SONUC_ACIKLAMA']; ?> "></input></td> </tr> </table> <br /> <input type="submit" value="Kaydet"></input></form> <script type="text/javascript"> function createTables(){ createTable('denetimEkibi',new Array ('Personel Adı', 'Soyadı')); personelleriEkle(); tableName = "rapor"; createTable(tableName, new Array('')); satirEkleKaldir (tableName); satirSilKaldir (tableName, 0); addRapor (tableName); } function addRapor (tableName){ <?php $path = $denetimRow["DENETIM_RAPOR_PATH"]; echo "var path = '" . FormFactory::normalizeVariable($path) . "';"; echo "var fileName = '" . FormFactory::getNormalFilename(basename($path)) . "';"; ?> if (path != null && path != ''){ var id = tableName + "_0"; var resultDiv = document.getElementById(id + "_result_div_1"); var inputPath = '<input type="hidden" value="'+path+'" name="path_'+id+'_1">' + '<input type="hidden" value="" name="filename_'+id+'_1">'; var result = inputPath + '<div class="up_success">'+fileName+' yüklendi!<\/div>'; result += '<div><input type="button" value="Değiştir" onclick="removeUploaded(\''+id+'\',\'1\')" /></div>'; resultDiv.innerHTML = result; var uploadSpan = document.getElementById(id + "_upload_form_span_1"); uploadSpan.style.visibility = 'hidden'; uploadSpan.style.height = 0; } } </script> <?php }
<thead class="tablo_header"> <tr id="bilgiBeceriListeBaslik"> <td style="font-weight: bold; text-align: center;">Sıra No</td> <td style="font-weight: bold; text-align: center;">Bilgi-Beceri</td> <td style="font-weight: bold; text-align: center;">Sil?</td> </tr> </thead> <?php $i = 0; foreach ($bilgiBeceri as $arr) { $i++; echo ' <tr id="bilgiBeceriSatir' . $i . '" class="tablo_row"> <input type="hidden" name="datatablosuId" value="' . $i . '"> <td style="text-align:center;">' . $i . '</td> <td style=""><input name="bilgiBeceri[]" size=75 id="bilgiBeceri' . $i . '" value="' . FormFactory::normalizeVariable($arr["BILGI_BECERI_ADI"]) . '"></td> <td style="text-align: center;"><input type="button" value="Sil" onclick="satirsil(' . $i . ');"></td> </tr> '; } echo "<script>\n window.sonSatir=" . $i . "\n </script>"; ?> </table> <div style="width:100%;float: none;text-align:center; padding-bottom: 15px;"> <input type="button" value="Yeni Satır Ekle" style="" onclick="satirekle('bilgiBeceriListesi');"/> <input type="button" id="topluEkleLink" value="Toplu Satır Ekle"> </div> </div> <?php if ($this->canEdit) { ?>
echo 'arr[' . $i . '][' . $c++ . ']= "' . FormFactory::normalizeVariable($row["GOREV_ALAN_AD_SOYAD"]) . '";'; echo 'arr[' . $i . '][' . $c++ . ']= "' . FormFactory::normalizeVariable($row["GOREV_ALAN_UNVAN"]) . '";'; echo 'arr[' . $i . '][' . $c++ . ']= "' . FormFactory::normalizeVariable($row["GOREV_ALAN_KURULUS"]) . '";'; } } } $c = 0; $k = 1; $data = $yonetimKurulu; if ($data != null) { echo "arr[4] = new Array();"; foreach ($data as $row) { echo 'arr[4][' . $c++ . ']= "' . $k++ . '";'; echo 'arr[4][' . $c++ . ']= "' . FormFactory::normalizeVariable($row["AD_SOYAD"]) . '";'; echo 'arr[4][' . $c++ . ']= "' . FormFactory::normalizeVariable($row["UNVAN"]) . '";'; echo 'arr[4][' . $c++ . ']= "' . FormFactory::normalizeVariable($row["KURUM"]) . '";'; } } ?> if (isset (arr[gorevTur-1])) addGorevTableValues (arr[gorevTur-1], params, name); } function addGorevTableValues (arr, params, name){ var colCount = params.length; var arrLength = arr.length; var rowNumber = (arrLength/colCount)-1; document.getElementById("rowNumber-"+name).value = rowNumber; addNRow (name,colCount,name);
$sira[$i] = FormFactory::normalizeVariable($arr["SIRA"]); $j = 0; $k = 0; } else { if ($arr["PROFIL_ISLEM_ADI"] != null) { $j++; $islemParent = $arr["PARENT_ID"]; $islem[$i][$j] = FormFactory::normalizeVariable($arr["PROFIL_ISLEM_ADI"]); $islemdip[$i][$j] = FormFactory::normalizeVariable($arr["PROFIL_ISLEM_DIPNOT"]); $k = 0; } else { if ($arr["PROFIL_BASARIM_OLCUT"] != null) { $k++; $BOParent = $arr["PARENT_ID"]; $bo[$i][$j][$k] = FormFactory::normalizeVariable($arr["PROFIL_BASARIM_OLCUT"]); $bodip[$i][$j][$k] = FormFactory::normalizeVariable($arr["PROFIL_BASARIM_DIPNOT"]); } } } } echo "<script>"; for ($i = 1; $i <= count($gorev); $i++) { echo "yeniGorevEkle('" . $gorev[$i] . "','" . $gorevdip[$i] . "','" . $islem[$i][1] . "','" . $islemdip[$i][1] . "','" . $bo[$i][1][1] . "','" . $bodip[$i][1][1] . "');"; for ($k = 2; $k <= count($bo[$i][1]); $k++) { echo "BOEkle({$i},1,'" . $bo[$i][1][$k] . "','" . $bodip[$i][1][$k] . "');"; } for ($j = 2; $j <= count($islem[$i]); $j++) { echo "islemEkle({$i},'" . $islem[$i][$j] . "','" . $islemdip[$i][$j] . "','" . $bo[$i][$j][1] . "','" . $bodip[$i][$j][1] . "');"; for ($k = 2; $k <= count($bo[$i][$j]); $k++) { echo "BOEkle({$i},{$j},'" . $bo[$i][$j][$k] . "','" . $bodip[$i][$j][$k] . "');"; }
<thead class="tablo_header"> <tr id="tutumDavranisListeBaslik"> <th style="font-weight: bold; text-align: center;">Sıra No</th> <th style="font-weight: bold; text-align: center;">Bilgi-Beceri</th> <th style="font-weight: bold; text-align: center;">Sil?</th> </tr> </thead> <?php $i = 0; foreach ($tutumDavranis as $arr) { $i++; echo ' <tr id="tutumDavranisSatir' . $i . '" class="tablo_row"> <input type="hidden" name="datatablosuId" value="' . $i . '"> <td style="text-align:center;">' . $i . '</td> <td style=""><input name="tutumDavranis[]" size=75 id="tutumDavranis' . $i . '" value="' . FormFactory::normalizeVariable($arr["TUTUM_DAVRANIS_ADI"]) . '"></td> <td style="text-align: center;"><input type="button" value="Sil" onclick="satirsil(' . $i . ');"></td> </tr> '; } echo "<script>\n window.sonSatir=" . $i . "\n </script>"; ?> </table> <div style="width:100%;float: none;text-align:center; padding-bottom: 15px;"> <input type="button" value="Yeni Satır Ekle" style="" onclick="satirekle('tutumDavranisListesi');"/> <input type="button" id="topluEkleLink" value="Toplu Satır Ekle"> </div> </div> <?php if ($this->canEdit) { ?>
}*/ $s = substr($s, 0, strlen($s) - 1); $r = $r . $s . '),"comboReq", "", "200") );'; echo $r; $data = $this->onayliYeterlilik; //$data2 = $this->yeterlilikTumBirim; $r = 'dTables.kaynak_yeterlilik_secmeli = new Array( new Array("text","","4", "", readOnly), new Array("combo", new Array('; $s = 'new Array ("Seçiniz", "Seçiniz"),'; if (isset($data)) { foreach ($data as $row) { $id = $row["YETERLILIK_ID"]; $value = FormFactory::normalizeVariable($row["YETERLILIK_ADI"]); $s .= 'new Array ("' . $id . '","' . $value . '"),'; } } $s = substr($s, 0, strlen($s) - 1); $r = $r . $s . ',"comboReq", "", "200"),"300", "getYetBirim(this.value, this.id)"), new Array("combo", new Array('; $s = 'new Array ("Seçiniz", "Seçiniz"),'; /*if(isset($data2)){ foreach ($data2 as $row2){ $id = $row2["YETERLILIK_ALT_BIRIM_ID"]; $value = FormFactory::normalizeVariable ($row2["YETERLILIK_ALT_BIRIM_ADI"]); $s .= 'new Array ("'.$id.'","'.$value.'"),'; } }*/
<?php $i = 0; $sira = 0; foreach ($genelKurul as $arr) { $i++; $sira = $i * 10; echo ' <tr id="genelKurulSatir' . $i . '"> <input type="hidden" name="datatablosuId" value="' . $i . '"> <td style=""><input name="sira[]" id="sira' . $i . '" value="' . $sira . '" style="width:25px"></td> <td style=""><input name="onek[]" id="onek' . $i . '" value="' . FormFactory::normalizeVariable($arr["ON_EK"]) . '" style="width:50px"></td> <td style=""><input name="adsoyad[]" id="adsoyad' . $i . '" value="' . FormFactory::normalizeVariable($arr["AD_SOYAD"]) . '" style="width:160px"></td> <td style=""><input name="unvan[]" id="unvan' . $i . '" value="' . FormFactory::normalizeVariable($arr["UNVAN"]) . '" style="width:150px"></td> <td style=""><input name="kurum[]" id="kurum' . $i . '" value="' . FormFactory::normalizeVariable($arr["KURUM"]) . '" style="width:150px"></td> <td style=""><input name="baslangic[]" id="baslangic' . $i . '" value="' . FormFactory::normalizeVariable(tariheDonustur($arr["BASLANGIC"])) . '" class="baslangictarihi" style="width:100px"></td> <td style=""><input name="bitis[]" id="bitis' . $i . '" value="' . FormFactory::normalizeVariable(tariheDonustur($arr["BITIS"])) . '" class="bitistarihi" style="width:100px"></td> <td style="text-align: center;"><input type="button" value="Sil" onclick="satirsil(' . $i . ');"></td> </tr> '; } ?> </table> <div style="width:100%;float: none;text-align:center; padding-bottom: 15px;"> <input type="button" value="Yeni Satır Ekle" onclick="satirekle('genelKurulListesi');"/> </div> <div style="width:100%;float: none;text-align:center;"> Yeni Tarih: <input name="tarih" id="tarih" value="<?php echo tariheDonustur(time()); ?> "> </div>
addTableValues (arr, params, name, arrId, true); } function addPerformansValues (degerlendirme, name){ var length = degerlendirme.length; var params = new Array (); var arr = new Array (); var arrId = new Array (); for (var i = 0; i < length; i++){ params[i] = degerlendirme[i][0]; } <?php $tableCount = count($performansOlcme); $c = 0; $id = 0; for ($i = 0; $i < $tableCount; $i++) { $arr = $this->performansOlcme[$i]; echo 'arrId[' . $id++ . ']= "' . $arr["DEGERLENDIRME_ARAC_ID"] . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["DEGERLENDIRME_ARAC_ADI"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["DEGERLENDIRME_MATERYAL"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["DEGERLENDIRME_PUANLAMA"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["DEGERLENDIRME_BASARI_OLCUT"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["DEGERLENDIRME_DIGER"]) . '";'; } ?> if (isset (arr)) addTableValues (arr, params, name, arrId, true); } </script>
var params = new Array (); for (var i = 0; i < length; i++){ params[i] = ek[i][0]; } var arr = new Array (); var aciklama = new Array (); <?php $tableCount = count($data); $c = 0; for ($i = 0; $i < $tableCount; $i++) { $arr = $data[$i]; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["BASVURU_EK_ADI"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["BASVURU_EK_ID"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["BASVURU_EK_PATH"]) . '";'; echo 'aciklama[' . $i . ']= "' . FormFactory::normalizeVariable($arr["BASVURU_EK_ACIKLAMA"]) . '";'; } ?> if (isset (arr)){ addTableValues (aciklama, params, name, null, true, colCount); for (var i = 0; i < aciklama.length; i++){ var fileName = arr[i*3]; var ekId = arr[(i*3)+1]; var destinationPath = arr[(i*3)+2]; var id = name + "_0"; var sira = i+1; //alert(id); var formDiv = document.getElementById(name + "_div");
?> <div class='form_element'> <?php //Hazirlayan echo blockTitle("STANDARDI HAZIRLAYAN KURULUŞLAR"); echo '<div id="hazirlayan">'; $kuruluslar = ""; for ($i = 0; $i < count($hazirlayan); $i++) { if ($hazirlayan[$i]["HAZIRLAYAN_KURULUS_ADI"]) { $kuruluslar .= '<span>'; if ($hazirlayan[$i]["KURULUS_TURU"] == 2) { $kuruluslar .= "Yardımcı Kuruluş: "; } $kuruluslar .= ucfirst(FormFactory::normalizeVariable($hazirlayan[$i]["HAZIRLAYAN_KURULUS_ADI"])) . '</span><br>'; } else { $kuruluslar .= '<span>' . ucfirst(FormFactory::normalizeVariable($hazirlayan[$i]["KURULUS_ADI"])) . '</span><br>'; } } echo mb_substr($kuruluslar, 0, -4, "utf-8"); echo '</div>'; //TERIM / KISALTMA echo '<div id="terim">'; echo blockTitle("TERİMLER, SİMGELER VE KISALTMALAR", "center"); if ($terim != null) { foreach ($terim[0] as $row) { echo statikTabloHTML($row["TERIM_ADI"] . ": ", $row["TERIM_ACIKLAMA"]); echo "<br />"; } } echo "ifade eder."; echo '</div>';
</tr> <?php $i = 0; foreach ($sektorKomitesi as $arr) { $i++; $sira = $i * 10; echo ' <tr id="sektorKomitesiSatir' . $i . '"> <input type="hidden" name="datatablosuId" value="' . $i . '"> <td style=""><input name="sira[]" id="sira' . $i . '" value="' . $sira . '" style="width:25px"></td> <td style=""><input name="temsil[]" id="temsil' . $i . '" value="' . FormFactory::normalizeVariable($arr["TEMSIL_ETTIGI_KURUM"]) . '" style="width:160px"></td> <td style=""><input name="onek[]" id="onek' . $i . '" value="' . FormFactory::normalizeVariable($arr["UNVANI"]) . '" style="width:60px"></td> <td style=""><input name="adsoyad[]" id="adsoyad' . $i . '" value="' . FormFactory::normalizeVariable($arr["AD_SOYAD"]) . '" style="width:150px"></td> <td style=""><input name="komiteUnvani[]" id="komiteUnvani' . $i . '" value="' . FormFactory::normalizeVariable($arr["KOMITE_UNVANI"]) . '" style="width:100px"></td> <td style=""><input name="calistigi_kurum[]" id="calistigi_kurum' . $i . '" value="' . FormFactory::normalizeVariable($arr["CALISTIGI_KURUM"]) . '" style="width:150px"></td> <td style=""><input name="kurum_unvani[]" id="kurum_unvani' . $i . '" value="' . FormFactory::normalizeVariable($arr["KURUM_UNVANI"]) . '" style="width:150px"></td> <td style="text-align: center;"><input type="button" value="Sil" onclick="satirsil(' . $i . ');"></td> </tr> '; } ?> </table> <div style="width:100%;float: none;text-align:center; padding-bottom: 15px;"> <input type="button" value="Yeni Satır Ekle" style="" onclick="satirekle('sektorKomitesiListesi');"/> </div> <div style="width:100%;float: none;text-align:center;"> <input type="hidden" name="sektor" id="sektor" value="<?php echo $_REQUEST["sektorId"]; ?> "> Yeni Tarih: <input name="tarih" id="tarih" value="<?php
} if (@move_uploaded_file($_FILES[$input_file_name]['tmp_name'], $target_path)) { //echo "$target_path"; $result = 1; ?> <script language="javascript" type="text/javascript">window.top.window.stopUpload("<?php echo $id; ?> ", 1,<?php echo $i; ?> ,"<?php echo $uploadedFilesName; ?> ","<?php echo FormFactory::normalizeVariable($destination_path); ?> ");</script> <?php break; } else { $errorArray[] = $input_file_name; } } // hatalı dosya adları veya sıraları da döndürülebilir if (!$result) { ?> <script language="javascript" type="text/javascript">window.top.window.stopUpload("<?php echo $id; ?>
} <?php $data = $this->meslek; $tableCount = count($data); $c = 0; $id = 0; for ($i = 0; $i < $tableCount; $i++) { $arr = $data[$i]; echo 'arrId[' . $id++ . ']= "' . $arr["STANDART_ID"] . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["STANDART_ADI"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["STANDART_TANIMI"]) . '";'; echo 'arr[' . $c++ . ']= "' . $arr["SEVIYE_ID"] . '";'; echo 'arr[' . $c++ . ']= "' . $arr["SEKTOR_ID"] . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YASAL_DUZENLEME"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["MEVCUT_CALISMA"]) . '";'; echo 'arr[' . $c++ . ']= "' . $arr["BASLANGIC_TARIHI"] . '";'; echo 'arr[' . $c++ . ']= "' . $arr["BITIS_TARIHI"] . '";'; } ?> if (isset (arr)){ addTableValues (arr, arrId, params, name, true); } } </script> <script type="text/javascript">//<![CDATA[ //bu script inputtan sonra konmalı, mümünse en alta </body> den önce
} else { if ($arr["PROFIL_BASARIM_OLCUT"] != null) { if ($basarimParent != $arr["PARENT_ID"]) { $arrBasarimIndex = 0; $arrDipnotIndex = 0; $basarimParent = $arr["PARENT_ID"]; echo "basarimArr [" . $basarimIndex . "] = new Array();"; echo "dipnotArr [" . $basarimIndex . "] = new Array();"; echo "basarimArr [" . $basarimIndex . "][" . $arrBasarimIndex++ . "] = '" . $gorev_profil_id . "';"; echo "basarimArr [" . $basarimIndex . "][" . $arrBasarimIndex++ . "] = '" . FormFactory::normalizeVariable($arr["PROFIL_BASARIM_OLCUT"]) . "';"; echo "dipnotArr [" . $basarimIndex . "][" . $arrDipnotIndex++ . "] = '" . $gorev_profil_id . "';"; echo "dipnotArr [" . $basarimIndex . "][" . $arrDipnotIndex++ . "] = '" . FormFactory::normalizeVariable($arr["PROFIL_BASARIM_DIPNOT"]) . "';"; $basarimIndex++; } else { echo "basarimArr [" . ($basarimIndex - 1) . "][" . $arrBasarimIndex . "] = '" . FormFactory::normalizeVariable($arr["PROFIL_BASARIM_OLCUT"]) . "';"; echo "dipnotArr [" . ($basarimIndex - 1) . "][" . $arrDipnotIndex . "] = '" . FormFactory::normalizeVariable($arr["PROFIL_BASARIM_DIPNOT"]) . "';"; $arrBasarimIndex++; $arrDipnotIndex++; } } } } } if ($this->canEdit) { echo "var isReadOnly = false;"; } else { echo "var isReadOnly = true;"; } ?> jQuery(document).ready(function(){
if (isReadOnly){ satirEkleKaldir (tableName); satirSilKaldir (tableName, 2); } } function addBilgiBeceriValues (bilgiBeceri, name){ var length = bilgiBeceri.length; var params = new Array (); var arr = new Array (); var arrId = new Array (); for (var i = 0; i < length; i++){ params[i] = bilgiBeceri[i][0]; } <?php $tableCount = count($this->bilgiBeceri); $c = 0; $id = 0; for ($i = 0; $i < $tableCount; $i++) { $arr = $this->bilgiBeceri[$i]; echo 'arrId[' . $id++ . ']= "' . $arr["BILGI_BECERI_ID"] . '";'; echo 'arr[' . $c++ . ']= "' . ($i + 1) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["BILGI_BECERI_ADI"]) . '";'; } ?> if (isset (arr)) addTableValues (arr, arrId, params, name); } </script>
} } function addTerimValues (terim, name){ var length = terim.length; var params = new Array (); var arr = new Array (); var arrId = new Array (); for (var i = 0; i < length; i++){ params[i] = terim[i][0]; } <?php $tableCount = count($this->terim); $c = 0; $id = 0; for ($i = 0; $i < $tableCount; $i++) { $arr = $this->terim[$i]; //echo 'arrId['.$id++.']= "'. $arr["TERIM_ID"] .'";'; echo 'arr[' . $c++ . ']= "' . ($i + 1) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["TERIM_ADI"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["TERIM_ACIKLAMA"]) . '";'; } ?> if (isset (arr)){ //addTableValues (arr, , params, name, arrId); addTableValues (arr, params, name); } } </script>
for (var i = 0; i < length; i++){ params[i] = yeterlilik[i][0]; } <?php $data = $this->yeterlilik; $tableCount = count($data); $c = 0; $id = 0; for ($i = 0; $i < $tableCount; $i++) { $arr = $data[$i]; echo 'arrId[' . $id++ . ']= "' . $arr["YETERLILIK_ID"] . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YETERLILIK_ADI"]) . '";'; echo 'arr[' . $c++ . ']= "' . $arr["SEVIYE_ID"] . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YETERLILIK_YASAL"]) . '";'; echo 'arr[' . $c++ . ']= "' . $arr["STANDART_ID"] . '";'; echo 'arr[' . $c++ . ']= "' . $arr["SEKTOR_ID"] . '";'; echo 'arr[' . $c++ . ']= "' . $arr["YETERLILIK_BASLANGIC"] . '";'; echo 'arr[' . $c++ . ']= "' . $arr["YETERLILIK_BITIS"] . '";'; } ?> if (isset (arr)) addTableValues (arr,arrId, params, name); } </script> <script type="text/javascript">//<![CDATA[ //bu script inputtan sonra konmalı, mümünse en alta </body> den önce
addKurulusValues (dTables.kurulus, tableName); if (isReadOnly){ satirEkleKaldir (tableName); satirSilKaldir (tableName, 2); } } function addKurulusValues (kurulus, name){ var length = kurulus.length; var params = new Array (); var arr = new Array (); for (var i = 0; i < length; i++){ params[i] = kurulus[i][0]; } <?php $tableCount = count($this->gelistiren_kurulus); $c = 0; $id = 0; for ($i = 0; $i < $tableCount; $i++) { $arr = $this->gelistiren_kurulus[$i]; echo 'arr[' . $c++ . ']= "' . ($i + 1) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YETERLILIK_KURULUS_ADI"]) . '";'; } ?> if (isset (arr)) addTableValues (arr, params, name); } </script>
for (var i = 0; i < length; i++){ params[i] = secmeli[i][0]; } <?php $tableCount = count($this->secmeliBirim); $c = 0; $id = 0; for ($i = 0; $i < $tableCount; $i++) { $arr = $this->secmeliBirim[$i]; echo 'arrId[' . $id++ . ']= "' . $arr["YETERLILIK_ALT_BIRIM_ID"] . '";'; echo 'arr[' . $c++ . ']= "' . ($i + 1) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YETERLILIK_ALT_BIRIM_NO"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YETERLILIK_ALT_BIRIM_ADI"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YETERLILIK_ALT_BIRIM_KODU"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YETERLILIK_ALT_BIRIM_SEVIYE"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YETERLILIK_ALT_BIRIM_KREDI"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YETERLILIK_ALT_BIRIM_YAYIN_TAR"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YETERLILIK_ALT_BIRIM_REV_NO"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YETERLILIK_ALT_BIRIM_REV_TAR"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YETERLILIK_ALT_BIRIM_MES_STA"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YETERLILIK_ALT_BIRIM_BIR_GELIS"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YETERLILIK_ALT_BIRIM_SEK_KOM"]) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["YETERLILIK_ALT_BIRIM_ONAY_TAR"]) . '";'; } ?> if (isset (arr)) addTableValues (arr, params, name, arrId); } </script>
$r .= $p; echo $r; ?> //KURULUS PANEL SONU //YETKI TALEP <?php $r = 'dTables.yetkiTalep = new Array( new Array("combo", new Array ('; $k = 'new Array("text", "numeric"),new Array("text", "numeric"));'; $data = $this->pm_yeterlilik_ad; $s = 'new Array ("Seçiniz", "Seçiniz"),'; $yetAdi = ""; if (isset($data)) { foreach ($data as $row) { if ($row[1] != $yetAdi) { $s .= 'new Array ("' . FormFactory::normalizeVariable($row[0]) . '","' . FormFactory::normalizeVariable($row[1]) . '"),'; $yetAdi = $row[1]; } } } $s = substr($s, 0, strlen($s) - 1); $r .= $s . '),"","xmlhttpPost(seviyeCheck,\'index2.php?option=com_akreditasyon_basvur&layout=faaliyet&chosen=1\',seviyeGetQueryString, seviyeUpdatePageFunction, this)"),new Array("combo", new Array (new Array("Seçiniz","Seçiniz"), new Array("1","Seviye 1"), new Array("2","Seviye 2"), new Array("3","Seviye 3"), new Array("4","Seviye 4"), new Array("5","Seviye 5"), new Array("6","Seviye 6"), new Array("7","Seviye 7"), new Array("8","Seviye 8")),"comboReq"),' . $k; echo $r; ?> // YETKI TALEP SONU dTables.faaliyet = new Array(new Array("text", "required", "80")); function createTables(){ var tableName = "sektor"; createTable( tableName, new Array ('Faaliyet Gösterdiği Sektör(ler)', 'Açıklama'));
var params = new Array (); var arrId= new Array(); var arr = new Array(); for (var i = 0; i < length; i++){ params[i] = ekipman[i][0]; } <?php $tableCount = count($this->ekipman); $c = 0; $id = 0; for ($i = 0; $i < $tableCount; $i++) { $arr = $this->ekipman[$i]; echo 'arrId[' . $id++ . ']= "' . $arr["EKIPMAN_ID"] . '";'; echo 'arr[' . $c++ . ']= "' . ($i + 1) . '";'; echo 'arr[' . $c++ . ']= "' . FormFactory::normalizeVariable($arr["EKIPMAN_ADI"]) . '";'; } echo "window.count=" . $c . ";"; ?> window.arrid=arrId; if (isset (arr)) addTableValues (arr, arrId, params, name); } jQuery('#topluEkleLink').click(function(e) { jQuery('#topluEkleDiv').lightbox_me({ centered: true, }); e.preventDefault(); }); jQuery('#ekleButton').click(function(e) {