當前位置: 首頁>>代碼示例>>PHP>>正文


PHP kotakjudul函數代碼示例

本文整理匯總了PHP中kotakjudul函數的典型用法代碼示例。如果您正苦於以下問題:PHP kotakjudul函數的具體用法?PHP kotakjudul怎麽用?PHP kotakjudul使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了kotakjudul函數的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: blok

function blok($posisi)
{
    global $koneksi_db;
    $modulku = $koneksi_db->sql_query("SELECT * FROM blok WHERE published=1 AND posisi={$posisi} ORDER BY ordering");
    while ($viewmodul = $koneksi_db->sql_fetchrow($modulku)) {
        kotakjudul($viewmodul['1'], $viewmodul['2'], '');
    }
}
開發者ID:sofiasrifin,項目名稱:sistermetta,代碼行數:8,代碼來源:fungsi.php

示例2: while

            $menueditor = "<ul>";
            $hasil = $koneksi_db->sql_query("SELECT * FROM `menu_editor` ORDER BY ordering ASC");
            while ($data = $koneksi_db->sql_fetchrow($hasil)) {
                $adminmenu = $data['url'];
                $menueditor .= '<li><a href="' . $adminmenu . '">' . $data['menu'] . '</a></li>';
            }
            $menueditor .= "</ul>";
            $hasil2 = $koneksi_db->sql_query("SELECT * FROM `useraura` where user = '{$username}'");
            $data2 = $koneksi_db->sql_fetchrow($hasil2);
            $avatar = $data2['avatar'];
            $secure = '<div class=border align=center>Welcome    : <b>' . $_SESSION['UserName'] . '</b><br><img src =mod/profile/images/' . $avatar . '><br />Your Level : <b>' . $_SESSION['LevelAkses'] . '</b></div>';
            $secure .= $menueditor;
            kotakjudul("Your Account", $secure);
        } else {
            $username = $_SESSION['UserName'];
            $menuuser = "<ul>";
            $hasil = $koneksi_db->sql_query("SELECT * FROM `menu_users` ORDER BY ordering ASC");
            while ($data = $koneksi_db->sql_fetchrow($hasil)) {
                $adminmenu = $data['url'];
                $menuuser .= '<li><a href="' . $adminmenu . '">' . $data['menu'] . '</a></li>';
            }
            $menuuser .= "</ul>";
            $hasil2 = $koneksi_db->sql_query("SELECT * FROM `useraura` where user = '{$username}'");
            $data2 = $koneksi_db->sql_fetchrow($hasil2);
            $avatar = $data2['avatar'];
            $secure = '<div class=border align=center>Welcome    : <b>' . $_SESSION['UserName'] . '</b><br><img src =mod/profile/images/' . $avatar . '><br />Your Level : <b>' . $_SESSION['LevelAkses'] . '</b></div>';
            $secure .= $menuuser;
            kotakjudul("Your Account", $secure);
        }
    }
}
開發者ID:rekysda,項目名稱:indorepair,代碼行數:31,代碼來源:menuadmin.php

示例3: header

<?php

if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
    header("HTTP/1.1 404 Not Found");
    exit;
}
global $koneksi_db, $url_situs;
$title = "Rubrik";
$perintah = "SELECT * FROM topik where parentid=0 ORDER BY id";
$hasil = $koneksi_db->sql_query($perintah);
$topikbox = "<ul>";
while ($data = $koneksi_db->sql_fetchrow($hasil)) {
    $judul = AuraCMSSEO($data['topik']);
    $id = $data['id'];
    $total = $koneksi_db->sql_query("SELECT * FROM artikel where publikasi=1 and topik ='{$id}'");
    $jumlah = $koneksi_db->sql_numrows($total);
    $topikbox .= '<li><a href="' . $url_situs . '/' . get_link($id, $judul, "category") . '" title="' . $data['topik'] . '">' . $data['topik'] . ' (' . $jumlah . ')</a></li>';
}
$topikbox .= "</ul>";
kotakjudul($title, $topikbox);
開發者ID:rekysda,項目名稱:talsurabaya,代碼行數:20,代碼來源:topikbox.php

示例4: XMLHttpRequest

req = false;
}
}
if (!req && typeof XMLHttpRequest != 'undefined') {
req = new XMLHttpRequest();
}
document.getElementById('_loading_calendar').style.display = 'inline';
req.open('get','/mod/calendar/calendar_response.php?'+url,true);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
req.onreadystatechange = function() {
\tif (req.readyState == 4 && req.status == 200) {
document.getElementById('_loading_calendar').style.display = 'none';
document.getElementById('mod_calendar').innerHTML = req.responseText;
\t\t}
\t};
req.send(null);
}
function kukiover(calid){
var theform = document.getElementById(calid).style.display="block";
}
function kukiout(calid){
var theform = document.getElementById(calid).style.display="none";
}
//]]>
</script>
cal;
$out = ob_get_contents();
ob_end_clean();
if (isset($toolstips_cal_EVENT) && (@$_GET['act'] != 'calendar_view' or !isset($_GET['sel_date']))) {
    kotakjudul('Event', '<span class="boxisimenu">' . $toolstips_cal_EVENT . '</span>');
}
開發者ID:rekysda,項目名稱:akademik,代碼行數:31,代碼來源:calendar.php

示例5: while

$username=$_SESSION['UserName'];
$hasil = $koneksi_db->sql_query( "SELECT * FROM menu_users where parent =0 ORDER BY ordering ASC" );
$menuadmin = "<ul>";
while ($data = $koneksi_db->sql_fetchrow($hasil)) {

		$target = "?aksi=logout";
		if ($data[2]==$target) {
			$adminmenu = "$target";
			$data[1] = "<b>$data[1]</b>";
		} else {
			$adminmenu = $data[2];
			
		}
$parentid=$data[0];
$menuadmin.= '<div class="bg2"><img src="themes/administrator/images/'.$data[5].'" align="top" style="margin-right:8px;">'.$data[1].'</div>';
$hasil2 = $koneksi_db->sql_query( "SELECT * FROM menu_users where parent =$parentid ORDER BY menu ASC" );
$menuadmin .= "<ul>";
while ($data2 = $koneksi_db->sql_fetchrow($hasil2)) {
$adminmenu2 =$data2['url'];
$menuadmin.= '<li><a href="'.$adminmenu2.'">'.$data2[1].'</a></li>';
}
}
$menuadmin.= "</ul>";


kotakjudul('User Menu', $menuadmin);
}
}
}

?>
開發者ID:nickohappy7,項目名稱:sister,代碼行數:31,代碼來源:menuadmin.php

示例6: kotakjudul

                    $menuadmin .= '<li><a href="' . $adminmenu2 . '">' . $data2[1] . '</a></li>';
                }
            }
            $menuadmin .= "</ul>";
            kotakjudul('<span class="link"><a href="./">Menu Guru</a></span>', $menuadmin);
        } else {
            $username = $_SESSION['UserName'];
            $hasil = $koneksi_db->sql_query("SELECT * FROM menu_siswa where parent =0 ORDER BY ordering ASC");
            $menuadmin .= "<ul>";
            while ($data = $koneksi_db->sql_fetchrow($hasil)) {
                $target = "?aksi=logout";
                if ($data[2] == $target) {
                    $adminmenu = "{$target}";
                    $data[1] = "<b>{$data['1']}</b>";
                } else {
                    $adminmenu = $data[2];
                }
                $parentid = $data[0];
                $menuadmin .= '<h4 class="bg2"><img src="themes/administrator/images/' . $data[5] . '" align="top" style="margin-right:8px;">' . $data[1] . '</h4>';
                $hasil2 = $koneksi_db->sql_query("SELECT * FROM menu_siswa where parent ={$parentid} ORDER BY menu ASC");
                $menuadmin .= "<ul>";
                while ($data2 = $koneksi_db->sql_fetchrow($hasil2)) {
                    $adminmenu2 = $data2['url'];
                    $menuadmin .= '<li><a href="' . $adminmenu2 . '">' . $data2[1] . '</a></li>';
                }
            }
            $menuadmin .= "</ul>";
            kotakjudul('<span class="link"><a href="./">Menu Siswa</a></span>', $menuadmin);
        }
    }
}
開發者ID:rekysda,項目名稱:elearningfratz,代碼行數:31,代碼來源:menuadmin.php

示例7: kotakjudul

                    $menuadmin .= '<li><a href="' . $adminmenu2 . '">' . $data2[1] . '</a></li>';
                }
            }
            $menuadmin .= "</ul>";
            kotakjudul('<span class="link"><a href="./">Teacher Menu</a></span>', $menuadmin);
        } else {
            $username = $_SESSION['UserName'];
            $hasil = $koneksi_db->sql_query("SELECT * FROM menu_siswa where parent =0 ORDER BY ordering ASC");
            $menuadmin = "<ul>";
            while ($data = $koneksi_db->sql_fetchrow($hasil)) {
                $target = "?aksi=logout";
                if ($data[2] == $target) {
                    $adminmenu = "{$target}";
                    $data[1] = "<b>{$data['1']}</b>";
                } else {
                    $adminmenu = $data[2];
                }
                $parentid = $data[0];
                $menuadmin .= '<h4 class="bg2"><img src="themes/administrator/images/' . $data[5] . '" align="top" style="margin-right:8px;">' . $data[1] . '</h4>';
                $hasil2 = $koneksi_db->sql_query("SELECT * FROM menu_siswa where parent ={$parentid} ORDER BY menu ASC");
                $menuadmin .= "<ul>";
                while ($data2 = $koneksi_db->sql_fetchrow($hasil2)) {
                    $adminmenu2 = $data2['url'];
                    $menuadmin .= '<li><a href="' . $adminmenu2 . '">' . $data2[1] . '</a></li>';
                }
            }
            $menuadmin .= "</ul>";
            kotakjudul('<span class="link"><a href="./">Student Menu</a></span>', $menuadmin);
        }
    }
}
開發者ID:rekysda,項目名稱:elearningmetta,代碼行數:31,代碼來源:menuadmin.php

示例8:

<?php
開發者ID:nickohappy7,項目名稱:sister,代碼行數:1,代碼來源:fungsi.php


注:本文中的kotakjudul函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。