<?php
 $section = $db->name;
 $pagetitle  = $db->name;
 if(empty($pagetitle))
 $pagetitle = $site_title;
 $description  = $db->description;
?>
<meta name="google-translate-customization" content="34c1565365359eea-76c33e176a23be29-g0e41261cb530e4b8-12"></meta>
<script>
function gotolink(u,sec_id,subsec_id)
{
	document.getElementById("subsecid").value=subsec_id;
	document.searchfrm.action = u;
	document.searchfrm.secid.value = sec_id;
	document.searchfrm.submit();
}
</script>
<form name="searchfrm" id="searchfrm" action="<?php echo $page_name?>" method="post" enctype="multipart/form-data">
<input type="hidden" name="secid" id="secid" value="" />
<input type="hidden" name="subsecid" id="subsecid" value="" />
<table width="99%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left"><span class="td"><a href="index.php" class="bnav">Home</a> &raquo; 
				<?php
					if($secdetail->pagelink!=''){
						$onClick_subsec = " href=\"#\" onClick=\"location.href='".$secdetail->pagelink."'\"";
					}else{
						if($secdetail->page_alias != ""){
							//$href_sec = "onClick=\"location.assign('".$db->f("page_name").".html');\"";
							$onClick_subsec = " href=\"#\" onClick=\"location.href='".$secdetail->page_alias.".html'\"";
						}else{
							//$href_sec = "onClick=\"location.assign('sectioncontent.php?id=".$db->f("id")."');\"";
							$onClick_subsec =" href=\"#\" onClick=\"gotolink('sectioncontent','".$secdetail->id."','')\"";
						}
					}
				?>
				<a href="#" class="bnav" <?php echo $onClick_subsec?>><?php echo $secdetail->name?></a> &raquo; 
				<?php
					if($subsecdetail->pagelink != ""){
						$onClick_subsec = " href=\"#\" onClick=\"location.href='".$subsecdetail->pagelink."'\"";
					}else{
						if($subsecdetail->page_alias!=''){
							$onClick_subsec = " href=\"#\" onClick=\"location.href='".$subsecdetail->page_alias.".html'\"";
						}else{
							$onClick_subsec = " href=\"#\" onClick=\"gotolink('subsectioncontent','".$secdetail->id."','".$subsecdetail->id."','')\"";
						}
					}
				?>
				<a href="#" class="bnav" <?php echo $onClick_subsec?>><?php echo $subsecdetail->name?></a> &raquo; <?php echo $section?></span></td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                </tr>
              <tr>
                <td><h2><?php echo $section?></h2></td>
                </tr>
              <tr>
                <td><h3 style="color:red"><?php echo $error_msg;?></h3></td>
                </tr>
              <tr>
                <td>
                  <?php echo $description?>
                </td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td align="center">&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td align="center">&nbsp;</td>
              </tr>
              </table>
</form>
