Plugin Directory

Changeset 1310069


Ignore:
Timestamp:
12/16/2015 03:32:12 PM (10 years ago)
Author:
theArab
Message:

Updates to Admin Home page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skedmaker-online-scheduling/trunk/admin_home.php

    r1014373 r1310069  
    2828// Get the page to show. If it's blank, make it home page
    2929if($_GET['v']==""){$view='home';}else{$view=$_GET['v'];}
     30
    3031if($view==""){$view="home";}
    3132echo "<br><br>";
    32 include(plugin_dir_path( __FILE__ ) . "_admin/_".$view.".php");
     33
     34function SM_pro_msg($page, $btn){
     35    global $sm_btns_dir;
     36    global $smadmin;
     37    echo "<span class='redText' style='font-size:18px;'><img src='".$sm_btns_dir.$btn."' class='btn'>".$page." is only available with Skedmaker PRO.</span><br><br>";
     38    echo "<a href='".$smadmin."'>Click here for more information about Skedmaker PRO</a>";
     39    echo "<br><br>";
     40    echo "<a href='".$smadmin."'>Go back to Administration</a>";
     41   
     42}
     43
     44if($view=="clients" || $view=="reminders" || $view=="search" || $view=="map" || $view=="map2"){
     45    $sm_page=plugin_dir_path( __FILE__ ) . "_admin/pro/_".$view.".php";
     46}else{
     47    $sm_page=plugin_dir_path( __FILE__ ) . "_admin/_".$view.".php";
     48}
     49
     50if(file_exists($sm_page)){
     51    include($sm_page);
     52}else if($_GET['v']=="map"){
     53    SM_pro_msg("Appointment Map", "btn_map32_reg.png");
     54}else if($_GET['v']=="clients"){
     55    SM_pro_msg("Client List", "btn_clients32_reg.png");
     56}else if($_GET['v']=="reminders"){
     57    SM_pro_msg("Sending Reminders", "btn_reminders32_reg.png");
     58
     59}else{
     60    echo "<span class='redText'>Sorry, can not find the page you are looking for.</span><br><br>";
     61    echo "<a href='".$smadmin."'>Go to Skedmaker Administration Page.</a>";
     62}
    3363
    3464SM_foot(); ?>
Note: See TracChangeset for help on using the changeset viewer.