예제 #1
0
파일: publish.php 프로젝트: sherdog/cvsi
                           	 </tr>
                         
                            </table>
                            </div>
                          <div class="expandable" id="page_parent">
                          <table width="100%" border="0" cellspacing="0" cellpadding="5">
                            <tr>
                              <td class="fieldLabel">
                             
                              
                              
                               <input type="hidden" name="parent" id="parent" value="<?=$_GET['parent']?>" />
                                    <dl id="parent_page" class="select_dropdown">
										<?php
                                        recurse_navigation_li_top($_GET['parent']);
                                        recurse_navigation_li($_GET['parent']);
                                        recurse_navigation_li_botttom();
                                        ?>
                                    </dl>
                           
                              </td>
                            </tr>
                          </table>
                          </div>
                        </td>
                        <td width="250" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="">
                          <tr>
                            <td>
                            <div style="margin:0px 10px 10px 10px;">
                            
                            <table width="100%" border="0" cellspacing="0" cellpadding="5" class="actionBox">
예제 #2
0
function recurse_navigation_li($selected = 0, $id = 0, $level = 0)
{
    $level++;
    $sql = "SELECT * FROM page_content WHERE parent = " . $id . " ORDER BY page_content_added ASC";
    $pageResults = dbQuery($sql);
    $count = 0;
    while ($pInfo = dbFetchArray($pageResults)) {
        $padding = 18 * $level;
        if ($level != 1) {
            $style = "style=\"padding-left:" . ($padding + 18) . "px; background-repeat:no-repeat; background-position:" . $padding . "px 0px; background-image:url(images/directory_arrow.gif);\"";
        }
        echo "<li " . $style . "><a href=\"#\">" . output($pInfo['page_content_title']) . "<span class=\"value\">" . output($pInfo['page_content_id']) . "</span></a></li>\n";
        // echo "<option ".$style." value=\"".$pInfo['page_content_id']."\"";
        //	  if($selected == $pInfo['page_content_id']) echo " selected";
        //  echo ">".$pInfo['page_content_title']."</option>\n";
        recurse_navigation_li($selected, $pInfo['page_content_id'], $level);
        $count++;
    }
}
예제 #3
0
파일: manage.php 프로젝트: sherdog/cvsi
                            <tr>
                           	 <td width="29"><img id="" width="29" height="28" src="images/sectionTitleArrow.jpg"/></td>
                            	<td class="sectionTitle">Parent</td>
                           	 </tr>
                         
                            </table>
                            </div>
                          <div class="expandable" id="page_parent">
							  <table width="100%" border="0" cellspacing="0" cellpadding="5">
								<tr>
								  <td class="fieldLabel">
                                  	<input type="hidden" name="parent" id="parent" value="<?=$p['parent']?>" />
                                    <dl id="mirror_parent" class="select_dropdown_parent">
										<?php
                                        recurse_navigation_li_top($p['parent']);
                                        recurse_navigation_li($p['parent']);
                                        recurse_navigation_li_botttom();
                                        ?>
                                    </dl>
                                    
								  </td>
								</tr>
							  </table>
							  </div>          
							  
							<div class="mb20"></div>
							<div id="seo_options_toggle">
                            <table width="100%" cellspacing="0" cellpadding="0">
                            <tr>
                           	 <td width="29"><img id="" width="29" height="28" src="images/sectionTitleArrow.jpg"/></td>
                            	<td class="sectionTitle">Advanced Options</td>