Exemplo n.º 1
0
    print CBlanks::getListBlanks();
    ?>

	<input type="hidden" name="debug" value="<?php 
    echo htmlspecialcharsbx($_REQUEST["debug"]);
    ?>
">
	<input type="hidden" name="lang" value="<?php 
    echo LANGUAGE_ID;
    ?>
">

<?php 
    $tabControl->End();
} else {
    $blank = CBlanks::getBlank($_GET["slug"]);
    if (!empty($blank)) {
        ?>
		<form method="POST" action="pbrf_templates.php?lang=<?php 
        echo LANGUAGE_ID;
        echo $_GET["return_url"] ? "&amp;return_url=" . urlencode($_GET["return_url"]) : "";
        echo $_GET["slug"] ? "&amp;slug=" . urlencode($_GET["slug"]) : "";
        ?>
" enctype="multipart/form-data" name="editform">
<?php 
        $aTabs = array(array("DIV" => $blank["slug"], "TAB" => $blank["name"], "ICON" => "main_user_edit", "TITLE" => $blank["name"]));
        $tabControl = new CAdminTabControl("tabControl", $aTabs, true, true);
        $tabControl->Begin();
        $tabControl->BeginNextTab();
        $data = array();
        if ($_SERVER["REQUEST_METHOD"] == "POST" && (isset($_POST["save"]) || isset($_POST["apply"]))) {