<!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" />
   <link rel="stylesheet" type="text/css" href="templates/<?php echo $this->gTemplateName; ?>/style/public.css" />
   <link rel="stylesheet" type="text/css" href="newedge/utilities/min/index.php?g=publiccss" />
   <?php if ($this->gCSSFiles != "") { ?>
   <link type="text/css" rel="stylesheet" href="newedge/utilities/min/index.php?f=<?php echo $this->gCSSFiles;?>" />
   <?php } ?>
   <script type="text/javascript">
        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"></script>
   <script type="text/javascript" src="newedge/utilities/min/index.php?f=javascript/language/<?php echo $this->gLanguage; ?>.js<?php echo $this->gJSFiles;?>"></script>
   <script type="text/javascript">
       function loginToggle() {
           if($('#login_block').is(':visible')) {
                $('#login_block').slideUp('fast');
           } else {
               $('#login_block').slideDown();
           }
       }
       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>
</head>

<body id="pageid">

<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 href="" onclick="loginToggle(); return false;" style="background:#007FC7; color:#fff; padding:3px 7px; text-decoration:none;"><?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");?></a></div>
            <?php } ?>
            <?php if ($this->gCustomerLoggedIn) { ?>

            <ul class="sf-menu">
			<li class="mh_itemMain" >
				<a href='index.php'><?php echo $this->lang("Dashboard");?></a>
			</li>
                        <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>
			<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>
			<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>
			<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>
					<li>
						<a href="index.php?fuse=clients&amp;view=Profile_Billing"><?php echo $this->lang("Billing");?></a>
					</li>
					<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>
			<li class="mh_itemMain">
				<a href="index.php?fuse=files&amp;view=FileList"><?php echo $this->lang("Downloads");?></a>
			</li>
		</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>
    <script type="text/javascript">
    <!--
        //document.getElementById('headinglabel').innerHTML = " &raquo; <?php echo $this->gHeaderLabelLeft; ?>";
    //-->
    </script>

    <?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);
		   }
	    });
        /* ]]> */
    </script>

</body>
</html> 