Exemplo n.º 1
0
	<!--Form container-->
	 <div id="container">';
    if (isset($_SESSION['admin']) && isset($_SESSION['SocialLinkEntityId']) && isset($_SESSION['SocialLinkEntityType'])) {
        $content .= $main->get_entity_name($_SESSION['SocialLinkEntityId'], $_SESSION['SocialLinkEntityType']);
        if (isset($_SESSION['SocialResponse'])) {
            $content .= '<div class="ReturnValue" style="display:none">' . $_SESSION['SocialResponse'] . '</div>';
            unset($_SESSION['SocialResponse']);
        } else {
            $content .= '<div class="ReturnValue" style="display:none"></div>';
        }
        $content .= '<form id="sponsors" name="sponsors" method="post" action="controllers/ajax.php" enctype="multipart/form-data">
    <div>
  
     <fieldset>
	<legend>Social</legend>';
        $content .= $main->get_socials($_SESSION['SocialLinkEntityId'], $_SESSION['SocialLinkEntityType']);
        $content .= '<div class="SocialSubmitButton">Save</div>
	</fieldset>';
        $content .= '
    </div>
  </form>
    	
  	   <!-- End of Form Container-->';
    } else {
        $content .= "<h1 style='text-align:center'>You don't have permission to see this page! Naughty! ;)</h1>";
    }
    $content .= ' </div>
	 
	<!--End of Main Wrapper-->
	</div>';
}