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


PHP Website::num_rows方法代碼示例

本文整理匯總了PHP中Website::num_rows方法的典型用法代碼示例。如果您正苦於以下問題:PHP Website::num_rows方法的具體用法?PHP Website::num_rows怎麽用?PHP Website::num_rows使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Website的用法示例。


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

示例1: Website

' <?php 
        if ($pages['parent_id'] == $pageid) {
            echo 'checked';
        }
        ?>
> <?php 
        echo $pages['page_name'];
        echo "<br>";
        ?>
	
	  			<?php 
    }
}
$website = new Website();
$submenus = $website->editblankpages($websiteid, $pageid);
$smenunum = $website->num_rows($submenus);
if ($smenunum > 0) {
    ?>
	  			Want to add more submenu ? 
				<select id='checksubmenu' name='checksubmenu'>
				<option value='' selected >Select</option>
				<option value='Yes'>Yes</option>	
				<option value='No'>No</option>
				</select> 
	  			<!--<input type='checkbox' id="checksubmenu" name='checksubmenu' value='yes'><br>-->
	  			<div id='submenudiv'>
	  			Submenu pages :<br>
	  			<?php 
    while ($nonmenupages = $website->fetch_assoc($submenus)) {
        ?>
	  					<input type='checkbox' name='submenu[]' value='<?php 
開發者ID:hscale,項目名稱:mtptool,代碼行數:31,代碼來源:editpage.php

示例2: Website

if ($dbmenu == 'No') {
    echo "selected";
}
?>
>No </option>
	  			</select>
	  		</td>
	  	</tr>-->
	  	<tr>
		  	<td colspan='2'><div id='submenucontent'>
	  		<?php 
if ($dbmenu == 'Yes') {
    $website = new Website();
    $submenu = $website->fetchblankpages($websiteid);
    //print_r($submenu);
    $num = $website->num_rows($submenu);
    if ($num > 0) {
        ?>
	  			Want to add submenu ? <select id='checksubmenu' name='checksubmenu'>
	  								<option value=''>Select</option>
	  								<option value='Yes'>Yes</option>	
	  								<option value='No'>No</option>
	  								</select> 


	  			<!--<input type='checkbox' id="checksubmenu" name='checksubmenu' value='yes'><br>-->
	  			<div id='submenudiv'>
	  				submenu pages <br>
	  			 <?php 
        while ($pages = $website->fetch_assoc($submenu)) {
            echo "<input type='checkbox' name='submenu[]' value='" . $pages['page_id'] . "' >  " . $pages['page_name'] . " <br>";
開發者ID:hscale,項目名稱:mtptool,代碼行數:31,代碼來源:createpage.php


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