Example #1
0
        }
    }
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="styles.css">
	<link rel="stylesheet" href="style_crm.css">
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
	<link rel="stylesheet" href="cargador/ezequiel.css">
</head>
<body>
	<nav>
		<ul>
			<?php 
findSteps();
?>
		</ul>
	</nav>

	<div id="contenido">
		<?php 
require $_GET["file"];
?>
	</div>
	
</body>
</html>
function template_convert_above()
{
    global $convert_data, $time_start, $current_step, $last_step;
    $time_start = time();
    $smfsite = 'http://simplemachines.org/smf';
    $current_action = '';
    $mainsteps = findSteps();
    if (empty($current_step)) {
        if ((empty($_SESSION['convert_script']) || empty($_REQUEST['convert_script'])) && !empty($convert_data)) {
            $current_step = 0;
        } elseif (empty($_GET['step'])) {
            $current_step = 1;
        } elseif (!empty($_GET['step'])) {
            $current_step = $_GET['step'] + 1;
        }
    } else {
        $current_step += 1;
    }
    if (isset($_REQUEST['substep'])) {
        $current_substep = $_REQUEST['substep'];
    } else {
        $current_substep = 0;
    }
    $steps = array(0 => 'Select Script', 1 => 'Welcome', 2 => 'Main Conversion', 3 => 'Recount Totals and Statistics', 4 => 'Done');
    echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>', isset($convert_data['name']) ? $convert_data['name'] . ' to ' : '', 'SMF Converter</title>
		<script type="text/javascript" src="Themes/default/scripts/script.js"></script>
		<link rel="stylesheet" type="text/css" href="', $smfsite, '/style.css" />
	</head>
	<body>
		<div id="header">
			<div title="Bahamut!">', isset($convert_data['name']) ? $convert_data['name'] . ' to ' : '', 'SMF Converter</div>
		</div>
		<div id="content">
			<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-top: 1ex;">
			<tr>
				<td width="250" valign="top" style="padding-right: 10px;">
					<table border="0" cellpadding="8" cellspacing="0" class="tborder" width="240">
						<tr>
							<td class="titlebg">Steps</td>
						</tr>
						<tr>
							<td class="windowbg2">';
    // Loop through each step.
    foreach ($steps as $num => $step) {
        echo '
						<span class="', $num < $current_step ? 'stepdone' : ($num == $current_step ? 'stepcurrent' : 'stepwaiting'), '">', $step, '</span><br />';
        // Do we have information about step 2?
        if ($num == 2) {
            foreach ($mainsteps as $substep) {
                echo '
						<span class="', $current_step > 2 ? 'stepdone' : ($current_step == 2 ? 'stepcurrent' : 'stepwaiting'), '">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- ', ucfirst(trim(str_replace('Converting ', '', $substep['name']))), '</span><br />';
            }
        }
    }
    // Menus
    echo '
							</td>
						</tr>';
    /*
    	// Not ready yet. For the Future.
    	echo '
    						<tr>
    							<td class="titlebg">Progress</td>
    						</tr>
    						<tr>
    							<td class="windowbg2">
    								<div style="font-size: 8pt; height: 12pt; border: 1px solid black; background-color: white; position: relative;">
    									<div id="overall_text" style="padding-top: 1pt; width: 100%; z-index: 2; color: black; position: absolute; text-align: center; font-weight: bold;">', $incontext['overall_percent'], '%</div>
    									<div id="overall_progress" style="width: ', $incontext['overall_percent'], '%; height: 12pt; z-index: 1; background-color: lime;">&nbsp;</div>
    								</div>
    							</td>
    						</tr>';
    */
    echo '
					</table>
				</td>
				<td width="100%" valign="top">';
}