function _header($title, $img, $message, $task, $action)
    {
        $message = acajoom::messageMgmt($action, $task, $message);
        ?>
         <link rel="stylesheet" href="components/com_acajoom/cssadmin/acajoom.css" type="text/css" >
         <div id="acajoom">
         <table class="adminheading" width="99%">
         <tr>
         <?php 
        if (empty($message)) {
            ?>
               <th style="padding-left:60px; background: url(<?php 
            echo $GLOBALS['mosConfig_live_site'];
            ?>
/administrator/images/<?php 
            echo $img;
            ?>
) no-repeat left;" align="left"><?php 
            echo $title;
            ?>
</th>
               <td  align="right"><a href="index2.php?option=com_acajoom"><img src="components/com_acajoom/images/acajoom.jpg" alt="Acajoom Logo" border="0" align="right" /></a></td>
         <?php 
        } else {
            $lgt = strlen($title) * 11 + 80;
            ?>
               <td align="left" width="<?php 
            echo $lgt;
            ?>
">
                  <table class="adminheading">
                     <tr>
		               <th style="padding-left:60px; background: url(<?php 
            echo $GLOBALS['mosConfig_live_site'];
            ?>
/administrator/images/<?php 
            echo $img;
            ?>
) no-repeat left;" align="left">
		               <?php 
            echo $title;
            ?>
		               </th>
                     </tr>
                  </table>
               </td>
               <td>
               		<center>
                  <table style="width: 100%; text-align: center; margin-left: auto; margin-right: auto;">
                     <tr>
                     <td class="none" align="center"><?php 
            echo $message;
            ?>
</td>
                     <td  width="120px" align="right"><a href="index2.php?option=com_acajoom" target="_blank"><img src="components/com_acajoom/images/acajoom.jpg" alt="Acajoom Logo" border="0" align="right" /></a></td>
                     </tr>
                  </table>
               		</center>
                </td>
         <?php 
        }
        ?>

         </tr>
         </table>
<?php 
        if ($GLOBALS[ACA . 'show_guide'] == 1 and $task != 'edit' and $task != 'doNew' and $task != 'new') {
            require_once WPATH_ADMIN . 'guide.acajoom.php';
            echo createGuide();
        }
    }
Example #2
0
 function _header($title, $img, $message, $task, $action)
 {
     $GLOBALS[ACA . 'titlteHeader'] = $title;
     $GLOBALS[ACA . 'titlteImg'] = $img;
     $message = acajoom::messageMgmt($action, $task, $message);
     if (ACA_CMSTYPE) {
         backHTML::_header15($title, $img, $message, $task, $action);
     } else {
         backHTML::_header10($title, $img, $message, $task, $action);
     }
     //endif
     if ($GLOBALS[ACA . 'show_guide'] == 1 and $task != 'edit' and $task != 'doNew' and $task != 'new' && $task != 'add') {
         require_once WPATH_ADMIN . 'guide.acajoom.php';
         echo createGuide();
     }
 }