<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <title><?php echo $this->lang("Support Center");?> - Powered By ClientExec</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <meta http-equiv="X-UA-Compatible" content="IE=8" />
   <link rel="Shortcut Icon" href="favicon.ico" />
   <?php if ($this->gCSSFiles != "") { ?>
	   <link rel="stylesheet" type="text/css" href="newedge/utilities/min/index.php?f=<?php echo $this->gCSSFiles;?>,templates/<?php echo $this->gTemplateName; ?>/style/public.css&g=publiccss&ver=<?php echo $this->gInstalledVersion;?>" />
   <?php }else { ?>
		<link rel="stylesheet" type="text/css" href="newedge/utilities/min/index.php?f=templates/<?php echo $this->gTemplateName; ?>/style/public.css&g=publiccss&ver=<?php echo $this->gInstalledVersion;?>" />
   <?php } ?>
   <script type="text/javascript">
        var gVer = "<?php echo $this->gVersion; ?>";
        var gFuse = "<?php echo $this->gFuse; ?>";
        var gView = "<?php echo $this->gView; ?>";
        var gHash = "<?php echo $this->gHash; ?>";
        var gDateFormat = "<?php echo $this->gDateFormat;?>";
        var relativePath = "<?php echo $this->gRelativePath; ?>";
       <?php if ($this->gCustomerLoggedIn) { ?>
           var gCustomerId = "<?php echo $this->gCustomerId;?>";
           var gUserFirstName = "<?php echo $this->gUserFirstName; ?>";
       <?php } else { ?>
          var gCustomerId = 0;
       <?php } ?>
    </script>
   <script type="text/javascript" src="newedge/utilities/min/index.php?g=publicjs&f=javascript/language/<?php echo $this->gLanguage; ?>.js&ver=<?php echo $this->gInstalledVersion;?>"></script>
   <script type="text/javascript">
       function loginToggle() {
           if($('#login_block').is(':visible')) {
                $('#login_block').slideUp('fast');
           } else {
               $('#login_block').slideDown();
           }
       }
   </script>
   <?php echo $this->headHTML;?>
</head>

<body id="pageid">
<?php echo $this->bodyHTML;?>
<div id="ce_wrapper">
    <div class="logo"></div>
    <div style="min-height:20px;" id="top-navigation">
            <div class="right" style="text-align:right; position:relative; font-size:12px;">
        <?php if ($this->gCustomerLoggedIn) { ?>
            <?php echo $this->lang("Welcome");?> <a href="index.php?fuse=clients&amp;view=ShowCustomerData"><?php echo $this->gUserFirstName; ?></a> &nbsp;|&nbsp; <a href="index.php?sessionHash=<?php echo $this->gHash; ?>&amp;fuse=newedge&amp;action=Logout"><?php echo $this->lang("Log Out");?></a>
        <?php } else { ?>
            <?php echo $this->lang("Have an account");?>?&nbsp; <a id="loginLink" href="" onclick="loginToggle(); return false;"><?php echo $this->lang("Log In");?></a>
        <?php }?>
       <div id="msg-div" class="msg-div-wrapper" style="display:none;"><div id="msg-div-inner" class="msg-div-inner"></div></div>
       <div id="login_block">
          <div class="block search">
              <form action="index.php?fuse=admin&amp;action=Login" method="post" style="text-align:left;">
                 <div>
                 <label style="font-size: 11px;">E-Mail
                 <input class="x-form-text x-form-field" type="text" id="email" name="email" value="" onfocus="if(this.value=='E-Mail') this.value='';" style="margin-bottom:4px;" />
                 </label>
                 <label style="font-size: 11px;">Password
                 <input class="x-form-text x-form-field" type="password" id="passed_password" name="passed_password" value="" onfocus="if(this.value=='password') this.value='';" />
                 </label>
                 <input type="submit" value="Login" class="login_block_submit" />
		 <div class="right" style="margin-top:12px;margin-right:80px;font-size:10px;"><a href="javascript:loginToggle();">Cancel</a></div>
                 <div class="left" style="margin-top:13px;font-size:10px;"><a href="index.php?fuse=admin&amp;view=ForgotPassword"><?php echo $this->lang("Forgot Password?");?></a></div>
                 </div>
              </form>
          </div>
       </div>
    </div>
            <?php if ((!$this->gCustomerLoggedIn) && ($this->gView != "ViewShowSummary")) { ?>
                <div class="mh_itemMain">
                    <a href='index.php'>
                        <?php echo $this->lang("Dashboard");?>
                        <?php echo $this->company->isStub()? '' : ' - ' . $this->company->getName(); ?>
                    </a>
                </div>
            <?php } ?>
            <?php if ($this->gCustomerLoggedIn) { ?>

            <ul class="sf-menu">
			<li class="mh_itemMain" >
				<a href='index.php'>
                    <?php echo $this->lang("Dashboard");?>
                        <?php echo $this->company->isStub()? '' : ' - ' . $this->company->getName(); ?>
                </a>
			</li>
            <?php if ($this->company->supports('products')): ?>
                        <li class="mh_itemMain">
				<a href='index.php?fuse=clients&amp;view=Profile_Products'><?php echo $this->lang("Products");?></a>
                                <ul>
					<li>
						<a href="index.php?fuse=clients&amp;view=Profile_Products"><?php echo $this->lang("Products");?></a>
					</li>
					<li>
						<a href="order.php"><?php echo $this->lang("New Order");?></a>
					</li>
				</ul>
			</li>
            <?php endif; ?>
            <?php if ($this->company->supports('billing')): ?>
			<li class="mh_itemMain">
				<a href="#"><?php echo $this->lang("Billing");?></a>
				<ul>
					<li>
						<a href="index.php?fuse=clients&amp;view=ViewInvoices"><?php echo $this->lang("Invoices");?></a>
					</li>
					<li>
						<a href="index.php?fuse=clients&amp;view=ViewInvoices_Recurring"><?php echo $this->lang("Recurring Charges");?></a>
					</li>
				</ul>
			</li>
            <?php endif; ?>
            <?php if ($this->company->supports('support')): ?>
			<li class="mh_itemMain">
				<a href="#"><?php echo $this->lang("Support");?></a>
                <ul>
                    <li>
                        <a href="index.php?fuse=support&amp;view=SubmitTicketForm"><?php echo $this->lang("Submit New Ticket");?></a>
                    </li>
					<li>
						<a href="index.php?fuse=support&amp;view=TicketsOverview"><?php echo $this->lang("Open Tickets");?></a>
                        <!--
						<ul>
							<li><a href="#">short</a></li>
							<li><a href="#">short</a></li>
						</ul>
                        -->
					</li>
                    <li>
						<a href="index.php?fuse=support&amp;view=TicketsOverview&amp;closed=1"><?php echo $this->lang("Closed Tickets");?></a>
					</li>
                    <li>
						<a href="index.php?fuse=knowledgebase&amp;view=KB_MainView"><?php echo $this->lang("Knowledgebase");?></a>
					</li>
                </ul>
			</li>
            <?php endif; ?>
			<li class="mh_itemMain">
				<a href="#"><?php echo $this->lang("Account");?></a>
				<ul>
					<li>
						<a href="index.php?fuse=clients&amp;view=ShowCustomerData"><?php echo $this->lang("Profile");?></a>
					</li>
					<li>
						<a href="index.php?fuse=clients&amp;view=Profile_AlternateEmails"><?php echo $this->lang("Alternate E-Mails");?></a>
					</li>
                    <?php if ($this->company->supports('billing')): ?>
					<li>
						<a href="index.php?fuse=clients&amp;view=Profile_Billing"><?php echo $this->lang("Billing");?></a>
					</li>
                    <?php endif; ?>
					<li>
						<a href="index.php?fuse=clients&amp;view=Profile_StaffNotes"><?php echo $this->lang("Notes");?></a>
					</li>
					<li>
						<a href="index.php?fuse=clients&amp;view=Profile_Password"><?php echo $this->lang("Password");?></a>
					</li>
				</ul>
			</li>
            <?php if ($this->company->supports('files')): ?>
			<li class="mh_itemMain">
				<a href="index.php?fuse=files&amp;view=FileList"><?php echo $this->lang("Downloads");?></a>
			</li>
            <?php endif; ?>
			<?php if ( count($this->snapins) > 0 ) { ?>
            <li class="mh_itemMain">
                <a href="#"><?php echo $this->lang("Plugins");?></a>
                <ul>
                <?php foreach ($this->snapins as $snapin) { ?>
                    <li>
                        <?php echo $snapin->getURL();?>
                    </li>
                <?php } ?>
                </ul>
            </li>
			<?php } ?>

		</ul>
            <?php } ?>
    </div>

    <div id="main">
        <?php if (count($this->gErrorMessages)>0) { ?>
            <div class="notice notice-red">
                <div class="inside">
                    <?php foreach ($this->gErrorMessages as $message) {
                            echo $message."<br/>";
                    } ?>
                </div>
            </div>
        <?php } ?>

        <?php if (count($this->gMessages)>0) { ?>
            <div class="notice notice-gray">
                <div class="inside">
                    <?php foreach ($this->gMessages as $message) {
                            echo $message."<br/>";
                    } ?>
                </div>
            </div>
        <?php } ?>

        <!-- content goes here -->
        <?php echo $this->gContents;?>
        <!-- end content goes here -->

       <div style="padding:30px 0; text-align:center;clear:both;"><a class="copyright" style="color:#cdcdcd;" href="http://www.clientexec.com">Copyright 2002 - <?php echo $this->gCurrentYear;?>, ClientExec LLC. All rights reserved.</a></div>
    </div>
    </div>

    <?php if ($this->gHasLiveSupport) { echo $this->gLiveChatCode; } ?>
    <div class="clear"></div>

    <script type="text/javascript">

        /* <![CDATA[ */
	    $(function(){
		   var currentHeight = null, minHeight = 400, remotePostMessage = null, inIframe = top !== self;
		   if (inIframe) {
		      if ("postMessage" in parent) {
		         remotePostMessage = function(message, target) {
		            return parent.postMessage(message, target);
		         }
		         setLocation = function(newLocation) {
		            parent.window.frames[0].location.replace(newLocation);
		         }
		      }
		      setHeight = function() {
		         var newHeight = document.body.offsetHeight;
		         if (newHeight != currentHeight) {
		            currentHeight = newHeight;
		            if (currentHeight < minHeight)
		               currentHeight = minHeight;

		            remotePostMessage('height:'+currentHeight, '*');
		         }
		      }
		      setHeight();
		      setInterval(setHeight, 300);
		   }
	    });
        /* ]]> */

        $(document).ready(function(){
          jQuery(function(){
            jQuery('ul.sf-menu').supersubs({
                  minWidth:    12,   // minimum width of sub-menus in em units
                  maxWidth:    27,   // maximum width of sub-menus in em units
                  extraWidth:  1     // extra width can ensure lines don't sometimes turn over
                                     // due to slight rounding differences and font-family
                  }).superfish();  // call supersubs first, then superfish, so that subs are
                               // not display:none when measuring. Call before initialising
                               // containing tabs for same reason.
          });
        });
    </script>
<?php echo $this->footerHTML;?>
<?php if ( $this->gJSFiles != '' ) { ?>
<script type="text/javascript" src="newedge/utilities/min/index.php?f=<?php echo $this->gJSFiles;?>&ver=<?php echo $this->gInstalledVersion;?>"></script>
<?php } ?>
</body>
</html>
