function ProjectTheme_add_new_epay_cnt() { $arr = array("yes" => __("Yes", 'ProjectTheme'), "no" => __("No", 'ProjectTheme')); ?> <div id="tabs_epay" > <form method="post" action="<?php bloginfo('siteurl'); ?> /wp-admin/admin.php?page=payment-methods&active_tab=tabs_epay"> <table width="100%" class="sitemile-table"> <tr> <td valign=top width="22"><?php ProjectTheme_theme_bullet(); ?> </td> <td width="200"><?php _e('Enable:', 'ProjectTheme'); ?> </td> <td><?php echo ProjectTheme_get_option_drop_down($arr, 'ProjectTheme_epay_enable'); ?> </td> </tr> <tr> <td valign=top width="22"><?php ProjectTheme_theme_bullet(); ?> </td> <td ><?php _e('ePay Merchant Number:', 'ProjectTheme'); ?> </td> <td><input type="text" size="45" name="ProjectTheme_epay_id" value="<?php echo get_option('ProjectTheme_epay_id'); ?> "/></td> </tr> <tr> <td ></td> <td ></td> <td><input type="submit" name="ProjectTheme_save_epay" value="<?php _e('Save Options', 'ProjectTheme'); ?> "/></td> </tr> </table> </form> </div> <?php }
function ProjectTheme_add_new_pesapal_cnt() { $arr = array("yes" => __("Yes", 'ProjectTheme'), "no" => __("No", 'ProjectTheme')); $arr2 = array("live" => __("LIVE", 'ProjectTheme'), "test" => __("TEST - DEMO", 'ProjectTheme')); ?> <div id="tabs_pesapal" > <form method="post" action="<?php bloginfo('siteurl'); ?> /wp-admin/admin.php?page=payment-methods&active_tab=tabs_pesapal"> <table width="100%" class="sitemile-table"> <tr> <td valign=top width="22"><?php ProjectTheme_theme_bullet(); ?> </td> <td width="200"><?php _e('Enable:', 'ProjectTheme'); ?> </td> <td><?php echo ProjectTheme_get_option_drop_down($arr, 'ProjectTheme_pesapal_enable'); ?> </td> </tr> <tr> <td valign=top width="22"><?php ProjectTheme_theme_bullet(); ?> </td> <td width="200"><?php _e('Working Mode:', 'ProjectTheme'); ?> </td> <td><?php echo ProjectTheme_get_option_drop_down($arr2, 'ProjectTheme_working_mode'); ?> </td> </tr> <tr> <td valign=top width="22"><?php ProjectTheme_theme_bullet(); ?> </td> <td ><?php _e('Consumer Key:', 'ProjectTheme'); ?> </td> <td><input type="text" size="45" name="ProjectTheme_pesapal_key" value="<?php echo get_option('ProjectTheme_pesapal_key'); ?> "/></td> </tr> <tr> <td valign=top width="22"><?php ProjectTheme_theme_bullet(); ?> </td> <td ><?php _e('Consumer Secret:', 'ProjectTheme'); ?> </td> <td><input type="text" size="45" name="ProjectTheme_pesapal_secret" value="<?php echo get_option('ProjectTheme_pesapal_secret'); ?> "/></td> </tr> <tr> <td ></td> <td ></td> <td><input type="submit" name="ProjectTheme_save_pesapal" value="<?php _e('Save Options', 'ProjectTheme'); ?> "/></td> </tr> </table> </form> </div> <?php }
function projectTheme_theme_images_settings() { global $menu_admin_project_theme_bull, $wpdb; echo '<div class="wrap">'; echo '<div class="icon32" id="icon-options-general-img"><br/></div>'; echo '<h2 class="my_title_class_sitemile">ProjectTheme Image Settings</h2>'; $arr = array("yes" => "Yes", "no" => "No"); if (isset($_POST['save1'])) { $ProjectTheme_enable_images_in_projects = $_POST['ProjectTheme_enable_images_in_projects']; update_option('ProjectTheme_enable_images_in_projects', $ProjectTheme_enable_images_in_projects); $ProjectTheme_charge_fees_for_images = $_POST['ProjectTheme_charge_fees_for_images']; update_option('ProjectTheme_charge_fees_for_images', $ProjectTheme_charge_fees_for_images); $ProjectTheme_enable_max_images_limit = $_POST['ProjectTheme_enable_max_images_limit']; update_option('ProjectTheme_enable_max_images_limit', $ProjectTheme_enable_max_images_limit); //-------------------------------------- update_option('projectTheme_nr_of_free_images', trim($_POST['projectTheme_nr_of_free_images'])); update_option('projectTheme_extra_image_charge', trim($_POST['projectTheme_extra_image_charge'])); update_option('projectTheme_nr_max_of_images', trim($_POST['projectTheme_nr_max_of_images'])); echo '<div class="saved_thing">Settings saved!</div>'; } if (isset($_POST['save2'])) { update_option('projectTheme_width_of_project_images', trim($_POST['projectTheme_width_of_project_images'])); echo '<div class="saved_thing">Settings saved!</div>'; } ?> <div id="usual2" class="usual"> <ul> <li><a href="#tabs1" class="selected">General Settings</a></li> <li><a href="#tabs2">Resize Settings</a></li> </ul> <div id="tabs1" style="display: block; "> <form method="post"> <table width="100%" class="sitemile-table"> <tr> <td width="190">Enable Limit on max images:</td> <td><?php echo ProjectTheme_get_option_drop_down($arr, 'ProjectTheme_enable_max_images_limit'); ?> </td> </tr> <tr> <td>Max limit of images:</td> <td><input type="text" value="<?php echo get_option('projectTheme_nr_max_of_images'); ?> " size="4" name="projectTheme_nr_max_of_images" /></td> </tr> <tr> <td width="190">Enable Images:</td> <td><?php echo ProjectTheme_get_option_drop_down($arr, 'ProjectTheme_enable_images_in_projects'); ?> </td> </tr> <tr> <td>Charge fees for images:</td> <td><?php echo ProjectTheme_get_option_drop_down($arr, 'ProjectTheme_charge_fees_for_images'); ?> </td> </tr> <tr> <td>Number of free images:</td> <td><input type="text" value="<?php echo get_option('projectTheme_nr_of_free_images'); ?> " size="4" name="projectTheme_nr_of_free_images" /></td> </tr> <tr> <td>Extra charge(per image):</td> <td><input type="text" value="<?php echo get_option('projectTheme_extra_image_charge'); ?> " size="5" name="projectTheme_extra_image_charge" /> <?php echo projectTheme_get_currency(); ?> </td> </tr> <tr> <td></td> <td><input type="submit" class="button button-primary button-large" name="save1" value="Save Settings" /></td> </tr> </table> </form> </div> <div id="tabs2" style="display: none; "> <form method="post"> <table width="100%" class="sitemile-table"> <tr> <td>Default width of picture resize:</td> <td><input type="text" value="<?php echo get_option('projectTheme_width_of_project_images'); ?> " size="4" name="projectTheme_width_of_project_images" /> pixels</td> </tr> <tr> <td></td> <td><input type="submit" class="button button-primary button-large" name="save2" value="Save Settings" /></td> </tr> </table> </form> </div> </div> <?php echo '</div>'; }
function ProjectTheme_general_settings_main_details_options_memss() { $arr = array("yes" => "Yes", "no" => "No"); global $menu_admin_project_theme_bull; ?> <tr> <td valign=top width="22"><?php echo $menu_admin_project_theme_bull; ?> </td> <td >Enable Memberships:</td> <td><?php echo ProjectTheme_get_option_drop_down($arr, 'ProjectTheme_enable_membs'); ?> </td> </tr> <tr> <td valign=top width="22"><?php echo $menu_admin_project_theme_bull; ?> </td> <td >Monthly Cost for Service Provider:</td> <td><input type="text" name='projectTheme_monthly_service_provider' size="4" value="<?php echo get_option('projectTheme_monthly_service_provider'); ?> " /> <?php echo projecttheme_get_currency(); ?> </td> </tr> <tr> <td valign=top width="22"><?php echo $menu_admin_project_theme_bull; ?> </td> <td >Number of Bids (monthly):</td> <td><input type="text" name='projectTheme_monthly_nr_of_bids' size="4" value="<?php echo get_option('projectTheme_monthly_nr_of_bids'); ?> " /></td> </tr> <tr> <td valign=top width="22"><?php echo $menu_admin_project_theme_bull; ?> </td> <td >Monthly Cost for Service Contractor:</td> <td><input type="text" name='projectTheme_monthly_service_contractor' size="4" value="<?php echo get_option('projectTheme_monthly_service_contractor'); ?> " /> <?php echo projecttheme_get_currency(); ?> </td> </tr> <tr> <td valign=top width="22"><?php echo $menu_admin_project_theme_bull; ?> </td> <td >Number of Projects (monthly):</td> <td><input type="text" name='projectTheme_monthly_nr_of_projects' size="4" value="<?php echo get_option('projectTheme_monthly_nr_of_projects'); ?> " /></td> </tr> <tr> <td valign=top width="22"><?php echo $menu_admin_project_theme_bull; ?> </td> <td >Trial Period:</td> <td><input type="text" name='projectTheme_monthly_trial_period' size="4" value="<?php echo get_option('projectTheme_monthly_trial_period'); ?> " /> days </td> </tr> <tr> <td valign=top width="22"> </td> <td > </td> <td> </td> </tr> <?php }