}
                }
            }
        }
    }
    // Start main content
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _GALLERY => '', _GALLERY_SETTINGS => '', ucfirst($action) => '')));
    echo '<br />';
    //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
    echo $msg;
    draw_content_start();
    if ($mode == 'view') {
        $objGallery->DrawViewMode();
    } else {
        if ($mode == 'add') {
            $objGallery->DrawAddMode();
        } else {
            if ($mode == 'edit') {
                $objGallery->DrawEditMode($rid);
            } else {
                if ($mode == 'details') {
                    $objGallery->DrawDetailsMode($rid);
                }
            }
        }
    }
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
                    }
                }
            }
        }
    }
    // Start main content
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _CONTACT_US => '', _CONTACT_US_SETTINGS => '', ucfirst($action) => '')));
    echo '<br />';
    //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
    echo $msg;
    draw_content_start();
    if ($mode == 'view') {
        $objContactSettings->DrawViewMode();
    } else {
        if ($mode == 'add') {
            $objContactSettings->DrawAddMode();
        } else {
            if ($mode == 'edit') {
                $objContactSettings->DrawEditMode($rid);
            } else {
                if ($mode == 'details') {
                    $objContactSettings->DrawDetailsMode($rid);
                }
            }
        }
    }
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
                    }
                }
            }
        }
    }
    // Start main content
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _BANNERS => '', _BANNERS_SETTINGS => '', ucfirst($action) => '')));
    echo '<br />';
    //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
    echo $msg;
    draw_content_start();
    if ($mode == 'view') {
        $objBanners->DrawViewMode();
    } else {
        if ($mode == 'add') {
            $objBanners->DrawAddMode();
        } else {
            if ($mode == 'edit') {
                $objBanners->DrawEditMode($rid);
            } else {
                if ($mode == 'details') {
                    $objBanners->DrawDetailsMode($rid);
                }
            }
        }
    }
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
Beispiel #4
0
                    }
                }
            }
        }
    }
    // Start main content
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _FAQ => '', _FAQ_SETTINGS => '', ucfirst($action) => '')));
    echo '<br />';
    //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
    echo $msg;
    draw_content_start();
    if ($mode == 'view') {
        $objFaq->DrawViewMode();
    } else {
        if ($mode == 'add') {
            $objFaq->DrawAddMode();
        } else {
            if ($mode == 'edit') {
                $objFaq->DrawEditMode($rid);
            } else {
                if ($mode == 'details') {
                    $objFaq->DrawDetailsMode($rid);
                }
            }
        }
    }
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
                    }
                }
            }
        }
    }
    // Start main content
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _NEWS => '', _NEWS_SETTINGS => '', ucfirst($action) => '')));
    echo '<br />';
    //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
    echo $msg;
    draw_content_start();
    if ($mode == 'view') {
        $objNews->DrawViewMode();
    } else {
        if ($mode == 'add') {
            $objNews->DrawAddMode();
        } else {
            if ($mode == 'edit') {
                $objNews->DrawEditMode($rid);
            } else {
                if ($mode == 'details') {
                    $objNews->DrawDetailsMode($rid);
                }
            }
        }
    }
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
                    }
                }
            }
        }
    }
    // Start main content
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _INQUIRIES => '', _INQUIRIES_SETTINGS => '', ucfirst($action) => '')));
    echo '<br />';
    //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
    echo $msg;
    draw_content_start();
    if ($mode == 'view') {
        $objInquiries->DrawViewMode();
    } else {
        if ($mode == 'add') {
            $objInquiries->DrawAddMode();
        } else {
            if ($mode == 'edit') {
                $objInquiries->DrawEditMode($rid);
            } else {
                if ($mode == 'details') {
                    $objInquiries->DrawDetailsMode($rid);
                }
            }
        }
    }
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
                    }
                }
            }
        }
    }
    // Start main content
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _RATINGS => '', _RATINGS_SETTINGS => '', ucfirst($action) => '')));
    echo '<br />';
    //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
    echo $msg;
    draw_content_start();
    if ($mode == 'view') {
        $objRatings->DrawViewMode();
    } else {
        if ($mode == 'add') {
            $objRatings->DrawAddMode();
        } else {
            if ($mode == 'edit') {
                $objRatings->DrawEditMode($rid);
            } else {
                if ($mode == 'details') {
                    $objRatings->DrawDetailsMode($rid);
                }
            }
        }
    }
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
                    }
                }
            }
        }
    }
    // Start main content
    draw_title_bar(prepare_breadcrumbs(array(_LISTINGS_MANAGEMENT => '', _SETTINGS => '', _LISTINGS_SETTINGS => '', ucfirst($action) => '')));
    echo '<br />';
    //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
    echo $msg;
    draw_content_start();
    if ($mode == 'view') {
        $objListings->DrawViewMode();
    } else {
        if ($mode == 'add') {
            $objListings->DrawAddMode();
        } else {
            if ($mode == 'edit') {
                $objListings->DrawEditMode($rid);
            } else {
                if ($mode == 'details') {
                    $objListings->DrawDetailsMode($rid);
                }
            }
        }
    }
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
                    }
                }
            }
        }
    }
    // Start main content
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _COMMENTS => '', _COMMENTS_SETTINGS => '', ucfirst($action) => '')));
    echo '<br />';
    //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
    echo $msg;
    draw_content_start();
    if ($mode == 'view') {
        $objComments->DrawViewMode();
    } else {
        if ($mode == 'add') {
            $objComments->DrawAddMode();
        } else {
            if ($mode == 'edit') {
                $objComments->DrawEditMode($rid);
            } else {
                if ($mode == 'details') {
                    $objComments->DrawDetailsMode($rid);
                }
            }
        }
    }
    draw_content_end();
} else {
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _COMMENTS_MANAGEMENT => '')));
    draw_important_message(_NOT_AUTHORIZED);
}
                }
            }
        }
    }
    // Start main content
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _PAYMENTS => '', _PAYMENTS_SETTINGS => '', ucfirst($action) => '')));
    echo '<br />';
    //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
    echo $msg;
    draw_content_start();
    if ($mode == 'view') {
        $objPayments->DrawViewMode();
        echo "<br /><br />\r\n\t\t<script>\r\n\t\t\tvar arrTabs = ['Online','2CO','PayPal','AuthorizeNet'];\r\n\t\t</script>\r\n\t\t<fieldset class='instructions'>\r\n\t\t<legend>\r\n\t\t\t<b>INSTRUCTIONS:\r\n\t\t\t\t&nbsp;<a id='tabOnline' style='font-weight:bold' href='javascript:void(\"Online\")' onclick='javascript:appToggleTabs(\"Online\", arrTabs)'>[ On-Line Order ]</a>\r\n\t\t\t\t&nbsp;<a id='tabPayPal' href='javascript:void(\"PayPal\")' onclick='javascript:appToggleTabs(\"PayPal\", arrTabs)'>[ PayPal ]</a>\r\n\t\t\t\t&nbsp;<a id='tab2CO' href='javascript:void(\"2CO\")' onclick='javascript:appToggleTabs(\"2CO\", arrTabs)'>[ 2CO ]</a>\r\n\t\t\t\t&nbsp;<a id='tabAuthorizeNet' href='javascript:void(\"AuthorizeNet\")' onclick='javascript:appToggleTabs(\"AuthorizeNet\", arrTabs)'>[ Authorize.Net ]</a>\r\n\t\t\t</b>\r\n\t\t</legend>\r\n\r\n\t\t<div id='contentOnline' style='display:;padding:10px;'>\r\n\t\t\t'On-line Order' is designed to allow the customer to make a payment on the site without any advance payment.<br />\r\n\t\t\tThe administrator receives a notification about placing the order and can complete the order by himself.\r\n\t\t\t<br /><br />\r\n\t\t\tIMPORTANT:\r\n\t\t\t<ol>\r\n\t\t\t\t<li>Administrator can view orders <a href='index.php?admin=mod_payments_orders'>here</a>.</li>\r\n\t\t\t\t<li>Administrator may require collecting of credit card info via <b>Modules -> Payments Settings</b></li>\r\n\t\t\t</ol>\r\n\t\t</div>\r\n\t\t\r\n\t\t<div id='contentPayPal' style='display:none;padding:10px;'>\r\n\t\tTo make PayPal processing system works on your site you have to perform the following steps:<br/><br/>\r\n\t\t<ol>\r\n\t\t\t<li>Create an account on PayPal: <a href='https://www.paypal.com' target='_new'>https://www.paypal.com</a></li>\r\n\t\t\t<li>After account is created, log into and select from the top menu: <b>My Account -> Profile</b></li>\r\n\t\t\t<li>On <b>Profile Summary</b> page select from the <b>Selling Preferences</b> column: <b>Instant Payment Notification (IPN) Preferences</b>.  </li>\r\n\t\t\t<li>Turn 'On' IPN by selecting <b>Receive IPN messages (Enabled)</b> and write into <b>Notification URL</b>: {site}/index.php?page=payment_notify_paypal, where {site} is a full path to your site.<br /><br />\r\n\t\t\t\t<span class='code'>\r\n\t\t\t    For example: <b>http://your_domain.com/index.php?page=payment_notify_paypal</b> or <br /><b>http://your_domain.com/new_site/index.php?page=payment_notify_paypal</b>\r\n\t\t\t\t</span>\r\n\t\t\t</li>\r\n\t\t\t<li>\r\n\t\t\t\tThen go to <b>My Account -> Profile -> Website Payment Preferences</b>, turn <b>Auto Return</b> 'On' and write into <b>Return URL</b>: {site}/index.php?page=payment_return, where {site} is a full path to your site.<br /><br />\r\n\t\t\t\t<span class='code'>\r\n\t\t\t    For example: <b>http://your_domain.com/index.php?page=payment_return</b>\r\n\t\t\t\t</span>\r\n\t\t\t</li>\r\n\t\t</ol>\r\n\t\t</div>\r\n\r\n\t\t<div id='content2CO' style='display:none;padding:10px;'>\r\n\t\tTo make 2CO processing system works on your site you have to perform the following steps:<br/><br/>\r\n\t\t<ol>\r\n\t\t\t<li>Create an account on 2Checkout: <a href='http://www.2checkout.com' target='_new'>http://www.2checkout.com</a></li>\r\n\t\t\t<li>After account is created, <a href='https://www.2checkout.com/2co/login' target='_new'>log into</a> and select from the top menu: <b>Notifications -> Settings</b></li>\r\n\t\t\t<li>On <b>Instant Notification Settings</b> page enter into <b>Global URL</b> textbox: {site}/index.php?page=payment_notify_2co, where {site} is a full path to your site. <br /><br />\r\n\t\t\t\t<span class='code'>\r\n\t\t\t    For example: <b>http://your_domain.com/index.php?page=payment_notify_2co</b> or <br /><b>http://your_domain.com/new_site/index.php?page=payment_notify_2co</b>\r\n\t\t\t\t</span>\t<br /><br />\r\n\t\t\t\tThen click on <b>Enable All Notifications</b> and <b>Save Settings</b> buttons.\r\n\t\t\t</li>\t\t\t\r\n\t\t\t<li>\r\n\t\t\t\tGo to <b>Account -> Site Management</b>, set <b>Demo Setting</b> on 'Off' and enter into <b>Approved URL</b> textbox: {site}/index.php?page=payment_return, where {site} is a full path to your site.<br /><br />\r\n\t\t\t\t<span class='code'>\r\n\t\t\t    For example: <b>http://your_domain.com/index.php?page=payment_return</b> or <br /><b>http://your_domain.com/new_site/index.php?page=payment_return</b>\r\n\t\t\t\t</span>\t<br />\r\n\t\t\t</li>\r\n\t\t</ol>\r\n\t\t</div>\r\n\r\n\t\t<div id='contentAuthorizeNet' style='display:none;padding:10px;'>\r\n\t\tTo make Authorize.Net processing system works on your site you have to perform the following steps:<br/><br/>\r\n\t\t<ol>\r\n\t\t\t<li>Create an account on Authorize.Net: <a href='http://www.authorize.net/solutions/merchantsolutions/' target='_new'>http://www.authorize.net</a><br /></li>\r\n\t\t\t<li>After account is created, <a href='https://account.authorize.net/' target='_new'>log into</a> and obtain <b>API Login ID</b> and <b>Transaction Key</b>. Find here how to do this: <a href='http://developer.authorize.net/faqs/' target='_new'>Authorize.Net FAQ</a><br /></li>\r\n\t\t\t<li>\r\n\t\t\t\tThen go back to <b>Administrator Panel -> Modules -> <a href='index.php?admin=mod_payments_settings'>Payments Settings</a></b>, <br>where activate <b>Authorize.Net payment type</b>, enter <b>API Login ID</b> and <b>Transaction Key</b>.<br /><br />\r\n\t\t\t</li>\r\n\t\t</ol>\r\n\t\t</div>\r\n\t\t</fieldset>";
    } else {
        if ($mode == 'add') {
            $objPayments->DrawAddMode();
        } else {
            if ($mode == 'edit') {
                $objPayments->DrawEditMode($rid);
            } else {
                if ($mode == 'details') {
                    $objPayments->DrawDetailsMode($rid);
                }
            }
        }
    }
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
                    }
                }
            }
        }
    }
    // Start main content
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _CUSTOMERS => '', _CUSTOMERS_SETTINGS => '', ucfirst($action) => '')));
    echo '<br />';
    //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
    echo $msg;
    draw_content_start();
    if ($mode == 'view') {
        $objCustomers->DrawViewMode();
    } else {
        if ($mode == 'add') {
            $objCustomers->DrawAddMode();
        } else {
            if ($mode == 'edit') {
                $objCustomers->DrawEditMode($rid);
            } else {
                if ($mode == 'details') {
                    $objCustomers->DrawDetailsMode($rid);
                }
            }
        }
    }
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
                    }
                }
            }
        }
    }
    // Start main content
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _ADSENSE => '', _ADSENSE_SETTINGS => '', ucfirst($action) => '')));
    echo '<br>';
    //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
    echo $msg;
    draw_content_start();
    if ($mode == 'view') {
        $objAdsenseSettings->DrawViewMode();
    } else {
        if ($mode == 'add') {
            $objAdsenseSettings->DrawAddMode();
        } else {
            if ($mode == 'edit') {
                $objAdsenseSettings->DrawEditMode($rid);
            } else {
                if ($mode == 'details') {
                    $objAdsenseSettings->DrawDetailsMode($rid);
                }
            }
        }
    }
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}