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


PHP FormFactory::getSavedPages方法代码示例

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


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

示例1: getPageTree

    function getPageTree($user, $activeLayout, $evrak_id, $pages, $pageNames, $basvuru_durum, $tc_kimlik)
    {
        $activeStyle = 'style="background-color:rgb(170,0,0);color:rgb(255,255,255); margin: 1px;" ';
        $sayfa = count($pages);
        $saved = FormFactory::getSavedPages($evrak_id);
        //		$saved[count($saved)] = 1;
        $isSektorSorumlusu = FormFactory::sektorSorumlusuMu($user);
        $tree = '<div class="form_element" style="padding-bottom: 15px;" >
				 <div style="padding-bottom:10px;" class="anaDiv">';
        if ($basvuru_durum == "0" and !$isSektorSorumlusu) {
            // 		$inp = '<input style="padding:5px; margin: 5px;" type="button" ';
            // 		$onClick = ' onclick = "basvuruGonder()" ';
            // 		$value = ' value="Tüm Basvuruyu Görüntüle / Bitir" ';
            // 		$class = ' class="btn" ';
            // 		$disabled = 'disabled="disabled"';
            // 		if (count($saved)>= $sayfa){
            // 			$disabled = '';
            // 			$class = ' class="btn btn-success" ';
            // 		}
            // 		$name  = 'name="gonder" ';
            // 		$tree .= $inp.$name.$value.$onClick.$disabled.$class." />";
        }
        $tree .= '<div style="clear:both;"></div></div>';
        $tree .= '<div class="anaDiv">';
        for ($i = 0; $i < $sayfa; $i++) {
            $style = 'style="margin: 1px;"';
            for ($j = 0; $j < count($saved); $j++) {
                if ($saved[$j] == $i + 1) {
                    $style = 'style="background-color:rgb(100,150,100);color:rgb(255,255,255); margin: 1px;" ';
                    break;
                }
            }
            $input = '<div class="divYan"><input type="button" onclick="goToPage(\'uzman_basvur\',\'' . $pages[$i] . '\',\'' . $tc_kimlik . '\')" class="btn btn-xs" id="page' . $i . '" value="' . $pageNames[$i] . '" ';
            $disabled = '';
            if ($pages[$i] == "ek" && !in_array(3, $saved)) {
                // sayfa 3 kaydedilmis mi (faaliyet)
                $disabled = 'disabled="disabled"';
            }
            if ($activeLayout == $pages[$i]) {
                $tree .= $input . $activeStyle . $disabled . ' />';
            } else {
                $tree .= $input . $style . $disabled . ' />';
            }
            $tree .= '</div>';
        }
        $tree .= '</div>';
        $tree .= '<br /></div>';
        return $tree;
    }
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:49,代码来源:uzman_basvur.php

示例2: getPageTree

    function getPageTree($user, $activeLayout, $evrak_id, $pages, $pageNames)
    {
        $activeStyle = 'style="background-color:rgb(170,0,0);color:rgb(255,255,255); margin: 1px;" ';
        $sayfa = count($pages);
        $saved = FormFactory::getSavedPages($evrak_id);
        $saved[count($saved)] = 1;
        $tree = '<div class="form_element" style="text-align:center; padding-bottom: 15px;" >
				 <div style="padding-bottom:10px;">';
        $inp = '<input style="padding:5px; margin: 5px;" type="button" ';
        $onClick = 'onclick = "basvuruGonder(' . $evrak_id . ')" ';
        $value = 'value="Tüm Basvuruyu Görüntüle / Bitir" ';
        $disabled = 'disabled="disabled"';
        if (count($saved) >= $sayfa) {
            $disabled = '';
        }
        $name = 'name="gonder" ';
        $tree .= $inp . $name . $value . $onClick . $disabled . " />";
        $tree .= '<div style="clear:both;"></div></div>';
        for ($i = 0; $i < $sayfa; $i++) {
            $style = 'style="margin: 1px;"';
            for ($j = 0; $j < count($saved); $j++) {
                if ($saved[$j] == $i + 1) {
                    $style = 'style="background-color:rgb(100,150,100);color:rgb(255,255,255); margin: 1px;" ';
                    break;
                }
            }
            $input = '<input type="button" onclick="goToPage(\'' . $pages[$i] . '\', \'' . $evrak_id . '\')" class="btn" id="page' . $i . '" value="' . $pageNames[$i] . '" ';
            $disabled = '';
            /*if ($pages[$i]== "ek" && !in_array(3, $saved)){ // sayfa 3 kaydedilmis mi (faaliyet)
            				$disabled = 'disabled="disabled"';
            			}
            		*/
            if ($activeLayout == $pages[$i]) {
                $tree .= $input . $activeStyle . $disabled . ' />';
            } else {
                $tree .= $input . $style . $disabled . ' />';
            }
        }
        $tree .= '<br /></div>';
        return $tree;
    }
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:41,代码来源:form.php


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