Example #1
0
function skin_ClientPage_Default()
{
    global $adm_pass;
    global $adm_login;
    global $conf_skin;
    ////////////////////////////////////
    // Create the top banner and menu //
    ////////////////////////////////////
    $anotherTopBanner = anotherTopBanner("DTC");
    $anotherLanguageSelection = anotherLanguageSelection();
    $lang_sel = skin($conf_skin, $anotherLanguageSelection, _("Language"));
    if ($adm_login != "" && isset($adm_login) && $adm_pass != "" && isset($adm_pass)) {
        // Fetch all the user informations, Print a nice error message if failure.
        $admin = fetchAdmin($adm_login, $adm_pass);
        if (($error = $admin["err"]) != 0) {
            $mesg = $admin["mesg"];
            $login_txt = _("Error") . " {$error} " . _("fetching admin: ") . "<font color=\"red\">{$mesg}</font><br>";
            $login_txt .= login_form();
            $login_skined = skin($conf_skin, $login_txt, _("Client panel:") . " " . _("Login"));
            $mypage = layout_login_and_languages($login_skined, $lang_sel);
        } else {
            // Draw the html forms
            $HTML_admin_edit_data = drawAdminTools($admin);
            $mypage = $HTML_admin_edit_data;
        }
    } else {
        $login_txt = login_form();
        $login_skined = skin($conf_skin, $login_txt, _("Client panel:") . " " . _("Login"));
        $mypage = layout_login_and_languages($login_skined, $lang_sel);
    }
    // Output the result !
    if (!isset($anotherHilight)) {
        $anotherHilight = "";
    }
    echo anotherPage("Client:", "", $anotherHilight, makePreloads(), $anotherTopBanner, "", $mypage, anotherFooter(""));
}
        $proceed = "no";
    }
}
if ($proceed == "yes") {
    if (isset($_REQUEST["payment_type"]) && $_REQUEST["payment_type"] == "cheque") {
        $payment_type = 'cheque';
        $pending_reason = "Cheque";
    } else {
        $payment_type = 'wire';
        $pending_reason = "Wire transfer";
    }
    $q = "UPDATE {$pro_mysql_pay_table} SET paiement_type='{$payment_type}',valid='pending',pending_reason='{$pending_reason}' WHERE hash_check_key='" . $_REQUEST["hash_check"] . "' AND id='" . $_REQUEST["item_id"] . "'";
    $r = mysql_query($q) or die("Cannot query {$q} line " . __LINE__ . " file " . __FILE__ . " sql said: " . mysql_error());
}
// Display the payment infos
if ($proceed == "yes") {
    if (isset($_REQUEST["payment_type"]) && $_REQUEST["payment_type"] == "cheque") {
        $form = "<u>" . _("Cheques shall be written to be paid only to:") . "</u><br>" . $secpayconf_cheques_to_label . "<br><br>";
        $form .= "<u>" . _("Cheques shall be sent to:") . "</u><br><pre>" . $secpayconf_cheques_send_address . "</pre><br><br>";
    } else {
        $form = "<u>" . _("Wire transfers shall be made to: ") . "</u><br><pre>" . $secpayconf_wiretransfers_bank_details . "</pre><br><br>";
    }
    $form .= "<b>" . _("Thanks for your order. Your order has been set on hold until someone checks for your payment.") . "</b>  <a href=\"/\">" . _("Continue") . "</a><br><br>";
}
$login_skined = skin($conf_skin, $form, _("Register a new account"));
$mypage = layout_login_and_languages($login_skined, $lang_sel);
if (function_exists("skin_NewAccountPage")) {
    skin_NewAccountPage($login_skined);
} else {
    echo anotherPage("Client:", "", "", makePreloads(), $anotherTopBanner, "", $mypage, anotherFooter(""));
}
Example #3
0
function skin_ClientPage()
{
    global $adm_pass;
    global $adm_login;
    global $conf_skin;
    global $page_metacontent;
    global $meta;
    global $confirm_javascript;
    global $java_script;
    global $skinCssString;
    global $console;
    ////////////////////////////////////
    // Create the top banner and menu //
    ////////////////////////////////////
    $anotherTopBanner = anotherTopBanner("DTC");
    $anotherLanguageSelection = anotherLanguageSelection();
    $lang_sel = skin($conf_skin, $anotherLanguageSelection, _("Language"));
    if ($adm_login != "" && isset($adm_login) && $adm_pass != "" && isset($adm_pass)) {
        // Fetch all the user informations, Print a nice error message if failure.
        $admin = fetchAdmin($adm_login, $adm_pass);
        if (($error = $admin["err"]) != 0) {
            $mesg = $admin["mesg"];
            $login_txt = _("Error") . " {$error} " . _("fetching admin: ") . "<font color=\"red\">{$mesg}</font><br>";
            $login_txt .= login_form();
            $login_skined = skin($conf_skin, $login_txt, _("Client panel:") . " " . _("Login"));
            $mypage = layout_login_and_languages($login_skined, $lang_sel);
        } else {
            // Draw the html forms
            $HTML_admin_edit_data = '<div class="box_wnb_content_container">' . drawAdminTools($admin) . '</div>';
            $mypage = $HTML_admin_edit_data;
        }
    } else {
        $login_txt = login_form();
        $mypage = skin($conf_skin, $login_txt, _("Client panel:") . " " . _("Login"));
    }
    echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html>\n<head>\n<title>DTC: Client: " . $_SERVER['SERVER_NAME'] . "</title>\n{$page_metacontent}\n{$meta}\n</head>\n<body id=\"page\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n\t  <div id=\"outerwrapper\">\n    <div id=\"wrapper\">\n\n" . makePreloads() . "\n{$confirm_javascript}\n{$java_script}\n<link rel=\"stylesheet\" href=\"gfx/skin/bwoup/skin.css\" type=\"text/css\">\n{$skinCssString}\n\n" . anotherTopBanner("DTC", "yes") . "<div id=\"usernavbarreplacement\"></div>\n<div id=\"content\"><div class=\"box_wnb_content_container\">" . $mypage . "</div></div>\n<div id=\"footer\">" . anotherFooter("Footer content<br><br>") . "</div>\n    </div>\n</div>\n</body>\n</html>";
}
Example #4
0
function skin_ClientPage()
{
    global $adm_pass;
    global $adm_login;
    global $conf_skin;
    global $page_metacontent;
    global $meta;
    global $confirm_javascript;
    global $java_script;
    global $skinCssString;
    global $console;
    ////////////////////////////////////
    // Create the top banner and menu //
    ////////////////////////////////////
    $anotherTopBanner = anotherTopBanner("DTC");
    $anotherLanguageSelection = anotherLanguageSelection();
    $lang_sel = skin($conf_skin, $anotherLanguageSelection, _("Language"));
    if ($adm_login != "" && isset($adm_login) && $adm_pass != "" && isset($adm_pass)) {
        // Fetch all the user informations, Print a nice error message if failure.
        $admin = fetchAdmin($adm_login, $adm_pass);
        if (($error = $admin["err"]) != 0) {
            $mesg = $admin["mesg"];
            $login_txt = _("Error") . " {$error} " . _("fetching admin: ") . "<font color=\"red\">{$mesg}</font><br />";
            $login_txt .= login_form();
            $login_skined = skin($conf_skin, $login_txt, _("Client panel:") . " " . _("Login"));
            $mypage = layout_login_and_languages($login_skined, $lang_sel);
        } else {
            // Draw the html forms
            $HTML_admin_edit_data = '<div class="box_wnb_content_container">' . drawAdminTools($admin) . '</div>';
            $mypage = $HTML_admin_edit_data;
        }
    } else {
        $login_txt = login_form();
        $mypage = skin($conf_skin, $login_txt, _("Client panel:") . " " . _("Login"));
    }
    echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" dir=\"ltr\" lang=\"en\" xml:lang=\"en\">\n<head>\n<title>DTC: Client: " . $_SERVER['SERVER_NAME'] . "</title>\n{$page_metacontent}\n{$meta}\n<link rel=\"stylesheet\" href=\"gfx/skin/paperboard/skin.css\" type=\"text/css\" media=\"all\" />\n</head>\n<body id=\"page\">\n\t<div id=\"outerwrapper\">\n\t\t<div id=\"wrapper\">\n\t\t\t" . makePreloads() . "\n\t\t\t{$confirm_javascript}\n\t\t\t{$java_script}\n\t\t\t{$skinCssString}\n\t\t\t" . anotherTopBanner("DTC", "yes") . "<div id=\"usernavbarreplacement\"></div>\n\t\t\t<table class=\"tht\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=\"thl-1\" nowrap=\"nowrap\">&nbsp;</td>\n\t\t\t\t\t<td class=\"thm-1 hleft\" nowrap=\"nowrap\">&nbsp;</td>\n\t\t\t\t\t<td class=\"thr-1\" nowrap=\"nowrap\">&nbsp;</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=\"bord-left\" nowrap=\"nowrap\"></td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t" . $mypage . "\n\t\t\t\t\t</td>\n\t\t\t\t\t<td class=\"bord-right\" nowrap=\"nowrap\"></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=\"tbl-1\" nowrap=\"nowrap\"></td>\n\t\t\t\t\t<td class=\"tbm-1 hleft\" nowrap=\"nowrap\">&nbsp;</td>\n\t\t\t\t\t<td class=\"tbr-1\" nowrap=\"nowrap\"></td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t\t<div id=\"footer\">" . anotherFooter("Footer content<br /><br />") . "PaperBoard template for DTC made by <a href=\"http://www.labestiole.net\" title=\"la bestiole\" target=\"_blank\">cali</a></div>\n\t\t</div>\n\t</div>\n</body>\n</html>";
}