function html_start_sub2()
 {
     extract(tep_load('defs', 'database', 'languages', 'sessions', 'plugins_admin', 'message_stack'));
     $selected_box =& $cSessions->register('selected_box');
     $html = '';
     if ($cDefs->ajax) {
         $html .= '  <div id="ajax">' . "\n";
         $html .= '    <div id="wrapper">' . "\n";
         echo $html;
         return;
     }
     tep_output_media();
     $html .= '</head>' . "\n";
     $html .= '<body>' . "\n";
     $html .= '  <div id="wrapper">' . "\n";
     echo $html;
     if ($cDefs->script != FILENAME_DEFAULT) {
         require DIR_FS_INCLUDES . 'header.php';
         echo '    <div class="cleaner"></div>' . "\n";
         echo '      <div id="leftpane">' . "\n";
         require DIR_FS_INCLUDES . 'column_left.php';
         echo '      </div>' . "\n";
         echo '      <div id="mainpane">' . "\n";
     } else {
         echo '    <div class="homepane main">' . "\n";
     }
     // Display Script specific notices
     $msg->output();
 }
Exemple #2
0
 function html_end()
 {
     extract(tep_load('defs', 'plugins_admin', 'sessions'));
     if ($cDefs->ajax) {
         $cPlug->invoke('ajax_end');
         echo '    </div>' . "\n";
         echo '  </div>' . "\n";
         require DIR_FS_INCLUDES . 'application_bottom.php';
         return;
     }
     if ($cDefs->script != FILENAME_DEFAULT) {
         echo '    </div>' . "\n";
         require DIR_FS_INCLUDES . 'footer.php';
     } else {
         echo '    </div>' . "\n";
         echo '    <div class="homepane main">' . "\n";
         require DIR_FS_INCLUDES . 'footer.php';
         echo '    </div>' . "\n";
     }
     echo '  </div>' . "\n";
     $cPlug->invoke('html_end');
     if ($cDefs->script != FILENAME_DEFAULT) {
         $cDefs->media[] = '<div><script language="javascript" type="text/javascript">' . "\n" . '  var jqWrap = general;' . "\n" . '  jqWrap.launch();' . "\n" . '</script></div>';
     }
     tep_output_media();
     echo '</body>' . "\n";
     echo '</html>' . "\n";
     require DIR_FS_INCLUDES . 'application_bottom.php';
 }
 function set_html()
 {
     extract(tep_load('defs', 'plugins_admin', 'sessions'));
     if ($cDefs->ajax) {
         return;
     }
     if (headers_sent()) {
         echo '<pre style="font-weight:bold; color: #FF0000;">' . ERROR_HEADERS_SENT . '</pre>';
         $cSessions->close();
     }
     header('Content-Type: text/html; charset=' . CHARSET);
     // Setup privacy header
     header('P3P: CP="NOI ADM DEV PSAi COM NAV STP IND"');
     $media_array = array();
     $media_array[] = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
     $media_array[] = '<html xmlns="http://www.w3.org/1999/xhtml" ' . HTML_PARAMS . '>';
     $media_array[] = '<head>';
     $media_array[] = '<meta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '" />';
     $media_array[] = '<base href="' . $cDefs->relpath . '"></base>';
     $html = '<title>';
     if (defined('HEADING_TITLE') && strpos(HEADING_TITLE, '%s') === false) {
         $html .= HEADING_TITLE . ' - ' . STORE_NAME;
     } else {
         $html .= TITLE;
     }
     $html .= '</title>';
     $media_array[] = $html;
     $media_array[] = '<link rel="stylesheet" type="text/css" href="stylesheet.css" />';
     $media_array[] = '<link rel="stylesheet" type="text/css" href="includes/javascript/jquery/themes/smoothness/jquery-ui.css" />';
     $media_array[] = '<script language="javascript" type="text/javascript" src="includes/javascript/jquery/jquery.js"></script>';
     //$media_array[] = '<script language="javascript" type="text/javascript" src="includes/javascript/jquery/jquery.dump.js"></script>';
     $media_array[] = '<script language="javascript" type="text/javascript" src="includes/javascript/jquery/jquery.ajaxq.js"></script>';
     $media_array[] = '<script language="javascript" type="text/javascript" src="includes/javascript/jquery/jquery.form.js"></script>';
     $media_array[] = '<script language="javascript" type="text/javascript" src="includes/javascript/jquery/ui/jquery-ui.min.js"></script>';
     $media_array[] = '<script language="javascript" type="text/javascript" src="includes/javascript/general.js"></script>';
     $cDefs->media = array_merge($media_array, $cDefs->media);
     $cPlug->invoke('html_start');
     tep_output_media();
     $cPlug->invoke('html_ready');
     tep_output_media();
 }