当前位置: 首页>>代码示例>>PHP>>正文


PHP FormFactory::normalizeVariable方法代码示例

本文整理汇总了PHP中FormFactory::normalizeVariable方法的典型用法代码示例。如果您正苦于以下问题:PHP FormFactory::normalizeVariable方法的具体用法?PHP FormFactory::normalizeVariable怎么用?PHP FormFactory::normalizeVariable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FormFactory的用法示例。


在下文中一共展示了FormFactory::normalizeVariable方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addAkreditasyonValues

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";
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:faaliyet.php

示例2: Array

    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";
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:30,代码来源:ek.php

示例3: addTutumValues

	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>
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:tutum_davranis+-+Copy.php

示例4: foreach

                            <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;;">
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:gorev_alanlar.php

示例5: addTaslakPdf

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
?>
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:default.php

示例6: Array

//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&amp;task=indir&amp;protokolID=<?php 
echo $protokolID;
?>
\'" class="up_submitbtn" style="float:none;"> <\/div>';
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:30,代码来源:yeni.php

示例7: array_merge

$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ı'));
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:ek_degerlendirme.php

示例8: foreach

    <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) {
    ?>
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:ekipman.php

示例9: createAddIrtibatValues

}

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();
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:irtibat.php

示例10: formGoster


//.........这里部分代码省略.........
" 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 
}
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:101,代码来源:denetim_duzenle.php

示例11: foreach

    <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) {
    ?>
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:bilgi_beceri.php

示例12: Array

            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);
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:gorev_alanlar+-+Copy.php

示例13:

        $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] . "');";
        }
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:meslek_profil.php

示例14: foreach

    <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) {
    ?>
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:tutum_davranis.php

示例15: substr

}*/
$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.'"),';
  }
}*/
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:yeterliligin_yapisi.php


注:本文中的FormFactory::normalizeVariable方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。