<?php
include_once("header.php");                             
include_once("webadmin/project.functions.inc.php");
// print_rr($_POST);
//print_rr($_SESSION); 
$T1 = 1;
//check after sessions

if (!($_SESSION[ADVISOR])) {
   windowLocation("../index.php");
}

//EVENT: SAVE INDUSTRY POPUP FIELDS
if($Action == "Save Industry")
{
   $xdb = new NemoDatabase("tblPractice", $_SESSION[ADVISOR]->PRACTICEID, null, 0);

   $IndustryID = $xdb->qs($_POST[refIndustryID]);
   if( isset($_POST[refIndustryID]) && $IndustryID != "-1") 
   {
      $row = $xdb->getRowSQL("SELECT strIndustry FROM tblIndustry WHERE IndustryID = $IndustryID"); 
      $xdb->Fields[strIndustry] = $row->strIndustry;
   }
   $xdb->Fields[refSubCategoryID] = $_POST[refSubCategoryID];  
   $xdb->Fields[strLastUser] = $_SESSION['USER']->USERNAME;
   $xdb->Fields[strLastEdit] = date("YmdHis");
   $xdb->Save(0,0);
}

echo "   <div class='content_left_nav_wrapper content_container'>
            <div class='content_left_nav_container'>
               <div id='content_left_nav' class='content_left_nav'>";

include_once("sidebar.php"); 
echo $strOutput;

echo "          </div>
            </div>
         </div>";

echo "   <div class='content_main_content_wrapper'>
            <div class='content_block'>
               <div class='contentSpace'>
                  <div id='divIFrame' style='text-align: top;'>
                     <iframe id='idContentFrame' name='idContentFrame' src=\"". $SystemSettings["LiveURL"] ."/hidden/business-tools\" frameborder='0' width='100%'  
                        style='margin: 0px 0px 0px 0px;' scrolling='no'>
                        If you can read this, it means that either your browser doesn't support iframes, or that you have iframe support turned off.
                     </iframe>   
                  </div>
               </div>
            </div>
         </div>";
echo jsResizeTypoIframe();
echo "   </div>
         <div style='clear:both'></div>
         </div>
         </div>   
         </div>";   

include_once("footer.php");
?>