<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
   <title><?php echo $this->lang("Support Center");?> - Powered By ClientExec</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-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" 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">
       var gFuse = "<?php echo $this->gFuse; ?>";
       var gView = "<?php echo $this->gView; ?>";
       var gDateFormat = "<?php echo $this->gDateFormat;?>";
       <?php if ($this->gCustomerLoggedIn) { ?>
           var gCustomerId = "<?php echo $this->gCustomerId;?>";
           var gUserFirstName = "<?php echo $this->gUserFirstName; ?>";
       <?php } else { ?>
          var gCustomerId = 0;
       <?php } ?>
       var relativePath = "<?php echo $this->gRelativePath; ?>";
       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 class="right" style="margin:11px 15px; text-align:right; position:relative;">
        <?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?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();" 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&amp;public=1" method="post" style="text-align:left;">
                 <div><input class="x-form-text x-form-field" type="text" id="email" name="email" value="E-Mail" onfocus="if(this.value=='E-Mail') this.value='';" style="margin-bottom:10px;" />
                 <input class="x-form-text x-form-field" class="x-form-text x-form-field" type="password" id="passed_password" name="passed_password" value="" onfocus="if(this.value=='password') this.value='';" />
                 <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>
    <h1 style="min-height:20px;" id="top-navigation">
            <?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&view=Profile_Products'><?php echo $this->lang("Products");?></a>
                                <ul>
					<li>
						<a href="index.php?fuse=clients&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="#a"><?php echo $this->lang("Billing");?></a>
				<ul>
					<li>
						<a href="index.php?fuse=clients&view=ViewInvoices"><?php echo $this->lang("Invoices");?></a>
					</li>
					<li>
						<a href="index.php?fuse=clients&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&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&view=TicketsOverview&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&view=ShowCustomerData"><?php echo $this->lang("Profile");?></a>
					</li>
					<li>
						<a href="index.php?fuse=clients&view=Profile_AlternateEmails"><?php echo $this->lang("Alternate E-Mails");?></a>
					</li>
					<li>
						<a href="index.php?fuse=clients&view=Profile_Billing"><?php echo $this->lang("Billing");?></a>
					</li>
					<li>
						<a href="index.php?fuse=clients&view=Profile_StaffNotes"><?php echo $this->lang("Notes");?></a>
					</li>
					<li>
						<a href="index.php?fuse=clients&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 } ?>
    </h1>

    <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">
	    $(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> 
