Location: PHPKode > projects > MembersGear > membersgear/templates/admin_header.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$PAGE_TITLE}</title>
<meta name="keyword" content="{$PAGE_META_KEYWORDS}">
<meta name="description" content="{$PAGE_META_DESCRIPTION}">
<link href="{$ADMIN_CSS_DIR}/adminpanel.css" rel="stylesheet" type="text/css" />
<link href="{$WEB_URL}/includes/dhtmlgoodies_calendar/dhtmlgoodies_calendar/dhtmlgoodies_calendar.css" rel="stylesheet" type="text/css" /> 

<script language="javascript" type="text/javascript" src="{$ADMIN_JS_DIR}/gen_validator.js"></script>
<script language="javascript" type="text/javascript" src="{$ADMIN_JS_DIR}/functions.js"></script>   
<!--<script language="javascript" type="text/javascript" src="{$ADMIN_JS_DIR}/xpath.js"></script> -->
<script language="javascript" type="text/javascript" src="{$ADMIN_JS_DIR}/coolRedirect.js"></script>    
<script language="javascript" type="text/javascript" src="{$ADMIN_JS_DIR}/calendar.js"></script>    
<script language="javascript" type="text/javascript" src="{$WEB_URL}/includes/dhtmlgoodies_calendar/dhtmlgoodies_calendar/dhtmlgoodies_calendar.js"></script> 
<script language="javascript" type="text/javascript" src="{$ADMIN_JS_DIR}/jquery-1.4.2.min.js"></script>
<script language="javascript" type="text/javascript" src="{$ADMIN_JS_DIR}/jquery.blockUI.js"></script> 
<script language="javascript" type="text/javascript" src="{$ADMIN_JS_DIR}/tooltip.js"></script>   
</head>
<body>

 <!-- <noscript>
         <meta http-equiv="Refresh" content="0;{php}echo WEB_URL;{/php}/checkcapability.php?checktype=javascript" /> 
    </noscript> -->       
<div id="top-header">
    <div id="set-header">
       
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
                <td width="90%"  >
                    <br/>  
                    <center>
							<div class="menu">
					<div id="main-center" >
					<center>
					 <ul class="meny_UL" style="width:98% !important;">
							{php} if(isset($_SESSION[SESSION_PREFIX.'Admin_UserID']))
								 { 
								 {/php}
										<li style="border:none !important;" ><a  onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Control panel');return false" href="{$WEB_URL}/admin/index.php"><img alt=""   align="absmiddle" src="{$ADMIN_IMAGE_DIR}/home.png"  width="30" height="30"/></a></li>            
								 {php}
								 }
							{/php}
			                
							{php}
								  if(decrypt(PAYGEAR_USERID)!=0 and strpos($_SERVER["SCRIPT_NAME"],"admin_login.php")===false && strpos($_SERVER["SCRIPT_NAME"],"admin_rotete.php")===false and isset($_SESSION[SESSION_PREFIX.'Admin_UserID']))
							{
							   $url=PAYGEAR_WEB_URL;
							   $paygearWebUrl=str_replace('https://','http://',$url);
			                   
			               
							{/php}  
			                          
									  <li><a onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Login to PayGear');return false"  href="{php} echo $paygearWebUrl; {/php}/member/default.aspx?secretpassword={$PAYGEAR_SECRET_PASSWORD}&secretpasswordsalt={$PAYGEAR_SECRET_PASSWORD_SALT}" target="_new" onmouseout="window.status='';return true;" onmouseover="return setWindowStatus('Click here to login to PayGear.com without entering your credentials.');"><img alt="" align="absmiddle" src="{$ADMIN_IMAGE_DIR}/PaygearLogin.png"   width="30" height="30" /></a></li>
								{php}
								  } else {
											if(isset($_SESSION[SESSION_PREFIX.'Admin_UserID']))
											{
							   {/php} 
								   <li><a onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Login to PayGear');return false"  href="#" onclick="alert('Please enter PayGear Credentials.');return false;" ><img alt="" align="absmiddle" src="{$ADMIN_IMAGE_DIR}/PaygearLogin.png" title="Login to PayGear" width="30" height="30" /></a></li>
								{php}
											} 
								}
							   {/php} 
		                   
							{php} if(isset($_SESSION[SESSION_PREFIX.'Admin_UserID']))
							{ 
							  $url=WEB_URL."/admin/admin_logout.php";
							  $url=urlencode($url);
							{/php}
							
								<li><a onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Configure Site Settings');return false"  href="{$WEB_URL}/admin/admin_configuration_generate.php"><img src="{$ADMIN_IMAGE_DIR}/ConfigureSiteSettings.png" width="30" height="30" title=""/></a></li>
								<li><a onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Configure Email System');return false" href="{$WEB_URL}/admin/admin_configuration_email.php"><img src="{$ADMIN_IMAGE_DIR}/ConfigureEmaill.png" width="30" height="30" title=""/></a></li>
								<li><a onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Manage Products');return false" href="{$WEB_URL}/admin/admin_product_v.php"><img src="{$ADMIN_IMAGE_DIR}/manageproduct.png" width="30" height="30" Title=""/></a></li>
								<li><a onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Manage Fields');return false" href="{$WEB_URL}/admin/admin_fields_v.php"><img src="{$ADMIN_IMAGE_DIR}/Addfield.gif" width="30" height="30" title=""/></a></li>         
								
							    <li><a onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Manage Administrators');return false" href="{$WEB_URL}/admin/admin_admin_v.php"><img src="{$ADMIN_IMAGE_DIR}/ManageAdmin.png" width="30" height="30" title=""/></a></li>
								<li><a onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Manage Members');return false" href="{$WEB_URL}/admin/admin_users_v.php"><img src="{$ADMIN_IMAGE_DIR}/users.png" width="30" height="30" title=""/></a></li>
								
								 <li><a onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Protect Files / Drip System');return false" href="{$WEB_URL}/admin/admin_drip_v.php"><img src="{$ADMIN_IMAGE_DIR}/FileProt.png"  width="30" height="30" title=""/></a></li>
								
							    <li><a onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Sales Report');return false" href="admin_sales_report.php"><img src="{$ADMIN_IMAGE_DIR}/SellReport.png" width="30" height="30" title=""/></a></li>
								<li><a onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Profit Report');return false"  href="admin_profitreport.php"><img src="{$ADMIN_IMAGE_DIR}/chart_up.png" width="30" height="30" title="Profit Report"/></a></li>
								<li><a onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Change password');return false"  href="admin_change_password.php"><img src="{$ADMIN_IMAGE_DIR}/ChangePassword.png" width="30" height="30" title=""/></a></li>
								
								{if LIST_MAIL_PRO eq 'true'}
								 
								{/if}
								
							
								 <li><a onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Installation Notes');return false" href="{$WEB_URL}/admin/installation_notes.php"><img alt="Installation Notes" title="" align="absmiddle" src="{$ADMIN_IMAGE_DIR}/InstallationGide.png"  width="30" height="30"  /></a></li> 
								 <li><a onmouseout="hideTooltip()" onmouseover="showTooltip(event,'&nbsp;&nbsp;Logout');return false" href="{$WEB_URL}/admin/admin_rotete_logout.php?url={php}echo $url{/php}"><img alt="Logout" title="" align="absmiddle" src="{$ADMIN_IMAGE_DIR}/logout.png"  width="30" height="30"  /></a></li>
			                     
						   {php} }else{ {/php}
								<li style="border-left-width:0px;" ><a onmouseout="hideTooltip()" onmouseover="showTooltip(event,'&nbsp;&nbsp;Login');return false" href="{$WEB_URL}/admin/admin_login.php"><img alt=""  align="absmiddle" src="{$ADMIN_IMAGE_DIR}/Login.png" width="30" height="30" title="Login" /></a></li>
							{php} }{/php}         
					        
			                
						</ul>
						</center>
                      </div>
					</div>
					</center>
                       <div class="header-visitlink" >
                             <img src="{$ADMIN_IMAGE_DIR}/arrow.gif" align="absmiddle"/><a id="tooltip7" href="{$SITE_VISIT_URL}" target="_blank" style="vertical-align:top">Visit {$WEB_TITLE}</a>
                          </div>
                   
                </td>
                <td width="10%" style="padding-right:5px;vertical-align:text-top;"  >
					<img id="adminlogo" src="{$ADMIN_IMAGE_DIR}/mlogo.png" title="" alt="" style="margin-top:9px;" />
                </td>
            </tr>
        </table>
        
        
                
       
        
    </div>
</div>
<div id="content_bg">

{php}
  if(decrypt(PAYGEAR_USERID)==0 and strpos($_SERVER["SCRIPT_NAME"],"admin_login.php")===false)
    {
      echo "<div class=\"paygearmsg\">";
      echo "Your PayGear credentials are invalid. Please set valid PayGear credentials immediately.";
      echo "</div>";
   }  
{/php}
{php}
  if(!isEmailConfigurationSetup() and strpos($_SERVER["SCRIPT_NAME"],"admin_login.php")===false)
    {
      echo "<div class=\"paygearmsg\">";
      echo "Your Email Settings is not set. Please set it immediately";
      echo "</div>";
   }  
{/php} 

{php}
 
     require_once PHYSICAL_DIR."/includes/system_get_set_options_class.php";
     
     $option_obj=new system_get_set_options_class();
     $cron_last_run=$option_obj->get_option('CRON_LAST_EXECUTED_ON');
     
     $msg="Cronjob last run on : ".$cron_last_run.".Make sure that it runs on every 24 hours.";    
     $cron_result=is_cron_setup();
     if($cron_result=='never' and  strpos($_SERVER["SCRIPT_NAME"],"admin_login.php")===false)
      {
            $url=WEB_URL;
            echo "<div class=\"paygearmsg\">";
            echo "Cronjobs was never run yet. <a href=\"$url/admin/installation_notes.php#cronNotes\">Click here to get more information.</a> ";
            echo "</div>";
      }
    else if(is_cron_setup()=='unsuccessful' and strpos($_SERVER["SCRIPT_NAME"],"admin_login.php")===false)
     {
          echo "<div class=\"paygearmsg\">";
          echo $msg;
          echo "</div>";
     }
     
{/php}

Return current item: MembersGear