}
},
show_hide_reacur: function() {
- if ($(":checkbox[name='reacur']").attr('checked')) {
+ if ($(":checkbox[name='reacur']").prop('checked')) {
$(".recur-event").show();
} else {
$(".recur-event").hide();
}
},
show_hide_recurr: function() {
- if ($(":checkbox[name='recurr']").attr('checked')) {
+ if ($(":checkbox[name='recurr']").prop('checked')) {
$(".recur-event").show();
} else {
$(".recur-event").hide();
*/
public function toHtml()
{
- $GLOBALS['topScripts'][] = JQUERY_CDN_JS;
+ $GLOBALS['styleSheets'][] = JQUERY_UI_CDN_CSS;
+ $GLOBALS['topScripts'][] = JQUERY_CDN_JS;
$GLOBALS['bottomScripts'][] = MEDIA_APP_BASE_URL . 'libjs/textlimit.js';
$baseSecureUrl
= ($_SERVER['HTTPS'] == 'on')
= ($_SERVER['HTTPS'] == 'on')
? GLM_APP_BASE_SECURE_URL
: MEDIA_APP_BASE_URL;
- $GLOBALS['topScripts'][]
- = $appBaseSecureUrl
- . 'libjs/jqueryui/1.8.13/js/jquery-ui-1.8.13.custom.min.js';
+ $GLOBALS['topScripts'][] = JQUERY_UI_CDN_JS;
$GLOBALS['topScripts'][] = CKEDITOR_JS.'';
$this->setupRenderers();
*/
public function toHtml()
{
- $GLOBALS['topScripts'][] = JQUERY_CDN_JS;
- $baseSecureUrl = MEDIA_BASE_URL;
- $appBaseSecueUrl = MEDIA_APP_BASE_URL;
- $GLOBALS['topScripts'][]
- = $appBaseSecueUrl
- . 'libjs/jqueryui/1.8.13/js/jquery-ui-1.8.13.custom.min.js';
- $GLOBALS['topScripts'][] = CKEDITOR_JS.'';
+ $GLOBALS['styleSheets'][] = JQUERY_UI_CDN_CSS;
+ $GLOBALS['topScripts'][] = JQUERY_CDN_JS;
+ $baseSecureUrl = MEDIA_BASE_URL;
+ $appBaseSecueUrl = MEDIA_APP_BASE_URL;
+ $GLOBALS['topScripts'][] = JQUERY_UI_CDN_JS;
+ $GLOBALS['topScripts'][] = CKEDITOR_JS.'';
$this->setupRenderers();
if ($this->validate()) {
);
$glmPage->isMemberOnlySection = true;
$glmPage->fetchPage();
-
+ $GLOBALS['styleSheets'][]
+ = MEDIA_BASE_URL . 'Toolkit/Members/css/member-admin.css';
$glmPage->toolboxContent->membersOnly = $eventContent;
$baseSecureUrl
= ($_SERVER['HTTPS'] == 'on')
= $baseSecureUrl . 'css/contactform.css';
$GLOBALS['styleSheets'][]
= $baseSecureUrl . 'Toolkit/Members/css/member-admin.css';
- $GLOBALS['styleSheets'][]
- = $appBaseSecueUrl
- . 'libjs/jqueryui/1.8.13/development-bundle/themes/base/jquery.ui.all.css';
+ $GLOBALS['styleSheets'][] = JQUERY_UI_CDN_CSS;
$glmPage->topScripts = Toolkit_Common::getScripts($GLOBALS['topScripts']);
$glmPage->bottomScripts = Toolkit_Common::getScripts($GLOBALS['bottomScripts']);
<th>Status</th>
<th>Start</th>
<th>End</th>
+ <th> </th>
</tr>';
foreach( $data as $row ){
$html .= '<tr>
<td>
'.$row->getEnding().'
</td>
+ <td>
+ <div class="buttons">
+ <a onclick="return(confirm(\'This will delete this Event! Are you sure?\'));"
+ href="'.$this->page.'?rt=CommonEvents&ac=deleteEvent&id='.$row->getId().'">
+ Delete
+ </a>
+ </div>
+ </td>
</tr>';
}
$html .= '</table>';
}
// }}}
+ public function deleteEventAction()
+ {
+ $eventId = filter_var($_REQUEST['id'], FILTER_VALIDATE_INT);
+ if ($eventId) {
+ $eventMapper = new EventMapper(Toolkit_Database::getInstance());
+ $event = $eventMapper->fetchEvent($eventId);
+ $member = $event->getMember();
+ $html = '<pre>'.print_r($event, true).'</pre>';
+ $html .= '<pre>'.print_r($member, true).'</pre>';
+ $html .= '<pre>'.print_r($this->registry->memberId, true).'</pre>';
+ if ($this->registry->memberId == $member) {
+ $eventMapper->deleteEvent($event);
+ }
+ }
+ header('Location: ' . MEDIA_BASE_URL
+ . '/members-only-area/?rt=CommonEvents&page_id=' . MEMBERS_EVENTS_PAGE);
+ exit;
+ }
// {{{ addEventAction()
/**
* Description of addEventAction()
*/
private function _createPage($couponContent)
{
+ $GLOBALS['styleSheets'][]
+ = MEDIA_BASE_URL . 'Toolkit/Members/css/member-admin.css';
$breadCrumbsFactory = new Toolkit_BreadCrumbsFactory(
new Toolkit_Toolbox_PageGatewayPublishFactory(
$this->registry->dbh
*/
public function indexAction()
{
+ $GLOBALS['styleSheets'][]
+ = MEDIA_BASE_URL . 'Toolkit/Members/css/member-admin.css';
$breadCrumbsFactory = new Toolkit_BreadCrumbsFactory(
new Toolkit_Toolbox_PageGatewayPublishFactory(
$this->registry->dbh
*/
private function _createPage($eventContent)
{
+ $GLOBALS['styleSheets'][]
+ = MEDIA_BASE_URL . 'Toolkit/Members/css/member-admin.css';
$breadCrumbsFactory = new Toolkit_BreadCrumbsFactory(
new Toolkit_Toolbox_PageGatewayPublishFactory(
$this->registry->dbh
= $baseSecureUrl . 'css/contactform.css';
$GLOBALS['styleSheets'][]
= $baseSecureUrl . 'Toolkit/Members/css/member-admin.css';
- $GLOBALS['styleSheets'][]
- = $appBaseSecueUrl
- . 'libjs/jqueryui/1.8.13/development-bundle/themes/base/jquery.ui.all.css';
+ $GLOBALS['styleSheets'][] = JQUERY_UI_CDN_CSS;
$glmPage->topScripts = Toolkit_Common::getScripts($GLOBALS['topScripts']);
$glmPage->bottomScripts = Toolkit_Common::getScripts($GLOBALS['bottomScripts']);
//$glmPage->title = $toolbox->title();
$glmPage->fetchPage();
-
+ $GLOBALS['styleSheets'][]
+ = MEDIA_BASE_URL . 'Toolkit/Members/css/member-admin.css';
$glmPage->topScripts = Toolkit_Common::getScripts($GLOBALS['topScripts']);
$glmPage->bottomScripts = Toolkit_Common::getScripts($GLOBALS['bottomScripts']);
$glmPage->styles = Toolkit_Common::getStyleSheets();
);
$glmPage->isMemberOnlySection = true;
$glmPage->fetchPage();
-
+ $GLOBALS['styleSheets'][]
+ = MEDIA_BASE_URL . 'Toolkit/Members/css/member-admin.css';
// Export File Form
$export = new Toolkit_Members_Leads_ExportFileForm(
'file_export',
//$glmPage->title = $toolbox->title();
$glmPage->fetchPage();
-
+ $GLOBALS['styleSheets'][]
+ = MEDIA_BASE_URL . 'Toolkit/Members/css/member-admin.css';
if ( defined('EXPOSURE_REPORTS_LIST')
&& EXPOSURE_REPORTS_LIST
) {
<!-- Content -->
<div class="row collapse" id="main">
{if:isMemberOnlySection}
- {sideNav:h}
- {end:}
+ <div id="subnav_wrapper" class="small-12 medium-2 columns right">
+ <nav id="subnav">
+ {sideNav:h}
+ </nav>
+ </div>
+ <div class="small-12 medium-10 columns">
+ <flexy:include src="toolbox.html">
+ </div>
+ {else:}
<flexy:include src="toolbox.html">
+ {end:}
+
<!-- ######### /Placeholder content ######### -->
</div>