Changeset 440694
- Timestamp:
- 09/20/2011 09:19:12 AM (15 years ago)
- Location:
- bookings/trunk
- Files:
-
- 3 added
- 2 deleted
- 3 edited
-
Copy of readme.txt (deleted)
-
CopyOfbookings.php (deleted)
-
bookings.php (added)
-
controlpanel.php (modified) (5 diffs)
-
css/client.css (added)
-
includes/support-us.inc.php (modified) (1 diff)
-
js/functions.js (modified) (2 diffs)
-
readme.txt (added)
Legend:
- Unmodified
- Added
- Removed
-
bookings/trunk/controlpanel.php
r439859 r440694 47 47 } 48 48 49 //add_options_page($bookings_name, $bookings_name, 'administrator', 'cc-ce-bridge-cp','bookings_admin');50 49 add_menu_page($bookings_name, $bookings_name, 'administrator', 'bookings','bookings_main'); 51 50 add_submenu_page('bookings', $bookings_name.' - Setup', 'Setup', 'administrator', 'bookings', 'bookings_main'); 52 add_submenu_page('bookings', $bookings_name.'- 20', 'Control Panel', 'administrator', 'bookings&zb=ctrlpnl', 'bookings_main'); 53 //add_submenu_page('bookings', $bookings_name.'- Main', 'Schedules', 'administrator', 'bookings&zb=admin&tool=schedules', 'bookings_main'); 51 add_submenu_page('bookings', $bookings_name.' - Schedules', 'Schedules', 'administrator', 'bookings&zb=admin&tool=schedules', 'bookings_main'); 54 52 add_submenu_page('bookings', $bookings_name.' - Resources', 'Resources', 'administrator', 'bookings&zb=admin&tool=resources', 'bookings_main'); 55 53 add_submenu_page('bookings', $bookings_name.' - Blackouts', 'Blackouts', 'administrator', 'bookings&zb=blackouts', 'bookings_main'); 56 54 add_submenu_page('bookings', $bookings_name.' - List', 'Bookings List', 'administrator', 'bookings&zb=admin&tool=reservations', 'bookings_main'); 57 //add_submenu_page('bookings', $bookings_name.'- Main', 'Approve reservations', 'administrator', 'bookings&zb=admin&tool=approval', 'bookings_main');58 55 add_submenu_page('bookings', $bookings_name.' - Calendar', 'Bookings Calendar', 'administrator', 'bookings&zb=schedule', 'bookings_main'); 59 56 add_submenu_page('bookings', $bookings_name.' - Search Bookings', 'Search Bookings', 'administrator', 'bookings&zb=usage', 'bookings_main'); … … 64 61 65 62 if (!isset($_GET['zb'])) return bookings_admin(); 66 // elseif (isset($_GET['ajax'])) return bookings_ajax(); 67 68 //bookings_home($home,$pid); 69 63 70 64 echo '<div class="wrap">'; 71 65 echo '<div id="bookings" style="position:relative;float:left;width:75%">'; … … 83 77 echo '</div>'; 84 78 } 79 85 80 function bookings_admin() { 86 81 … … 89 84 $controlpanelOptions=bookings_options(); 90 85 91 if ( isset($_REQUEST['install ed']) ) echo '<div id="message" class="updated fade"><p><strong>'.$bookings_name.' installed.</strong></p></div>';86 if ( isset($_REQUEST['install']) ) echo '<div id="message" class="updated fade"><p><strong>'.$bookings_name.' settings updated.</strong></p></div>'; 92 87 if ( isset($_REQUEST['error']) ) echo '<div id="message" class="updated fade"><p>The following error occured: <strong>'.$_REQUEST['error'].'</strong></p></div>'; 93 88 … … 129 124 <?php 130 125 require(dirname(__FILE__).'/includes/support-us.inc.php'); 131 zing_support_us('bookings','bookings',' cc-ce-bridge-cp',BOOKINGS_VERSION);126 zing_support_us('bookings','bookings','bookings',BOOKINGS_VERSION); 132 127 } 133 128 add_action('admin_menu', 'bookings_add_admin'); ?> -
bookings/trunk/includes/support-us.inc.php
r439859 r440694 38 38 $url='http://www.zingiri.net/index.php?zlistpro=register&e='.urlencode($current_user->data->user_email).'&f='.urlencode(isset($current_user->data->first_name) ? $current_user->data->first_name : '').'&l='.urlencode(isset($current_user->data->last_name) ? $current_user->data->last_name : '').'&w='.urlencode(get_option('home')).'&p='.$wpPluginName.'&v='.urlencode($version); 39 39 $news = new zHttpRequest($url); 40 if ($news->live() && !$_SESSION[$wpPluginName]['news']) {40 if ($news->live() && (!isset($_SESSION[$wpPluginName]['news']) || !$_SESSION[$wpPluginName]['news'])) { 41 41 update_option($wpPluginName.'_news',$news->DownloadToString()); 42 42 $_SESSION[$wpPluginName]['news']=true; -
bookings/trunk/js/functions.js
r439859 r440694 593 593 } 594 594 595 function changeResCalendar(m, d, y, view, id ) {595 function changeResCalendar(m, d, y, view, id, page) { 596 596 var url = document.URL.split('?')[0]; 597 597 var type_id = id.split("|"); … … 599 599 var p = (type == "s") ? "scheduleid" : "machid"; 600 600 var id = type_id[1]; 601 document.location.href = url + "?page=bookings&zb=rescalendar&date=" + m + "-" + d + "-" + y + "&view=" + view + "&" + p + "=" + id; 601 if (page == null) page='rescalendar'; 602 //document.location.href = url + "?page=bookings&zb=rescalendar&date=" + m + "-" + d + "-" + y + "&view=" + view + "&" + p + "=" + id; 603 document.location.href = bookingsPageurl + "zb=" + page + "&date=" + m + "-" + d + "-" + y + "&view=" + view + "&" + p + "=" + id; 602 604 } 603 605
Note: See TracChangeset
for help on using the changeset viewer.